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
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
694 extra_linker_plugin_flags
695 extra_linker_plugin_configure_flags
702 extra_isl_gmp_configure_flags
703 extra_mpc_mpfr_configure_flags
704 extra_mpc_gmp_configure_flags
705 extra_mpfr_configure_flags
753 TOPLEVEL_CONFIGURE_ARGUMENTS
781 program_transform_name
792 ac_subst_files
='serialization_dependencies
798 enable_option_checking
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
806 enable_compressed_debug_sections
808 enable_libquadmath_support
825 with_static_standard_libraries
832 enable_isl_version_check
834 enable_linker_plugin_configure_flags
835 enable_linker_plugin_flags
838 enable_stage1_languages
841 with_target_bdw_gc_include
842 with_target_bdw_gc_lib
843 with_gcc_major_version_only
845 with_debug_prefix_map
848 enable_serial_configure
849 with_build_time_tools
850 enable_maintainer_mode
851 enable_stage1_checking
854 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
980 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
983 -build |
--build |
--buil |
--bui |
--bu)
984 ac_prev
=build_alias
;;
985 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
986 build_alias
=$ac_optarg ;;
988 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
989 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
990 ac_prev
=cache_file
;;
991 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
992 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
993 cache_file
=$ac_optarg ;;
996 cache_file
=config.cache
;;
998 -datadir |
--datadir |
--datadi |
--datad)
1000 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1001 datadir
=$ac_optarg ;;
1003 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1004 |
--dataroo |
--dataro |
--datar)
1005 ac_prev
=datarootdir
;;
1006 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1007 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1008 datarootdir
=$ac_optarg ;;
1010 -disable-* |
--disable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=no
;;
1026 -docdir |
--docdir |
--docdi |
--doc |
--do)
1028 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1029 docdir
=$ac_optarg ;;
1031 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1033 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1034 dvidir
=$ac_optarg ;;
1036 -enable-* |
--enable-*)
1037 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1040 as_fn_error $?
"invalid feature name: $ac_useropt"
1041 ac_useropt_orig
=$ac_useropt
1042 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_
$ac_useropt"
1047 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep
=', ';;
1050 eval enable_
$ac_useropt=\
$ac_optarg ;;
1052 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1053 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1054 |
--exec |
--exe |
--ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1057 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1058 |
--exec=* |
--exe=* |
--ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas |
--gas |
--ga |
--g)
1062 # Obsolete; use --with-gas.
1065 -help |
--help |
--hel |
--he |
-h)
1066 ac_init_help
=long
;;
1067 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1070 ac_init_help
=short
;;
1072 -host |
--host |
--hos |
--ho)
1073 ac_prev
=host_alias
;;
1074 -host=* |
--host=* |
--hos=* |
--ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1079 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir |
--includedir |
--includedi |
--included |
--include \
1084 |
--includ |
--inclu |
--incl |
--inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1087 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1092 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir |
--libdir |
--libdi |
--libd)
1097 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1101 |
--libexe |
--libex |
--libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1104 |
--libexe=* |
--libex=* |
--libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1113 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1116 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1121 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp |
--nfp |
--nf)
1125 # Obsolete; use --without-fp.
1128 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1129 |
--no-cr |
--no-c |
-n)
1132 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1133 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1136 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1137 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1138 |
--oldin |
--oldi |
--old |
--ol |
--o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1141 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1142 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1147 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1151 |
--program-pre |
--program-pr |
--program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1154 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1158 |
--program-suf |
--program-su |
--program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1161 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name |
--program-transform-name \
1165 |
--program-transform-nam |
--program-transform-na \
1166 |
--program-transform-n |
--program-transform- \
1167 |
--program-transform |
--program-transfor \
1168 |
--program-transfo |
--program-transf \
1169 |
--program-trans |
--program-tran \
1170 |
--progr-tra |
--program-tr |
--program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* |
--program-transform-name=* \
1173 |
--program-transform-nam=* |
--program-transform-na=* \
1174 |
--program-transform-n=* |
--program-transform-=* \
1175 |
--program-transform=* |
--program-transfor=* \
1176 |
--program-transfo=* |
--program-transf=* \
1177 |
--program-trans=* |
--program-tran=* \
1178 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1183 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1188 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1192 |
-silent |
--silent |
--silen |
--sile |
--sil)
1195 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1197 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1202 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1203 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1207 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1208 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site |
--site |
--sit)
1214 -site=* |
--site=* |
--sit=*)
1217 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1219 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1223 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1226 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1230 ac_prev
=target_alias
;;
1231 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1237 -version |
--version |
--versio |
--versi |
--vers |
-V)
1238 ac_init_version
=: ;;
1241 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid package name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid package name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval with_
$ac_useropt=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1295 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1299 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $?
"missing argument to $ac_option"
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1323 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 # Check all directory arguments for consistency.
1329 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val
=\$
$ac_var
1335 # Remove trailing slashes.
1338 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\
$ac_val;;
1341 # Be sure to have absolute directory names.
1343 [\\/$
]* | ?
:[\\/]* ) continue;;
1344 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1346 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target
=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x
; then
1358 if test "x$build_alias" = x
; then
1359 cross_compiling
=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1368 test "$silent" = yes && exec 6>/dev
/null
1371 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di
=`ls -di .` &&
1373 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $?
"working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $?
"pwd does not report name of working directory"
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted
=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir
=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted
=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1415 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1417 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 as_fn_error $?
"path to source, $srcdir, contains spaces"
1436 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1515 --build=BUILD configure
for building on BUILD
[guessed
]
1516 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1517 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1521 if test -n "$ac_init_help"; then
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET
[=DIR
]. Use optional path to
find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled
, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful
for distribution
1539 compilers where those are
in separate optional packages.
1541 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1542 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1543 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1544 Enable compressed debug sections
for gas
, gold or ld
1546 --disable-libquadmath do not build libquadmath directory
1547 --disable-libquadmath-support
1548 disable libquadmath support
for Fortran
1549 --enable-libada build libada directory
1550 --enable-libgm2 build libgm2 directory
1551 --enable-libssp build libssp directory
1552 --disable-libstdcxx do not build libstdc
++-v3 directory
1553 --enable-bootstrap enable bootstrapping
[yes if native build
]
1554 --enable-pgo-build[=lto
]
1555 enable the PGO build
1556 --disable-isl-version-check
1557 disable check
for isl version
1558 --enable-lto enable link
time optimization support
1559 --enable-linker-plugin-configure-flags=FLAGS
1560 additional flags
for configuring linker plugins
1562 --enable-linker-plugin-flags=FLAGS
1563 additional flags
for configuring and building linker
1565 --enable-host-pie build position independent
host executables
1566 --enable-host-shared build
host code as shared libraries
1567 --enable-stage1-languages[=all
]
1568 choose additional languages to build during stage1.
1569 Mostly useful
for compiler development
1570 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1572 --enable-vtable-verify Enable vtable verification feature
1573 --enable-serial-[{host,target,build}-]configure
1574 force sequential configuration of sub-packages for
1575 the host, target or build machine, or all
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful (and
1579 sometimes confusing) to the casual installer
1580 --enable-stage1-checking[=all]
1581 choose additional checking for stage1 of the
1583 --enable-werror enable -Werror in bootstrap stage2 and later
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-build-libsubdir=DIR Directory where to find libraries for build system
1589 --with-system-zlib use installed libz
1590 --with-mpc=PATH specify prefix directory for installed MPC package.
1591 Equivalent to --with-mpc-include=PATH/include plus
1592 --with-mpc-lib=PATH/lib
1593 --with-mpc-include=PATH specify directory for installed MPC include files
1594 --with-mpc-lib=PATH specify directory for the installed MPC library
1595 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1596 Equivalent to --with-mpfr-include=PATH/include plus
1597 --with-mpfr-lib=PATH/lib
1598 --with-mpfr-include=PATH
1599 specify directory for installed MPFR include files
1600 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1601 --with-gmp=PATH specify prefix directory for the installed GMP
1602 package. Equivalent to
1603 --with-gmp-include=PATH/include plus
1604 --with-gmp-lib=PATH/lib
1605 --with-gmp-include=PATH specify directory for installed GMP include files
1606 --with-gmp-lib=PATH specify directory for the installed GMP library
1607 --with-stage1-libs=LIBS libraries for stage1
1608 --with-static-standard-libraries
1609 use -static-libstdc++ and -static-libgcc
1611 --with-stage1-ldflags=FLAGS
1612 linker flags for stage1
1613 --with-boot-libs=LIBS libraries for stage2 and later
1614 --with-boot-ldflags=FLAGS
1615 linker flags for stage2 and later
1616 --with-isl=PATH Specify prefix directory for the installed isl
1617 package. Equivalent to
1618 --with-isl-include=PATH/include plus
1619 --with-isl-lib=PATH/lib
1620 --with-isl-include=PATH Specify directory for installed isl include files
1621 --with-isl-lib=PATH Specify the directory for the installed isl library
1622 --with-target-bdw-gc=PATHLIST
1623 specify prefix directory for installed bdw-gc
1624 package. Equivalent to
1625 --with-target-bdw-gc-include=PATH/include plus
1626 --with-target-bdw-gc-lib=PATH/lib
1627 --with-target-bdw-gc-include=PATHLIST
1628 specify directories for installed bdw-gc include
1630 --with-target-bdw-gc-lib=PATHLIST
1631 specify directories for installed bdw-gc library
1632 --with-gcc-major-version-only
1633 use only GCC major number in filesystem paths
1634 --with-build-sysroot=SYSROOT
1635 use sysroot as the system root during the build
1636 --with-debug-prefix-map='A
=B C
=D ...
'
1637 map A to B, C to D ... in debug information
1638 --with-build-config='NAME NAME2...
'
1639 use config/NAME.mk build configuration
1640 --with-build-time-tools=PATH
1641 use given path to find target tools during the build
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXX C++ compiler command
1652 CXXFLAGS C++ compiler flags
1654 additional configure arguments for build directories
1656 additional configure arguments for host directories
1658 additional configure arguments for target directories
1661 DLLTOOL DLLTOOL for the host
1662 DSYMUTIL DSYMUTIL for the host
1664 LIPO LIPO for the host
1666 RANLIB RANLIB for the host
1667 STRIP STRIP for the host
1668 WINDRES WINDRES for the host
1669 WINDMC WINDMC for the host
1670 OBJCOPY OBJCOPY for the host
1671 OBJDUMP OBJDUMP for the host
1672 OTOOL OTOOL for the host
1673 READELF READELF for the host
1681 GFORTRAN for the target
1693 DLLTOOL for the target
1695 DSYMUTIL for the target
1703 OBJCOPY for the target
1705 OBJDUMP for the target
1707 OTOOL for the target
1709 RANLIB for the target
1711 READELF for the target
1713 STRIP for the target
1715 WINDRES for the target
1717 WINDMC for the target
1719 Use these variables to override the choices made by `configure' or to
help
1720 it to
find libraries and programs with nonstandard names
/locations.
1722 Report bugs to the package provider.
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1736 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1738 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1743 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1746 ac_abs_top_builddir
=$ac_pwd
1747 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir
=$ac_top_build_prefix
1752 .
) # We are building in place.
1754 ac_top_srcdir
=$ac_top_builddir_sub
1755 ac_abs_top_srcdir
=$ac_pwd ;;
1756 [\\/]* | ?
:[\\/]* ) # Absolute name.
1757 ac_srcdir
=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir
=$srcdir
1759 ac_abs_top_srcdir
=$srcdir ;;
1761 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1765 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1786 generated by GNU Autoconf
2.69
1788 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1789 This configure
script is free software
; the Free Software Foundation
1790 gives unlimited permission to copy
, distribute and modify it.
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile
()
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 rm -f conftest.
$ac_objext
1806 if { { ac_try
="$ac_compile"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err
; then
1854 grep -v '^ *+' conftest.err
>conftest.er1
1855 cat conftest.er1
>&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.
$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_cxx_try_link LINENO
1876 # -------------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_link
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 rm -f conftest.
$ac_objext conftest
$ac_exeext
1882 if { { ac_try
="$ac_link"
1884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_cxx_try_link
1921 # ac_fn_c_try_link LINENO
1922 # -----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1931 *) ac_try_echo
=$ac_try;;
1933 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1937 if test -s conftest.err
; then
1938 grep -v '^ *+' conftest.err
>conftest.er1
1939 cat conftest.er1
>&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest
$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest
$ac_exeext
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.
$ac_ext >&5
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status
$ac_retval
1965 } # ac_fn_c_try_link
1966 cat >config.log
<<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1970 It was created by $as_me, which was
1971 generated by GNU Autoconf 2.69. Invocation command line was
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir
=.
2007 $as_echo "PATH: $as_dir"
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_must_keep_next
=false
2037 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2038 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2039 |
-silent |
--silent |
--silen |
--sile |
--sil)
2042 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2047 as_fn_append ac_configure_args1
" '$ac_arg'"
2048 if test $ac_must_keep_next = true
; then
2049 ac_must_keep_next
=false
# Got value, back to normal.
2052 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2053 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2054 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2055 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 -* ) ac_must_keep_next
=true
;;
2063 as_fn_append ac_configure_args
" '$ac_arg'"
2068 { ac_configure_args0
=; unset ac_configure_args0
;}
2069 { ac_configure_args1
=; unset ac_configure_args1
;}
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2081 $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2085 # The following way of writing the cache mishandles newlines in values,
2087 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088 eval ac_val=\$$ac_var
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2103 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2125 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 $as_echo "$ac_var='\''$ac_val'\''"
2131 if test -n "$ac_subst_files"; then
2132 $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2136 for ac_var
in $ac_subst_files
2138 eval ac_val
=\$
$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2147 if test -s confdefs.h; then
2148 $as_echo "## ----------- ##
2155 test "$ac_signal" != 0 &&
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 for ac_signal
in 1 2 13 15; do
2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest
* confdefs.h
2171 $as_echo "/* confdefs.h */" > confdefs.h
2173 # Predefined preprocessor variables.
2175 cat >>confdefs.h
<<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 cat >>confdefs.h
<<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 cat >>confdefs.h
<<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 cat >>confdefs.h
<<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 cat >>confdefs.h
<<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2204 if test -n "$CONFIG_SITE"; then
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2208 */*) ac_site_file1
=$CONFIG_SITE;;
2209 *) ac_site_file1
=.
/$CONFIG_SITE;;
2211 elif test "x$prefix" != xNONE
; then
2212 ac_site_file1
=$prefix/share
/config.site
2213 ac_site_file2
=$prefix/etc
/config.site
2215 ac_site_file1
=$ac_default_prefix/share
/config.site
2216 ac_site_file2
=$ac_default_prefix/etc
/config.site
2218 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE
&& continue
2221 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2226 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $?
"failed to load site script $ac_site_file
2229 See \`config.log' for more details" "$LINENO" 5; }
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2240 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2241 *) .
"./$cache_file";;
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 # Check that the precious variables saved in the cache have kept the same
2252 ac_cache_corrupted
=false
2253 for ac_var
in $ac_precious_vars; do
2254 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2255 eval ac_new_set
=\
$ac_env_${ac_var}_set
2256 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2257 eval ac_new_val
=\
$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted
=: ;;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted
=: ;;
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w
=`echo x $ac_old_val`
2272 ac_new_val_w
=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted
=:
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\
$ac_old_val
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2291 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg
=$ac_var=$ac_new_val ;;
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2300 if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2312 ac_cpp
='$CPP $CPPFLAGS'
2313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2325 # if PWD already has a value, it is probably wrong.
2326 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2328 # Export original configure arguments for use by sub-configures.
2329 # Quote arguments with shell meta charatcers.
2330 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2331 set -- "$progname" "$@"
2335 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2336 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2337 # if the argument is of the form -foo=baz, quote the baz part only
2338 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2341 # Add the quoted argument to the list.
2342 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2344 if test "$silent" = yes; then
2345 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2347 # Remove the initial space we just introduced and, as these will be
2348 # expanded by make, quote '$'.
2349 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2352 # Find the build, host, and target systems.
2354 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2357 ac_install_sh
="$ac_aux_dir/install-sh -c"
2359 elif test -f "$ac_dir/install.sh"; then
2361 ac_install_sh
="$ac_aux_dir/install.sh -c"
2363 elif test -f "$ac_dir/shtool"; then
2365 ac_install_sh
="$ac_aux_dir/shtool install -c"
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Make sure we can run config.sub.
2383 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2384 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2387 $as_echo_n "checking build system type... " >&6; }
2388 if ${ac_cv_build+:} false
; then :
2389 $as_echo_n "(cached) " >&6
2391 ac_build_alias
=$build_alias
2392 test "x$ac_build_alias" = x
&&
2393 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2394 test "x$ac_build_alias" = x
&&
2395 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2396 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2397 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2401 $as_echo "$ac_cv_build" >&6; }
2402 case $ac_cv_build in
2404 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2407 ac_save_IFS
=$IFS; IFS
='-'
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2417 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2420 case ${build_alias} in
2421 "") build_noncanonical
=${build} ;;
2422 *) build_noncanonical
=${build_alias} ;;
2427 case ${host_alias} in
2428 "") host_noncanonical
=${build_noncanonical} ;;
2429 *) host_noncanonical
=${host_alias} ;;
2434 case ${target_alias} in
2435 "") target_noncanonical
=${host_noncanonical} ;;
2436 *) target_noncanonical
=${target_alias} ;;
2442 test "$host_noncanonical" = "$target_noncanonical" &&
2443 test "$program_prefix$program_suffix$program_transform_name" = \
2445 program_transform_name
=s
,y
,y
,
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2448 $as_echo_n "checking host system type... " >&6; }
2449 if ${ac_cv_host+:} false
; then :
2450 $as_echo_n "(cached) " >&6
2452 if test "x$host_alias" = x
; then
2453 ac_cv_host
=$ac_cv_build
2455 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2456 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2461 $as_echo "$ac_cv_host" >&6; }
2464 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2467 ac_save_IFS
=$IFS; IFS
='-'
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2477 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2481 $as_echo_n "checking target system type... " >&6; }
2482 if ${ac_cv_target+:} false
; then :
2483 $as_echo_n "(cached) " >&6
2485 if test "x$target_alias" = x
; then
2486 ac_cv_target
=$ac_cv_host
2488 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2489 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2494 $as_echo "$ac_cv_target" >&6; }
2495 case $ac_cv_target in
2497 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2499 target
=$ac_cv_target
2500 ac_save_IFS
=$IFS; IFS
='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2513 # The aliases save the names the user supplied, while $host etc.
2514 # will get canonicalized.
2515 test -n "$target_alias" &&
2516 test "$program_prefix$program_suffix$program_transform_name" = \
2518 program_prefix
=${target_alias}-
2520 test "$program_prefix" != NONE
&&
2521 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE
&&
2524 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532 # Get 'install' or 'install-sh' and its variants.
2533 # Find a good install program. We prefer a C program (faster),
2534 # so one script is as good as another. But avoid the broken or
2535 # incompatible versions:
2536 # SysV /etc/install, /usr/sbin/install
2537 # SunOS /usr/etc/install
2538 # IRIX /sbin/install
2540 # AmigaOS /C/install, which installs bootblocks on floppy discs
2541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2544 # OS/2's system install, which has a completely different semantic
2545 # ./install, which can be erroneously created by make from ./install.sh.
2546 # Reject install programs that cannot install multiple files.
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2549 if test -z "$INSTALL"; then
2550 if ${ac_cv_path_install+:} false
; then :
2551 $as_echo_n "(cached) " >&6
2553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir
=.
2558 # Account for people who put trailing slashes in PATH elements.
2559 case $as_dir/ in #((
2560 .
/ | .
// |
/[cC
]/* | \
2561 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2562 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2565 # OSF1 and SCO ODT 3.0 have their own names for install.
2566 # Don't use installbsd from OSF since it installs stuff as root
2568 for ac_prog
in ginstall scoinst
install; do
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2575 elif test $ac_prog = install &&
2576 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2580 rm -rf conftest.one conftest.two conftest.dir
2581 echo one
> conftest.one
2582 echo two
> conftest.two
2584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2585 test -s conftest.one
&& test -s conftest.two
&&
2586 test -s conftest.dir
/conftest.one
&&
2587 test -s conftest.dir
/conftest.two
2589 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2602 rm -rf conftest.one conftest.two conftest.dir
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL
=$ac_cv_path_install
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 INSTALL
=$ac_install_sh
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2616 $as_echo "$INSTALL" >&6; }
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2624 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2627 $as_echo_n "checking whether ln works... " >&6; }
2628 if ${acx_cv_prog_LN+:} false
; then :
2629 $as_echo_n "(cached) " >&6
2631 rm -f conftestdata_t
2632 echo >conftestdata_f
2633 if ln conftestdata_f conftestdata_t
2>/dev
/null
2639 rm -f conftestdata_f conftestdata_t
2642 if test $acx_cv_prog_LN = no
; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2645 $as_echo "no, using $LN" >&6; }
2647 LN
="$acx_cv_prog_LN"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2653 $as_echo_n "checking whether ln -s works... " >&6; }
2655 if test "$LN_S" = "ln -s"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2660 $as_echo "no, using $LN_S" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2665 if ${ac_cv_path_SED+:} false
; then :
2666 $as_echo_n "(cached) " >&6
2668 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2669 for ac_i
in 1 2 3 4 5 6 7; do
2670 ac_script
="$ac_script$as_nl$ac_script"
2672 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2673 { ac_script
=; unset ac_script
;}
2674 if test -z "$SED"; then
2675 ac_path_SED_found
=false
2676 # Loop through the user's path and test for each of PROGNAME-LIST
2677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir
=.
2682 for ac_prog
in sed gsed
; do
2683 for ac_exec_ext
in '' $ac_executable_extensions; do
2684 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2685 as_fn_executable_p
"$ac_path_SED" ||
continue
2686 # Check for GNU ac_path_SED and select it if it is found.
2687 # Check for GNU $ac_path_SED
2688 case `"$ac_path_SED" --version 2>&1` in
2690 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2693 $as_echo_n 0123456789 >"conftest.in"
2696 cat "conftest.in" "conftest.in" >"conftest.tmp"
2697 mv "conftest.tmp" "conftest.in"
2698 cp "conftest.in" "conftest.nl"
2699 $as_echo '' >> "conftest.nl"
2700 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2702 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2703 if test $ac_count -gt ${ac_path_SED_max-0}; then
2704 # Best one so far, save it but keep looking for a better one
2705 ac_cv_path_SED
="$ac_path_SED"
2706 ac_path_SED_max
=$ac_count
2708 # 10*(2^10) chars as input seems more than enough
2709 test $ac_count -gt 10 && break
2711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2714 $ac_path_SED_found && break 3
2719 if test -z "$ac_cv_path_SED"; then
2720 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2728 $as_echo "$ac_cv_path_SED" >&6; }
2729 SED
="$ac_cv_path_SED"
2732 for ac_prog
in gawk mawk nawk
awk
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy
$ac_prog; ac_word
=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_AWK+:} false
; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_AWK
="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$AWK" && break
2775 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2777 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2779 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2780 INSTALL
="${srcpwd}/install-sh -c"
2783 # Set srcdir to "." if that's what it is.
2784 # This is important for multilib support.
2786 if test "${pwd}" = "${srcpwd}" ; then
2794 ### To add a new directory to the tree, first choose whether it is a target
2795 ### or a host dependent tool. Then put it into the appropriate list
2796 ### (library or tools, host or target), doing a dependency sort.
2798 # Subdirs will be configured in the order listed in build_configdirs,
2799 # configdirs, or target_configdirs; see the serialization section below.
2801 # Dependency sorting is only needed when *configuration* must be done in
2802 # a particular order. In all cases a dependency should be specified in
2803 # the Makefile, whether or not it's implicitly specified here.
2805 # Double entries in build_configdirs, configdirs, or target_configdirs may
2806 # cause circular dependencies and break everything horribly.
2808 # these library is used by various programs built for the build
2811 build_libs
="build-libiberty build-libcpp"
2813 # these tools are built for the build environment
2814 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2816 # these libraries are used by various programs built for the host environment
2818 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2820 # these tools are built for the host environment
2821 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2822 # know that we are building the simulator.
2823 # binutils, gas and ld appear in that order because it makes sense to run
2824 # "make check" in that particular order.
2825 # If --enable-gold is used, "gold" may replace "ld".
2826 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"
2828 # these libraries are built for the target environment, and are built after
2829 # the host libraries and the host tools (which may be a cross compiler)
2830 # Note that libiberty is not a target library.
2831 target_libraries
="target-libgcc \
2832 target-libbacktrace \
2838 target-libstdc++-v3 \
2839 target-libsanitizer \
2842 target-libquadmath \
2843 target-libgfortran \
2852 # these tools are built using the target libraries, and are intended to
2853 # run only in the target environment
2855 # note: any program that *uses* libraries that are in the "target_libraries"
2856 # list belongs in this list.
2858 target_tools
="target-rda"
2860 ################################################################################
2862 ## All tools belong in one of the four categories, and are assigned above
2863 ## We assign ${configdirs} this way to remove all embedded newlines. This
2864 ## is important because configure will choke if they ever get through.
2865 ## ${configdirs} is directories we build using the host tools.
2866 ## ${target_configdirs} is directories we build using the target tools.
2867 configdirs
=`echo ${host_libs} ${host_tools}`
2868 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2869 build_configdirs
=`echo ${build_libs} ${build_tools}`
2873 ################################################################################
2875 srcname
="gnu development package"
2877 # This gets set non-empty for some net releases of packages.
2880 # Define is_cross_compiler to save on calls to 'test'.
2882 if test x
"${host}" = x
"${target}" ; then
2883 is_cross_compiler
=no
2885 is_cross_compiler
=yes
2888 # Find the build and target subdir names.
2890 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2891 # have matching libraries, they should use host libraries: Makefile.tpl
2892 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2893 # However, they still use the build modules, because the corresponding
2894 # host modules (e.g. bison) are only built for the host when bootstrap
2896 # - build_subdir is where we find build modules, and never changes.
2897 # - build_libsubdir is where we find build libraries, and can be overridden.
2899 # Prefix 'build-' so this never conflicts with target_subdir.
2900 build_subdir
="build-${build_noncanonical}"
2902 # Check whether --with-build-libsubdir was given.
2903 if test "${with_build_libsubdir+set}" = set; then :
2904 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2906 build_libsubdir
="$build_subdir"
2909 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2910 if ( test $srcdir = .
&& test -d gcc
) \
2911 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2912 host_subdir
="host-${host_noncanonical}"
2917 target_subdir
=${target_noncanonical}
2919 # Be sure to cover against remnants of an in-tree build.
2920 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2921 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2922 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2925 # Skipdirs are removed silently.
2927 # Noconfigdirs are removed loudly.
2931 # Make sure we don't let GNU ld be added if we didn't want it.
2932 if test x
$with_gnu_ld = xno
; then
2934 noconfigdirs
="$noconfigdirs ld gold"
2938 # Make sure we don't let GNU as be added if we didn't want it.
2939 if test x
$with_gnu_as = xno
; then
2941 noconfigdirs
="$noconfigdirs gas"
2946 # Check whether --with-system-zlib was given.
2947 if test "${with_system_zlib+set}" = set; then :
2948 withval
=$with_system_zlib;
2951 # Make sure we don't let ZLIB be added if we didn't want it.
2952 if test x
$with_system_zlib = xyes
; then
2953 use_included_zlib
=no
2954 noconfigdirs
="$noconfigdirs zlib"
2957 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2959 if test x
$with_system_readline = xyes
; then
2960 noconfigdirs
="$noconfigdirs readline"
2963 # some tools are so dependent upon X11 that if we're not building with X,
2964 # it's not even worth trying to configure, much less build, that tool.
2967 yes |
"") ;; # the default value for this tree is that X11 is available
2969 skipdirs
="${skipdirs} tk itcl libgui"
2970 # We won't be able to build gdbtk without X.
2973 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2976 # Some are only suitable for cross toolchains.
2977 # Remove these if host=target.
2978 cross_only
="target-libgloss target-newlib target-opcodes"
2980 case $is_cross_compiler in
2981 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2984 # If both --with-headers and --with-libs are specified, default to
2986 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2987 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2988 if test x
"${with_newlib}" = x
; then
2993 # Recognize --with-newlib/--without-newlib.
2994 case ${with_newlib} in
2995 no
) skipdirs
="${skipdirs} target-newlib" ;;
2996 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2999 # Check whether --enable-as-accelerator-for was given.
3000 if test "${enable_as_accelerator_for+set}" = set; then :
3001 enableval
=$enable_as_accelerator_for;
3005 # Check whether --enable-offload-targets was given.
3006 if test "${enable_offload_targets+set}" = set; then :
3007 enableval
=$enable_offload_targets;
3008 if test x
"$enable_offload_targets" = x
; then
3009 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3013 enable_offload_targets
=
3017 # Check whether --enable-offload-defaulted was given.
3018 if test "${enable_offload_defaulted+set}" = set; then :
3019 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3021 enable_offload_defaulted
=
3025 # Handle --enable-gold, --enable-ld.
3026 # --disable-gold [--enable-ld]
3027 # Build only ld. Default option.
3028 # --enable-gold [--enable-ld]
3029 # Build both gold and ld. Install gold as "ld.gold", install ld
3030 # as "ld.bfd" and "ld".
3031 # --enable-gold=default [--enable-ld]
3032 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3033 # install ld as "ld.bfd".
3034 # --enable-gold[=default] --disable-ld
3035 # Build only gold, which is then installed as both "ld.gold" and "ld".
3036 # --enable-gold --enable-ld=default
3037 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3039 # In other words, ld is default
3040 # --enable-gold=default --enable-ld=default
3044 # Check whether --enable-gold was given.
3045 if test "${enable_gold+set}" = set; then :
3046 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3051 case "${ENABLE_GOLD}" in
3053 # Check for ELF target.
3056 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3057 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3058 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3059 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3061 *-*-linux*aout
* |
*-*-linux*oldld
*)
3069 if test "$is_elf" = "yes"; then
3070 # Check for target supported by gold.
3072 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3073 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3074 configdirs
="$configdirs gold"
3075 if test x
${ENABLE_GOLD} = xdefault
; then
3086 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3090 # Check whether --enable-ld was given.
3091 if test "${enable_ld+set}" = set; then :
3092 enableval
=$enable_ld; ENABLE_LD
=$enableval
3098 case "${ENABLE_LD}" in
3100 if test x
${default_ld} != x
; then
3101 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3107 if test x
${ENABLE_GOLD} != xyes
; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3109 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3111 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3114 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3119 # Decide the default method for compressing debug sections.
3120 # Provide a configure time option to override our default.
3121 # Check whether --enable-compressed_debug_sections was given.
3122 if test "${enable_compressed_debug_sections+set}" = set; then :
3123 enableval
=$enable_compressed_debug_sections;
3124 if test x
"$enable_compressed_debug_sections" = xyes
; then
3125 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3129 enable_compressed_debug_sections
=
3133 # Configure extra directories which are host specific
3137 configdirs
="$configdirs libtermcap" ;;
3140 # A target can indicate whether a language isn't supported for some reason.
3141 # Only spaces may be used in this macro; not newlines or tabs.
3142 unsupported_languages
=
3144 # Remove more programs from consideration, based on the host or
3145 # target this usually means that a port of the program doesn't
3149 i
[3456789]86-*-msdosdjgpp*)
3150 noconfigdirs
="$noconfigdirs tcl tk itcl"
3155 # Check whether --enable-libquadmath was given.
3156 if test "${enable_libquadmath+set}" = set; then :
3157 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3159 ENABLE_LIBQUADMATH
=yes
3162 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3163 noconfigdirs
="$noconfigdirs target-libquadmath"
3167 # Check whether --enable-libquadmath-support was given.
3168 if test "${enable_libquadmath_support+set}" = set; then :
3169 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3171 ENABLE_LIBQUADMATH_SUPPORT
=yes
3174 enable_libquadmath_support
=
3175 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3176 enable_libquadmath_support
=no
3180 # Check whether --enable-libada was given.
3181 if test "${enable_libada+set}" = set; then :
3182 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3187 if test "${ENABLE_LIBADA}" != "yes" ; then
3188 noconfigdirs
="$noconfigdirs gnattools"
3191 # Check whether --enable-libgm2 was given.
3192 if test "${enable_libgm2+set}" = set; then :
3193 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3198 if test "${ENABLE_LIBGM2}" != "yes" ; then
3199 noconfigdirs
="$noconfigdirs gm2tools"
3202 # Check whether --enable-libssp was given.
3203 if test "${enable_libssp+set}" = set; then :
3204 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3210 # Check whether --enable-libstdcxx was given.
3211 if test "${enable_libstdcxx+set}" = set; then :
3212 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3214 ENABLE_LIBSTDCXX
=default
3217 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3218 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x
$enable_libgomp = x
; then
3224 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3226 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3228 *-*-solaris2* |
*-*-hpux11*)
3230 *-*-darwin* |
*-*-aix*)
3232 nvptx
*-*-* | amdgcn
*-*-*)
3235 noconfigdirs
="$noconfigdirs target-libgomp"
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic
; then
3242 if test x
$enable_libatomic = x
; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir
=${srcdir}/libatomic
; \
3246 .
${srcdir}/configure.tgt
; \
3247 test -n "$UNSUPPORTED")
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs
="$noconfigdirs target-libatomic"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3259 # Disable libitm on unsupported systems.
3260 if test -d ${srcdir}/libitm
; then
3261 if test x
$enable_libitm = x
; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3263 $as_echo_n "checking for libitm support... " >&6; }
3264 if (srcdir
=${srcdir}/libitm
; \
3265 .
${srcdir}/configure.tgt
; \
3266 test -n "$UNSUPPORTED")
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs
="$noconfigdirs target-libitm"
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable libsanitizer on unsupported systems.
3279 if test -d ${srcdir}/libsanitizer
; then
3280 if test x
$enable_libsanitizer = x
; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3282 $as_echo_n "checking for libsanitizer support... " >&6; }
3283 if (srcdir
=${srcdir}/libsanitizer
; \
3284 .
${srcdir}/configure.tgt
; \
3285 test -n "$UNSUPPORTED")
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs
="$noconfigdirs target-libsanitizer"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libvtv on unsupported systems.
3298 if test -d ${srcdir}/libvtv
; then
3299 if test x
$enable_libvtv = x
; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3301 $as_echo_n "checking for libvtv support... " >&6; }
3302 if (srcdir
=${srcdir}/libvtv
; \
3303 .
${srcdir}/configure.tgt
; \
3304 test "$VTV_SUPPORTED" != "yes")
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs
="$noconfigdirs target-libvtv"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libquadmath for some systems.
3319 noconfigdirs
="$noconfigdirs target-libquadmath"
3321 # libquadmath is unused on AIX and libquadmath build process use of
3322 # LD_LIBRARY_PATH can break AIX bootstrap.
3323 powerpc-
*-aix* | rs6000-
*-aix*)
3324 noconfigdirs
="$noconfigdirs target-libquadmath"
3328 # Disable libssp for some systems.
3331 # No hosted I/O support.
3332 noconfigdirs
="$noconfigdirs target-libssp"
3335 noconfigdirs
="$noconfigdirs target-libssp"
3337 powerpc-
*-aix* | rs6000-
*-aix*)
3338 noconfigdirs
="$noconfigdirs target-libssp"
3341 # No hosted I/O support.
3342 noconfigdirs
="$noconfigdirs target-libssp"
3345 # libssp uses a misaligned load to trigger a fault, but the RL78
3346 # doesn't fault for those - instead, it gives a build-time error
3347 # for explicit misaligned loads.
3348 noconfigdirs
="$noconfigdirs target-libssp"
3351 # No hosted I/O support.
3352 noconfigdirs
="$noconfigdirs target-libssp"
3356 # Disable libstdc++-v3 for some systems.
3357 # Allow user to override this if they pass --enable-libstdcxx
3358 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3361 # VxWorks uses the Dinkumware C++ library.
3362 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3365 # Not ported/fails to build when using newlib.
3366 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3373 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3376 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3379 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3384 # Disable C++ on systems where it is known to not work.
3385 # For testing, you can override this with --enable-languages=c++.
3386 case ,${enable_languages}, in
3392 unsupported_languages
="$unsupported_languages c++"
3398 # Disable Objc on systems where it is known to not work.
3399 # For testing, you can override this with --enable-languages=objc.
3400 case ,${enable_languages}, in
3406 unsupported_languages
="$unsupported_languages objc"
3412 # Disable D on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=d.
3414 case ,${enable_languages}, in
3420 unsupported_languages
="$unsupported_languages d"
3426 # Disable libphobos on unsupported systems.
3427 # For testing, you can override this with --enable-libphobos.
3428 if test -d ${srcdir}/libphobos
; then
3429 if test x
$enable_libphobos = x
; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3431 $as_echo_n "checking for libphobos support... " >&6; }
3432 if (srcdir
=${srcdir}/libphobos
; \
3433 .
${srcdir}/configure.tgt
; \
3434 test "$LIBPHOBOS_SUPPORTED" != "yes")
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 noconfigdirs
="$noconfigdirs target-libphobos"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 $as_echo "yes" >&6; }
3446 # Disable Fortran for some systems.
3449 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3450 unsupported_languages
="$unsupported_languages fortran"
3453 unsupported_languages
="$unsupported_languages fortran"
3457 # Disable libffi for some systems.
3461 i
[3456789]86-*-darwin*)
3463 x86_64-
*-darwin[912]*)
3466 noconfigdirs
="$noconfigdirs target-libffi"
3469 noconfigdirs
="$noconfigdirs target-libffi"
3472 noconfigdirs
="$noconfigdirs target-libffi"
3475 noconfigdirs
="$noconfigdirs target-libffi"
3478 noconfigdirs
="$noconfigdirs target-libffi"
3481 noconfigdirs
="$noconfigdirs target-libffi"
3484 noconfigdirs
="$noconfigdirs target-libffi"
3486 aarch64
*-*-freebsd*)
3487 noconfigdirs
="$noconfigdirs target-libffi"
3490 noconfigdirs
="$noconfigdirs target-libffi"
3493 noconfigdirs
="$noconfigdirs target-libffi"
3496 noconfigdirs
="$noconfigdirs target-libffi"
3499 noconfigdirs
="$noconfigdirs target-libffi"
3502 noconfigdirs
="$noconfigdirs target-libffi"
3504 cris-
*-* | crisv32-
*-*)
3508 *) # See PR46792 regarding target-libffi.
3509 noconfigdirs
="$noconfigdirs target-libffi";;
3513 noconfigdirs
="$noconfigdirs target-libffi"
3516 noconfigdirs
="$noconfigdirs target-libffi"
3518 i
[3456789]86-w64-mingw*)
3519 noconfigdirs
="$noconfigdirs target-libffi"
3521 i
[3456789]86-*-mingw*)
3522 noconfigdirs
="$noconfigdirs target-libffi"
3525 noconfigdirs
="$noconfigdirs target-libffi"
3528 noconfigdirs
="$noconfigdirs target-libffi"
3535 noconfigdirs
="$noconfigdirs target-libffi"
3538 noconfigdirs
="$noconfigdirs target-libffi"
3542 # Disable the go frontend on systems where it is known to not work. Please keep
3543 # this in sync with contrib/config-list.mk.
3545 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3546 unsupported_languages
="$unsupported_languages go"
3550 # Only allow gdbserver on some systems.
3551 if test -d ${srcdir}/gdbserver
; then
3552 if test x
$enable_gdbserver = x
; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3554 $as_echo_n "checking for gdbserver support... " >&6; }
3555 if (srcdir
=${srcdir}/gdbserver
; \
3556 .
${srcdir}/configure.srv
; \
3557 test -n "$UNSUPPORTED")
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 noconfigdirs
="$noconfigdirs gdbserver"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3569 # Disable libgo for some systems where it is known to not work.
3570 # For testing, you can easily override this with --enable-libgo.
3571 if test x
$enable_libgo = x
; then
3575 noconfigdirs
="$noconfigdirs target-libgo"
3577 *-*-cygwin* |
*-*-mingw*)
3578 noconfigdirs
="$noconfigdirs target-libgo"
3581 noconfigdirs
="$noconfigdirs target-libgo"
3586 # Default libgloss CPU subdirectory.
3587 libgloss_dir
="$target_cpu"
3590 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3594 libgloss_dir
=aarch64
3599 cris-
*-* | crisv32-
*-*)
3609 libgloss_dir
=loongarch
3611 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3612 libgloss_dir
=m68hc11
3614 m68
*-*-* | fido-
*-*)
3631 # Disable newlib and libgloss for various target OSes.
3634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3636 i
[3456789]86-*-linux*)
3637 # This section makes it possible to build newlib natively on linux.
3638 # If we are using a cross compiler then don't configure newlib.
3639 if test x
${is_cross_compiler} != xno
; then
3640 noconfigdirs
="$noconfigdirs target-newlib"
3642 noconfigdirs
="$noconfigdirs target-libgloss"
3643 # If we are not using a cross compiler, do configure newlib.
3644 # Note however, that newlib will only be configured in this situation
3645 # if the --with-newlib option has been given, because otherwise
3646 # 'target-newlib' will appear in skipdirs.
3648 i
[3456789]86-*-rdos*)
3649 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3651 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3652 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3655 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3658 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3661 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3664 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3667 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3670 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3673 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3675 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3676 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3679 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3682 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3685 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3688 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3691 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3694 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3697 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3705 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs
="$noconfigdirs sim target-rda"
3711 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs
="$noconfigdirs sim target-rda"
3715 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3716 noconfigdirs
="$noconfigdirs sim target-rda"
3718 i
[3456789]86-*-darwin*)
3719 noconfigdirs
="$noconfigdirs ld gprof"
3720 noconfigdirs
="$noconfigdirs sim target-rda"
3722 x86_64-
*-darwin[912]*)
3723 noconfigdirs
="$noconfigdirs ld gas gprof"
3724 noconfigdirs
="$noconfigdirs sim target-rda"
3727 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3728 noconfigdirs
="$noconfigdirs sim target-rda"
3733 if test "x$with_gmp" = x \
3734 && ! test -d ${srcdir}/gmp \
3735 && test -f /usr
/local
/include
/gmp.h
; then
3740 # Remove unsupported stuff on all kaOS configurations.
3741 noconfigdirs
="$noconfigdirs target-libgloss"
3748 noconfigdirs
="$noconfigdirs target-libgloss"
3751 noconfigdirs
="$noconfigdirs target-libgloss"
3753 # The tpf target doesn't support gdb yet.
3755 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3758 noconfigdirs
="$noconfigdirs target-rda"
3763 # ld works, but does not support shared libraries.
3764 # gas doesn't generate exception information.
3765 noconfigdirs
="$noconfigdirs gas ld"
3768 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3771 # newlib is not 64 bit ready
3772 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3775 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3777 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3778 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3781 noconfigdirs
="$noconfigdirs sim"
3784 noconfigdirs
="$noconfigdirs target-libgloss"
3787 noconfigdirs
="$noconfigdirs ld target-libgloss"
3790 if test x
${with_avrlibc} != xno
; then
3791 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3794 c4x-
*-* | tic4x-
*-*)
3795 noconfigdirs
="$noconfigdirs target-libgloss"
3798 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3801 noconfigdirs
="$noconfigdirs target-libgloss"
3804 noconfigdirs
="$noconfigdirs gdb"
3807 noconfigdirs
="$noconfigdirs gdb"
3810 noconfigdirs
="$noconfigdirs target-rda gprof"
3813 noconfigdirs
="$noconfigdirs"
3816 noconfigdirs
="$noconfigdirs target-libgloss"
3819 noconfigdirs
="$noconfigdirs target-libgloss"
3822 noconfigdirs
="$noconfigdirs gdb"
3830 hppa
*-*-openbsd* | \
3836 noconfigdirs
="$noconfigdirs ld"
3839 noconfigdirs
="$noconfigdirs gdb"
3842 # No gdb support yet.
3843 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3846 # No ld support yet.
3847 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3850 # No ld support yet.
3851 noconfigdirs
="$noconfigdirs libgui itcl ld"
3853 i
[3456789]86-w64-mingw*)
3855 i
[3456789]86-*-mingw*)
3856 target_configdirs
="$target_configdirs target-winsup"
3859 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3861 # always build newlib if winsup directory is present.
3862 if test -d "$srcdir/winsup/cygwin"; then
3863 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864 elif test -d "$srcdir/newlib"; then
3865 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3869 noconfigdirs
="$noconfigdirs target-libgloss"
3871 i
[3456789]86-*-sco3.2v5
*)
3872 # The linker does not yet know about weak symbols in COFF,
3873 # and is not configured to handle mixed ELF and COFF.
3874 noconfigdirs
="$noconfigdirs ld target-libgloss"
3876 i
[3456789]86-*-sco*)
3877 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3879 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3880 noconfigdirs
="$noconfigdirs target-libgloss"
3882 i
[3456789]86-*-sysv4*)
3883 noconfigdirs
="$noconfigdirs target-libgloss"
3885 i
[3456789]86-*-beos*)
3886 noconfigdirs
="$noconfigdirs gdb"
3888 i
[3456789]86-*-rdos*)
3889 noconfigdirs
="$noconfigdirs gdb"
3892 noconfigdirs
="$noconfigdirs gdb"
3895 noconfigdirs
="$noconfigdirs sim"
3898 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3899 noconfigdirs
="$noconfigdirs $target_libraries"
3902 noconfigdirs
="$noconfigdirs gdb gprof"
3905 # copied from rs6000-*-* entry
3906 noconfigdirs
="$noconfigdirs gprof"
3908 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3909 target_configdirs
="$target_configdirs target-winsup"
3910 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3911 # always build newlib.
3912 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3914 # This is temporary until we can link against shared libraries
3915 powerpcle-
*-solaris*)
3916 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3919 noconfigdirs
="$noconfigdirs gdb"
3922 noconfigdirs
="$noconfigdirs gprof"
3925 noconfigdirs
="$noconfigdirs gprof"
3928 noconfigdirs
="$noconfigdirs gprof"
3931 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3934 noconfigdirs
="$noconfigdirs gprof"
3936 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3937 if test x
$with_newlib = xyes
; then
3938 noconfigdirs
="$noconfigdirs gprof"
3942 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3945 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3948 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3952 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3953 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3954 noconfigdirs
="$noconfigdirs ld gas gprof"
3957 noconfigdirs
="$noconfigdirs gprof"
3960 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3967 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3971 if test x
${is_cross_compiler} = xno
; then
3976 noconfigdirs
="$noconfigdirs sim"
3979 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3982 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3985 noconfigdirs
="$noconfigdirs ld"
3987 loongarch
*-*-linux*)
3990 noconfigdirs
="$noconfigdirs gprof"
3994 # If we aren't building newlib, then don't build libgloss, since libgloss
3995 # depends upon some newlib header files.
3996 case "${noconfigdirs}" in
3997 *target-libgloss
*) ;;
3998 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4001 # Work in distributions that contain no compiler tools, like Autoconf.
4002 host_makefile_frag
=/dev
/null
4003 if test -d ${srcdir}/config
; then
4005 i
[3456789]86-*-msdosdjgpp*)
4006 host_makefile_frag
="config/mh-djgpp"
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4011 $as_echo_n "checking to see if cat works as expected... " >&6; }
4012 echo a
>cygwin-cat-check
4013 if test `cat cygwin-cat-check` = a
; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 as_fn_error $?
"The cat command does not ignore carriage return characters.
4022 Please either mount the build directory in binary mode or run the following
4023 commands before running any configure script:
4029 host_makefile_frag
="config/mh-cygwin"
4032 host_makefile_frag
="config/mh-mingw"
4035 host_makefile_frag
="config/mh-alpha-linux"
4038 host_makefile_frag
="config/mh-pa"
4041 host_makefile_frag
="config/mh-pa"
4043 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4044 host_makefile_frag
="config/mh-darwin"
4047 host_makefile_frag
="config/mh-ppc-aix"
4050 host_makefile_frag
="config/mh-ppc-aix"
4055 if test "${build}" != "${host}" ; then
4056 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4057 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4058 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4059 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4060 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4061 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4062 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4063 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4064 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4065 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4066 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4067 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4068 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4069 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4070 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4072 AR_FOR_BUILD
="\$(AR)"
4073 AS_FOR_BUILD
="\$(AS)"
4074 CC_FOR_BUILD
="\$(CC)"
4075 CXX_FOR_BUILD
="\$(CXX)"
4076 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4077 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4078 GOC_FOR_BUILD
="\$(GOC)"
4079 GDC_FOR_BUILD
="\$(GDC)"
4080 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4081 LD_FOR_BUILD
="\$(LD)"
4082 NM_FOR_BUILD
="\$(NM)"
4083 RANLIB_FOR_BUILD
="\$(RANLIB)"
4084 WINDRES_FOR_BUILD
="\$(WINDRES)"
4085 WINDMC_FOR_BUILD
="\$(WINDMC)"
4089 ac_cpp
='$CPP $CPPFLAGS'
4090 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false
; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC
="$CC" # Let the user override the test.
4104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir
=.
4109 for ac_exec_ext
in '' $ac_executable_extensions; do
4110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test -z "$ac_cv_prog_CC"; then
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc
; ac_word
=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir
=.
4149 for ac_exec_ext
in '' $ac_executable_extensions; do
4150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC
="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 if test "x$ac_ct_CC" = x
; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned
=yes ;;
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false
; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC
="$CC" # Let the user override the test.
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir
=.
4202 for ac_exec_ext
in '' $ac_executable_extensions; do
4203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc
; ac_word
=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC
="$CC" # Let the user override the test.
4238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir
=.
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected
=yes
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy
$ac_cv_prog_CC
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4266 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog
in cl.exe
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false
; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC
="$CC" # Let the user override the test.
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CC" && break
4326 if test -z "$CC"; then
4328 for ac_prog
in cl.exe
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy
$ac_prog; ac_word
=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir
=.
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC
="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CC" && break
4370 if test "x$ac_ct_CC" = x
; then
4373 case $cross_compiling:$ac_tool_warned in
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned
=yes ;;
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $?
"no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4395 for ac_option
in --version -v -V -qversion; do
4396 { { ac_try
="$ac_compiler $ac_option >&5"
4398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4405 if test -s conftest.err; then
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4440 for ac_file in $ac_files
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4449 if { { ac_try="$ac_link_default"
4451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4452 *) ac_try_echo
=$ac_try;;
4454 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4465 for ac_file
in $ac_files ''
4467 test -f "$ac_file" ||
continue
4469 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4472 # We found the default executable, but exeext='' is most
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4478 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4490 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.
$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error
77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext
=$ac_cv_exeext
4515 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4516 ac_clean_files
=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try
="$ac_link"
4521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4531 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4534 for ac_file
in conftest.exe conftest conftest.
*; do
4535 test -f "$ac_file" ||
continue
4537 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4538 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4549 rm -f conftest conftest
$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4553 rm -f conftest.
$ac_ext
4554 EXEEXT
=$ac_cv_exeext
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4569 ac_clean_files
="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try
="$ac_link"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4589 *) ac_try_echo
=$ac_try;;
4591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4599 if test "$cross_compiling" = maybe
; then
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $?
"cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4613 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4614 ac_clean_files
=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false
; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try
="$ac_compile"
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_compile") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4658 See \
`config.log' for more details" "$LINENO" 5; }
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4775 if test "$GCC" = yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_cv_prog_cc_c89=no
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4807 s = g (p, va_arg (v,int));
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 rm -f conftest.$ac_ext
4855 case "x$ac_cv_prog_cc_c89" in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4878 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4879 if ${ac_cv_prog_cc_c99+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 ac_cv_prog_cc_c99=no
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 #include <stdbool.h>
4892 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4893 #define debug(...) fprintf (stderr, __VA_ARGS__)
4894 #define showlist(...) puts (#__VA_ARGS__)
4895 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4897 test_varargs_macros (void)
4902 debug ("X = %d\n", x);
4903 showlist (The first, second, and third items.);
4904 report (x>y, "x is %d but y is %d", x, y);
4907 // Check long long types.
4908 #define BIG64 18446744073709551615ull
4909 #define BIG32 4294967295ul
4910 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4912 your preprocessor is broken;
4916 your preprocessor is broken;
4918 static long long int bignum = -9223372036854775807LL;
4919 static unsigned long long int ubignum = BIG64;
4921 struct incomplete_array
4929 const wchar_t *name;
4933 typedef const char *ccp;
4936 test_restrict (ccp restrict text)
4938 // See if C++-style comments work.
4939 // Iterate through items via the restricted pointer.
4940 // Also check for declarations in for loops.
4941 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4946 // Check varargs and va_copy.
4948 test_varargs (const char *format, ...)
4951 va_start (args, format);
4953 va_copy (args_copy, args);
4964 str = va_arg (args_copy, const char *);
4967 number = va_arg (args_copy, int);
4970 fnumber = va_arg (args_copy, double);
4985 _Bool success = false;
4988 if (test_restrict ("String literal") == 0)
4990 char *restrict newvar = "Another string";
4993 test_varargs ("s, d' f .", "string", 65, 34.234);
4994 test_varargs_macros ();
4996 // Check flexible array members.
4997 struct incomplete_array *ia =
4998 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5000 for (int i = 0; i < ia->datasize; ++i)
5001 ia->data[i] = i * 1.234;
5003 // Check named initializers.
5004 struct named_init ni = {
5006 .name = L"Test wide string",
5007 .average = 543.34343,
5012 int dynamic_array[ni.number];
5013 dynamic_array[ni.number - 1] = 543;
5015 // work around unused variable warnings
5016 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5017 || dynamic_array[ni.number - 1] != 543);
5023 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5025 CC="$ac_save_CC $ac_arg"
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_prog_cc_c99=$ac_arg
5029 rm -f core conftest.err conftest.$ac_objext
5030 test "x$ac_cv_prog_cc_c99" != "xno" && break
5032 rm -f conftest.$ac_ext
5037 case "x$ac_cv_prog_cc_c99" in
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5040 $as_echo "none needed" >&6; } ;;
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5043 $as_echo "unsupported" >&6; } ;;
5045 CC="$CC $ac_cv_prog_cc_c99"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5047 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5049 if test "x$ac_cv_prog_cc_c99" != xno; then :
5055 ac_cpp='$CXXCPP $CPPFLAGS'
5056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5059 if test -z "$CXX"; then
5060 if test -n "$CCC"; then
5063 if test -n "$ac_tool_prefix"; then
5064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CXX+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 if test -n "$CXX"; then
5074 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 if test -n "$CXX"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5096 $as_echo "$CXX" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 test -n "$CXX" && break
5106 if test -z "$CXX"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -n "$ac_ct_CXX"; then
5118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_ac_ct_CXX="$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5138 if test -n "$ac_ct_CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5140 $as_echo "$ac_ct_CXX" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$ac_ct_CXX" && break
5150 if test "x$ac_ct_CXX" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5165 # Provide some information about the compiler.
5166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5169 for ac_option in --version -v -V -qversion; do
5170 { { ac_try="$ac_compiler $ac_option >&5"
5172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5173 *) ac_try_echo
=$ac_try;;
5175 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179 if test -s conftest.err
; then
5181 ... rest of stderr output deleted ...
5182 10q' conftest.err
>conftest.er1
5183 cat conftest.er1
>&5
5185 rm -f conftest.er1 conftest.err
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5191 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5192 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5193 $as_echo_n "(cached) " >&6
5195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5209 if ac_fn_cxx_try_compile
"$LINENO"; then :
5214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5215 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5219 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5220 if test $ac_compiler_gnu = yes; then
5225 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5226 ac_save_CXXFLAGS
=$CXXFLAGS
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5228 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5229 if ${ac_cv_prog_cxx_g+:} false
; then :
5230 $as_echo_n "(cached) " >&6
5232 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5233 ac_cxx_werror_flag
=yes
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5247 if ac_fn_cxx_try_compile
"$LINENO"; then :
5248 ac_cv_prog_cxx_g
=yes
5251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5262 if ac_fn_cxx_try_compile
"$LINENO"; then :
5265 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5278 if ac_fn_cxx_try_compile
"$LINENO"; then :
5279 ac_cv_prog_cxx_g
=yes
5281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5286 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5289 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5290 if test "$ac_test_CXXFLAGS" = set; then
5291 CXXFLAGS
=$ac_save_CXXFLAGS
5292 elif test $ac_cv_prog_cxx_g = yes; then
5293 if test "$GXX" = yes; then
5299 if test "$GXX" = yes; then
5306 ac_cpp
='$CPP $CPPFLAGS'
5307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5312 # We must set the default linker to the linker used by gcc for the correct
5313 # operation of libtool. If LD is not defined and we are using gcc, try to
5314 # set the LD default to the ld used by gcc.
5315 if test -z "$LD"; then
5316 if test "$GCC" = yes; then
5319 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5321 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5323 case $gcc_prog_ld in
5324 # Accept absolute paths.
5325 [\\/]* |
[A-Za-z
]:[\\/]*)
5326 LD
="$gcc_prog_ld" ;;
5331 # Check whether -static-libstdc++ -static-libgcc is supported.
5333 if test "$GCC" = yes; then
5334 saved_LDFLAGS
="$LDFLAGS"
5336 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5338 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5340 ac_cpp
='$CXXCPP $CPPFLAGS'
5341 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5349 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5350 #error -static-libstdc++ not implemented
5354 if ac_fn_cxx_try_link
"$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }; have_static_libs
=yes
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5361 rm -f core conftest.err conftest.
$ac_objext \
5362 conftest
$ac_exeext conftest.
$ac_ext
5364 ac_cpp
='$CPP $CPPFLAGS'
5365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5370 LDFLAGS
="$saved_LDFLAGS"
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5378 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_GNATBIND+:} false
; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$GNATBIND"; then
5385 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 GNATBIND
=$ac_cv_prog_GNATBIND
5405 if test -n "$GNATBIND"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5407 $as_echo "$GNATBIND" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 if test -z "$ac_cv_prog_GNATBIND"; then
5416 ac_ct_GNATBIND
=$GNATBIND
5417 # Extract the first word of "gnatbind", so it can be a program name with args.
5418 set dummy gnatbind
; ac_word
=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$ac_ct_GNATBIND"; then
5425 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir
=.
5432 for ac_exec_ext
in '' $ac_executable_extensions; do
5433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5445 if test -n "$ac_ct_GNATBIND"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5447 $as_echo "$ac_ct_GNATBIND" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5453 if test "x$ac_ct_GNATBIND" = x
; then
5456 case $cross_compiling:$ac_tool_warned in
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned
=yes ;;
5462 GNATBIND
=$ac_ct_GNATBIND
5465 GNATBIND
="$ac_cv_prog_GNATBIND"
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5470 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5474 $as_echo_n "(cached) " >&6
5476 if test -n "$GNATMAKE"; then
5477 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir
=.
5484 for ac_exec_ext
in '' $ac_executable_extensions; do
5485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 GNATMAKE
=$ac_cv_prog_GNATMAKE
5497 if test -n "$GNATMAKE"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5499 $as_echo "$GNATMAKE" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5507 if test -z "$ac_cv_prog_GNATMAKE"; then
5508 ac_ct_GNATMAKE
=$GNATMAKE
5509 # Extract the first word of "gnatmake", so it can be a program name with args.
5510 set dummy gnatmake
; ac_word
=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5514 $as_echo_n "(cached) " >&6
5516 if test -n "$ac_ct_GNATMAKE"; then
5517 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir
=.
5524 for ac_exec_ext
in '' $ac_executable_extensions; do
5525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5537 if test -n "$ac_ct_GNATMAKE"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5539 $as_echo "$ac_ct_GNATMAKE" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5545 if test "x$ac_ct_GNATMAKE" = x
; then
5548 case $cross_compiling:$ac_tool_warned in
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned
=yes ;;
5554 GNATMAKE
=$ac_ct_GNATMAKE
5557 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5561 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5562 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5565 cat >conftest.adb
<<EOF
5566 pragma Warnings (Off);
5568 pragma Warnings (On);
5569 use type System.CRTL.int64;
5570 procedure conftest is begin null; end conftest;
5572 acx_cv_cc_gcc_supports_ada
=no
5573 # There is a bug in old released versions of GCC which causes the
5574 # driver to exit successfully when the appropriate language module
5575 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5576 # Therefore we must check for the error message as well as an
5577 # unsuccessful exit.
5578 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5579 # given a .adb file, but produce no object file. So we must check
5580 # if an object file was really produced to guard against this.
5581 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5582 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5583 acx_cv_cc_gcc_supports_ada
=yes
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5588 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5590 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5600 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_GDC+:} false
; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$GDC"; then
5607 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 if test -n "$GDC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5629 $as_echo "$GDC" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_GDC"; then
5639 # Extract the first word of "gdc", so it can be a program name with args.
5640 set dummy gdc
; ac_word
=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$ac_ct_GDC"; then
5647 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir
=.
5654 for ac_exec_ext
in '' $ac_executable_extensions; do
5655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_GDC
="gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5667 if test -n "$ac_ct_GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5669 $as_echo "$ac_ct_GDC" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_GDC" = x
; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned
=yes ;;
5687 GDC
="$ac_cv_prog_GDC"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5691 $as_echo_n "checking whether the D compiler works... " >&6; }
5692 if ${acx_cv_d_compiler_works+:} false
; then :
5693 $as_echo_n "(cached) " >&6
5695 cat >conftest.d
<<EOF
5696 module conftest; int main() { return 0; }
5698 acx_cv_d_compiler_works
=no
5699 if test "x$GDC" != xno
; then
5700 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5701 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5702 acx_cv_d_compiler_works
=yes
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5708 $as_echo "$acx_cv_d_compiler_works" >&6; }
5709 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5716 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5717 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5718 $as_echo_n "(cached) " >&6
5722 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5723 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5724 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5727 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5730 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5731 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5734 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5741 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5742 do_compare
="$gcc_cv_prog_cmp_skip"
5746 # Check whether --enable-bootstrap was given.
5747 if test "${enable_bootstrap+set}" = set; then :
5748 enableval
=$enable_bootstrap;
5750 enable_bootstrap
=default
5754 # Issue errors and warnings for invalid/strange bootstrap combinations.
5755 if test -r $srcdir/gcc
/configure
; then
5761 case "$have_compiler:$host:$target:$enable_bootstrap" in
5764 # Default behavior. Enable bootstrap if we have a compiler
5765 # and we are in a native configuration.
5766 yes:$build:$build:default
)
5767 enable_bootstrap
=yes ;;
5770 enable_bootstrap
=no
;;
5772 # We have a compiler and we are in a native configuration, bootstrap is ok
5773 yes:$build:$build:yes)
5776 # Other configurations, but we have a compiler. Assume the user knows
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5780 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5783 # No compiler: if they passed --enable-bootstrap explicitly, fail
5785 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5787 # Fail if wrong command line
5789 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5793 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5794 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5795 # require C++11 (or higher).
5796 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5797 CXX
="$CXX -std=c++11"
5798 elif test "$have_compiler" = yes; then
5799 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5801 ac_cpp
='$CXXCPP $CPPFLAGS'
5802 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5808 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5809 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5816 // If the compiler admits that it is not ready for C++11, why torture it?
5817 // Hopefully, this will speed up the test.
5821 #error "This is not a C++ compiler"
5823 #elif __cplusplus < 201103L
5825 #error "This is not a C++11 compiler"
5832 namespace test_static_assert
5835 template <typename T>
5838 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5843 namespace test_final_override
5852 struct Derived : public Base
5854 virtual ~Derived() override {}
5855 virtual void f() override {}
5860 namespace test_double_right_angle_brackets
5863 template < typename T >
5866 typedef check<void> single_type;
5867 typedef check<check<void>> double_type;
5868 typedef check<check<check<void>>> triple_type;
5869 typedef check<check<check<check<void>>>> quadruple_type;
5873 namespace test_decltype
5886 namespace test_type_deduction
5889 template < typename T1, typename T2 >
5892 static const bool value = false;
5895 template < typename T >
5896 struct is_same<T, T>
5898 static const bool value = true;
5901 template < typename T1, typename T2 >
5903 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5909 test(const int c, volatile int v)
5911 static_assert(is_same<int, decltype(0)>::value == true, "");
5912 static_assert(is_same<int, decltype(c)>::value == false, "");
5913 static_assert(is_same<int, decltype(v)>::value == false, "");
5916 auto sumi = ac + av + 'x';
5917 auto sumf = ac + av + 1.0;
5918 static_assert(is_same<int, decltype(ac)>::value == true, "");
5919 static_assert(is_same<int, decltype(av)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5921 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5922 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5923 return (sumf > 0.0) ? sumi : add(c, v);
5928 namespace test_noexcept
5931 int f() { return 0; }
5932 int g() noexcept { return 0; }
5934 static_assert(noexcept(f()) == false, "");
5935 static_assert(noexcept(g()) == true, "");
5939 namespace test_constexpr
5942 template < typename CharT >
5943 unsigned long constexpr
5944 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5946 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5949 template < typename CharT >
5950 unsigned long constexpr
5951 strlen_c(const CharT *const s) noexcept
5953 return strlen_c_r(s, 0UL);
5956 static_assert(strlen_c("") == 0UL, "");
5957 static_assert(strlen_c("1") == 1UL, "");
5958 static_assert(strlen_c("example") == 7UL, "");
5959 static_assert(strlen_c("another\0example") == 7UL, "");
5963 namespace test_rvalue_references
5969 static constexpr int value = N;
5972 answer<1> f(int&) { return answer<1>(); }
5973 answer<2> f(const int&) { return answer<2>(); }
5974 answer<3> f(int&&) { return answer<3>(); }
5981 static_assert(decltype(f(i))::value == 1, "");
5982 static_assert(decltype(f(c))::value == 2, "");
5983 static_assert(decltype(f(0))::value == 3, "");
5988 namespace test_uniform_initialization
5993 static const int zero {};
5994 static const int one {1};
5997 static_assert(test::zero == 0, "");
5998 static_assert(test::one == 1, "");
6002 namespace test_lambdas
6008 auto lambda1 = [](){};
6009 auto lambda2 = lambda1;
6017 auto a = [](int i, int j){ return i + j; }(1, 2);
6018 auto b = []() -> int { return '0'; }();
6019 auto c = [=](){ return a + b; }();
6020 auto d = [&](){ return c; }();
6021 auto e = [a, &b](int x) mutable {
6022 const auto identity = [](int y){ return y; };
6023 for (auto i = 0; i < a; ++i)
6025 return x + identity(a + b);
6027 return a + b + c + d + e;
6033 const auto nullary = [](){ return 0; };
6034 const auto unary = [](int x){ return x; };
6035 using nullary_t = decltype(nullary);
6036 using unary_t = decltype(unary);
6037 const auto higher1st = [](nullary_t f){ return f(); };
6038 const auto higher2nd = [unary](nullary_t f1){
6039 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6041 return higher1st(nullary) + higher2nd(nullary)(unary);
6046 namespace test_variadic_templates
6052 template <int N0, int... N1toN>
6053 struct sum<N0, N1toN...>
6055 static constexpr auto value = N0 + sum<N1toN...>::value;
6061 static constexpr auto value = 0;
6064 static_assert(sum<>::value == 0, "");
6065 static_assert(sum<1>::value == 1, "");
6066 static_assert(sum<23>::value == 23, "");
6067 static_assert(sum<1, 2>::value == 3, "");
6068 static_assert(sum<5, 5, 11>::value == 21, "");
6069 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6073 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6074 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6076 namespace test_template_alias_sfinae
6081 template<typename T>
6082 using member = typename T::member_type;
6084 template<typename T>
6087 template<typename T>
6088 void func(member<T>*) {}
6092 void test() { func<foo>(0); }
6096 } // namespace cxx11
6098 #endif // __cplusplus >= 201103L
6103 if ac_fn_cxx_try_compile
"$LINENO"; then :
6104 ax_cv_cxx_compile_cxx11
=yes
6106 ax_cv_cxx_compile_cxx11
=no
6108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6111 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6112 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6116 if test x
$ac_success = xno
; then
6117 for alternative
in ${ax_cxx_compile_alternatives}; do
6118 switch
="-std=gnu++${alternative}"
6119 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6121 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6122 if eval \
${$cachevar+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6131 // If the compiler admits that it is not ready for C++11, why torture it?
6132 // Hopefully, this will speed up the test.
6136 #error "This is not a C++ compiler"
6138 #elif __cplusplus < 201103L
6140 #error "This is not a C++11 compiler"
6147 namespace test_static_assert
6150 template <typename T>
6153 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6158 namespace test_final_override
6167 struct Derived : public Base
6169 virtual ~Derived() override {}
6170 virtual void f() override {}
6175 namespace test_double_right_angle_brackets
6178 template < typename T >
6181 typedef check<void> single_type;
6182 typedef check<check<void>> double_type;
6183 typedef check<check<check<void>>> triple_type;
6184 typedef check<check<check<check<void>>>> quadruple_type;
6188 namespace test_decltype
6201 namespace test_type_deduction
6204 template < typename T1, typename T2 >
6207 static const bool value = false;
6210 template < typename T >
6211 struct is_same<T, T>
6213 static const bool value = true;
6216 template < typename T1, typename T2 >
6218 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6224 test(const int c, volatile int v)
6226 static_assert(is_same<int, decltype(0)>::value == true, "");
6227 static_assert(is_same<int, decltype(c)>::value == false, "");
6228 static_assert(is_same<int, decltype(v)>::value == false, "");
6231 auto sumi = ac + av + 'x';
6232 auto sumf = ac + av + 1.0;
6233 static_assert(is_same<int, decltype(ac)>::value == true, "");
6234 static_assert(is_same<int, decltype(av)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6236 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6237 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6238 return (sumf > 0.0) ? sumi : add(c, v);
6243 namespace test_noexcept
6246 int f() { return 0; }
6247 int g() noexcept { return 0; }
6249 static_assert(noexcept(f()) == false, "");
6250 static_assert(noexcept(g()) == true, "");
6254 namespace test_constexpr
6257 template < typename CharT >
6258 unsigned long constexpr
6259 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6261 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6264 template < typename CharT >
6265 unsigned long constexpr
6266 strlen_c(const CharT *const s) noexcept
6268 return strlen_c_r(s, 0UL);
6271 static_assert(strlen_c("") == 0UL, "");
6272 static_assert(strlen_c("1") == 1UL, "");
6273 static_assert(strlen_c("example") == 7UL, "");
6274 static_assert(strlen_c("another\0example") == 7UL, "");
6278 namespace test_rvalue_references
6284 static constexpr int value = N;
6287 answer<1> f(int&) { return answer<1>(); }
6288 answer<2> f(const int&) { return answer<2>(); }
6289 answer<3> f(int&&) { return answer<3>(); }
6296 static_assert(decltype(f(i))::value == 1, "");
6297 static_assert(decltype(f(c))::value == 2, "");
6298 static_assert(decltype(f(0))::value == 3, "");
6303 namespace test_uniform_initialization
6308 static const int zero {};
6309 static const int one {1};
6312 static_assert(test::zero == 0, "");
6313 static_assert(test::one == 1, "");
6317 namespace test_lambdas
6323 auto lambda1 = [](){};
6324 auto lambda2 = lambda1;
6332 auto a = [](int i, int j){ return i + j; }(1, 2);
6333 auto b = []() -> int { return '0'; }();
6334 auto c = [=](){ return a + b; }();
6335 auto d = [&](){ return c; }();
6336 auto e = [a, &b](int x) mutable {
6337 const auto identity = [](int y){ return y; };
6338 for (auto i = 0; i < a; ++i)
6340 return x + identity(a + b);
6342 return a + b + c + d + e;
6348 const auto nullary = [](){ return 0; };
6349 const auto unary = [](int x){ return x; };
6350 using nullary_t = decltype(nullary);
6351 using unary_t = decltype(unary);
6352 const auto higher1st = [](nullary_t f){ return f(); };
6353 const auto higher2nd = [unary](nullary_t f1){
6354 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6356 return higher1st(nullary) + higher2nd(nullary)(unary);
6361 namespace test_variadic_templates
6367 template <int N0, int... N1toN>
6368 struct sum<N0, N1toN...>
6370 static constexpr auto value = N0 + sum<N1toN...>::value;
6376 static constexpr auto value = 0;
6379 static_assert(sum<>::value == 0, "");
6380 static_assert(sum<1>::value == 1, "");
6381 static_assert(sum<23>::value == 23, "");
6382 static_assert(sum<1, 2>::value == 3, "");
6383 static_assert(sum<5, 5, 11>::value == 21, "");
6384 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6391 namespace test_template_alias_sfinae
6396 template<typename T>
6397 using member = typename T::member_type;
6399 template<typename T>
6402 template<typename T>
6403 void func(member<T>*) {}
6407 void test() { func<foo>(0); }
6411 } // namespace cxx11
6413 #endif // __cplusplus >= 201103L
6418 if ac_fn_cxx_try_compile
"$LINENO"; then :
6423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 eval ac_res
=\$
$cachevar
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429 if eval test x\$
$cachevar = xyes
; then
6431 if test -n "$CXXCPP" ; then
6432 CXXCPP
="$CXXCPP $switch"
6440 if test x
$ac_success = xno
; then
6441 for alternative
in ${ax_cxx_compile_alternatives}; do
6442 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6443 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6445 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6446 if eval \${$cachevar+:} false; then :
6447 $as_echo_n "(cached
) " >&6
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6455 // If the compiler admits that it is not ready for C++11, why torture it?
6456 // Hopefully, this will speed up the test.
6460 #error "This is not a C
++ compiler
"
6462 #elif __cplusplus < 201103L
6464 #error "This is not a C
++11 compiler
"
6471 namespace test_static_assert
6474 template <typename T>
6477 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6482 namespace test_final_override
6491 struct Derived : public Base
6493 virtual ~Derived() override {}
6494 virtual void f() override {}
6499 namespace test_double_right_angle_brackets
6502 template < typename T >
6505 typedef check<void> single_type;
6506 typedef check<check<void>> double_type;
6507 typedef check<check<check<void>>> triple_type;
6508 typedef check<check<check<check<void>>>> quadruple_type;
6512 namespace test_decltype
6525 namespace test_type_deduction
6528 template < typename T1, typename T2 >
6531 static const bool value = false;
6534 template < typename T >
6535 struct is_same<T, T>
6537 static const bool value = true;
6540 template < typename T1, typename T2 >
6542 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6548 test(const int c, volatile int v)
6550 static_assert(is_same<int, decltype(0)>::value == true, "");
6551 static_assert(is_same<int, decltype(c)>::value == false, "");
6552 static_assert(is_same<int, decltype(v)>::value == false, "");
6555 auto sumi = ac + av + 'x';
6556 auto sumf = ac + av + 1.0;
6557 static_assert(is_same<int, decltype(ac)>::value == true, "");
6558 static_assert(is_same<int, decltype(av)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6560 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6561 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6562 return (sumf > 0.0) ? sumi : add(c, v);
6567 namespace test_noexcept
6570 int f() { return 0; }
6571 int g() noexcept { return 0; }
6573 static_assert(noexcept(f()) == false, "");
6574 static_assert(noexcept(g()) == true, "");
6578 namespace test_constexpr
6581 template < typename CharT >
6582 unsigned long constexpr
6583 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6585 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6588 template < typename CharT >
6589 unsigned long constexpr
6590 strlen_c(const CharT *const s) noexcept
6592 return strlen_c_r(s, 0UL);
6595 static_assert(strlen_c("") == 0UL, "");
6596 static_assert(strlen_c("1") == 1UL, "");
6597 static_assert(strlen_c("example
") == 7UL, "");
6598 static_assert(strlen_c("another\
0example
") == 7UL, "");
6602 namespace test_rvalue_references
6608 static constexpr int value = N;
6611 answer<1> f(int&) { return answer<1>(); }
6612 answer<2> f(const int&) { return answer<2>(); }
6613 answer<3> f(int&&) { return answer<3>(); }
6620 static_assert(decltype(f(i))::value == 1, "");
6621 static_assert(decltype(f(c))::value == 2, "");
6622 static_assert(decltype(f(0))::value == 3, "");
6627 namespace test_uniform_initialization
6632 static const int zero {};
6633 static const int one {1};
6636 static_assert(test::zero == 0, "");
6637 static_assert(test::one == 1, "");
6641 namespace test_lambdas
6647 auto lambda1 = [](){};
6648 auto lambda2 = lambda1;
6656 auto a = [](int i, int j){ return i + j; }(1, 2);
6657 auto b = []() -> int { return '0'; }();
6658 auto c = [=](){ return a + b; }();
6659 auto d = [&](){ return c; }();
6660 auto e = [a, &b](int x) mutable {
6661 const auto identity = [](int y){ return y; };
6662 for (auto i = 0; i < a; ++i)
6664 return x + identity(a + b);
6666 return a + b + c + d + e;
6672 const auto nullary = [](){ return 0; };
6673 const auto unary = [](int x){ return x; };
6674 using nullary_t = decltype(nullary);
6675 using unary_t = decltype(unary);
6676 const auto higher1st = [](nullary_t f){ return f(); };
6677 const auto higher2nd = [unary](nullary_t f1){
6678 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6680 return higher1st(nullary) + higher2nd(nullary)(unary);
6685 namespace test_variadic_templates
6691 template <int N0, int... N1toN>
6692 struct sum<N0, N1toN...>
6694 static constexpr auto value = N0 + sum<N1toN...>::value;
6700 static constexpr auto value = 0;
6703 static_assert(sum<>::value == 0, "");
6704 static_assert(sum<1>::value == 1, "");
6705 static_assert(sum<23>::value == 23, "");
6706 static_assert(sum<1, 2>::value == 3, "");
6707 static_assert(sum<5, 5, 11>::value == 21, "");
6708 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6712 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6713 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6715 namespace test_template_alias_sfinae
6720 template<typename T>
6721 using member = typename T::member_type;
6723 template<typename T>
6726 template<typename T>
6727 void func(member<T>*) {}
6731 void test() { func<foo>(0); }
6735 } // namespace cxx11
6737 #endif // __cplusplus >= 201103L
6742 if ac_fn_cxx_try_compile "$LINENO"; then :
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 eval ac_res=\$$cachevar
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6752 $as_echo "$ac_res" >&6; }
6753 if eval test x\$$cachevar = xyes; then
6755 if test -n "$CXXCPP" ; then
6756 CXXCPP="$CXXCPP $switch"
6762 if test x$ac_success = xyes; then
6769 ac_cpp='$CPP $CPPFLAGS'
6770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6775 if test x$ac_success = xno; then
6776 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6779 if test x$ac_success = xno; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6782 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6786 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6792 if test "${build}" != "${host}"; then
6793 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6795 ac_cpp
='$CXXCPP $CPPFLAGS'
6796 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6800 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6801 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6802 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6803 CXX
="$CXX_FOR_BUILD"
6804 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6805 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6807 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6808 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6809 $as_echo_n "(cached) " >&6
6811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6815 // If the compiler admits that it is not ready for C++11, why torture it?
6816 // Hopefully, this will speed up the test.
6820 #error "This is not a C++ compiler"
6822 #elif __cplusplus < 201103L
6824 #error "This is not a C++11 compiler"
6831 namespace test_static_assert
6834 template <typename T>
6837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6842 namespace test_final_override
6851 struct Derived : public Base
6853 virtual ~Derived() override {}
6854 virtual void f() override {}
6859 namespace test_double_right_angle_brackets
6862 template < typename T >
6865 typedef check<void> single_type;
6866 typedef check<check<void>> double_type;
6867 typedef check<check<check<void>>> triple_type;
6868 typedef check<check<check<check<void>>>> quadruple_type;
6872 namespace test_decltype
6885 namespace test_type_deduction
6888 template < typename T1, typename T2 >
6891 static const bool value = false;
6894 template < typename T >
6895 struct is_same<T, T>
6897 static const bool value = true;
6900 template < typename T1, typename T2 >
6902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6908 test(const int c, volatile int v)
6910 static_assert(is_same<int, decltype(0)>::value == true, "");
6911 static_assert(is_same<int, decltype(c)>::value == false, "");
6912 static_assert(is_same<int, decltype(v)>::value == false, "");
6915 auto sumi = ac + av + 'x';
6916 auto sumf = ac + av + 1.0;
6917 static_assert(is_same<int, decltype(ac)>::value == true, "");
6918 static_assert(is_same<int, decltype(av)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6922 return (sumf > 0.0) ? sumi : add(c, v);
6927 namespace test_noexcept
6930 int f() { return 0; }
6931 int g() noexcept { return 0; }
6933 static_assert(noexcept(f()) == false, "");
6934 static_assert(noexcept(g()) == true, "");
6938 namespace test_constexpr
6941 template < typename CharT >
6942 unsigned long constexpr
6943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6948 template < typename CharT >
6949 unsigned long constexpr
6950 strlen_c(const CharT *const s) noexcept
6952 return strlen_c_r(s, 0UL);
6955 static_assert(strlen_c("") == 0UL, "");
6956 static_assert(strlen_c("1") == 1UL, "");
6957 static_assert(strlen_c("example") == 7UL, "");
6958 static_assert(strlen_c("another\0example") == 7UL, "");
6962 namespace test_rvalue_references
6968 static constexpr int value = N;
6971 answer<1> f(int&) { return answer<1>(); }
6972 answer<2> f(const int&) { return answer<2>(); }
6973 answer<3> f(int&&) { return answer<3>(); }
6980 static_assert(decltype(f(i))::value == 1, "");
6981 static_assert(decltype(f(c))::value == 2, "");
6982 static_assert(decltype(f(0))::value == 3, "");
6987 namespace test_uniform_initialization
6992 static const int zero {};
6993 static const int one {1};
6996 static_assert(test::zero == 0, "");
6997 static_assert(test::one == 1, "");
7001 namespace test_lambdas
7007 auto lambda1 = [](){};
7008 auto lambda2 = lambda1;
7016 auto a = [](int i, int j){ return i + j; }(1, 2);
7017 auto b = []() -> int { return '0'; }();
7018 auto c = [=](){ return a + b; }();
7019 auto d = [&](){ return c; }();
7020 auto e = [a, &b](int x) mutable {
7021 const auto identity = [](int y){ return y; };
7022 for (auto i = 0; i < a; ++i)
7024 return x + identity(a + b);
7026 return a + b + c + d + e;
7032 const auto nullary = [](){ return 0; };
7033 const auto unary = [](int x){ return x; };
7034 using nullary_t = decltype(nullary);
7035 using unary_t = decltype(unary);
7036 const auto higher1st = [](nullary_t f){ return f(); };
7037 const auto higher2nd = [unary](nullary_t f1){
7038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7040 return higher1st(nullary) + higher2nd(nullary)(unary);
7045 namespace test_variadic_templates
7051 template <int N0, int... N1toN>
7052 struct sum<N0, N1toN...>
7054 static constexpr auto value = N0 + sum<N1toN...>::value;
7060 static constexpr auto value = 0;
7063 static_assert(sum<>::value == 0, "");
7064 static_assert(sum<1>::value == 1, "");
7065 static_assert(sum<23>::value == 23, "");
7066 static_assert(sum<1, 2>::value == 3, "");
7067 static_assert(sum<5, 5, 11>::value == 21, "");
7068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7075 namespace test_template_alias_sfinae
7080 template<typename T>
7081 using member = typename T::member_type;
7083 template<typename T>
7086 template<typename T>
7087 void func(member<T>*) {}
7091 void test() { func<foo>(0); }
7095 } // namespace cxx11
7097 #endif // __cplusplus >= 201103L
7102 if ac_fn_cxx_try_compile
"$LINENO"; then :
7103 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7110 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7111 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7115 if test x
$ac_success = xno
; then
7116 for alternative
in ${ax_cxx_compile_alternatives}; do
7117 switch
="-std=gnu++${alternative}"
7118 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7120 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7121 if eval \
${$cachevar+:} false
; then :
7122 $as_echo_n "(cached) " >&6
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7130 // If the compiler admits that it is not ready for C++11, why torture it?
7131 // Hopefully, this will speed up the test.
7135 #error "This is not a C++ compiler"
7137 #elif __cplusplus < 201103L
7139 #error "This is not a C++11 compiler"
7146 namespace test_static_assert
7149 template <typename T>
7152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7157 namespace test_final_override
7166 struct Derived : public Base
7168 virtual ~Derived() override {}
7169 virtual void f() override {}
7174 namespace test_double_right_angle_brackets
7177 template < typename T >
7180 typedef check<void> single_type;
7181 typedef check<check<void>> double_type;
7182 typedef check<check<check<void>>> triple_type;
7183 typedef check<check<check<check<void>>>> quadruple_type;
7187 namespace test_decltype
7200 namespace test_type_deduction
7203 template < typename T1, typename T2 >
7206 static const bool value = false;
7209 template < typename T >
7210 struct is_same<T, T>
7212 static const bool value = true;
7215 template < typename T1, typename T2 >
7217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7223 test(const int c, volatile int v)
7225 static_assert(is_same<int, decltype(0)>::value == true, "");
7226 static_assert(is_same<int, decltype(c)>::value == false, "");
7227 static_assert(is_same<int, decltype(v)>::value == false, "");
7230 auto sumi = ac + av + 'x';
7231 auto sumf = ac + av + 1.0;
7232 static_assert(is_same<int, decltype(ac)>::value == true, "");
7233 static_assert(is_same<int, decltype(av)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7237 return (sumf > 0.0) ? sumi : add(c, v);
7242 namespace test_noexcept
7245 int f() { return 0; }
7246 int g() noexcept { return 0; }
7248 static_assert(noexcept(f()) == false, "");
7249 static_assert(noexcept(g()) == true, "");
7253 namespace test_constexpr
7256 template < typename CharT >
7257 unsigned long constexpr
7258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7263 template < typename CharT >
7264 unsigned long constexpr
7265 strlen_c(const CharT *const s) noexcept
7267 return strlen_c_r(s, 0UL);
7270 static_assert(strlen_c("") == 0UL, "");
7271 static_assert(strlen_c("1") == 1UL, "");
7272 static_assert(strlen_c("example") == 7UL, "");
7273 static_assert(strlen_c("another\0example") == 7UL, "");
7277 namespace test_rvalue_references
7283 static constexpr int value = N;
7286 answer<1> f(int&) { return answer<1>(); }
7287 answer<2> f(const int&) { return answer<2>(); }
7288 answer<3> f(int&&) { return answer<3>(); }
7295 static_assert(decltype(f(i))::value == 1, "");
7296 static_assert(decltype(f(c))::value == 2, "");
7297 static_assert(decltype(f(0))::value == 3, "");
7302 namespace test_uniform_initialization
7307 static const int zero {};
7308 static const int one {1};
7311 static_assert(test::zero == 0, "");
7312 static_assert(test::one == 1, "");
7316 namespace test_lambdas
7322 auto lambda1 = [](){};
7323 auto lambda2 = lambda1;
7331 auto a = [](int i, int j){ return i + j; }(1, 2);
7332 auto b = []() -> int { return '0'; }();
7333 auto c = [=](){ return a + b; }();
7334 auto d = [&](){ return c; }();
7335 auto e = [a, &b](int x) mutable {
7336 const auto identity = [](int y){ return y; };
7337 for (auto i = 0; i < a; ++i)
7339 return x + identity(a + b);
7341 return a + b + c + d + e;
7347 const auto nullary = [](){ return 0; };
7348 const auto unary = [](int x){ return x; };
7349 using nullary_t = decltype(nullary);
7350 using unary_t = decltype(unary);
7351 const auto higher1st = [](nullary_t f){ return f(); };
7352 const auto higher2nd = [unary](nullary_t f1){
7353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7355 return higher1st(nullary) + higher2nd(nullary)(unary);
7360 namespace test_variadic_templates
7366 template <int N0, int... N1toN>
7367 struct sum<N0, N1toN...>
7369 static constexpr auto value = N0 + sum<N1toN...>::value;
7375 static constexpr auto value = 0;
7378 static_assert(sum<>::value == 0, "");
7379 static_assert(sum<1>::value == 1, "");
7380 static_assert(sum<23>::value == 23, "");
7381 static_assert(sum<1, 2>::value == 3, "");
7382 static_assert(sum<5, 5, 11>::value == 21, "");
7383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7390 namespace test_template_alias_sfinae
7395 template<typename T>
7396 using member = typename T::member_type;
7398 template<typename T>
7401 template<typename T>
7402 void func(member<T>*) {}
7406 void test() { func<foo>(0); }
7410 } // namespace cxx11
7412 #endif // __cplusplus >= 201103L
7417 if ac_fn_cxx_try_compile
"$LINENO"; then :
7422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7425 eval ac_res
=\$
$cachevar
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7427 $as_echo "$ac_res" >&6; }
7428 if eval test x\$
$cachevar = xyes
; then
7430 if test -n "$CXXCPP" ; then
7431 CXXCPP
="$CXXCPP $switch"
7439 if test x
$ac_success = xno
; then
7440 for alternative
in ${ax_cxx_compile_alternatives}; do
7441 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7444 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7445 if eval \${$cachevar+:} false; then :
7446 $as_echo_n "(cached
) " >&6
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 // If the compiler admits that it is not ready for C++11, why torture it?
7455 // Hopefully, this will speed up the test.
7459 #error "This is not a C
++ compiler
"
7461 #elif __cplusplus < 201103L
7463 #error "This is not a C
++11 compiler
"
7470 namespace test_static_assert
7473 template <typename T>
7476 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7481 namespace test_final_override
7490 struct Derived : public Base
7492 virtual ~Derived() override {}
7493 virtual void f() override {}
7498 namespace test_double_right_angle_brackets
7501 template < typename T >
7504 typedef check<void> single_type;
7505 typedef check<check<void>> double_type;
7506 typedef check<check<check<void>>> triple_type;
7507 typedef check<check<check<check<void>>>> quadruple_type;
7511 namespace test_decltype
7524 namespace test_type_deduction
7527 template < typename T1, typename T2 >
7530 static const bool value = false;
7533 template < typename T >
7534 struct is_same<T, T>
7536 static const bool value = true;
7539 template < typename T1, typename T2 >
7541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7547 test(const int c, volatile int v)
7549 static_assert(is_same<int, decltype(0)>::value == true, "");
7550 static_assert(is_same<int, decltype(c)>::value == false, "");
7551 static_assert(is_same<int, decltype(v)>::value == false, "");
7554 auto sumi = ac + av + 'x';
7555 auto sumf = ac + av + 1.0;
7556 static_assert(is_same<int, decltype(ac)>::value == true, "");
7557 static_assert(is_same<int, decltype(av)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7561 return (sumf > 0.0) ? sumi : add(c, v);
7566 namespace test_noexcept
7569 int f() { return 0; }
7570 int g() noexcept { return 0; }
7572 static_assert(noexcept(f()) == false, "");
7573 static_assert(noexcept(g()) == true, "");
7577 namespace test_constexpr
7580 template < typename CharT >
7581 unsigned long constexpr
7582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7587 template < typename CharT >
7588 unsigned long constexpr
7589 strlen_c(const CharT *const s) noexcept
7591 return strlen_c_r(s, 0UL);
7594 static_assert(strlen_c("") == 0UL, "");
7595 static_assert(strlen_c("1") == 1UL, "");
7596 static_assert(strlen_c("example
") == 7UL, "");
7597 static_assert(strlen_c("another\
0example
") == 7UL, "");
7601 namespace test_rvalue_references
7607 static constexpr int value = N;
7610 answer<1> f(int&) { return answer<1>(); }
7611 answer<2> f(const int&) { return answer<2>(); }
7612 answer<3> f(int&&) { return answer<3>(); }
7619 static_assert(decltype(f(i))::value == 1, "");
7620 static_assert(decltype(f(c))::value == 2, "");
7621 static_assert(decltype(f(0))::value == 3, "");
7626 namespace test_uniform_initialization
7631 static const int zero {};
7632 static const int one {1};
7635 static_assert(test::zero == 0, "");
7636 static_assert(test::one == 1, "");
7640 namespace test_lambdas
7646 auto lambda1 = [](){};
7647 auto lambda2 = lambda1;
7655 auto a = [](int i, int j){ return i + j; }(1, 2);
7656 auto b = []() -> int { return '0'; }();
7657 auto c = [=](){ return a + b; }();
7658 auto d = [&](){ return c; }();
7659 auto e = [a, &b](int x) mutable {
7660 const auto identity = [](int y){ return y; };
7661 for (auto i = 0; i < a; ++i)
7663 return x + identity(a + b);
7665 return a + b + c + d + e;
7671 const auto nullary = [](){ return 0; };
7672 const auto unary = [](int x){ return x; };
7673 using nullary_t = decltype(nullary);
7674 using unary_t = decltype(unary);
7675 const auto higher1st = [](nullary_t f){ return f(); };
7676 const auto higher2nd = [unary](nullary_t f1){
7677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7679 return higher1st(nullary) + higher2nd(nullary)(unary);
7684 namespace test_variadic_templates
7690 template <int N0, int... N1toN>
7691 struct sum<N0, N1toN...>
7693 static constexpr auto value = N0 + sum<N1toN...>::value;
7699 static constexpr auto value = 0;
7702 static_assert(sum<>::value == 0, "");
7703 static_assert(sum<1>::value == 1, "");
7704 static_assert(sum<23>::value == 23, "");
7705 static_assert(sum<1, 2>::value == 3, "");
7706 static_assert(sum<5, 5, 11>::value == 21, "");
7707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7714 namespace test_template_alias_sfinae
7719 template<typename T>
7720 using member = typename T::member_type;
7722 template<typename T>
7725 template<typename T>
7726 void func(member<T>*) {}
7730 void test() { func<foo>(0); }
7734 } // namespace cxx11
7736 #endif // __cplusplus >= 201103L
7741 if ac_fn_cxx_try_compile "$LINENO"; then :
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 eval ac_res=\$$cachevar
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7751 $as_echo "$ac_res" >&6; }
7752 if eval test x\$$cachevar = xyes; then
7754 if test -n "$CXXCPP" ; then
7755 CXXCPP="$CXXCPP $switch"
7761 if test x$ac_success = xyes; then
7766 CXX_FOR_BUILD="$CXX"
7767 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7768 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7769 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7770 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7771 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7779 if test x$ac_success = xno; then
7780 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7783 if test x$ac_success = xno; then
7784 HAVE_CXX11_FOR_BUILD=0
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7786 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7788 HAVE_CXX11_FOR_BUILD=1
7790 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7798 # Check whether --enable-pgo-build was given.
7799 if test "${enable_pgo_build+set}" = set; then :
7800 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7806 # Issue errors and warnings for invalid/strange PGO build combinations.
7807 case "$have_compiler:$host:$target:$enable_pgo_build" in
7810 # Allow the PGO build only if we aren't building a compiler and
7811 # we are in a native configuration.
7812 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7814 # Disallow the PGO bootstrap if we are building a compiler.
7815 yes:*:*:yes |
yes:*:*:lto
)
7816 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7819 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7823 if test "$enable_pgo_build" != "no"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7825 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7826 old_CFLAGS
="$CFLAGS"
7827 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7828 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7834 if ac_fn_c_try_compile
"$LINENO"; then :
7837 PGO_BUILD_GEN_CFLAGS
=
7839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7840 CFLAGS
="$old_CFLAGS"
7841 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843 $as_echo "yes" >&6; }
7844 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7851 if test "$enable_pgo_build" = "lto"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7853 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7854 old_CFLAGS
="$CFLAGS"
7855 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7856 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7861 if ac_fn_c_try_compile
"$LINENO"; then :
7864 PGO_BUILD_LTO_CFLAGS
=
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7867 CFLAGS
="$old_CFLAGS"
7868 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7875 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7883 # Used for setting $lt_cv_objdir
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885 $as_echo_n "checking for objdir... " >&6; }
7886 if ${lt_cv_objdir+:} false
; then :
7887 $as_echo_n "(cached) " >&6
7889 rm -f .libs
2>/dev
/null
7890 mkdir .libs
2>/dev
/null
7891 if test -d .libs
; then
7894 # MS-DOS does not allow filenames that begin with a dot.
7897 rmdir .libs
2>/dev
/null
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900 $as_echo "$lt_cv_objdir" >&6; }
7901 objdir
=$lt_cv_objdir
7907 cat >>confdefs.h
<<_ACEOF
7908 #define LT_OBJDIR "$lt_cv_objdir/"
7913 # Check for GMP, MPFR and MPC
7916 if test -d ${srcdir}/gcc
; then
7920 if test -d ${srcdir}/gdb
; then
7921 if test "x$enable_gdb" != xno
; then
7926 gmplibs
="-lmpfr -lgmp"
7927 if test x
"$require_mpc" = "xyes" ; then
7928 gmplibs
="-lmpc $gmplibs"
7933 # Specify a location for mpc
7934 # check for this first so it ends up on the link line before mpfr.
7936 # Check whether --with-mpc was given.
7937 if test "${with_mpc+set}" = set; then :
7942 # Check whether --with-mpc-include was given.
7943 if test "${with_mpc_include+set}" = set; then :
7944 withval
=$with_mpc_include;
7948 # Check whether --with-mpc-lib was given.
7949 if test "${with_mpc_lib+set}" = set; then :
7950 withval
=$with_mpc_lib;
7954 if test "x$with_mpc" != x
; then
7955 gmplibs
="-L$with_mpc/lib $gmplibs"
7956 gmpinc
="-I$with_mpc/include $gmpinc"
7958 if test "x$with_mpc_include" != x
; then
7959 gmpinc
="-I$with_mpc_include $gmpinc"
7961 if test "x$with_mpc_lib" != x
; then
7962 gmplibs
="-L$with_mpc_lib $gmplibs"
7964 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7965 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7966 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7967 # Do not test the mpc version. Assume that it is sufficient, since
7968 # it is in the source tree, and the library has not been built yet
7969 # but it would be included on the link line in the version check below
7970 # hence making the test fail.
7974 # Specify a location for mpfr
7975 # check for this first so it ends up on the link line before gmp.
7977 # Check whether --with-mpfr was given.
7978 if test "${with_mpfr+set}" = set; then :
7983 # Check whether --with-mpfr-include was given.
7984 if test "${with_mpfr_include+set}" = set; then :
7985 withval
=$with_mpfr_include;
7989 # Check whether --with-mpfr-lib was given.
7990 if test "${with_mpfr_lib+set}" = set; then :
7991 withval
=$with_mpfr_lib;
7995 if test "x$with_mpfr" != x
; then
7996 gmplibs
="-L$with_mpfr/lib $gmplibs"
7997 gmpinc
="-I$with_mpfr/include $gmpinc"
7999 if test "x$with_mpfr_include" != x
; then
8000 gmpinc
="-I$with_mpfr_include $gmpinc"
8002 if test "x$with_mpfr_lib" != x
; then
8003 gmplibs
="-L$with_mpfr_lib $gmplibs"
8005 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8006 # MPFR v3.1.0 moved the sources into a src sub-directory.
8007 if ! test -d ${srcdir}/mpfr
/src
; then
8008 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8010 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8011 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8012 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8013 # Do not test the mpfr 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 gmp
8022 # Check whether --with-gmp was given.
8023 if test "${with_gmp+set}" = set; then :
8028 # Check whether --with-gmp-include was given.
8029 if test "${with_gmp_include+set}" = set; then :
8030 withval
=$with_gmp_include;
8034 # Check whether --with-gmp-lib was given.
8035 if test "${with_gmp_lib+set}" = set; then :
8036 withval
=$with_gmp_lib;
8041 if test "x$with_gmp" != x
; then
8042 gmplibs
="-L$with_gmp/lib $gmplibs"
8043 gmpinc
="-I$with_gmp/include $gmpinc"
8045 if test "x$with_gmp_include" != x
; then
8046 gmpinc
="-I$with_gmp_include $gmpinc"
8048 if test "x$with_gmp_lib" != x
; then
8049 gmplibs
="-L$with_gmp_lib $gmplibs"
8051 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8052 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8053 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8054 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8055 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8056 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8057 # Do not test the gmp version. Assume that it is sufficient, since
8058 # it is in the source tree, and the library has not been built yet
8059 # but it would be included on the link line in the version check below
8060 # hence making the test fail.
8064 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8066 saved_CFLAGS
="$CFLAGS"
8067 CFLAGS
="$CFLAGS $gmpinc"
8068 # Check for the recommended and required versions of GMP.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8070 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8078 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8079 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8080 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8088 if ac_fn_c_try_compile
"$LINENO"; then :
8089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8096 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8097 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8098 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8106 if ac_fn_c_try_compile
"$LINENO"; then :
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8111 $as_echo "buggy but acceptable" >&6; }
8113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }; have_gmp
=no
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 # If we have GMP, check the MPFR version.
8121 if test x
"$have_gmp" = xyes
; then
8122 # Check for the recommended and required versions of MPFR.
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8124 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8133 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8141 if ac_fn_c_try_compile
"$LINENO"; then :
8142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8150 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8158 if ac_fn_c_try_compile
"$LINENO"; then :
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160 $as_echo "yes" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8163 $as_echo "buggy but acceptable" >&6; }
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }; have_gmp
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 # Check for the MPC header version.
8174 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8175 # Check for the recommended and required versions of MPC.
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8177 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8185 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8193 if ac_fn_c_try_compile
"$LINENO"; then :
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8201 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8209 if ac_fn_c_try_compile
"$LINENO"; then :
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8214 $as_echo "buggy but acceptable" >&6; }
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }; have_gmp
=no
8221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8224 # Now check the MPFR library.
8225 if test x
"$have_gmp" = xyes
; then
8227 LIBS
="$LIBS $gmplibs"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8229 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8242 mpfr_atan2 (n, n, x, MPFR_RNDN);
8243 mpfr_erfc (n, x, MPFR_RNDN);
8244 mpfr_subnormalize (x, t, MPFR_RNDN);
8252 if ac_fn_c_try_link
"$LINENO"; then :
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }; have_gmp
=no
8259 rm -f core conftest.err conftest.
$ac_objext \
8260 conftest
$ac_exeext conftest.
$ac_ext
8264 # Now check the MPC library
8265 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8267 LIBS
="$LIBS $gmplibs"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8269 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8279 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8280 mpc_cosh (c, c, MPC_RNDNN);
8281 mpc_pow (c, c, c, MPC_RNDNN);
8282 mpc_acosh (c, c, MPC_RNDNN);
8289 if ac_fn_c_try_link
"$LINENO"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291 $as_echo "yes" >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }; have_gmp
=no
8296 rm -f core conftest.err conftest.
$ac_objext \
8297 conftest
$ac_exeext conftest.
$ac_ext
8301 CFLAGS
="$saved_CFLAGS"
8303 # The library versions listed in the error message below should match
8304 # the HARD-minimums enforced above.
8305 if test x
$have_gmp != xyes
; then
8306 if test -d ${srcdir}/gcc
; then
8307 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8308 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8309 their locations. Source code for these libraries can be found at
8310 their respective hosting sites as well as at
8311 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8312 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8313 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8314 make sure that you have installed both the libraries and the header
8315 files. They may be located in separate packages." "$LINENO" 5
8317 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8318 Try the --with-gmp and/or --with-mpfr options to specify
8319 their locations. If you obtained GMP and/or MPFR from a vendor
8320 distribution package, make sure that you have installed both the libraries
8321 and the header files. They may be located in separate packages." "$LINENO" 5
8326 # Flags needed for both GMP, MPFR and/or MPC.
8334 # Libraries to use for stage1 or when not bootstrapping.
8336 # Check whether --with-stage1-libs was given.
8337 if test "${with_stage1_libs+set}" = set; then :
8338 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8341 stage1_libs
=$withval
8349 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8350 # default is yes if gcc is being built; no otherwise. The reason for
8351 # this default is that gdb is sometimes linked against GNU Source
8352 # Highlight, which is a shared library that uses C++ exceptions. In
8353 # this case, -static-libstdc++ will cause crashes.
8355 # Check whether --with-static-standard-libraries was given.
8356 if test "${with_static_standard_libraries+set}" = set; then :
8357 withval
=$with_static_standard_libraries;
8359 with_static_standard_libraries
=auto
8362 if test "$with_static_standard_libraries" = auto
; then
8363 with_static_standard_libraries
=$have_compiler
8366 # Linker flags to use for stage1 or when not bootstrapping.
8368 # Check whether --with-stage1-ldflags was given.
8369 if test "${with_stage1_ldflags+set}" = set; then :
8370 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8373 stage1_ldflags
=$withval
8377 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8378 # if supported. But if the user explicitly specified the libraries to use,
8379 # trust that they are doing what they want.
8380 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8381 -a "$have_static_libs" = yes; then
8382 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8388 # Libraries to use for stage2 and later builds.
8390 # Check whether --with-boot-libs was given.
8391 if test "${with_boot_libs+set}" = set; then :
8392 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8395 poststage1_libs
=$withval
8403 # Linker flags to use for stage2 and later builds.
8405 # Check whether --with-boot-ldflags was given.
8406 if test "${with_boot_ldflags+set}" = set; then :
8407 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8410 poststage1_ldflags
=$withval
8414 # In stages 2 and 3, default to linking libstdc++ and libgcc
8415 # statically. But if the user explicitly specified the libraries to
8416 # use, trust that they are doing what they want.
8417 if test "$poststage1_libs" = ""; then
8418 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8424 # GCC GRAPHITE dependency isl.
8425 # Basic setup is inlined here, actual checks are in config/isl.m4
8428 # Check whether --with-isl was given.
8429 if test "${with_isl+set}" = set; then :
8434 # Treat --without-isl as a request to disable
8435 # GRAPHITE support and skip all following checks.
8436 if test "x$with_isl" != "xno"; then
8440 # Check whether --with-isl-include was given.
8441 if test "${with_isl_include+set}" = set; then :
8442 withval
=$with_isl_include;
8446 # Check whether --with-isl-lib was given.
8447 if test "${with_isl_lib+set}" = set; then :
8448 withval
=$with_isl_lib;
8452 # Check whether --enable-isl-version-check was given.
8453 if test "${enable_isl_version_check+set}" = set; then :
8454 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8456 ENABLE_ISL_CHECK
=yes
8460 # Initialize isllibs and islinc.
8469 isllibs
="-L$with_isl/lib"
8470 islinc
="-I$with_isl/include"
8473 if test "x${with_isl_include}" != x
; then
8474 islinc
="-I$with_isl_include"
8476 if test "x${with_isl_lib}" != x
; then
8477 isllibs
="-L$with_isl_lib"
8479 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8480 && test -d ${srcdir}/isl
; then
8481 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8482 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8485 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8488 isllibs
="${isllibs} -lisl"
8492 if test "${ENABLE_ISL_CHECK}" = yes ; then
8493 _isl_saved_CFLAGS
=$CFLAGS
8494 _isl_saved_LDFLAGS
=$LDFLAGS
8495 _isl_saved_LIBS
=$LIBS
8497 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8498 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8499 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8502 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <isl/schedule.h>
8509 isl_options_set_schedule_serialize_sccs (NULL, 0);
8514 if ac_fn_c_try_link
"$LINENO"; then :
8519 rm -f core conftest.err conftest.
$ac_objext \
8520 conftest
$ac_exeext conftest.
$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8522 $as_echo "$gcc_cv_isl" >&6; }
8524 if test "${gcc_cv_isl}" = no
; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8526 $as_echo "required isl version is 0.15 or later" >&6; }
8529 CFLAGS
=$_isl_saved_CFLAGS
8530 LDFLAGS
=$_isl_saved_LDFLAGS
8531 LIBS
=$_isl_saved_LIBS
8539 if test "x${with_isl}" = xno
; then
8540 graphite_requested
=no
8541 elif test "x${with_isl}" != x \
8542 ||
test "x${with_isl_include}" != x \
8543 ||
test "x${with_isl_lib}" != x
; then
8544 graphite_requested
=yes
8546 graphite_requested
=no
8551 if test "${gcc_cv_isl}" = no
; then
8556 if test "${graphite_requested}" = yes \
8557 && test "x${isllibs}" = x \
8558 && test "x${islinc}" = x
; then
8560 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8566 # If the isl check failed, disable builds of in-tree variant of isl
8567 if test "x$with_isl" = xno ||
8568 test "x$gcc_cv_isl" = xno
; then
8569 noconfigdirs
="$noconfigdirs isl"
8576 # Check for LTO support.
8577 # Check whether --enable-lto was given.
8578 if test "${enable_lto+set}" = set; then :
8579 enableval
=$enable_lto; enable_lto
=$enableval
8581 enable_lto
=yes; default_enable_lto
=yes
8590 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8591 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8592 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8601 if test $target_elf = yes; then :
8602 # ELF platforms build the lto-plugin always.
8603 build_lto_plugin
=yes
8606 if test x
"$default_enable_lto" = x
"yes" ; then
8608 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8609 # On other non-ELF platforms, LTO has yet to be validated.
8613 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8614 # It would also be nice to check the binutils support, but we don't
8615 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8616 # warn during gcc/ subconfigure; unless you're bootstrapping with
8617 # -flto it won't be needed until after installation anyway.
8619 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8620 *) if test x
"$enable_lto" = x
"yes"; then
8621 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8626 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8627 # Build it unless LTO was explicitly disabled.
8629 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8636 # Check whether --enable-linker-plugin-configure-flags was given.
8637 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8638 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8640 extra_linker_plugin_configure_flags
=
8644 # Check whether --enable-linker-plugin-flags was given.
8645 if test "${enable_linker_plugin_flags+set}" = set; then :
8646 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8648 extra_linker_plugin_flags
=
8653 # Handle --enable-host-pie
8654 # If host PIE executables are the default (or must be forced on) for some host,
8655 # we must pass that configuration to the gcc directory.
8657 # Check whether --enable-host-pie was given.
8658 if test "${enable_host_pie+set}" = set; then :
8659 enableval
=$enable_host_pie; host_pie
=$enableval
8662 if test x
$host_pie != xyes
; then
8663 # for Darwin20+ this is required.
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8665 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8667 gcc_host_pie
=--enable-host-pie
8674 # Default to PIE (mandatory for aarch64).
8676 gcc_host_pie
=--enable-host-pie
8686 # Enable --enable-host-shared.
8687 # Checked early to determine whether jit is an 'all' language
8688 # Check whether --enable-host-shared was given.
8689 if test "${enable_host_shared+set}" = set; then :
8690 enableval
=$enable_host_shared; host_shared
=$enableval
8692 x86_64-
*-darwin* | aarch64-
*-darwin*)
8693 if test x
$host_shared != xyes
; then
8694 # PIC is the default, and actually cannot be switched off.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8696 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8700 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8702 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8709 # 64B x86_64 and Aarch64 Darwin default to PIC.
8710 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8711 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8712 *-*-darwin*) host_shared
=$host_pie ;;
8720 if test x
$host_shared = xyes
; then
8723 # Since host shared is the default for 64b Darwin, and also enabled for
8724 # host_pie, ensure that we present the PIE flag when host_pie is active.
8725 if test x
$host_pie = xyes
; then
8733 elif test x
$host_pie = xyes
; then
8741 # If we are building PIC/PIE host executables, and we are building dependent
8742 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8745 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8746 host_libs_picflag
='--with-pic'
8750 # By default, C and C++ are the only stage 1 languages.
8751 stage1_languages
=,c
,
8753 # Target libraries that we bootstrap.
8754 bootstrap_target_libs
=,target-libgcc
,
8756 # Figure out what language subdirectories are present.
8757 # Look if the user specified --enable-languages="..."; if not, use
8758 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8760 # NB: embedded tabs in this IF block -- do not untabify
8761 if test -d ${srcdir}/gcc
; then
8762 if test x
"${enable_languages+set}" != xset
; then
8763 if test x
"${LANGUAGES+set}" = xset
; then
8764 enable_languages
="${LANGUAGES}"
8765 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8767 enable_languages
=default
8770 if test x
"${enable_languages}" = x ||
8771 test x
"${enable_languages}" = xyes
;
8773 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8777 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8779 # 'f95' is the old name for the 'fortran' language. We issue a warning
8780 # and make the substitution.
8781 case ,${enable_languages}, in
8783 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8784 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8788 # If bootstrapping, C++ must be enabled.
8789 case ",$enable_languages,:$enable_bootstrap" in
8792 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8793 enable_languages
="${enable_languages},c++"
8795 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8800 # First scan to see if an enabled language requires some other language.
8801 # We assume that a given config-lang.in will list all the language
8802 # front ends it requires, even if some are required indirectly.
8803 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8804 case ${lang_frag} in
8806 # The odd quoting in the next line works around
8807 # an apparent bug in bash 1.12 on linux.
8808 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8810 # From the config-lang.in, get $language, $lang_requires, and
8811 # $lang_requires_boot_languages.
8814 lang_requires_boot_languages
=
8815 # set srcdir during sourcing lang_frag to the gcc dir.
8816 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8817 # polutes this shell
8818 saved_srcdir
=${srcdir}
8819 srcdir
=${srcdir}/gcc .
${lang_frag}
8820 srcdir
=${saved_srcdir}
8821 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8822 case ,${enable_languages}, in
8827 echo " \`$other' language required by \`$language'; enabling" 1>&2
8828 enable_languages
="${enable_languages},${other}"
8832 for other
in ${lang_requires_boot_languages} ; do
8833 if test "$other" != "c"; then
8834 case ,${enable_stage1_languages}, in
8839 case ,${enable_languages}, in
8841 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8842 enable_stage1_languages
="$enable_stage1_languages,${other}"
8853 new_enable_languages
=,c
,
8855 # If LTO is enabled, add the LTO front end.
8856 if test "$enable_lto" = "yes" ; then
8857 case ,${enable_languages}, in
8859 *) enable_languages
="${enable_languages},lto" ;;
8861 if test "${build_lto_plugin}" = "yes" ; then
8862 configdirs
="$configdirs lto-plugin"
8866 # If we're building an offloading compiler, add the LTO front end.
8867 if test x
"$enable_as_accelerator_for" != x
; then
8868 case ,${enable_languages}, in
8870 *) enable_languages
="${enable_languages},lto" ;;
8874 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8875 potential_languages
=,c
,
8877 enabled_target_libs
=
8878 disabled_target_libs
=
8880 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8881 case ${lang_frag} in
8883 # The odd quoting in the next line works around
8884 # an apparent bug in bash 1.12 on linux.
8885 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8887 # From the config-lang.in, get $language, $target_libs,
8888 # $lang_dirs, $boot_language, and $build_by_default
8894 build_by_default
=yes
8895 # set srcdir during sourcing. See above about save & restore
8896 saved_srcdir
=${srcdir}
8897 srcdir
=${srcdir}/gcc .
${lang_frag}
8898 srcdir
=${saved_srcdir}
8899 if test x
${language} = x
; then
8900 echo "${lang_frag} doesn't set \$language." 1>&2
8904 if test "$language" = "c++"; then
8909 # C is always enabled, so no need to add it again
8910 if test "$language" != "c"; then
8911 case ,${enable_languages}, in
8913 # Language was explicitly selected; include it
8917 # All languages are enabled
8921 # 'default' was selected, select it if it is a default language
8922 add_this_lang
=${build_by_default}
8927 # Disable languages that need other directories if these aren't available.
8928 for i
in $subdir_requires; do
8929 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8930 case ${add_this_lang} in
8932 # Specifically requested language; tell them.
8933 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8937 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8938 add_this_lang
=unsupported
8942 add_this_lang
=unsupported
8947 # Disable Ada if no preexisting GNAT is available.
8948 case ${add_this_lang}:${language}:${have_gnat} in
8950 # Specifically requested language; tell them.
8951 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8955 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8956 add_this_lang
=unsupported
8960 add_this_lang
=unsupported
8964 # Disable D if no preexisting GDC is available.
8965 case ${add_this_lang}:${language}:${have_gdc} in
8967 # Specifically requested language; tell them.
8968 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8972 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8973 add_this_lang
=unsupported
8977 add_this_lang
=unsupported
8981 # Disable jit if -enable-host-shared not specified
8982 # but not if building for Mingw. All code in Windows
8983 # is position independent code (PIC).
8987 case ${add_this_lang}:${language}:${host_shared} in
8989 # PR jit/64780: explicitly specify --enable-host-shared
8991 Enabling language \"jit\" requires --enable-host-shared.
8993 --enable-host-shared typically slows the rest of the compiler down by
8994 a few %, so you must explicitly enable it.
8996 If you want to build both the jit and the regular compiler, it is often
8997 best to do this via two separate configure/builds, in separate
8998 directories, to avoid imposing the performance cost of
8999 --enable-host-shared on the regular compiler." "$LINENO" 5
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9003 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9004 add_this_lang
=unsupported
9008 add_this_lang
=unsupported
9014 # Disable a language that is unsupported by the target.
9015 case "${add_this_lang}: $unsupported_languages " in
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9020 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9021 add_this_lang
=unsupported
9025 case $add_this_lang in
9027 # Remove language-dependent dirs.
9028 disabled_target_libs
="$disabled_target_libs $target_libs"
9029 noconfigdirs
="$noconfigdirs $lang_dirs"
9032 # Remove language-dependent dirs; still show language as supported.
9033 disabled_target_libs
="$disabled_target_libs $target_libs"
9034 noconfigdirs
="$noconfigdirs $lang_dirs"
9035 potential_languages
="${potential_languages}${language},"
9038 new_enable_languages
="${new_enable_languages}${language},"
9039 potential_languages
="${potential_languages}${language},"
9040 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9041 enabled_target_libs
="$enabled_target_libs $target_libs"
9042 case "${boot_language}:,$enable_stage1_languages," in
9043 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9044 # Add to (comma-separated) list of stage 1 languages.
9045 case ",$stage1_languages," in
9046 *,$language,* |
,yes, |
,all
,) ;;
9047 *) stage1_languages
="${stage1_languages}${language}," ;;
9049 # We need to bootstrap any supporting libraries.
9050 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9059 # Add target libraries which are only needed for disabled languages
9061 if test -n "$disabled_target_libs"; then
9062 for dir
in $disabled_target_libs; do
9063 case " $enabled_target_libs " in
9065 *) noconfigdirs
="$noconfigdirs $dir" ;;
9070 # Check whether --enable-stage1-languages was given.
9071 if test "${enable_stage1_languages+set}" = set; then :
9072 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9074 # Set it to something that will have no effect in the loop below
9075 enable_stage1_languages
=c
;;
9077 enable_stage1_languages
=`echo $new_enable_languages | \
9078 sed -e "s/^,//" -e "s/,$//" ` ;;
9080 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9081 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9084 # Add "good" languages from enable_stage1_languages to stage1_languages,
9085 # while "bad" languages go in missing_languages. Leave no duplicates.
9086 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9087 case $potential_languages in
9089 case $stage1_languages in
9091 *) stage1_languages
="$stage1_languages$i," ;;
9094 case $missing_languages in
9096 *) missing_languages
="$missing_languages$i," ;;
9103 # Remove leading/trailing commas that were added for simplicity
9104 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9105 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9106 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9109 if test "x$missing_languages" != x
; then
9111 The following requested languages could not be built: ${missing_languages}
9112 Supported languages are: ${potential_languages}" "$LINENO" 5
9114 if test "x$new_enable_languages" != "x$enable_languages"; then
9115 echo The following languages will be built
: ${new_enable_languages}
9116 enable_languages
="$new_enable_languages"
9120 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9123 # Handle --disable-<component> generically.
9124 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9125 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9126 varname
=`echo $dirname | sed -e s/+/_/g`
9127 if eval test x\
${enable_${varname}} "=" xno
; then
9128 noconfigdirs
="$noconfigdirs $dir"
9132 # Check for Boehm's garbage collector
9133 # Check whether --enable-objc-gc was given.
9134 if test "${enable_objc_gc+set}" = set; then :
9135 enableval
=$enable_objc_gc;
9139 # Check whether --with-target-bdw-gc was given.
9140 if test "${with_target_bdw_gc+set}" = set; then :
9141 withval
=$with_target_bdw_gc;
9145 # Check whether --with-target-bdw-gc-include was given.
9146 if test "${with_target_bdw_gc_include+set}" = set; then :
9147 withval
=$with_target_bdw_gc_include;
9151 # Check whether --with-target-bdw-gc-lib was given.
9152 if test "${with_target_bdw_gc_lib+set}" = set; then :
9153 withval
=$with_target_bdw_gc_lib;
9157 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9159 $as_echo_n "checking for bdw garbage collector... " >&6; }
9160 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9162 $as_echo "using bdw-gc in default locations" >&6; }
9164 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9165 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9166 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9167 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9170 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9175 # Disable libitm, libsanitizer, libvtv if we're not building C++
9176 case ,${enable_languages}, in
9178 # Disable libitm, libsanitizer if we're not building libstdc++
9179 case "${noconfigdirs}" in
9180 *target-libstdc
++-v3*)
9181 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9187 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9191 # If gcc/ is not in the source tree then we'll not be building a
9192 # target compiler, assume in that case we don't want to build any
9193 # target libraries or tools.
9195 # This was added primarily for the benefit for binutils-gdb who reuse
9196 # this configure script, but don't always have target tools available.
9197 if test ! -d ${srcdir}/gcc
; then
9198 skipdirs
="${skipdirs} ${target_configdirs}"
9201 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9202 # $build_configdirs and $target_configdirs.
9203 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9206 for dir
in .
$skipdirs $noconfigdirs ; do
9207 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9208 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9209 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure
; then
9211 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9214 notsupp
="$notsupp $dir"
9218 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9219 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9220 if test -r $srcdir/$dirname/configure
; then
9221 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9224 notsupp
="$notsupp $dir"
9228 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9229 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9230 if test -r $srcdir/$dirname/configure
; then
9231 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9234 notsupp
="$notsupp $dir"
9240 # Quietly strip out all directories which aren't configurable in this tree.
9241 # This relies on all configurable subdirectories being autoconfiscated, which
9243 build_configdirs_all
="$build_configdirs"
9245 for i
in ${build_configdirs_all} ; do
9246 j
=`echo $i | sed -e s/build-//g`
9247 if test -f ${srcdir}/$j/configure
; then
9248 build_configdirs
="${build_configdirs} $i"
9252 configdirs_all
="$configdirs"
9254 for i
in ${configdirs_all} ; do
9255 if test -f ${srcdir}/$i/configure
; then
9256 configdirs
="${configdirs} $i"
9260 target_configdirs_all
="$target_configdirs"
9262 for i
in ${target_configdirs_all} ; do
9263 j
=`echo $i | sed -e s/target-//g`
9264 if test -f ${srcdir}/$j/configure
; then
9265 target_configdirs
="${target_configdirs} $i"
9269 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9270 # so we have to add it after the preceding checks.
9271 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9273 case " $configdirs " in
9275 # If we can build libiberty, we can also build libiberty-linker-plugin.
9276 configdirs
="$configdirs libiberty-linker-plugin"
9277 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9278 --with-libiberty=../libiberty-linker-plugin";;
9280 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9284 # Sometimes we have special requirements for the host libiberty.
9285 extra_host_libiberty_configure_flags
=
9286 case " $configdirs " in
9287 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9288 # When these are to be built as shared libraries, the same applies to
9290 extra_host_libiberty_configure_flags
=--enable-shared
9295 # Sometimes we have special requirements for the host zlib.
9296 extra_host_zlib_configure_flags
=
9297 case " $configdirs " in
9299 # When bfd is to be built as a shared library, the same applies to
9301 if test "$enable_shared" = "yes"; then
9302 extra_host_zlib_configure_flags
=--enable-host-shared
9308 # Produce a warning message for the subdirs we can't configure.
9309 # This isn't especially interesting in the Cygnus tree, but in the individual
9310 # FSF releases, it's important to let people know when their machine isn't
9311 # supported by the one or two programs in a package.
9313 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9314 # If $appdirs is non-empty, at least one of those directories must still
9315 # be configured, or we error out. (E.g., if the gas release supports a
9316 # specified target in some subdirs but not the gas subdir, we shouldn't
9317 # pretend that all is well.)
9318 if test -n "$appdirs" ; then
9319 for dir
in $appdirs ; do
9320 if test -r $dir/Makefile.
in ; then
9321 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9325 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9331 if test -n "$appdirs" ; then
9332 echo "*** This configuration is not supported by this package." 1>&2
9336 # Okay, some application will build, or we don't care to check. Still
9337 # notify of subdirs not getting built.
9338 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9339 echo " ${notsupp}" 1>&2
9340 echo " (Any other directories should still work fine.)" 1>&2
9348 # To find our prefix, in gcc_cv_tool_prefix.
9350 # The user is always right.
9351 if test "${PATH_SEPARATOR+set}" != set; then
9352 echo "#! /bin/sh" >conf$$.sh
9353 echo "exit 0" >>conf$$.sh
9355 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9364 get_gcc_base_ver
="cat"
9366 # Check whether --with-gcc-major-version-only was given.
9367 if test "${with_gcc_major_version_only+set}" = set; then :
9368 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9369 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9379 if test "x$exec_prefix" = xNONE
; then
9380 if test "x$prefix" = xNONE
; then
9381 gcc_cv_tool_prefix
=$ac_default_prefix
9383 gcc_cv_tool_prefix
=$prefix
9386 gcc_cv_tool_prefix
=$exec_prefix
9389 # If there is no compiler in the tree, use the PATH only. In any
9390 # case, if there is no compiler in the tree nobody should use
9391 # AS_FOR_TARGET and LD_FOR_TARGET.
9392 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9393 if test x
$with_gcc_major_version_only = xyes
; then
9394 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9396 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9398 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9399 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9400 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9408 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9409 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9417 # Check whether --with-build-sysroot was given.
9418 if test "${with_build_sysroot+set}" = set; then :
9419 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9420 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9423 SYSROOT_CFLAGS_FOR_TARGET
=
9429 # Check whether --with-debug-prefix-map was given.
9430 if test "${with_debug_prefix_map+set}" = set; then :
9431 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9432 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9433 for debug_map
in $withval; do
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9438 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9443 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9444 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9445 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9446 # We want to ensure that TARGET libraries (which we know are built with
9447 # gcc) are built with "-O2 -g", so include those options when setting
9448 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9449 if test "x$CFLAGS_FOR_TARGET" = x
; then
9450 if test "x${is_cross_compiler}" = xyes
; then
9451 CFLAGS_FOR_TARGET
="-g -O2"
9453 CFLAGS_FOR_TARGET
=$CFLAGS
9456 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9459 *" -g "* |
*" -g3 "*) ;;
9460 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9466 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9467 if test "x${is_cross_compiler}" = xyes
; then
9468 CXXFLAGS_FOR_TARGET
="-g -O2"
9470 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9471 case " $CXXFLAGS " in
9473 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9475 case " $CXXFLAGS " in
9476 *" -g "* |
*" -g3 "*) ;;
9477 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9485 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9486 # the named directory are copied to $(tooldir)/sys-include.
9487 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9488 if test x
${is_cross_compiler} = xno
; then
9489 echo 1>&2 '***' --with-headers is only supported when cross compiling
9492 if test x
"${with_headers}" != xyes
; then
9493 x
=${gcc_cv_tool_prefix}
9494 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9498 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9499 # the name directories are copied to $(tooldir)/lib. Multiple directories
9501 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9502 if test x
${is_cross_compiler} = xno
; then
9503 echo 1>&2 '***' --with-libs is only supported when cross compiling
9506 if test x
"${with_libs}" != xyes
; then
9507 # Copy the libraries in reverse order, so that files in the first named
9508 # library override files in subsequent libraries.
9509 x
=${gcc_cv_tool_prefix}
9510 for l
in ${with_libs}; do
9511 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9516 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9518 # This is done by determining whether or not the appropriate directory
9519 # is available, and by checking whether or not specific configurations
9520 # have requested that this magic not happen.
9522 # The command line options always override the explicit settings in
9523 # configure.ac, and the settings in configure.ac override this magic.
9525 # If the default for a toolchain is to use GNU as and ld, and you don't
9526 # want to do that, then you should use the --without-gnu-as and
9527 # --without-gnu-ld options for the configure script. Similarly, if
9528 # the default is to use the included zlib and you don't want to do that,
9529 # you should use the --with-system-zlib option for the configure script.
9531 if test x
${use_gnu_as} = x
&&
9532 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9534 extra_host_args
="$extra_host_args --with-gnu-as"
9537 if test x
${use_gnu_ld} = x
&&
9538 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9540 extra_host_args
="$extra_host_args --with-gnu-ld"
9543 if test x
${use_included_zlib} = x
&&
9544 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9547 with_system_zlib
=yes
9548 extra_host_args
="$extra_host_args --with-system-zlib"
9551 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9552 # can detect this case.
9554 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9556 extra_host_args
="$extra_host_args --with-newlib"
9559 # Handle ${copy_dirs}
9560 set fnord
${copy_dirs}
9562 while test $# != 0 ; do
9563 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9566 echo Copying
$1 to
$2
9568 # Use the install script to create the directory and all required
9569 # parent directories.
9570 if test -d $2 ; then
9574 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9577 # Copy the directory, assuming we have tar.
9578 # FIXME: Should we use B in the second tar? Not all systems support it.
9579 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9581 # It is the responsibility of the user to correctly adjust all
9582 # symlinks. If somebody can figure out how to handle them correctly
9583 # here, feel free to add the code.
9590 # Determine a target-dependent exec_prefix that the installed
9591 # gcc will search in. Keep this list sorted by triplet, with
9592 # the *-*-osname triplets last.
9595 i
[34567]86-pc-msdosdjgpp*)
9596 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9601 md_exec_prefix
=/usr
/ccs
/bin
9605 extra_arflags_for_target
=
9606 extra_nmflags_for_target
=
9607 extra_ranlibflags_for_target
=
9608 target_makefile_frag
=/dev
/null
9611 target_makefile_frag
="config/mt-spu"
9613 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9614 target_makefile_frag
="config/mt-sde"
9616 mipsisa
*-*-elfoabi*)
9617 target_makefile_frag
="config/mt-mips-elfoabi"
9619 mips
*-*-*linux
* | mips
*-*-gnu*)
9620 target_makefile_frag
="config/mt-mips-gnu"
9623 target_makefile_frag
="config/mt-nios2-elf"
9626 target_makefile_frag
="config/mt-android"
9628 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9629 target_makefile_frag
="config/mt-gnu"
9631 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9632 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9633 # commands to handle both 32-bit and 64-bit objects. These flags are
9634 # harmless if we're using GNU nm or ar.
9635 extra_arflags_for_target
=" -X32_64"
9636 extra_nmflags_for_target
=" -B -X32_64"
9640 alphaieee_frag
=/dev
/null
9643 # This just makes sure to use the -mieee option to build target libs.
9644 # This should probably be set individually by each library.
9645 alphaieee_frag
="config/mt-alphaieee"
9649 # If --enable-target-optspace always use -Os instead of -O2 to build
9650 # the target libraries, similarly if it is not specified, use -Os
9651 # on selected platforms.
9652 ospace_frag
=/dev
/null
9653 case "${enable_target_optspace}:${target}" in
9655 ospace_frag
="config/mt-ospace"
9658 ospace_frag
="config/mt-d30v"
9660 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9661 ospace_frag
="config/mt-ospace"
9666 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9670 # Some systems (e.g., one of the i386-aix systems the gas testers are
9671 # using) don't handle "\$" correctly, so don't use it here.
9672 tooldir
='${exec_prefix}'/${target_noncanonical}
9673 build_tooldir
=${tooldir}
9675 # Create a .gdbinit file which runs the one in srcdir
9676 # and tells GDB to look there for source files.
9678 if test -r ${srcdir}/.gdbinit
; then
9681 *) cat > .
/.gdbinit
<<EOF
9685 source ${srcdir}/.gdbinit
9691 # Make sure that the compiler is able to generate an executable. If it
9692 # can't, we are probably in trouble. We don't care whether we can run the
9693 # executable--we might be using a cross compiler--we only care whether it
9694 # can be created. At this point the main configure script has set CC.
9696 echo "int main () { return 0; }" > conftest.c
9697 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9698 if test $?
= 0 ; then
9699 if test -s conftest ||
test -s conftest.exe
; then
9705 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9706 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9713 # Decide which environment variable is used to find dynamic libraries.
9715 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9716 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9717 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9718 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9721 # On systems where the dynamic library environment variable is PATH,
9722 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9723 # built executables to PATH.
9724 if test "$RPATH_ENVVAR" = PATH
; then
9725 GCC_SHLIB_SUBDIR
=/shlib
9730 # Adjust the toplevel makefile according to whether bootstrap was selected.
9731 case $enable_bootstrap in
9733 bootstrap_suffix
=bootstrap
9734 BUILD_CONFIG
=bootstrap-debug
9737 bootstrap_suffix
=no-bootstrap
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9743 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9746 # Check whether --with-build-config was given.
9747 if test "${with_build_config+set}" = set; then :
9748 withval
=$with_build_config; case $with_build_config in
9749 yes) with_build_config
= ;;
9750 no
) with_build_config
= BUILD_CONFIG
= ;;
9755 if test "x${with_build_config}" != x
; then
9756 BUILD_CONFIG
=$with_build_config
9758 case $BUILD_CONFIG in
9760 if echo "int f (void) { return 0; }" > conftest.c
&&
9761 ${CC} -c conftest.c
&&
9762 mv conftest.o conftest.o.g0
&&
9763 ${CC} -c -g conftest.c
&&
9764 mv conftest.o conftest.o.g
&&
9765 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9770 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9775 $as_echo "$BUILD_CONFIG" >&6; }
9778 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9780 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9781 # Check whether --enable-vtable-verify was given.
9782 if test "${enable_vtable_verify+set}" = set; then :
9783 enableval
=$enable_vtable_verify; case "$enableval" in
9784 yes) enable_vtable_verify
=yes ;;
9785 no
) enable_vtable_verify
=no
;;
9786 *) enable_vtable_verify
=no
;;
9789 enable_vtable_verify
=no
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9793 $as_echo "$enable_vtable_verify" >&6; }
9795 # Record target_configdirs and the configure arguments for target and
9796 # build configuration in Makefile.
9797 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9798 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9799 bootstrap_fixincludes
=no
9801 # If we are building libgomp, bootstrap it.
9802 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9803 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9806 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9807 # or bootstrap-ubsan, bootstrap it.
9808 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9809 case "$BUILD_CONFIG" in
9810 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9811 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9812 bootstrap_fixincludes
=yes
9817 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9818 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9819 test "$enable_vtable_verify" != no
; then
9820 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9823 # If we are building libatomic and the list of enabled languages includes the
9824 # D frontend, bootstrap it.
9825 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9826 case ,${enable_languages}, in
9828 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9833 # Determine whether gdb needs tk/tcl or not.
9834 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9835 # and in that case we want gdb to be built without tk. Ugh!
9836 # In fact I believe gdb is the *only* package directly dependent on tk,
9837 # so we should be able to put the 'maybe's in unconditionally and
9838 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9839 # 100% sure that that's safe though.
9841 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9842 case "$enable_gdbtk" in
9846 GDB_TK
="${gdb_tk}" ;;
9848 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9849 # distro. Eventually someone will fix this and move Insight, nee
9850 # gdbtk to a separate directory.
9851 if test -d ${srcdir}/gdb
/gdbtk
; then
9858 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9859 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9861 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9862 # else does, only include them if one of these is built. The Makefile
9863 # provides the ordering, so it's enough here to add to the list.
9864 case " ${configdirs} " in
9866 configdirs
="${configdirs} gnulib gdbsupport"
9869 configdirs
="${configdirs} gnulib gdbsupport"
9872 configdirs
="${configdirs} gnulib"
9876 # Strip out unwanted targets.
9878 # While at that, we remove Makefiles if we were started for recursive
9879 # configuration, so that the top-level Makefile reconfigures them,
9880 # like we used to do when configure itself was recursive.
9882 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9883 # but now we're fixing up the Makefile ourselves with the additional
9884 # commands passed to AC_CONFIG_FILES. Use separate variables
9885 # extrasub-{build,host,target} not because there is any reason to split
9886 # the substitutions up that way, but only to remain below the limit of
9887 # 99 commands in a script, for HP-UX sed.
9889 # Do not nest @if/@endif or @unless/@endunless pairs, because
9890 # configure will not warn you at all.
9892 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9893 yes:yes:*\ gold\
*:*,c
++,*) ;;
9894 yes:yes:*\ gold\
*:*)
9895 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9900 for module
in ${build_configdirs} ; do
9901 if test -z "${no_recursion}" \
9902 && test -f ${build_subdir}/${module}/Makefile
; then
9903 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9904 rm -f ${build_subdir}/${module}/Makefile
9906 extrasub_build
="$extrasub_build
9907 /^@if build-$module\$/d
9908 /^@endif build-$module\$/d
9909 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9910 /^@if build-$module-$bootstrap_suffix\$/d
9911 /^@endif build-$module-$bootstrap_suffix\$/d
9912 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9915 for module
in ${configdirs} ; do
9916 if test -z "${no_recursion}"; then
9917 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9918 if test -f ${file}; then
9919 echo 1>&2 "*** removing ${file} to force reconfigure"
9924 case ${module},${bootstrap_fixincludes} in
9925 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9926 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9928 extrasub_host
="$extrasub_host
9930 /^@endif $module\$/d
9931 /^@unless $module\$/,/^@endunless $module\$/d
9932 /^@if $module-$host_bootstrap_suffix\$/d
9933 /^@endif $module-$host_bootstrap_suffix\$/d
9934 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9937 for module
in ${target_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${target_subdir}/${module}/Makefile
; then
9940 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${target_subdir}/${module}/Makefile
9944 # We only bootstrap target libraries listed in bootstrap_target_libs.
9945 case $bootstrap_target_libs in
9946 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9947 *) target_bootstrap_suffix
=no-bootstrap
;;
9950 extrasub_target
="$extrasub_target
9951 /^@if target-$module\$/d
9952 /^@endif target-$module\$/d
9953 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9954 /^@if target-$module-$target_bootstrap_suffix\$/d
9955 /^@endif target-$module-$target_bootstrap_suffix\$/d
9956 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9959 # Do the final fixup along with target modules.
9960 extrasub_target
="$extrasub_target
9965 if test "$enable_pgo_build" != "no"; then
9966 extrasub_build
="$extrasub_build
9968 /^@endif pgo-build\$/d"
9971 # Create the serialization dependencies. This uses a temporary file.
9973 # Check whether --enable-serial-configure was given.
9974 if test "${enable_serial_configure+set}" = set; then :
9975 enableval
=$enable_serial_configure;
9979 case ${enable_serial_configure} in
9981 enable_serial_build_configure
=yes
9982 enable_serial_host_configure
=yes
9983 enable_serial_target_configure
=yes
9987 # These force 'configure's to be done one at a time, to avoid problems
9988 # with contention over a shared config.cache.
9990 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
9991 echo '# serdep.tmp' > serdep.tmp
9994 test "x${enable_serial_build_configure}" = xyes
&&
9995 for item
in ${build_configdirs} ; do
9998 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10003 test "x${enable_serial_host_configure}" = xyes
&&
10004 for item
in ${configdirs} ; do
10007 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10012 test "x${enable_serial_target_configure}" = xyes
&&
10013 for item
in ${target_configdirs} ; do
10016 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10020 serialization_dependencies
=serdep.tmp
10023 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10024 # target, nonopt, and variable assignments. These are the ones we
10025 # might not want to pass down to subconfigures. The exception being
10026 # --cache-file=/dev/null, which is used to turn off the use of cache
10027 # files altogether, and which should be passed on to subconfigures.
10028 # Also strip program-prefix, program-suffix, and program-transform-name,
10029 # so that we can pass down a consistent program-transform-name.
10034 eval "set -- $ac_configure_args"
10037 if test X
"$skip_next" = X
"yes"; then
10041 if test X
"$keep_next" = X
"yes"; then
10044 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10046 baseargs
="$baseargs '$ac_arg'"
10047 tbaseargs
="$tbaseargs '$ac_arg'"
10052 # Handle separated arguments. Based on the logic generated by
10055 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10056 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10057 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10058 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10072 --with-* |
--without-*)
10073 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10077 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10080 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10089 mpc | mpfr | gmp | isl
)
10090 # If we're processing --with-$lib, --with-$lib-include or
10091 # --with-$lib-lib, for one of the libs above, and target is
10092 # different from host, don't pass the current argument to any
10093 # target library's configure.
10094 if test x
$is_cross_compiler = xyes
; then
10103 --cache-file=/dev
/null | \
10104 -cache-file=/dev
/null
)
10105 # Handled here to avoid the test to skip args below.
10106 baseargs
="$baseargs '$ac_arg'"
10107 tbaseargs
="$tbaseargs '$ac_arg'"
10108 # Assert: $separate_arg should always be no.
10109 keep_next
=$separate_arg
10125 -program-prefix* | \
10126 -program-suffix* | \
10127 -program-transform-name* )
10128 skip_next
=$separate_arg
10132 # An option. Add it.
10135 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10137 baseargs
="$baseargs '$ac_arg'"
10138 if test X
"$skip_targ" = Xno
; then
10139 tbaseargs
="$tbaseargs '$ac_arg'"
10141 keep_next
=$separate_arg
10144 # Either a variable assignment, or a nonopt (triplet). Don't
10145 # pass it down; let the Makefile handle this.
10150 # Remove the initial space we just introduced and, as these will be
10151 # expanded by make, quote '$'.
10152 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10154 # Add in --program-transform-name, after --program-prefix and
10155 # --program-suffix have been applied to it. Autoconf has already
10156 # doubled dollar signs and backslashes in program_transform_name; we want
10157 # the backslashes un-doubled, and then the entire thing wrapped in single
10158 # quotes, because this will be expanded first by make and then by the shell.
10159 # Also, because we want to override the logic in subdir configure scripts to
10160 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10161 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10162 ${program_transform_name}
10164 gcc_transform_name
=`cat conftestsed.out`
10165 rm -f conftestsed.out
10166 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10167 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10168 if test "$silent" = yes; then
10169 baseargs
="$baseargs --silent"
10170 tbaseargs
="$tbaseargs --silent"
10172 baseargs
="$baseargs --disable-option-checking"
10173 tbaseargs
="$tbaseargs --disable-option-checking"
10175 # Record and document user additions to sub configure arguments.
10180 # For the build-side libraries, we just need to pretend we're native,
10181 # and not use the same cache file. Multilibs are neither needed nor
10182 # desired. We can't even use the same cache file for all build-side
10183 # libraries, as they're compiled differently; some with C, some with
10184 # C++ or with different feature-enabling options.
10185 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10187 # For host modules, accept cache file option, or specification as blank.
10188 case "${cache_file}" in
10190 cache_file_option
="" ;;
10191 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10192 cache_file_option
="--cache-file=${cache_file}" ;;
10194 cache_file_option
="--cache-file=../${cache_file}" ;;
10197 # Host dirs don't like to share a cache file either, horribly enough.
10198 # This seems to be due to autoconf 2.5x stupidity.
10199 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10201 target_configargs
="$target_configargs ${tbaseargs}"
10203 # Passing a --with-cross-host argument lets the target libraries know
10204 # whether they are being built with a cross-compiler or being built
10205 # native. However, it would be better to use other mechanisms to make the
10206 # sorts of decisions they want to make on this basis. Please consider
10207 # this option to be deprecated. FIXME.
10208 if test x
${is_cross_compiler} = xyes
; then
10209 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10212 # Special user-friendly check for native x86_64-linux build, if
10213 # multilib is not explicitly enabled.
10214 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10215 x86_64-
*linux
*:yes:$build:$build:)
10216 # Make sure we have a development environment that handles 32-bit
10218 echo "int main () { return 0; }" > conftest.c
10219 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10220 if test $?
= 0 ; then
10221 if test -s conftest ||
test -s conftest.exe
; then
10226 if test x
${dev64} != xyes
; then
10227 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
10232 # Default to --enable-multilib.
10233 if test x
${enable_multilib} = x
; then
10234 target_configargs
="--enable-multilib ${target_configargs}"
10237 # Pass --with-newlib if appropriate. Note that target_configdirs has
10238 # changed from the earlier setting of with_newlib.
10239 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10240 target_configargs
="--with-newlib ${target_configargs}"
10243 # Different target subdirs use different values of certain variables
10244 # (notably CXX). Worse, multilibs use *lots* of different values.
10245 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10246 # it doesn't automatically accept command-line overrides of them.
10247 # This means it's not safe for target subdirs to share a cache file,
10248 # which is disgusting, but there you have it. Hopefully this can be
10249 # fixed in future. It's still worthwhile to use a cache file for each
10250 # directory. I think.
10252 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10253 # We need to pass --target, as newer autoconf's requires consistency
10254 # for target_alias and gcc doesn't manage it consistently.
10255 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10258 case " $target_configdirs " in
10260 case " $target_configargs " in
10261 *" --with-newlib "*)
10264 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10268 # If we're not building GCC, don't discard standard headers.
10269 if test -d ${srcdir}/gcc
; then
10270 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10272 if test "${build}" != "${host}"; then
10273 # On Canadian crosses, CC_FOR_TARGET will have already been set
10274 # by `configure', so we won't have an opportunity to add -Bgcc/
10275 # to it. This is right: we don't want to search that directory
10276 # for binaries, but we want the header files in there, so add
10278 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10280 # Someone might think of using the pre-installed headers on
10281 # Canadian crosses, in case the installed compiler is not fully
10282 # compatible with the compiler being built. In this case, it
10283 # would be better to flag an error than risking having
10284 # incompatible object files being constructed. We can't
10285 # guarantee that an error will be flagged, but let's hope the
10286 # compiler will do it, when presented with incompatible header
10291 case "${target}-${is_cross_compiler}" in
10292 i
[3456789]86-*-linux*-no)
10293 # Here host == target, so we don't need to build gcc,
10294 # so we don't want to discard standard headers.
10295 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10298 # If we're building newlib, use its generic headers last, but search
10299 # for any libc-related directories first (so make it the last -B
10301 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10303 # If we're building libgloss, find the startup file, simulator library
10304 # and linker script.
10305 case " $target_configdirs " in
10307 # Look for startup file, simulator library and maybe linker script.
10308 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10309 # Look for libnosys.a in case the target needs it.
10310 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10311 # Most targets have the linker script in the source directory.
10312 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10323 x86_64-
*mingw
* |
*-w64-mingw*)
10324 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10325 # however, use a symlink named 'mingw' in ${prefix} .
10326 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10329 # MinGW can't be handled as Cygwin above since it does not use newlib.
10330 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'
10334 # Allow the user to override the flags for
10335 # our build compiler if desired.
10336 if test x
"${build}" = x
"${host}" ; then
10337 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10338 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10339 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10340 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10343 # On Canadian crosses, we'll be searching the right directories for
10344 # the previously-installed cross compiler, so don't bother to add
10345 # flags for directories within the install tree of the compiler
10346 # being built; programs in there won't even run.
10347 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10348 # Search for pre-installed headers if nothing else fits.
10349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10352 if test "x
${use_gnu_ld}" = x &&
10353 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10354 # Arrange for us to find uninstalled linker scripts.
10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10358 # Search for other target-specific linker scripts and such.
10359 case "${target}" in
10361 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10363 # The VxWorks support for shared libraries is getting in
10364 # incrementally. Make sure it doesn't get activated implicitly:
10366 if test "${enable_shared-unset}" = unset ; then
10368 # So the build of libraries knows ...
10369 target_configargs="${target_configargs} --disable-shared"
10371 host_configargs="${host_configargs} --disable-shared"
10376 # Makefile fragments.
10377 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10379 eval fragval=\$$frag
10380 if test $fragval != /dev/null; then
10381 eval $frag=${srcdir}/$fragval
10389 # Miscellanea: directories, flags, etc.
10398 # Build module lists & subconfigure args.
10402 # Host module lists & subconfigure args.
10407 # Target module lists & subconfigure args.
10432 # Generate default definitions for YACC, M4, LEX and other programs that run
10433 # on the build machine. These are used if the Makefile can't locate these
10434 # programs in objdir.
10435 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10437 for ac_prog in 'bison -y' byacc yacc
10439 # Extract the first word of "$ac_prog", so it can be a program name with args.
10440 set dummy $ac_prog; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10442 $as_echo_n "checking
for $ac_word...
" >&6; }
10443 if ${ac_cv_prog_YACC+:} false; then :
10444 $as_echo_n "(cached
) " >&6
10446 if test -n "$YACC"; then
10447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_YACC="$ac_prog"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10466 YACC=$ac_cv_prog_YACC
10467 if test -n "$YACC"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10469 $as_echo "$YACC" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10472 $as_echo "no
" >&6; }
10476 test -n "$YACC" && break
10478 test -n "$YACC" || YACC="$MISSING bison
-y"
10480 case " $build_configdirs " in
10481 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10484 for ac_prog in bison
10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
10487 set dummy $ac_prog; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10489 $as_echo_n "checking
for $ac_word...
" >&6; }
10490 if ${ac_cv_prog_BISON+:} false; then :
10491 $as_echo_n "(cached
) " >&6
10493 if test -n "$BISON"; then
10494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_BISON="$ac_prog"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10513 BISON=$ac_cv_prog_BISON
10514 if test -n "$BISON"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10516 $as_echo "$BISON" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10519 $as_echo "no
" >&6; }
10523 test -n "$BISON" && break
10525 test -n "$BISON" || BISON="$MISSING bison
"
10527 case " $build_configdirs " in
10528 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10531 for ac_prog in gm4 gnum4 m4
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10536 $as_echo_n "checking
for $ac_word...
" >&6; }
10537 if ${ac_cv_prog_M4+:} false; then :
10538 $as_echo_n "(cached
) " >&6
10540 if test -n "$M4"; then
10541 ac_cv_prog_M4="$M4" # Let the user override the test.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_M4="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10561 if test -n "$M4"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10563 $as_echo "$M4" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10566 $as_echo "no
" >&6; }
10570 test -n "$M4" && break
10572 test -n "$M4" || M4="$MISSING m4"
10574 case " $build_configdirs " in
10575 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10578 for ac_prog in flex lex
10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
10581 set dummy $ac_prog; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10583 $as_echo_n "checking
for $ac_word...
" >&6; }
10584 if ${ac_cv_prog_LEX+:} false; then :
10585 $as_echo_n "(cached
) " >&6
10587 if test -n "$LEX"; then
10588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_LEX="$ac_prog"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10607 LEX=$ac_cv_prog_LEX
10608 if test -n "$LEX"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10610 $as_echo "$LEX" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10613 $as_echo "no
" >&6; }
10617 test -n "$LEX" && break
10619 test -n "$LEX" || LEX="$MISSING flex
"
10621 case " $build_configdirs " in
10622 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10623 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10626 for ac_prog in flex
10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
10629 set dummy $ac_prog; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10631 $as_echo_n "checking
for $ac_word...
" >&6; }
10632 if ${ac_cv_prog_FLEX+:} false; then :
10633 $as_echo_n "(cached
) " >&6
10635 if test -n "$FLEX"; then
10636 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_FLEX="$ac_prog"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10655 FLEX=$ac_cv_prog_FLEX
10656 if test -n "$FLEX"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10658 $as_echo "$FLEX" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10661 $as_echo "no
" >&6; }
10665 test -n "$FLEX" && break
10667 test -n "$FLEX" || FLEX="$MISSING flex
"
10669 case " $build_configdirs " in
10670 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10673 for ac_prog in makeinfo
10675 # Extract the first word of "$ac_prog", so it can be a program name with args.
10676 set dummy $ac_prog; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10678 $as_echo_n "checking
for $ac_word...
" >&6; }
10679 if ${ac_cv_prog_MAKEINFO+:} false; then :
10680 $as_echo_n "(cached
) " >&6
10682 if test -n "$MAKEINFO"; then
10683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_MAKEINFO="$ac_prog"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10702 MAKEINFO=$ac_cv_prog_MAKEINFO
10703 if test -n "$MAKEINFO"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10705 $as_echo "$MAKEINFO" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10708 $as_echo "no
" >&6; }
10712 test -n "$MAKEINFO" && break
10714 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10716 case " $build_configdirs " in
10717 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10720 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10721 # higher, else we use the "missing
" dummy.
10722 if ${MAKEINFO} --version \
10723 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10726 MAKEINFO="$MISSING makeinfo
"
10732 # FIXME: expect and dejagnu may become build tools?
10734 for ac_prog in expect
10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
10737 set dummy $ac_prog; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10739 $as_echo_n "checking
for $ac_word...
" >&6; }
10740 if ${ac_cv_prog_EXPECT+:} false; then :
10741 $as_echo_n "(cached
) " >&6
10743 if test -n "$EXPECT"; then
10744 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10753 ac_cv_prog_EXPECT="$ac_prog"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10763 EXPECT=$ac_cv_prog_EXPECT
10764 if test -n "$EXPECT"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10766 $as_echo "$EXPECT" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10769 $as_echo "no
" >&6; }
10773 test -n "$EXPECT" && break
10775 test -n "$EXPECT" || EXPECT="expect
"
10777 case " $configdirs " in
10779 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10783 for ac_prog in runtest
10785 # Extract the first word of "$ac_prog", so it can be a program name with args.
10786 set dummy $ac_prog; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10788 $as_echo_n "checking
for $ac_word...
" >&6; }
10789 if ${ac_cv_prog_RUNTEST+:} false; then :
10790 $as_echo_n "(cached
) " >&6
10792 if test -n "$RUNTEST"; then
10793 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_RUNTEST="$ac_prog"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10812 RUNTEST=$ac_cv_prog_RUNTEST
10813 if test -n "$RUNTEST"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10815 $as_echo "$RUNTEST" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10818 $as_echo "no
" >&6; }
10822 test -n "$RUNTEST" && break
10824 test -n "$RUNTEST" || RUNTEST="runtest
"
10826 case " $configdirs " in
10828 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10835 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10836 ncn_target_tool_prefix=
10837 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10841 if test -n "$AR"; then
10843 elif test -n "$ac_cv_prog_AR"; then
10847 if test -n "$ac_cv_prog_AR"; then
10848 for ncn_progname in ar; do
10849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10852 $as_echo_n "checking
for $ac_word...
" >&6; }
10853 if ${ac_cv_prog_AR+:} false; then :
10854 $as_echo_n "(cached
) " >&6
10856 if test -n "$AR"; then
10857 ac_cv_prog_AR="$AR" # Let the user override the test.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_prog_AR="${ncn_progname}"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10877 if test -n "$AR"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10879 $as_echo "$AR" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10882 $as_echo "no
" >&6; }
10889 for ncn_progname in ar; do
10890 if test -n "$ncn_tool_prefix"; then
10891 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10894 $as_echo_n "checking
for $ac_word...
" >&6; }
10895 if ${ac_cv_prog_AR+:} false; then :
10896 $as_echo_n "(cached
) " >&6
10898 if test -n "$AR"; then
10899 ac_cv_prog_AR="$AR" # Let the user override the test.
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10919 if test -n "$AR"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10921 $as_echo "$AR" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10924 $as_echo "no
" >&6; }
10929 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10933 $as_echo_n "checking
for $ac_word...
" >&6; }
10934 if ${ac_cv_prog_AR+:} false; then :
10935 $as_echo_n "(cached
) " >&6
10937 if test -n "$AR"; then
10938 ac_cv_prog_AR="$AR" # Let the user override the test.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_AR="${ncn_progname}"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10958 if test -n "$AR"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10960 $as_echo "$AR" >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10963 $as_echo "no
" >&6; }
10968 test -n "$ac_cv_prog_AR" && break
10971 if test -z "$ac_cv_prog_AR" ; then
10973 if test $build = $host ; then
10976 AR="${ncn_tool_prefix}$2"
10982 if test -n "$AS"; then
10984 elif test -n "$ac_cv_prog_AS"; then
10988 if test -n "$ac_cv_prog_AS"; then
10989 for ncn_progname in as; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10993 $as_echo_n "checking
for $ac_word...
" >&6; }
10994 if ${ac_cv_prog_AS+:} false; then :
10995 $as_echo_n "(cached
) " >&6
10997 if test -n "$AS"; then
10998 ac_cv_prog_AS="$AS" # Let the user override the test.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_AS="${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11018 if test -n "$AS"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11020 $as_echo "$AS" >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11023 $as_echo "no
" >&6; }
11030 for ncn_progname in as; do
11031 if test -n "$ncn_tool_prefix"; then
11032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11035 $as_echo_n "checking
for $ac_word...
" >&6; }
11036 if ${ac_cv_prog_AS+:} false; then :
11037 $as_echo_n "(cached
) " >&6
11039 if test -n "$AS"; then
11040 ac_cv_prog_AS="$AS" # Let the user override the test.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11060 if test -n "$AS"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11062 $as_echo "$AS" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11065 $as_echo "no
" >&6; }
11070 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072 set dummy ${ncn_progname}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11074 $as_echo_n "checking
for $ac_word...
" >&6; }
11075 if ${ac_cv_prog_AS+:} false; then :
11076 $as_echo_n "(cached
) " >&6
11078 if test -n "$AS"; then
11079 ac_cv_prog_AS="$AS" # Let the user override the test.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_AS="${ncn_progname}"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11099 if test -n "$AS"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11101 $as_echo "$AS" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11104 $as_echo "no
" >&6; }
11109 test -n "$ac_cv_prog_AS" && break
11112 if test -z "$ac_cv_prog_AS" ; then
11114 if test $build = $host ; then
11117 AS="${ncn_tool_prefix}$2"
11123 if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL=$DLLTOOL
11125 elif test -n "$ac_cv_prog_DLLTOOL"; then
11126 DLLTOOL=$ac_cv_prog_DLLTOOL
11129 if test -n "$ac_cv_prog_DLLTOOL"; then
11130 for ncn_progname in dlltool; do
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11132 set dummy ${ncn_progname}; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11134 $as_echo_n "checking
for $ac_word...
" >&6; }
11135 if ${ac_cv_prog_DLLTOOL+:} false; then :
11136 $as_echo_n "(cached
) " >&6
11138 if test -n "$DLLTOOL"; then
11139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_DLLTOOL="${ncn_progname}"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11158 DLLTOOL=$ac_cv_prog_DLLTOOL
11159 if test -n "$DLLTOOL"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11161 $as_echo "$DLLTOOL" >&6; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11164 $as_echo "no
" >&6; }
11171 for ncn_progname in dlltool; do
11172 if test -n "$ncn_tool_prefix"; then
11173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11176 $as_echo_n "checking
for $ac_word...
" >&6; }
11177 if ${ac_cv_prog_DLLTOOL+:} false; then :
11178 $as_echo_n "(cached
) " >&6
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11200 DLLTOOL=$ac_cv_prog_DLLTOOL
11201 if test -n "$DLLTOOL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11203 $as_echo "$DLLTOOL" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11206 $as_echo "no
" >&6; }
11211 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11215 $as_echo_n "checking
for $ac_word...
" >&6; }
11216 if ${ac_cv_prog_DLLTOOL+:} false; then :
11217 $as_echo_n "(cached
) " >&6
11219 if test -n "$DLLTOOL"; then
11220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_prog_DLLTOOL="${ncn_progname}"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11239 DLLTOOL=$ac_cv_prog_DLLTOOL
11240 if test -n "$DLLTOOL"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11242 $as_echo "$DLLTOOL" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11245 $as_echo "no
" >&6; }
11250 test -n "$ac_cv_prog_DLLTOOL" && break
11253 if test -z "$ac_cv_prog_DLLTOOL" ; then
11255 if test $build = $host ; then
11258 DLLTOOL="${ncn_tool_prefix}$2"
11264 if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11266 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11270 if test -n "$ac_cv_prog_DSYMUTIL"; then
11271 for ncn_progname in dsymutil; do
11272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11275 $as_echo_n "checking
for $ac_word...
" >&6; }
11276 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11277 $as_echo_n "(cached
) " >&6
11279 if test -n "$DSYMUTIL"; then
11280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11299 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11300 if test -n "$DSYMUTIL"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11302 $as_echo "$DSYMUTIL" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11305 $as_echo "no
" >&6; }
11312 for ncn_progname in dsymutil; do
11313 if test -n "$ncn_tool_prefix"; then
11314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11317 $as_echo_n "checking
for $ac_word...
" >&6; }
11318 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11319 $as_echo_n "(cached
) " >&6
11321 if test -n "$DSYMUTIL"; then
11322 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11341 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11342 if test -n "$DSYMUTIL"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11344 $as_echo "$DSYMUTIL" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11347 $as_echo "no
" >&6; }
11352 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11356 $as_echo_n "checking
for $ac_word...
" >&6; }
11357 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11358 $as_echo_n "(cached
) " >&6
11360 if test -n "$DSYMUTIL"; then
11361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381 if test -n "$DSYMUTIL"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11383 $as_echo "$DSYMUTIL" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11386 $as_echo "no
" >&6; }
11391 test -n "$ac_cv_prog_DSYMUTIL" && break
11394 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11396 if test $build = $host ; then
11399 DSYMUTIL="${ncn_tool_prefix}$2"
11405 if test -n "$LD"; then
11407 elif test -n "$ac_cv_prog_LD"; then
11411 if test -n "$ac_cv_prog_LD"; then
11412 for ncn_progname in ld; do
11413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11414 set dummy ${ncn_progname}; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11416 $as_echo_n "checking
for $ac_word...
" >&6; }
11417 if ${ac_cv_prog_LD+:} false; then :
11418 $as_echo_n "(cached
) " >&6
11420 if test -n "$LD"; then
11421 ac_cv_prog_LD="$LD" # Let the user override the test.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_LD="${ncn_progname}"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11441 if test -n "$LD"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11443 $as_echo "$LD" >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11446 $as_echo "no
" >&6; }
11453 for ncn_progname in ld; do
11454 if test -n "$ncn_tool_prefix"; then
11455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11458 $as_echo_n "checking
for $ac_word...
" >&6; }
11459 if ${ac_cv_prog_LD+:} false; then :
11460 $as_echo_n "(cached
) " >&6
11462 if test -n "$LD"; then
11463 ac_cv_prog_LD="$LD" # Let the user override the test.
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11483 if test -n "$LD"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11485 $as_echo "$LD" >&6; }
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11488 $as_echo "no
" >&6; }
11493 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11497 $as_echo_n "checking
for $ac_word...
" >&6; }
11498 if ${ac_cv_prog_LD+:} false; then :
11499 $as_echo_n "(cached
) " >&6
11501 if test -n "$LD"; then
11502 ac_cv_prog_LD="$LD" # Let the user override the test.
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_prog_LD="${ncn_progname}"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11522 if test -n "$LD"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11524 $as_echo "$LD" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11527 $as_echo "no
" >&6; }
11532 test -n "$ac_cv_prog_LD" && break
11535 if test -z "$ac_cv_prog_LD" ; then
11537 if test $build = $host ; then
11540 LD="${ncn_tool_prefix}$2"
11546 if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO=$LIPO
11548 elif test -n "$ac_cv_prog_LIPO"; then
11549 LIPO=$ac_cv_prog_LIPO
11552 if test -n "$ac_cv_prog_LIPO"; then
11553 for ncn_progname in lipo; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11557 $as_echo_n "checking
for $ac_word...
" >&6; }
11558 if ${ac_cv_prog_LIPO+:} false; then :
11559 $as_echo_n "(cached
) " >&6
11561 if test -n "$LIPO"; then
11562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_LIPO="${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11581 LIPO=$ac_cv_prog_LIPO
11582 if test -n "$LIPO"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11584 $as_echo "$LIPO" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11587 $as_echo "no
" >&6; }
11594 for ncn_progname in lipo; do
11595 if test -n "$ncn_tool_prefix"; then
11596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11599 $as_echo_n "checking
for $ac_word...
" >&6; }
11600 if ${ac_cv_prog_LIPO+:} false; then :
11601 $as_echo_n "(cached
) " >&6
11603 if test -n "$LIPO"; then
11604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11623 LIPO=$ac_cv_prog_LIPO
11624 if test -n "$LIPO"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11626 $as_echo "$LIPO" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11629 $as_echo "no
" >&6; }
11634 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11638 $as_echo_n "checking
for $ac_word...
" >&6; }
11639 if ${ac_cv_prog_LIPO+:} false; then :
11640 $as_echo_n "(cached
) " >&6
11642 if test -n "$LIPO"; then
11643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_LIPO="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11662 LIPO=$ac_cv_prog_LIPO
11663 if test -n "$LIPO"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11665 $as_echo "$LIPO" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11668 $as_echo "no
" >&6; }
11673 test -n "$ac_cv_prog_LIPO" && break
11676 if test -z "$ac_cv_prog_LIPO" ; then
11678 if test $build = $host ; then
11681 LIPO="${ncn_tool_prefix}$2"
11687 if test -n "$NM"; then
11689 elif test -n "$ac_cv_prog_NM"; then
11693 if test -n "$ac_cv_prog_NM"; then
11694 for ncn_progname in nm; do
11695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11696 set dummy ${ncn_progname}; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11698 $as_echo_n "checking
for $ac_word...
" >&6; }
11699 if ${ac_cv_prog_NM+:} false; then :
11700 $as_echo_n "(cached
) " >&6
11702 if test -n "$NM"; then
11703 ac_cv_prog_NM="$NM" # Let the user override the test.
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_NM="${ncn_progname}"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11723 if test -n "$NM"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11725 $as_echo "$NM" >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11728 $as_echo "no
" >&6; }
11735 for ncn_progname in nm; do
11736 if test -n "$ncn_tool_prefix"; then
11737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11740 $as_echo_n "checking
for $ac_word...
" >&6; }
11741 if ${ac_cv_prog_NM+:} false; then :
11742 $as_echo_n "(cached
) " >&6
11744 if test -n "$NM"; then
11745 ac_cv_prog_NM="$NM" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11765 if test -n "$NM"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11767 $as_echo "$NM" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11770 $as_echo "no
" >&6; }
11775 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11779 $as_echo_n "checking
for $ac_word...
" >&6; }
11780 if ${ac_cv_prog_NM+:} false; then :
11781 $as_echo_n "(cached
) " >&6
11783 if test -n "$NM"; then
11784 ac_cv_prog_NM="$NM" # Let the user override the test.
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_NM="${ncn_progname}"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11804 if test -n "$NM"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11806 $as_echo "$NM" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11809 $as_echo "no
" >&6; }
11814 test -n "$ac_cv_prog_NM" && break
11817 if test -z "$ac_cv_prog_NM" ; then
11819 if test $build = $host ; then
11822 NM="${ncn_tool_prefix}$2"
11828 if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB=$RANLIB
11830 elif test -n "$ac_cv_prog_RANLIB"; then
11831 RANLIB=$ac_cv_prog_RANLIB
11834 if test -n "$ac_cv_prog_RANLIB"; then
11835 for ncn_progname in ranlib; do
11836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11837 set dummy ${ncn_progname}; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11839 $as_echo_n "checking
for $ac_word...
" >&6; }
11840 if ${ac_cv_prog_RANLIB+:} false; then :
11841 $as_echo_n "(cached
) " >&6
11843 if test -n "$RANLIB"; then
11844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_RANLIB="${ncn_progname}"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11863 RANLIB=$ac_cv_prog_RANLIB
11864 if test -n "$RANLIB"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11866 $as_echo "$RANLIB" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11869 $as_echo "no
" >&6; }
11876 for ncn_progname in ranlib; do
11877 if test -n "$ncn_tool_prefix"; then
11878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11881 $as_echo_n "checking
for $ac_word...
" >&6; }
11882 if ${ac_cv_prog_RANLIB+:} false; then :
11883 $as_echo_n "(cached
) " >&6
11885 if test -n "$RANLIB"; then
11886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11905 RANLIB=$ac_cv_prog_RANLIB
11906 if test -n "$RANLIB"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11908 $as_echo "$RANLIB" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11911 $as_echo "no
" >&6; }
11916 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11920 $as_echo_n "checking
for $ac_word...
" >&6; }
11921 if ${ac_cv_prog_RANLIB+:} false; then :
11922 $as_echo_n "(cached
) " >&6
11924 if test -n "$RANLIB"; then
11925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_prog_RANLIB="${ncn_progname}"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11944 RANLIB=$ac_cv_prog_RANLIB
11945 if test -n "$RANLIB"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11947 $as_echo "$RANLIB" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11950 $as_echo "no
" >&6; }
11955 test -n "$ac_cv_prog_RANLIB" && break
11958 if test -z "$ac_cv_prog_RANLIB" ; then
11964 if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP=$STRIP
11966 elif test -n "$ac_cv_prog_STRIP"; then
11967 STRIP=$ac_cv_prog_STRIP
11970 if test -n "$ac_cv_prog_STRIP"; then
11971 for ncn_progname in strip; do
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11973 set dummy ${ncn_progname}; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11975 $as_echo_n "checking
for $ac_word...
" >&6; }
11976 if ${ac_cv_prog_STRIP+:} false; then :
11977 $as_echo_n "(cached
) " >&6
11979 if test -n "$STRIP"; then
11980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_prog_STRIP="${ncn_progname}"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11999 STRIP=$ac_cv_prog_STRIP
12000 if test -n "$STRIP"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12002 $as_echo "$STRIP" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12005 $as_echo "no
" >&6; }
12012 for ncn_progname in strip; do
12013 if test -n "$ncn_tool_prefix"; then
12014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12017 $as_echo_n "checking
for $ac_word...
" >&6; }
12018 if ${ac_cv_prog_STRIP+:} false; then :
12019 $as_echo_n "(cached
) " >&6
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12041 STRIP=$ac_cv_prog_STRIP
12042 if test -n "$STRIP"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12044 $as_echo "$STRIP" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12047 $as_echo "no
" >&6; }
12052 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12056 $as_echo_n "checking
for $ac_word...
" >&6; }
12057 if ${ac_cv_prog_STRIP+:} false; then :
12058 $as_echo_n "(cached
) " >&6
12060 if test -n "$STRIP"; then
12061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_STRIP="${ncn_progname}"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12080 STRIP=$ac_cv_prog_STRIP
12081 if test -n "$STRIP"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12083 $as_echo "$STRIP" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12086 $as_echo "no
" >&6; }
12091 test -n "$ac_cv_prog_STRIP" && break
12094 if test -z "$ac_cv_prog_STRIP" ; then
12100 if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES=$WINDRES
12102 elif test -n "$ac_cv_prog_WINDRES"; then
12103 WINDRES=$ac_cv_prog_WINDRES
12106 if test -n "$ac_cv_prog_WINDRES"; then
12107 for ncn_progname in windres; do
12108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12109 set dummy ${ncn_progname}; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12111 $as_echo_n "checking
for $ac_word...
" >&6; }
12112 if ${ac_cv_prog_WINDRES+:} false; then :
12113 $as_echo_n "(cached
) " >&6
12115 if test -n "$WINDRES"; then
12116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12125 ac_cv_prog_WINDRES="${ncn_progname}"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12135 WINDRES=$ac_cv_prog_WINDRES
12136 if test -n "$WINDRES"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12138 $as_echo "$WINDRES" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12141 $as_echo "no
" >&6; }
12148 for ncn_progname in windres; do
12149 if test -n "$ncn_tool_prefix"; then
12150 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12153 $as_echo_n "checking
for $ac_word...
" >&6; }
12154 if ${ac_cv_prog_WINDRES+:} false; then :
12155 $as_echo_n "(cached
) " >&6
12157 if test -n "$WINDRES"; then
12158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12177 WINDRES=$ac_cv_prog_WINDRES
12178 if test -n "$WINDRES"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12180 $as_echo "$WINDRES" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12183 $as_echo "no
" >&6; }
12188 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190 set dummy ${ncn_progname}; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12192 $as_echo_n "checking
for $ac_word...
" >&6; }
12193 if ${ac_cv_prog_WINDRES+:} false; then :
12194 $as_echo_n "(cached
) " >&6
12196 if test -n "$WINDRES"; then
12197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_WINDRES="${ncn_progname}"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12216 WINDRES=$ac_cv_prog_WINDRES
12217 if test -n "$WINDRES"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12219 $as_echo "$WINDRES" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12222 $as_echo "no
" >&6; }
12227 test -n "$ac_cv_prog_WINDRES" && break
12230 if test -z "$ac_cv_prog_WINDRES" ; then
12232 if test $build = $host ; then
12235 WINDRES="${ncn_tool_prefix}$2"
12241 if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC=$WINDMC
12243 elif test -n "$ac_cv_prog_WINDMC"; then
12244 WINDMC=$ac_cv_prog_WINDMC
12247 if test -n "$ac_cv_prog_WINDMC"; then
12248 for ncn_progname in windmc; do
12249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250 set dummy ${ncn_progname}; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12252 $as_echo_n "checking
for $ac_word...
" >&6; }
12253 if ${ac_cv_prog_WINDMC+:} false; then :
12254 $as_echo_n "(cached
) " >&6
12256 if test -n "$WINDMC"; then
12257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_prog_WINDMC="${ncn_progname}"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12276 WINDMC=$ac_cv_prog_WINDMC
12277 if test -n "$WINDMC"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12279 $as_echo "$WINDMC" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12282 $as_echo "no
" >&6; }
12289 for ncn_progname in windmc; do
12290 if test -n "$ncn_tool_prefix"; then
12291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12292 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12294 $as_echo_n "checking
for $ac_word...
" >&6; }
12295 if ${ac_cv_prog_WINDMC+:} false; then :
12296 $as_echo_n "(cached
) " >&6
12298 if test -n "$WINDMC"; then
12299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12318 WINDMC=$ac_cv_prog_WINDMC
12319 if test -n "$WINDMC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12321 $as_echo "$WINDMC" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12324 $as_echo "no
" >&6; }
12329 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12333 $as_echo_n "checking
for $ac_word...
" >&6; }
12334 if ${ac_cv_prog_WINDMC+:} false; then :
12335 $as_echo_n "(cached
) " >&6
12337 if test -n "$WINDMC"; then
12338 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_WINDMC="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12357 WINDMC=$ac_cv_prog_WINDMC
12358 if test -n "$WINDMC"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12360 $as_echo "$WINDMC" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12363 $as_echo "no
" >&6; }
12368 test -n "$ac_cv_prog_WINDMC" && break
12371 if test -z "$ac_cv_prog_WINDMC" ; then
12373 if test $build = $host ; then
12376 WINDMC="${ncn_tool_prefix}$2"
12382 if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY=$OBJCOPY
12384 elif test -n "$ac_cv_prog_OBJCOPY"; then
12385 OBJCOPY=$ac_cv_prog_OBJCOPY
12388 if test -n "$ac_cv_prog_OBJCOPY"; then
12389 for ncn_progname in objcopy; do
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12391 set dummy ${ncn_progname}; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12393 $as_echo_n "checking
for $ac_word...
" >&6; }
12394 if ${ac_cv_prog_OBJCOPY+:} false; then :
12395 $as_echo_n "(cached
) " >&6
12397 if test -n "$OBJCOPY"; then
12398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_prog_OBJCOPY="${ncn_progname}"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12417 OBJCOPY=$ac_cv_prog_OBJCOPY
12418 if test -n "$OBJCOPY"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12420 $as_echo "$OBJCOPY" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12423 $as_echo "no
" >&6; }
12430 for ncn_progname in objcopy; do
12431 if test -n "$ncn_tool_prefix"; then
12432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12433 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12435 $as_echo_n "checking
for $ac_word...
" >&6; }
12436 if ${ac_cv_prog_OBJCOPY+:} false; then :
12437 $as_echo_n "(cached
) " >&6
12439 if test -n "$OBJCOPY"; then
12440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12459 OBJCOPY=$ac_cv_prog_OBJCOPY
12460 if test -n "$OBJCOPY"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12462 $as_echo "$OBJCOPY" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12465 $as_echo "no
" >&6; }
12470 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472 set dummy ${ncn_progname}; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12474 $as_echo_n "checking
for $ac_word...
" >&6; }
12475 if ${ac_cv_prog_OBJCOPY+:} false; then :
12476 $as_echo_n "(cached
) " >&6
12478 if test -n "$OBJCOPY"; then
12479 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_prog_OBJCOPY="${ncn_progname}"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12498 OBJCOPY=$ac_cv_prog_OBJCOPY
12499 if test -n "$OBJCOPY"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12501 $as_echo "$OBJCOPY" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12504 $as_echo "no
" >&6; }
12509 test -n "$ac_cv_prog_OBJCOPY" && break
12512 if test -z "$ac_cv_prog_OBJCOPY" ; then
12514 if test $build = $host ; then
12517 OBJCOPY="${ncn_tool_prefix}$2"
12523 if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP=$OBJDUMP
12525 elif test -n "$ac_cv_prog_OBJDUMP"; then
12526 OBJDUMP=$ac_cv_prog_OBJDUMP
12529 if test -n "$ac_cv_prog_OBJDUMP"; then
12530 for ncn_progname in objdump; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12534 $as_echo_n "checking
for $ac_word...
" >&6; }
12535 if ${ac_cv_prog_OBJDUMP+:} false; then :
12536 $as_echo_n "(cached
) " >&6
12538 if test -n "$OBJDUMP"; then
12539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_prog_OBJDUMP="${ncn_progname}"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12558 OBJDUMP=$ac_cv_prog_OBJDUMP
12559 if test -n "$OBJDUMP"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12561 $as_echo "$OBJDUMP" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12564 $as_echo "no
" >&6; }
12571 for ncn_progname in objdump; do
12572 if test -n "$ncn_tool_prefix"; then
12573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12576 $as_echo_n "checking
for $ac_word...
" >&6; }
12577 if ${ac_cv_prog_OBJDUMP+:} false; then :
12578 $as_echo_n "(cached
) " >&6
12580 if test -n "$OBJDUMP"; then
12581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12600 OBJDUMP=$ac_cv_prog_OBJDUMP
12601 if test -n "$OBJDUMP"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12603 $as_echo "$OBJDUMP" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12606 $as_echo "no
" >&6; }
12611 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12615 $as_echo_n "checking
for $ac_word...
" >&6; }
12616 if ${ac_cv_prog_OBJDUMP+:} false; then :
12617 $as_echo_n "(cached
) " >&6
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_OBJDUMP="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640 if test -n "$OBJDUMP"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12642 $as_echo "$OBJDUMP" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12645 $as_echo "no
" >&6; }
12650 test -n "$ac_cv_prog_OBJDUMP" && break
12653 if test -z "$ac_cv_prog_OBJDUMP" ; then
12655 if test $build = $host ; then
12658 OBJDUMP="${ncn_tool_prefix}$2"
12664 if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL=$OTOOL
12666 elif test -n "$ac_cv_prog_OTOOL"; then
12667 OTOOL=$ac_cv_prog_OTOOL
12670 if test -n "$ac_cv_prog_OTOOL"; then
12671 for ncn_progname in otool; do
12672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12673 set dummy ${ncn_progname}; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12675 $as_echo_n "checking
for $ac_word...
" >&6; }
12676 if ${ac_cv_prog_OTOOL+:} false; then :
12677 $as_echo_n "(cached
) " >&6
12679 if test -n "$OTOOL"; then
12680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_prog_OTOOL="${ncn_progname}"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12699 OTOOL=$ac_cv_prog_OTOOL
12700 if test -n "$OTOOL"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12702 $as_echo "$OTOOL" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12705 $as_echo "no
" >&6; }
12712 for ncn_progname in otool; do
12713 if test -n "$ncn_tool_prefix"; then
12714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12717 $as_echo_n "checking
for $ac_word...
" >&6; }
12718 if ${ac_cv_prog_OTOOL+:} false; then :
12719 $as_echo_n "(cached
) " >&6
12721 if test -n "$OTOOL"; then
12722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12741 OTOOL=$ac_cv_prog_OTOOL
12742 if test -n "$OTOOL"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12744 $as_echo "$OTOOL" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12747 $as_echo "no
" >&6; }
12752 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12754 set dummy ${ncn_progname}; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12756 $as_echo_n "checking
for $ac_word...
" >&6; }
12757 if ${ac_cv_prog_OTOOL+:} false; then :
12758 $as_echo_n "(cached
) " >&6
12760 if test -n "$OTOOL"; then
12761 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_OTOOL="${ncn_progname}"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12780 OTOOL=$ac_cv_prog_OTOOL
12781 if test -n "$OTOOL"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12783 $as_echo "$OTOOL" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12786 $as_echo "no
" >&6; }
12791 test -n "$ac_cv_prog_OTOOL" && break
12794 if test -z "$ac_cv_prog_OTOOL" ; then
12796 if test $build = $host ; then
12799 OTOOL="${ncn_tool_prefix}$2"
12805 if test -n "$READELF"; then
12806 ac_cv_prog_READELF=$READELF
12807 elif test -n "$ac_cv_prog_READELF"; then
12808 READELF=$ac_cv_prog_READELF
12811 if test -n "$ac_cv_prog_READELF"; then
12812 for ncn_progname in readelf; do
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12816 $as_echo_n "checking
for $ac_word...
" >&6; }
12817 if ${ac_cv_prog_READELF+:} false; then :
12818 $as_echo_n "(cached
) " >&6
12820 if test -n "$READELF"; then
12821 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_prog_READELF="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12840 READELF=$ac_cv_prog_READELF
12841 if test -n "$READELF"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12843 $as_echo "$READELF" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12846 $as_echo "no
" >&6; }
12853 for ncn_progname in readelf; do
12854 if test -n "$ncn_tool_prefix"; then
12855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12858 $as_echo_n "checking
for $ac_word...
" >&6; }
12859 if ${ac_cv_prog_READELF+:} false; then :
12860 $as_echo_n "(cached
) " >&6
12862 if test -n "$READELF"; then
12863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12882 READELF=$ac_cv_prog_READELF
12883 if test -n "$READELF"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12885 $as_echo "$READELF" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12888 $as_echo "no
" >&6; }
12893 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12895 set dummy ${ncn_progname}; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12897 $as_echo_n "checking
for $ac_word...
" >&6; }
12898 if ${ac_cv_prog_READELF+:} false; then :
12899 $as_echo_n "(cached
) " >&6
12901 if test -n "$READELF"; then
12902 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_prog_READELF="${ncn_progname}"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12921 READELF=$ac_cv_prog_READELF
12922 if test -n "$READELF"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12924 $as_echo "$READELF" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12927 $as_echo "no
" >&6; }
12932 test -n "$ac_cv_prog_READELF" && break
12935 if test -z "$ac_cv_prog_READELF" ; then
12937 if test $build = $host ; then
12940 READELF="${ncn_tool_prefix}$2"
12950 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12954 # Check whether --with-build-time-tools was given.
12955 if test "${with_build_time_tools+set}" = set; then :
12956 withval=$with_build_time_tools; case x"$withval" in
12959 with_build_time_tools=
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12961 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12965 with_build_time_tools=
12971 if test -n "$CC_FOR_TARGET"; then
12972 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12973 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12974 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12977 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12978 for ncn_progname in cc gcc; do
12979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12980 set dummy ${ncn_progname}; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12982 $as_echo_n "checking
for $ac_word...
" >&6; }
12983 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12984 $as_echo_n "(cached
) " >&6
12986 if test -n "$CC_FOR_TARGET"; then
12987 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13006 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13007 if test -n "$CC_FOR_TARGET"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13009 $as_echo "$CC_FOR_TARGET" >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13012 $as_echo "no
" >&6; }
13019 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13020 for ncn_progname in cc gcc; do
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13022 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13023 if test -x $with_build_time_tools/${ncn_progname}; then
13024 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13026 $as_echo "yes" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13030 $as_echo "no
" >&6; }
13035 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13036 for ncn_progname in cc gcc; do
13037 if test -n "$ncn_target_tool_prefix"; then
13038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13041 $as_echo_n "checking
for $ac_word...
" >&6; }
13042 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13043 $as_echo_n "(cached
) " >&6
13045 if test -n "$CC_FOR_TARGET"; then
13046 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13055 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13065 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13066 if test -n "$CC_FOR_TARGET"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13068 $as_echo "$CC_FOR_TARGET" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13071 $as_echo "no
" >&6; }
13076 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13078 set dummy ${ncn_progname}; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13080 $as_echo_n "checking
for $ac_word...
" >&6; }
13081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13082 $as_echo_n "(cached
) " >&6
13084 if test -n "$CC_FOR_TARGET"; then
13085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13094 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13105 if test -n "$CC_FOR_TARGET"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13107 $as_echo "$CC_FOR_TARGET" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13110 $as_echo "no
" >&6; }
13115 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13119 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13121 if test $build = $target ; then
13124 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13127 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13132 if test -n "$CXX_FOR_TARGET"; then
13133 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13134 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13135 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13138 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13139 for ncn_progname in c++ g++ cxx gxx; do
13140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13141 set dummy ${ncn_progname}; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13143 $as_echo_n "checking
for $ac_word...
" >&6; }
13144 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13145 $as_echo_n "(cached
) " >&6
13147 if test -n "$CXX_FOR_TARGET"; then
13148 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13167 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13168 if test -n "$CXX_FOR_TARGET"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13170 $as_echo "$CXX_FOR_TARGET" >&6; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13173 $as_echo "no
" >&6; }
13180 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13181 for ncn_progname in c++ g++ cxx gxx; do
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13183 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13184 if test -x $with_build_time_tools/${ncn_progname}; then
13185 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13187 $as_echo "yes" >&6; }
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13191 $as_echo "no
" >&6; }
13196 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13197 for ncn_progname in c++ g++ cxx gxx; do
13198 if test -n "$ncn_target_tool_prefix"; then
13199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13202 $as_echo_n "checking
for $ac_word...
" >&6; }
13203 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13204 $as_echo_n "(cached
) " >&6
13206 if test -n "$CXX_FOR_TARGET"; then
13207 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13216 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13226 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13227 if test -n "$CXX_FOR_TARGET"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13229 $as_echo "$CXX_FOR_TARGET" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13232 $as_echo "no
" >&6; }
13237 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13241 $as_echo_n "checking
for $ac_word...
" >&6; }
13242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13243 $as_echo_n "(cached
) " >&6
13245 if test -n "$CXX_FOR_TARGET"; then
13246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13266 if test -n "$CXX_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13268 $as_echo "$CXX_FOR_TARGET" >&6; }
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13271 $as_echo "no
" >&6; }
13276 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13280 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13281 set dummy c++ g++ cxx gxx
13282 if test $build = $target ; then
13283 CXX_FOR_TARGET="$2"
13285 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13288 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13293 if test -n "$GCC_FOR_TARGET"; then
13294 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13295 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13296 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13299 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13300 for ncn_progname in gcc; do
13301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13302 set dummy ${ncn_progname}; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13304 $as_echo_n "checking
for $ac_word...
" >&6; }
13305 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13306 $as_echo_n "(cached
) " >&6
13308 if test -n "$GCC_FOR_TARGET"; then
13309 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13328 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13329 if test -n "$GCC_FOR_TARGET"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13331 $as_echo "$GCC_FOR_TARGET" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13334 $as_echo "no
" >&6; }
13341 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13342 for ncn_progname in gcc; do
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13344 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13345 if test -x $with_build_time_tools/${ncn_progname}; then
13346 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13348 $as_echo "yes" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13352 $as_echo "no
" >&6; }
13357 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13358 for ncn_progname in gcc; do
13359 if test -n "$ncn_target_tool_prefix"; then
13360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13363 $as_echo_n "checking
for $ac_word...
" >&6; }
13364 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13365 $as_echo_n "(cached
) " >&6
13367 if test -n "$GCC_FOR_TARGET"; then
13368 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13387 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13388 if test -n "$GCC_FOR_TARGET"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13390 $as_echo "$GCC_FOR_TARGET" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13393 $as_echo "no
" >&6; }
13398 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13400 set dummy ${ncn_progname}; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13402 $as_echo_n "checking
for $ac_word...
" >&6; }
13403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13404 $as_echo_n "(cached
) " >&6
13406 if test -n "$GCC_FOR_TARGET"; then
13407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13427 if test -n "$GCC_FOR_TARGET"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13429 $as_echo "$GCC_FOR_TARGET" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13432 $as_echo "no
" >&6; }
13437 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13441 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13442 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13444 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13449 if test -n "$GFORTRAN_FOR_TARGET"; then
13450 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13451 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13452 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13455 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13456 for ncn_progname in gfortran; do
13457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458 set dummy ${ncn_progname}; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13460 $as_echo_n "checking
for $ac_word...
" >&6; }
13461 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13462 $as_echo_n "(cached
) " >&6
13464 if test -n "$GFORTRAN_FOR_TARGET"; then
13465 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13485 if test -n "$GFORTRAN_FOR_TARGET"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13487 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13490 $as_echo "no
" >&6; }
13497 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13498 for ncn_progname in gfortran; do
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13500 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13501 if test -x $with_build_time_tools/${ncn_progname}; then
13502 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13504 $as_echo "yes" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13508 $as_echo "no
" >&6; }
13513 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13514 for ncn_progname in gfortran; do
13515 if test -n "$ncn_target_tool_prefix"; then
13516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13517 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13519 $as_echo_n "checking
for $ac_word...
" >&6; }
13520 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13521 $as_echo_n "(cached
) " >&6
13523 if test -n "$GFORTRAN_FOR_TARGET"; then
13524 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13543 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13544 if test -n "$GFORTRAN_FOR_TARGET"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13546 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13549 $as_echo "no
" >&6; }
13554 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13558 $as_echo_n "checking
for $ac_word...
" >&6; }
13559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13560 $as_echo_n "(cached
) " >&6
13562 if test -n "$GFORTRAN_FOR_TARGET"; then
13563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13583 if test -n "$GFORTRAN_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13588 $as_echo "no
" >&6; }
13593 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13597 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13599 if test $build = $target ; then
13600 GFORTRAN_FOR_TARGET="$2"
13602 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13605 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13610 if test -n "$GOC_FOR_TARGET"; then
13611 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13612 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13613 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13616 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13617 for ncn_progname in gccgo; do
13618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13619 set dummy ${ncn_progname}; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13621 $as_echo_n "checking
for $ac_word...
" >&6; }
13622 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13623 $as_echo_n "(cached
) " >&6
13625 if test -n "$GOC_FOR_TARGET"; then
13626 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13645 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13646 if test -n "$GOC_FOR_TARGET"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13648 $as_echo "$GOC_FOR_TARGET" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13651 $as_echo "no
" >&6; }
13658 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13659 for ncn_progname in gccgo; do
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13661 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13662 if test -x $with_build_time_tools/${ncn_progname}; then
13663 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13665 $as_echo "yes" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13669 $as_echo "no
" >&6; }
13674 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13675 for ncn_progname in gccgo; do
13676 if test -n "$ncn_target_tool_prefix"; then
13677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13680 $as_echo_n "checking
for $ac_word...
" >&6; }
13681 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13682 $as_echo_n "(cached
) " >&6
13684 if test -n "$GOC_FOR_TARGET"; then
13685 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13704 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13705 if test -n "$GOC_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13707 $as_echo "$GOC_FOR_TARGET" >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13710 $as_echo "no
" >&6; }
13715 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13719 $as_echo_n "checking
for $ac_word...
" >&6; }
13720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached
) " >&6
13723 if test -n "$GOC_FOR_TARGET"; then
13724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13744 if test -n "$GOC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13746 $as_echo "$GOC_FOR_TARGET" >&6; }
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13749 $as_echo "no
" >&6; }
13754 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13758 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13760 if test $build = $target ; then
13761 GOC_FOR_TARGET="$2"
13763 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13766 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13771 if test -n "$GDC_FOR_TARGET"; then
13772 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13773 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13774 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13777 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13778 for ncn_progname in gdc; do
13779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13780 set dummy ${ncn_progname}; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13782 $as_echo_n "checking
for $ac_word...
" >&6; }
13783 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13784 $as_echo_n "(cached
) " >&6
13786 if test -n "$GDC_FOR_TARGET"; then
13787 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13806 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13807 if test -n "$GDC_FOR_TARGET"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13809 $as_echo "$GDC_FOR_TARGET" >&6; }
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13812 $as_echo "no
" >&6; }
13819 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13820 for ncn_progname in gdc; do
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13822 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13823 if test -x $with_build_time_tools/${ncn_progname}; then
13824 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13826 $as_echo "yes" >&6; }
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13830 $as_echo "no
" >&6; }
13835 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13836 for ncn_progname in gdc; do
13837 if test -n "$ncn_target_tool_prefix"; then
13838 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13839 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13841 $as_echo_n "checking
for $ac_word...
" >&6; }
13842 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13843 $as_echo_n "(cached
) " >&6
13845 if test -n "$GDC_FOR_TARGET"; then
13846 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13865 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13866 if test -n "$GDC_FOR_TARGET"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13868 $as_echo "$GDC_FOR_TARGET" >&6; }
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13871 $as_echo "no
" >&6; }
13876 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13878 set dummy ${ncn_progname}; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13880 $as_echo_n "checking
for $ac_word...
" >&6; }
13881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached
) " >&6
13884 if test -n "$GDC_FOR_TARGET"; then
13885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13905 if test -n "$GDC_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13907 $as_echo "$GDC_FOR_TARGET" >&6; }
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13910 $as_echo "no
" >&6; }
13915 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13919 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13921 if test $build = $target ; then
13922 GDC_FOR_TARGET="$2"
13924 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13927 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13932 if test -n "$GM2_FOR_TARGET"; then
13933 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13934 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13935 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13938 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13939 for ncn_progname in gm2; do
13940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13941 set dummy ${ncn_progname}; ac_word=$2
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13943 $as_echo_n "checking
for $ac_word...
" >&6; }
13944 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13945 $as_echo_n "(cached
) " >&6
13947 if test -n "$GM2_FOR_TARGET"; then
13948 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13967 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13968 if test -n "$GM2_FOR_TARGET"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13970 $as_echo "$GM2_FOR_TARGET" >&6; }
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13973 $as_echo "no
" >&6; }
13980 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13981 for ncn_progname in gm2; do
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13983 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13984 if test -x $with_build_time_tools/${ncn_progname}; then
13985 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13987 $as_echo "yes" >&6; }
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13991 $as_echo "no
" >&6; }
13996 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13997 for ncn_progname in gm2; do
13998 if test -n "$ncn_target_tool_prefix"; then
13999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14002 $as_echo_n "checking
for $ac_word...
" >&6; }
14003 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14004 $as_echo_n "(cached
) " >&6
14006 if test -n "$GM2_FOR_TARGET"; then
14007 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14026 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14027 if test -n "$GM2_FOR_TARGET"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14029 $as_echo "$GM2_FOR_TARGET" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14032 $as_echo "no
" >&6; }
14037 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14039 set dummy ${ncn_progname}; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14041 $as_echo_n "checking
for $ac_word...
" >&6; }
14042 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14043 $as_echo_n "(cached
) " >&6
14045 if test -n "$GM2_FOR_TARGET"; then
14046 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14065 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14066 if test -n "$GM2_FOR_TARGET"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14068 $as_echo "$GM2_FOR_TARGET" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14071 $as_echo "no
" >&6; }
14076 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14080 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14082 if test $build = $target ; then
14083 GM2_FOR_TARGET="$2"
14085 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14088 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14093 cat > conftest.c << \EOF
14098 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14099 have_gcc_for_target=yes
14101 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14102 have_gcc_for_target=no
14109 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14110 if test -n "$with_build_time_tools"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14112 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14113 if test -x $with_build_time_tools/ar; then
14114 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14115 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14117 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14120 $as_echo "no
" >&6; }
14122 elif test $build != $host && test $have_gcc_for_target = yes; then
14123 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14124 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14125 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14128 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14129 # Extract the first word of "ar", so it can be a program name with args.
14130 set dummy ar; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14132 $as_echo_n "checking
for $ac_word...
" >&6; }
14133 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14134 $as_echo_n "(cached
) " >&6
14136 case $AR_FOR_TARGET in
14138 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $gcc_cv_tool_dirs
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14159 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14160 if test -n "$AR_FOR_TARGET"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14162 $as_echo "$AR_FOR_TARGET" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14165 $as_echo "no
" >&6; }
14170 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14173 if test -n "$AR_FOR_TARGET"; then
14174 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14175 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14176 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14179 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14180 for ncn_progname in ar; do
14181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14182 set dummy ${ncn_progname}; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14184 $as_echo_n "checking
for $ac_word...
" >&6; }
14185 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14186 $as_echo_n "(cached
) " >&6
14188 if test -n "$AR_FOR_TARGET"; then
14189 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14208 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14209 if test -n "$AR_FOR_TARGET"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14211 $as_echo "$AR_FOR_TARGET" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14214 $as_echo "no
" >&6; }
14221 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14222 for ncn_progname in ar; do
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14224 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14225 if test -x $with_build_time_tools/${ncn_progname}; then
14226 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14228 $as_echo "yes" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14232 $as_echo "no
" >&6; }
14237 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14238 for ncn_progname in ar; do
14239 if test -n "$ncn_target_tool_prefix"; then
14240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14243 $as_echo_n "checking
for $ac_word...
" >&6; }
14244 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14245 $as_echo_n "(cached
) " >&6
14247 if test -n "$AR_FOR_TARGET"; then
14248 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14267 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14268 if test -n "$AR_FOR_TARGET"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14270 $as_echo "$AR_FOR_TARGET" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14273 $as_echo "no
" >&6; }
14278 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$AR_FOR_TARGET"; then
14287 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14307 if test -n "$AR_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14309 $as_echo "$AR_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14317 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14321 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14323 if test $build = $target ; then
14326 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14329 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14333 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14339 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14340 if test -n "$with_build_time_tools"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14342 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14343 if test -x $with_build_time_tools/as; then
14344 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14345 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14347 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14350 $as_echo "no
" >&6; }
14352 elif test $build != $host && test $have_gcc_for_target = yes; then
14353 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14354 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14355 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14358 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14359 # Extract the first word of "as
", so it can be a program name with args.
14360 set dummy as; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14362 $as_echo_n "checking
for $ac_word...
" >&6; }
14363 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14364 $as_echo_n "(cached
) " >&6
14366 case $AS_FOR_TARGET in
14368 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $gcc_cv_tool_dirs
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14389 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14390 if test -n "$AS_FOR_TARGET"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14392 $as_echo "$AS_FOR_TARGET" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14395 $as_echo "no
" >&6; }
14400 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14403 if test -n "$AS_FOR_TARGET"; then
14404 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14405 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14406 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14409 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14410 for ncn_progname in as; do
14411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14412 set dummy ${ncn_progname}; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14414 $as_echo_n "checking
for $ac_word...
" >&6; }
14415 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14416 $as_echo_n "(cached
) " >&6
14418 if test -n "$AS_FOR_TARGET"; then
14419 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14428 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14438 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14439 if test -n "$AS_FOR_TARGET"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14441 $as_echo "$AS_FOR_TARGET" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14444 $as_echo "no
" >&6; }
14451 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14452 for ncn_progname in as; do
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14454 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14455 if test -x $with_build_time_tools/${ncn_progname}; then
14456 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14458 $as_echo "yes" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14462 $as_echo "no
" >&6; }
14467 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14468 for ncn_progname in as; do
14469 if test -n "$ncn_target_tool_prefix"; then
14470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$AS_FOR_TARGET"; then
14478 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14497 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14498 if test -n "$AS_FOR_TARGET"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14500 $as_echo "$AS_FOR_TARGET" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14508 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14512 $as_echo_n "checking
for $ac_word...
" >&6; }
14513 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached
) " >&6
14516 if test -n "$AS_FOR_TARGET"; then
14517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14536 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14537 if test -n "$AS_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14539 $as_echo "$AS_FOR_TARGET" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14542 $as_echo "no
" >&6; }
14547 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14551 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14553 if test $build = $target ; then
14556 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14559 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14563 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14570 if test -n "$with_build_time_tools"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14572 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14573 if test -x $with_build_time_tools/dlltool; then
14574 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14575 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14577 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14580 $as_echo "no
" >&6; }
14582 elif test $build != $host && test $have_gcc_for_target = yes; then
14583 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14584 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14585 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14588 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14589 # Extract the first word of "dlltool
", so it can be a program name with args.
14590 set dummy dlltool; ac_word=$2
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14592 $as_echo_n "checking
for $ac_word...
" >&6; }
14593 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14594 $as_echo_n "(cached
) " >&6
14596 case $DLLTOOL_FOR_TARGET in
14598 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $gcc_cv_tool_dirs
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14619 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14620 if test -n "$DLLTOOL_FOR_TARGET"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14622 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14625 $as_echo "no
" >&6; }
14630 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14635 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14636 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14639 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14640 for ncn_progname in dlltool; do
14641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14642 set dummy ${ncn_progname}; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14644 $as_echo_n "checking
for $ac_word...
" >&6; }
14645 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14646 $as_echo_n "(cached
) " >&6
14648 if test -n "$DLLTOOL_FOR_TARGET"; then
14649 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14655 test -z "$as_dir" && as_dir=.
14656 for ac_exec_ext in '' $ac_executable_extensions; do
14657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14659 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14668 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14669 if test -n "$DLLTOOL_FOR_TARGET"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14671 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14674 $as_echo "no
" >&6; }
14681 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14682 for ncn_progname in dlltool; do
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14684 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14685 if test -x $with_build_time_tools/${ncn_progname}; then
14686 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14688 $as_echo "yes" >&6; }
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14692 $as_echo "no
" >&6; }
14697 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14698 for ncn_progname in dlltool; do
14699 if test -n "$ncn_target_tool_prefix"; then
14700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14703 $as_echo_n "checking
for $ac_word...
" >&6; }
14704 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached
) " >&6
14707 if test -n "$DLLTOOL_FOR_TARGET"; then
14708 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14727 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14728 if test -n "$DLLTOOL_FOR_TARGET"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14730 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14733 $as_echo "no
" >&6; }
14738 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14742 $as_echo_n "checking
for $ac_word...
" >&6; }
14743 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached
) " >&6
14746 if test -n "$DLLTOOL_FOR_TARGET"; then
14747 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14766 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14767 if test -n "$DLLTOOL_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14769 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14772 $as_echo "no
" >&6; }
14777 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14781 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14783 if test $build = $target ; then
14784 DLLTOOL_FOR_TARGET="$2"
14786 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14789 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14793 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14799 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14800 if test -n "$with_build_time_tools"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14802 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14803 if test -x $with_build_time_tools/dsymutil; then
14804 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14805 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14807 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14810 $as_echo "no
" >&6; }
14812 elif test $build != $host && test $have_gcc_for_target = yes; then
14813 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14814 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14815 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14818 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14819 # Extract the first word of "dsymutil
", so it can be a program name with args.
14820 set dummy dsymutil; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14822 $as_echo_n "checking
for $ac_word...
" >&6; }
14823 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14824 $as_echo_n "(cached
) " >&6
14826 case $DSYMUTIL_FOR_TARGET in
14828 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832 for as_dir in $gcc_cv_tool_dirs
14835 test -z "$as_dir" && as_dir=.
14836 for ac_exec_ext in '' $ac_executable_extensions; do
14837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14838 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14839 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14849 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14850 if test -n "$DSYMUTIL_FOR_TARGET"; then
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14852 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14855 $as_echo "no
" >&6; }
14860 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14865 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14866 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14869 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14870 for ncn_progname in dsymutil; do
14871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14872 set dummy ${ncn_progname}; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14874 $as_echo_n "checking
for $ac_word...
" >&6; }
14875 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14876 $as_echo_n "(cached
) " >&6
14878 if test -n "$DSYMUTIL_FOR_TARGET"; then
14879 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14898 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14899 if test -n "$DSYMUTIL_FOR_TARGET"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14901 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14904 $as_echo "no
" >&6; }
14911 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14912 for ncn_progname in dsymutil; do
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14914 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14915 if test -x $with_build_time_tools/${ncn_progname}; then
14916 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14918 $as_echo "yes" >&6; }
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14922 $as_echo "no
" >&6; }
14927 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14928 for ncn_progname in dsymutil; do
14929 if test -n "$ncn_target_tool_prefix"; then
14930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14933 $as_echo_n "checking
for $ac_word...
" >&6; }
14934 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached
) " >&6
14937 if test -n "$DSYMUTIL_FOR_TARGET"; then
14938 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14957 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14958 if test -n "$DSYMUTIL_FOR_TARGET"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14960 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14963 $as_echo "no
" >&6; }
14968 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14972 $as_echo_n "checking
for $ac_word...
" >&6; }
14973 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached
) " >&6
14976 if test -n "$DSYMUTIL_FOR_TARGET"; then
14977 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14997 if test -n "$DSYMUTIL_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14999 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15007 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15011 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15013 if test $build = $target ; then
15014 DSYMUTIL_FOR_TARGET="$2"
15016 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15019 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15023 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15029 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15030 if test -n "$with_build_time_tools"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15032 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15033 if test -x $with_build_time_tools/ld; then
15034 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15035 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15037 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15040 $as_echo "no
" >&6; }
15042 elif test $build != $host && test $have_gcc_for_target = yes; then
15043 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15044 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15045 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15048 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15049 # Extract the first word of "ld
", so it can be a program name with args.
15050 set dummy ld; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15052 $as_echo_n "checking
for $ac_word...
" >&6; }
15053 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15054 $as_echo_n "(cached
) " >&6
15056 case $LD_FOR_TARGET in
15058 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $gcc_cv_tool_dirs
15065 test -z "$as_dir" && as_dir=.
15066 for ac_exec_ext in '' $ac_executable_extensions; do
15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15079 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15080 if test -n "$LD_FOR_TARGET"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15082 $as_echo "$LD_FOR_TARGET" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15085 $as_echo "no
" >&6; }
15090 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15093 if test -n "$LD_FOR_TARGET"; then
15094 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15095 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15096 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15099 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15100 for ncn_progname in ld; do
15101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15102 set dummy ${ncn_progname}; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15104 $as_echo_n "checking
for $ac_word...
" >&6; }
15105 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15106 $as_echo_n "(cached
) " >&6
15108 if test -n "$LD_FOR_TARGET"; then
15109 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15128 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15129 if test -n "$LD_FOR_TARGET"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15131 $as_echo "$LD_FOR_TARGET" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15134 $as_echo "no
" >&6; }
15141 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15142 for ncn_progname in ld; do
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15144 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15145 if test -x $with_build_time_tools/${ncn_progname}; then
15146 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15148 $as_echo "yes" >&6; }
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15152 $as_echo "no
" >&6; }
15157 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15158 for ncn_progname in ld; do
15159 if test -n "$ncn_target_tool_prefix"; then
15160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15163 $as_echo_n "checking
for $ac_word...
" >&6; }
15164 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached
) " >&6
15167 if test -n "$LD_FOR_TARGET"; then
15168 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15187 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15188 if test -n "$LD_FOR_TARGET"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15190 $as_echo "$LD_FOR_TARGET" >&6; }
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15193 $as_echo "no
" >&6; }
15198 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15202 $as_echo_n "checking
for $ac_word...
" >&6; }
15203 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached
) " >&6
15206 if test -n "$LD_FOR_TARGET"; then
15207 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15226 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15227 if test -n "$LD_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15229 $as_echo "$LD_FOR_TARGET" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15232 $as_echo "no
" >&6; }
15237 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15241 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15243 if test $build = $target ; then
15246 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15249 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15253 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15259 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15260 if test -n "$with_build_time_tools"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15262 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15263 if test -x $with_build_time_tools/lipo; then
15264 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15265 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15267 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15270 $as_echo "no
" >&6; }
15272 elif test $build != $host && test $have_gcc_for_target = yes; then
15273 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15274 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15275 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15278 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15279 # Extract the first word of "lipo
", so it can be a program name with args.
15280 set dummy lipo; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15282 $as_echo_n "checking
for $ac_word...
" >&6; }
15283 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15284 $as_echo_n "(cached
) " >&6
15286 case $LIPO_FOR_TARGET in
15288 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $gcc_cv_tool_dirs
15295 test -z "$as_dir" && as_dir=.
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15298 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15309 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15310 if test -n "$LIPO_FOR_TARGET"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15312 $as_echo "$LIPO_FOR_TARGET" >&6; }
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15315 $as_echo "no
" >&6; }
15320 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15325 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15326 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15329 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15330 for ncn_progname in lipo; do
15331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15332 set dummy ${ncn_progname}; ac_word=$2
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15334 $as_echo_n "checking
for $ac_word...
" >&6; }
15335 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15336 $as_echo_n "(cached
) " >&6
15338 if test -n "$LIPO_FOR_TARGET"; then
15339 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15345 test -z "$as_dir" && as_dir=.
15346 for ac_exec_ext in '' $ac_executable_extensions; do
15347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15348 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15358 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15359 if test -n "$LIPO_FOR_TARGET"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15361 $as_echo "$LIPO_FOR_TARGET" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15364 $as_echo "no
" >&6; }
15371 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15372 for ncn_progname in lipo; do
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15374 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15375 if test -x $with_build_time_tools/${ncn_progname}; then
15376 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15378 $as_echo "yes" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15382 $as_echo "no
" >&6; }
15387 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15388 for ncn_progname in lipo; do
15389 if test -n "$ncn_target_tool_prefix"; then
15390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15393 $as_echo_n "checking
for $ac_word...
" >&6; }
15394 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached
) " >&6
15397 if test -n "$LIPO_FOR_TARGET"; then
15398 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15417 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15418 if test -n "$LIPO_FOR_TARGET"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15420 $as_echo "$LIPO_FOR_TARGET" >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15423 $as_echo "no
" >&6; }
15428 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15432 $as_echo_n "checking
for $ac_word...
" >&6; }
15433 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached
) " >&6
15436 if test -n "$LIPO_FOR_TARGET"; then
15437 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15456 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15457 if test -n "$LIPO_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15459 $as_echo "$LIPO_FOR_TARGET" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15462 $as_echo "no
" >&6; }
15467 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15471 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15473 if test $build = $target ; then
15474 LIPO_FOR_TARGET="$2"
15476 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15479 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15483 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15489 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15490 if test -n "$with_build_time_tools"; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15492 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15493 if test -x $with_build_time_tools/nm; then
15494 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15495 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15497 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15500 $as_echo "no
" >&6; }
15502 elif test $build != $host && test $have_gcc_for_target = yes; then
15503 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15504 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15505 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15508 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15509 # Extract the first word of "nm
", so it can be a program name with args.
15510 set dummy nm; ac_word=$2
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15512 $as_echo_n "checking
for $ac_word...
" >&6; }
15513 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15514 $as_echo_n "(cached
) " >&6
15516 case $NM_FOR_TARGET in
15518 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522 for as_dir in $gcc_cv_tool_dirs
15525 test -z "$as_dir" && as_dir=.
15526 for ac_exec_ext in '' $ac_executable_extensions; do
15527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15528 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15539 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15540 if test -n "$NM_FOR_TARGET"; then
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15542 $as_echo "$NM_FOR_TARGET" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15545 $as_echo "no
" >&6; }
15550 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15553 if test -n "$NM_FOR_TARGET"; then
15554 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15555 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15556 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15559 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15560 for ncn_progname in nm; do
15561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15562 set dummy ${ncn_progname}; ac_word=$2
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15564 $as_echo_n "checking
for $ac_word...
" >&6; }
15565 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15566 $as_echo_n "(cached
) " >&6
15568 if test -n "$NM_FOR_TARGET"; then
15569 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 for as_dir in $PATH
15575 test -z "$as_dir" && as_dir=.
15576 for ac_exec_ext in '' $ac_executable_extensions; do
15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15578 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15579 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15588 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15589 if test -n "$NM_FOR_TARGET"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15591 $as_echo "$NM_FOR_TARGET" >&6; }
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15594 $as_echo "no
" >&6; }
15601 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15602 for ncn_progname in nm; do
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15604 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15605 if test -x $with_build_time_tools/${ncn_progname}; then
15606 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15608 $as_echo "yes" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15612 $as_echo "no
" >&6; }
15617 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15618 for ncn_progname in nm; do
15619 if test -n "$ncn_target_tool_prefix"; then
15620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15623 $as_echo_n "checking
for $ac_word...
" >&6; }
15624 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached
) " >&6
15627 if test -n "$NM_FOR_TARGET"; then
15628 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15647 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15648 if test -n "$NM_FOR_TARGET"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15650 $as_echo "$NM_FOR_TARGET" >&6; }
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15653 $as_echo "no
" >&6; }
15658 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15662 $as_echo_n "checking
for $ac_word...
" >&6; }
15663 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached
) " >&6
15666 if test -n "$NM_FOR_TARGET"; then
15667 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15686 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15687 if test -n "$NM_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15689 $as_echo "$NM_FOR_TARGET" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15692 $as_echo "no
" >&6; }
15697 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15701 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15703 if test $build = $target ; then
15706 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15709 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15713 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15719 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15720 if test -n "$with_build_time_tools"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15722 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15723 if test -x $with_build_time_tools/objcopy; then
15724 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15725 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15727 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15730 $as_echo "no
" >&6; }
15732 elif test $build != $host && test $have_gcc_for_target = yes; then
15733 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15734 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15735 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15738 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15739 # Extract the first word of "objcopy
", so it can be a program name with args.
15740 set dummy objcopy; ac_word=$2
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15742 $as_echo_n "checking
for $ac_word...
" >&6; }
15743 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15744 $as_echo_n "(cached
) " >&6
15746 case $OBJCOPY_FOR_TARGET in
15748 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752 for as_dir in $gcc_cv_tool_dirs
15755 test -z "$as_dir" && as_dir=.
15756 for ac_exec_ext in '' $ac_executable_extensions; do
15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15769 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15770 if test -n "$OBJCOPY_FOR_TARGET"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15772 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15775 $as_echo "no
" >&6; }
15780 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15785 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15786 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15789 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15790 for ncn_progname in objcopy; do
15791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15792 set dummy ${ncn_progname}; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15794 $as_echo_n "checking
for $ac_word...
" >&6; }
15795 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15796 $as_echo_n "(cached
) " >&6
15798 if test -n "$OBJCOPY_FOR_TARGET"; then
15799 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15818 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15819 if test -n "$OBJCOPY_FOR_TARGET"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15821 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15824 $as_echo "no
" >&6; }
15831 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15832 for ncn_progname in objcopy; do
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15834 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15835 if test -x $with_build_time_tools/${ncn_progname}; then
15836 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15838 $as_echo "yes" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15842 $as_echo "no
" >&6; }
15847 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15848 for ncn_progname in objcopy; do
15849 if test -n "$ncn_target_tool_prefix"; then
15850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15853 $as_echo_n "checking
for $ac_word...
" >&6; }
15854 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached
) " >&6
15857 if test -n "$OBJCOPY_FOR_TARGET"; then
15858 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15864 test -z "$as_dir" && as_dir=.
15865 for ac_exec_ext in '' $ac_executable_extensions; do
15866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15868 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15877 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15878 if test -n "$OBJCOPY_FOR_TARGET"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15880 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15883 $as_echo "no
" >&6; }
15888 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15892 $as_echo_n "checking
for $ac_word...
" >&6; }
15893 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached
) " >&6
15896 if test -n "$OBJCOPY_FOR_TARGET"; then
15897 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15916 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15917 if test -n "$OBJCOPY_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15919 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15922 $as_echo "no
" >&6; }
15927 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15931 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15933 if test $build = $target ; then
15934 OBJCOPY_FOR_TARGET="$2"
15936 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15939 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15943 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15949 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15950 if test -n "$with_build_time_tools"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15952 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15953 if test -x $with_build_time_tools/objdump; then
15954 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15955 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15957 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15960 $as_echo "no
" >&6; }
15962 elif test $build != $host && test $have_gcc_for_target = yes; then
15963 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15964 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15965 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15968 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15969 # Extract the first word of "objdump
", so it can be a program name with args.
15970 set dummy objdump; ac_word=$2
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15972 $as_echo_n "checking
for $ac_word...
" >&6; }
15973 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15974 $as_echo_n "(cached
) " >&6
15976 case $OBJDUMP_FOR_TARGET in
15978 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $gcc_cv_tool_dirs
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15999 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16000 if test -n "$OBJDUMP_FOR_TARGET"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16002 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16005 $as_echo "no
" >&6; }
16010 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16015 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16016 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16019 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16020 for ncn_progname in objdump; do
16021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16022 set dummy ${ncn_progname}; ac_word=$2
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16024 $as_echo_n "checking
for $ac_word...
" >&6; }
16025 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16026 $as_echo_n "(cached
) " >&6
16028 if test -n "$OBJDUMP_FOR_TARGET"; then
16029 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16048 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16049 if test -n "$OBJDUMP_FOR_TARGET"; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16051 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16054 $as_echo "no
" >&6; }
16061 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16062 for ncn_progname in objdump; do
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16064 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16065 if test -x $with_build_time_tools/${ncn_progname}; then
16066 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16068 $as_echo "yes" >&6; }
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16072 $as_echo "no
" >&6; }
16077 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16078 for ncn_progname in objdump; do
16079 if test -n "$ncn_target_tool_prefix"; then
16080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16083 $as_echo_n "checking
for $ac_word...
" >&6; }
16084 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached
) " >&6
16087 if test -n "$OBJDUMP_FOR_TARGET"; then
16088 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16094 test -z "$as_dir" && as_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16107 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16108 if test -n "$OBJDUMP_FOR_TARGET"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16110 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16113 $as_echo "no
" >&6; }
16118 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16122 $as_echo_n "checking
for $ac_word...
" >&6; }
16123 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached
) " >&6
16126 if test -n "$OBJDUMP_FOR_TARGET"; then
16127 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16146 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16147 if test -n "$OBJDUMP_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16149 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16152 $as_echo "no
" >&6; }
16157 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16161 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16163 if test $build = $target ; then
16164 OBJDUMP_FOR_TARGET="$2"
16166 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16169 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16173 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16179 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16180 if test -n "$with_build_time_tools"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16182 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16183 if test -x $with_build_time_tools/otool; then
16184 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16185 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16187 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16190 $as_echo "no
" >&6; }
16192 elif test $build != $host && test $have_gcc_for_target = yes; then
16193 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16194 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16195 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16198 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16199 # Extract the first word of "otool
", so it can be a program name with args.
16200 set dummy otool; ac_word=$2
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16202 $as_echo_n "checking
for $ac_word...
" >&6; }
16203 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16204 $as_echo_n "(cached
) " >&6
16206 case $OTOOL_FOR_TARGET in
16208 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $gcc_cv_tool_dirs
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16218 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16229 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16230 if test -n "$OTOOL_FOR_TARGET"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16232 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16235 $as_echo "no
" >&6; }
16240 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16245 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16246 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16249 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16250 for ncn_progname in otool; do
16251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16252 set dummy ${ncn_progname}; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16254 $as_echo_n "checking
for $ac_word...
" >&6; }
16255 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16256 $as_echo_n "(cached
) " >&6
16258 if test -n "$OTOOL_FOR_TARGET"; then
16259 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16265 test -z "$as_dir" && as_dir=.
16266 for ac_exec_ext in '' $ac_executable_extensions; do
16267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16268 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16278 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16279 if test -n "$OTOOL_FOR_TARGET"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16281 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16284 $as_echo "no
" >&6; }
16291 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16292 for ncn_progname in otool; do
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16294 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16295 if test -x $with_build_time_tools/${ncn_progname}; then
16296 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16298 $as_echo "yes" >&6; }
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16302 $as_echo "no
" >&6; }
16307 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16308 for ncn_progname in otool; do
16309 if test -n "$ncn_target_tool_prefix"; then
16310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16313 $as_echo_n "checking
for $ac_word...
" >&6; }
16314 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached
) " >&6
16317 if test -n "$OTOOL_FOR_TARGET"; then
16318 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16337 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16338 if test -n "$OTOOL_FOR_TARGET"; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16340 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16343 $as_echo "no
" >&6; }
16348 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16352 $as_echo_n "checking
for $ac_word...
" >&6; }
16353 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached
) " >&6
16356 if test -n "$OTOOL_FOR_TARGET"; then
16357 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16376 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16377 if test -n "$OTOOL_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16379 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16382 $as_echo "no
" >&6; }
16387 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16391 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16393 if test $build = $target ; then
16394 OTOOL_FOR_TARGET="$2"
16396 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16399 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16403 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16409 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16410 if test -n "$with_build_time_tools"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16412 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16413 if test -x $with_build_time_tools/ranlib; then
16414 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16415 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16417 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16420 $as_echo "no
" >&6; }
16422 elif test $build != $host && test $have_gcc_for_target = yes; then
16423 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16424 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16425 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16428 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16429 # Extract the first word of "ranlib
", so it can be a program name with args.
16430 set dummy ranlib; ac_word=$2
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16432 $as_echo_n "checking
for $ac_word...
" >&6; }
16433 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16434 $as_echo_n "(cached
) " >&6
16436 case $RANLIB_FOR_TARGET in
16438 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $gcc_cv_tool_dirs
16445 test -z "$as_dir" && as_dir=.
16446 for ac_exec_ext in '' $ac_executable_extensions; do
16447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16459 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16460 if test -n "$RANLIB_FOR_TARGET"; then
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16462 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16465 $as_echo "no
" >&6; }
16470 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16475 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16476 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16479 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16480 for ncn_progname in ranlib; do
16481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16482 set dummy ${ncn_progname}; ac_word=$2
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16484 $as_echo_n "checking
for $ac_word...
" >&6; }
16485 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16486 $as_echo_n "(cached
) " >&6
16488 if test -n "$RANLIB_FOR_TARGET"; then
16489 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16492 for as_dir in $PATH
16495 test -z "$as_dir" && as_dir=.
16496 for ac_exec_ext in '' $ac_executable_extensions; do
16497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16498 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16508 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16509 if test -n "$RANLIB_FOR_TARGET"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16511 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16514 $as_echo "no
" >&6; }
16521 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16522 for ncn_progname in ranlib; do
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16524 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16525 if test -x $with_build_time_tools/${ncn_progname}; then
16526 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16528 $as_echo "yes" >&6; }
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16532 $as_echo "no
" >&6; }
16537 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16538 for ncn_progname in ranlib; do
16539 if test -n "$ncn_target_tool_prefix"; then
16540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16543 $as_echo_n "checking
for $ac_word...
" >&6; }
16544 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached
) " >&6
16547 if test -n "$RANLIB_FOR_TARGET"; then
16548 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16567 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16568 if test -n "$RANLIB_FOR_TARGET"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16570 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16573 $as_echo "no
" >&6; }
16578 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16582 $as_echo_n "checking
for $ac_word...
" >&6; }
16583 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached
) " >&6
16586 if test -n "$RANLIB_FOR_TARGET"; then
16587 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16606 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16607 if test -n "$RANLIB_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16609 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16612 $as_echo "no
" >&6; }
16617 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16621 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16623 if test $build = $target ; then
16624 RANLIB_FOR_TARGET="$2"
16626 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16629 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16633 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16639 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16640 if test -n "$with_build_time_tools"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16642 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16643 if test -x $with_build_time_tools/readelf; then
16644 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16645 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16647 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16650 $as_echo "no
" >&6; }
16652 elif test $build != $host && test $have_gcc_for_target = yes; then
16653 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16654 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16655 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16658 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16659 # Extract the first word of "readelf
", so it can be a program name with args.
16660 set dummy readelf; ac_word=$2
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16662 $as_echo_n "checking
for $ac_word...
" >&6; }
16663 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16664 $as_echo_n "(cached
) " >&6
16666 case $READELF_FOR_TARGET in
16668 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $gcc_cv_tool_dirs
16675 test -z "$as_dir" && as_dir=.
16676 for ac_exec_ext in '' $ac_executable_extensions; do
16677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16678 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16689 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16690 if test -n "$READELF_FOR_TARGET"; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16692 $as_echo "$READELF_FOR_TARGET" >&6; }
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16695 $as_echo "no
" >&6; }
16700 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16703 if test -n "$READELF_FOR_TARGET"; then
16704 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16705 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16706 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16709 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16710 for ncn_progname in readelf; do
16711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16712 set dummy ${ncn_progname}; ac_word=$2
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16714 $as_echo_n "checking
for $ac_word...
" >&6; }
16715 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16716 $as_echo_n "(cached
) " >&6
16718 if test -n "$READELF_FOR_TARGET"; then
16719 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16725 test -z "$as_dir" && as_dir=.
16726 for ac_exec_ext in '' $ac_executable_extensions; do
16727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16728 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16738 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16739 if test -n "$READELF_FOR_TARGET"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16741 $as_echo "$READELF_FOR_TARGET" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16744 $as_echo "no
" >&6; }
16751 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16752 for ncn_progname in readelf; do
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16754 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16755 if test -x $with_build_time_tools/${ncn_progname}; then
16756 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16758 $as_echo "yes" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16762 $as_echo "no
" >&6; }
16767 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16768 for ncn_progname in readelf; do
16769 if test -n "$ncn_target_tool_prefix"; then
16770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16773 $as_echo_n "checking
for $ac_word...
" >&6; }
16774 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached
) " >&6
16777 if test -n "$READELF_FOR_TARGET"; then
16778 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16797 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16798 if test -n "$READELF_FOR_TARGET"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16800 $as_echo "$READELF_FOR_TARGET" >&6; }
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16803 $as_echo "no
" >&6; }
16808 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16812 $as_echo_n "checking
for $ac_word...
" >&6; }
16813 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached
) " >&6
16816 if test -n "$READELF_FOR_TARGET"; then
16817 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16836 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16837 if test -n "$READELF_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16839 $as_echo "$READELF_FOR_TARGET" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16842 $as_echo "no
" >&6; }
16847 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16851 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16853 if test $build = $target ; then
16854 READELF_FOR_TARGET="$2"
16856 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16859 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16863 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16869 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16870 if test -n "$with_build_time_tools"; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16872 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16873 if test -x $with_build_time_tools/strip; then
16874 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16875 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16877 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16880 $as_echo "no
" >&6; }
16882 elif test $build != $host && test $have_gcc_for_target = yes; then
16883 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16884 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16885 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16888 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16889 # Extract the first word of "strip
", so it can be a program name with args.
16890 set dummy strip; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16892 $as_echo_n "checking
for $ac_word...
" >&6; }
16893 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16894 $as_echo_n "(cached
) " >&6
16896 case $STRIP_FOR_TARGET in
16898 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in $gcc_cv_tool_dirs
16905 test -z "$as_dir" && as_dir=.
16906 for ac_exec_ext in '' $ac_executable_extensions; do
16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16919 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16920 if test -n "$STRIP_FOR_TARGET"; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16922 $as_echo "$STRIP_FOR_TARGET" >&6; }
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16925 $as_echo "no
" >&6; }
16930 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16935 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16936 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16939 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16940 for ncn_progname in strip; do
16941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16942 set dummy ${ncn_progname}; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16944 $as_echo_n "checking
for $ac_word...
" >&6; }
16945 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16946 $as_echo_n "(cached
) " >&6
16948 if test -n "$STRIP_FOR_TARGET"; then
16949 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16955 test -z "$as_dir" && as_dir=.
16956 for ac_exec_ext in '' $ac_executable_extensions; do
16957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16968 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16969 if test -n "$STRIP_FOR_TARGET"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16971 $as_echo "$STRIP_FOR_TARGET" >&6; }
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16974 $as_echo "no
" >&6; }
16981 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16982 for ncn_progname in strip; do
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16984 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16985 if test -x $with_build_time_tools/${ncn_progname}; then
16986 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16988 $as_echo "yes" >&6; }
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16992 $as_echo "no
" >&6; }
16997 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16998 for ncn_progname in strip; do
16999 if test -n "$ncn_target_tool_prefix"; then
17000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17003 $as_echo_n "checking
for $ac_word...
" >&6; }
17004 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached
) " >&6
17007 if test -n "$STRIP_FOR_TARGET"; then
17008 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17027 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17028 if test -n "$STRIP_FOR_TARGET"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17030 $as_echo "$STRIP_FOR_TARGET" >&6; }
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17033 $as_echo "no
" >&6; }
17038 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17042 $as_echo_n "checking
for $ac_word...
" >&6; }
17043 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached
) " >&6
17046 if test -n "$STRIP_FOR_TARGET"; then
17047 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17053 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17066 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17067 if test -n "$STRIP_FOR_TARGET"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17069 $as_echo "$STRIP_FOR_TARGET" >&6; }
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17072 $as_echo "no
" >&6; }
17077 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17081 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17083 if test $build = $target ; then
17084 STRIP_FOR_TARGET="$2"
17086 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17089 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17093 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17099 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17100 if test -n "$with_build_time_tools"; then
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17102 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17103 if test -x $with_build_time_tools/windres; then
17104 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17105 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17107 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17110 $as_echo "no
" >&6; }
17112 elif test $build != $host && test $have_gcc_for_target = yes; then
17113 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17114 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17115 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17118 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17119 # Extract the first word of "windres
", so it can be a program name with args.
17120 set dummy windres; ac_word=$2
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17122 $as_echo_n "checking
for $ac_word...
" >&6; }
17123 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17124 $as_echo_n "(cached
) " >&6
17126 case $WINDRES_FOR_TARGET in
17128 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17132 for as_dir in $gcc_cv_tool_dirs
17135 test -z "$as_dir" && as_dir=.
17136 for ac_exec_ext in '' $ac_executable_extensions; do
17137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17138 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17149 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17150 if test -n "$WINDRES_FOR_TARGET"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17152 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17155 $as_echo "no
" >&6; }
17160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17165 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17166 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17169 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17170 for ncn_progname in windres; do
17171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17172 set dummy ${ncn_progname}; ac_word=$2
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17174 $as_echo_n "checking
for $ac_word...
" >&6; }
17175 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17176 $as_echo_n "(cached
) " >&6
17178 if test -n "$WINDRES_FOR_TARGET"; then
17179 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17185 test -z "$as_dir" && as_dir=.
17186 for ac_exec_ext in '' $ac_executable_extensions; do
17187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17188 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17198 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17199 if test -n "$WINDRES_FOR_TARGET"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17201 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17204 $as_echo "no
" >&6; }
17211 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17212 for ncn_progname in windres; do
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17214 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17215 if test -x $with_build_time_tools/${ncn_progname}; then
17216 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17218 $as_echo "yes" >&6; }
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17222 $as_echo "no
" >&6; }
17227 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17228 for ncn_progname in windres; do
17229 if test -n "$ncn_target_tool_prefix"; then
17230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17233 $as_echo_n "checking
for $ac_word...
" >&6; }
17234 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached
) " >&6
17237 if test -n "$WINDRES_FOR_TARGET"; then
17238 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17244 test -z "$as_dir" && as_dir=.
17245 for ac_exec_ext in '' $ac_executable_extensions; do
17246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17257 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17258 if test -n "$WINDRES_FOR_TARGET"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17260 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17263 $as_echo "no
" >&6; }
17268 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17272 $as_echo_n "checking
for $ac_word...
" >&6; }
17273 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 if test -n "$WINDRES_FOR_TARGET"; then
17277 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17296 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17297 if test -n "$WINDRES_FOR_TARGET"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17299 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17302 $as_echo "no
" >&6; }
17307 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17311 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17313 if test $build = $target ; then
17314 WINDRES_FOR_TARGET="$2"
17316 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17319 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17323 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17329 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17330 if test -n "$with_build_time_tools"; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17332 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17333 if test -x $with_build_time_tools/windmc; then
17334 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17335 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17337 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17340 $as_echo "no
" >&6; }
17342 elif test $build != $host && test $have_gcc_for_target = yes; then
17343 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17344 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17345 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17348 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17349 # Extract the first word of "windmc
", so it can be a program name with args.
17350 set dummy windmc; ac_word=$2
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17352 $as_echo_n "checking
for $ac_word...
" >&6; }
17353 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17354 $as_echo_n "(cached
) " >&6
17356 case $WINDMC_FOR_TARGET in
17358 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17362 for as_dir in $gcc_cv_tool_dirs
17365 test -z "$as_dir" && as_dir=.
17366 for ac_exec_ext in '' $ac_executable_extensions; do
17367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17368 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17379 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17380 if test -n "$WINDMC_FOR_TARGET"; then
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17382 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17385 $as_echo "no
" >&6; }
17390 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17395 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17396 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17399 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17400 for ncn_progname in windmc; do
17401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17402 set dummy ${ncn_progname}; ac_word=$2
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17404 $as_echo_n "checking
for $ac_word...
" >&6; }
17405 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17406 $as_echo_n "(cached
) " >&6
17408 if test -n "$WINDMC_FOR_TARGET"; then
17409 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412 for as_dir in $PATH
17415 test -z "$as_dir" && as_dir=.
17416 for ac_exec_ext in '' $ac_executable_extensions; do
17417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17418 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17428 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17429 if test -n "$WINDMC_FOR_TARGET"; then
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17431 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17434 $as_echo "no
" >&6; }
17441 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17442 for ncn_progname in windmc; do
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17444 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17445 if test -x $with_build_time_tools/${ncn_progname}; then
17446 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17448 $as_echo "yes" >&6; }
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17452 $as_echo "no
" >&6; }
17457 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17458 for ncn_progname in windmc; do
17459 if test -n "$ncn_target_tool_prefix"; then
17460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17463 $as_echo_n "checking
for $ac_word...
" >&6; }
17464 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17465 $as_echo_n "(cached
) " >&6
17467 if test -n "$WINDMC_FOR_TARGET"; then
17468 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17471 for as_dir in $PATH
17474 test -z "$as_dir" && as_dir=.
17475 for ac_exec_ext in '' $ac_executable_extensions; do
17476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17477 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17487 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17488 if test -n "$WINDMC_FOR_TARGET"; then
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17490 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17493 $as_echo "no
" >&6; }
17498 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17500 set dummy ${ncn_progname}; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17502 $as_echo_n "checking
for $ac_word...
" >&6; }
17503 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached
) " >&6
17506 if test -n "$WINDMC_FOR_TARGET"; then
17507 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510 for as_dir in $PATH
17513 test -z "$as_dir" && as_dir=.
17514 for ac_exec_ext in '' $ac_executable_extensions; do
17515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17516 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17526 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17527 if test -n "$WINDMC_FOR_TARGET"; then
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17529 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17532 $as_echo "no
" >&6; }
17537 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17541 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17543 if test $build = $target ; then
17544 WINDMC_FOR_TARGET="$2"
17546 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17549 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17553 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17557 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17560 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17561 if test "x
${build}" != "x
${host}" ; then
17562 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17563 # We already found the complete path
17564 ac_dir=`dirname $AR_FOR_TARGET`
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17566 $as_echo "pre-installed
in $ac_dir" >&6; }
17568 # Canadian cross, just use what we found
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17570 $as_echo "pre-installed
" >&6; }
17574 case " ${configdirs} " in
17579 if test $ok = yes; then
17580 # An in-tree tool is available and we can use it
17581 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17583 $as_echo "just compiled
" >&6; }
17584 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17585 # We already found the complete path
17586 ac_dir=`dirname $AR_FOR_TARGET`
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17588 $as_echo "pre-installed
in $ac_dir" >&6; }
17589 elif test "x
$target" = "x
$host"; then
17590 # We can use an host tool
17591 AR_FOR_TARGET='$(AR)'
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17593 $as_echo "host tool
" >&6; }
17595 # We need a cross tool
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17597 $as_echo "pre-installed
" >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17602 $as_echo_n "checking where to
find the target as...
" >&6; }
17603 if test "x
${build}" != "x
${host}" ; then
17604 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $AS_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17608 $as_echo "pre-installed
in $ac_dir" >&6; }
17610 # Canadian cross, just use what we found
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17612 $as_echo "pre-installed
" >&6; }
17616 case " ${configdirs} " in
17621 if test $ok = yes; then
17622 # An in-tree tool is available and we can use it
17623 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17625 $as_echo "just compiled
" >&6; }
17626 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17627 # We already found the complete path
17628 ac_dir=`dirname $AS_FOR_TARGET`
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17630 $as_echo "pre-installed
in $ac_dir" >&6; }
17631 elif test "x
$target" = "x
$host"; then
17632 # We can use an host tool
17633 AS_FOR_TARGET='$(AS)'
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17635 $as_echo "host tool
" >&6; }
17637 # We need a cross tool
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17639 $as_echo "pre-installed
" >&6; }
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17644 $as_echo_n "checking where to
find the target cc...
" >&6; }
17645 if test "x
${build}" != "x
${host}" ; then
17646 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17647 # We already found the complete path
17648 ac_dir=`dirname $CC_FOR_TARGET`
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17650 $as_echo "pre-installed
in $ac_dir" >&6; }
17652 # Canadian cross, just use what we found
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17654 $as_echo "pre-installed
" >&6; }
17658 case " ${configdirs} " in
17663 if test $ok = yes; then
17664 # An in-tree tool is available and we can use it
17665 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17667 $as_echo "just compiled
" >&6; }
17668 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17669 # We already found the complete path
17670 ac_dir=`dirname $CC_FOR_TARGET`
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17672 $as_echo "pre-installed
in $ac_dir" >&6; }
17673 elif test "x
$target" = "x
$host"; then
17674 # We can use an host tool
17675 CC_FOR_TARGET='$(CC)'
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17677 $as_echo "host tool
" >&6; }
17679 # We need a cross tool
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17681 $as_echo "pre-installed
" >&6; }
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17686 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17687 if test "x
${build}" != "x
${host}" ; then
17688 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $CXX_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17692 $as_echo "pre-installed
in $ac_dir" >&6; }
17694 # Canadian cross, just use what we found
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17696 $as_echo "pre-installed
" >&6; }
17700 case " ${configdirs} " in
17704 case ,${enable_languages}, in
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 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'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17712 $as_echo "just compiled
" >&6; }
17713 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $CXX_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17717 $as_echo "pre-installed
in $ac_dir" >&6; }
17718 elif test "x
$target" = "x
$host"; then
17719 # We can use an host tool
17720 CXX_FOR_TARGET='$(CXX)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17722 $as_echo "host tool
" >&6; }
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17726 $as_echo "pre-installed
" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17731 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17732 if test "x
${build}" != "x
${host}" ; then
17733 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17737 $as_echo "pre-installed
in $ac_dir" >&6; }
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17741 $as_echo "pre-installed
" >&6; }
17745 case " ${configdirs} " in
17749 case ,${enable_languages}, in
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 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'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17757 $as_echo "just compiled
" >&6; }
17758 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17762 $as_echo "pre-installed
in $ac_dir" >&6; }
17763 elif test "x
$target" = "x
$host"; then
17764 # We can use an host tool
17765 RAW_CXX_FOR_TARGET='$(CXX)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17767 $as_echo "host tool
" >&6; }
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17771 $as_echo "pre-installed
" >&6; }
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17776 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17777 if test "x
${build}" != "x
${host}" ; then
17778 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17782 $as_echo "pre-installed
in $ac_dir" >&6; }
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17786 $as_echo "pre-installed
" >&6; }
17790 case " ${configdirs} " in
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17799 $as_echo "just compiled
" >&6; }
17800 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17804 $as_echo "pre-installed
in $ac_dir" >&6; }
17805 elif test "x
$target" = "x
$host"; then
17806 # We can use an host tool
17807 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17809 $as_echo "host tool
" >&6; }
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17813 $as_echo "pre-installed
" >&6; }
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17818 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17819 if test "x
${build}" != "x
${host}" ; then
17820 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17824 $as_echo "pre-installed
in $ac_dir" >&6; }
17826 # Canadian cross, just use what we found
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17828 $as_echo "pre-installed
" >&6; }
17831 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17832 # We already found the complete path
17833 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17835 $as_echo "pre-installed
in $ac_dir" >&6; }
17836 elif test "x
$target" = "x
$host"; then
17837 # We can use an host tool
17838 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17840 $as_echo "host tool
" >&6; }
17842 # We need a cross tool
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17844 $as_echo "pre-installed
" >&6; }
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17849 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17850 if test "x
${build}" != "x
${host}" ; then
17851 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $GCC_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17855 $as_echo "pre-installed
in $ac_dir" >&6; }
17857 # Canadian cross, just use what we found
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17859 $as_echo "pre-installed
" >&6; }
17863 case " ${configdirs} " in
17868 if test $ok = yes; then
17869 # An in-tree tool is available and we can use it
17870 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17872 $as_echo "just compiled
" >&6; }
17873 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $GCC_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17877 $as_echo "pre-installed
in $ac_dir" >&6; }
17878 elif test "x
$target" = "x
$host"; then
17879 # We can use an host tool
17880 GCC_FOR_TARGET='$()'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17882 $as_echo "host tool
" >&6; }
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17886 $as_echo "pre-installed
" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17891 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17892 if test "x
${build}" != "x
${host}" ; then
17893 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17897 $as_echo "pre-installed
in $ac_dir" >&6; }
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17901 $as_echo "pre-installed
" >&6; }
17905 case " ${configdirs} " in
17909 case ,${enable_languages}, in
17913 if test $ok = yes; then
17914 # An in-tree tool is available and we can use it
17915 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17917 $as_echo "just compiled
" >&6; }
17918 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17919 # We already found the complete path
17920 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17922 $as_echo "pre-installed
in $ac_dir" >&6; }
17923 elif test "x
$target" = "x
$host"; then
17924 # We can use an host tool
17925 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17927 $as_echo "host tool
" >&6; }
17929 # We need a cross tool
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17931 $as_echo "pre-installed
" >&6; }
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17936 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17937 if test "x
${build}" != "x
${host}" ; then
17938 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GOC_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17942 $as_echo "pre-installed
in $ac_dir" >&6; }
17944 # Canadian cross, just use what we found
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17946 $as_echo "pre-installed
" >&6; }
17950 case " ${configdirs} " in
17954 case ,${enable_languages}, in
17958 if test $ok = yes; then
17959 # An in-tree tool is available and we can use it
17960 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17962 $as_echo "just compiled
" >&6; }
17963 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17964 # We already found the complete path
17965 ac_dir=`dirname $GOC_FOR_TARGET`
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17967 $as_echo "pre-installed
in $ac_dir" >&6; }
17968 elif test "x
$target" = "x
$host"; then
17969 # We can use an host tool
17970 GOC_FOR_TARGET='$(GOC)'
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17972 $as_echo "host tool
" >&6; }
17974 # We need a cross tool
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17976 $as_echo "pre-installed
" >&6; }
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17981 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17982 if test "x
${build}" != "x
${host}" ; then
17983 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GDC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17987 $as_echo "pre-installed
in $ac_dir" >&6; }
17989 # Canadian cross, just use what we found
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17991 $as_echo "pre-installed
" >&6; }
17995 case " ${configdirs} " in
17999 case ,${enable_languages}, in
18003 if test $ok = yes; then
18004 # An in-tree tool is available and we can use it
18005 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18007 $as_echo "just compiled
" >&6; }
18008 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18009 # We already found the complete path
18010 ac_dir=`dirname $GDC_FOR_TARGET`
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18012 $as_echo "pre-installed
in $ac_dir" >&6; }
18013 elif test "x
$target" = "x
$host"; then
18014 # We can use an host tool
18015 GDC_FOR_TARGET='$(GDC)'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18017 $as_echo "host tool
" >&6; }
18019 # We need a cross tool
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18021 $as_echo "pre-installed
" >&6; }
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18026 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18027 if test "x
${build}" != "x
${host}" ; then
18028 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GM2_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18032 $as_echo "pre-installed
in $ac_dir" >&6; }
18034 # Canadian cross, just use what we found
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18036 $as_echo "pre-installed
" >&6; }
18040 case " ${configdirs} " in
18044 case ,${enable_languages}, in
18048 if test $ok = yes; then
18049 # An in-tree tool is available and we can use it
18050 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18052 $as_echo "just compiled
" >&6; }
18053 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18054 # We already found the complete path
18055 ac_dir=`dirname $GM2_FOR_TARGET`
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18057 $as_echo "pre-installed
in $ac_dir" >&6; }
18058 elif test "x
$target" = "x
$host"; then
18059 # We can use an host tool
18060 GM2_FOR_TARGET='$(GM2)'
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18062 $as_echo "host tool
" >&6; }
18064 # We need a cross tool
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18066 $as_echo "pre-installed
" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18071 $as_echo_n "checking where to
find the target ld...
" >&6; }
18072 if test "x
${build}" != "x
${host}" ; then
18073 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18074 # We already found the complete path
18075 ac_dir=`dirname $LD_FOR_TARGET`
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18077 $as_echo "pre-installed
in $ac_dir" >&6; }
18079 # Canadian cross, just use what we found
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18081 $as_echo "pre-installed
" >&6; }
18085 case " ${configdirs} " in
18090 if test $ok = yes; then
18091 # An in-tree tool is available and we can use it
18092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18094 $as_echo "just compiled
" >&6; }
18095 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18096 # We already found the complete path
18097 ac_dir=`dirname $LD_FOR_TARGET`
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18099 $as_echo "pre-installed
in $ac_dir" >&6; }
18100 elif test "x
$target" = "x
$host"; then
18101 # We can use an host tool
18102 LD_FOR_TARGET='$(LD)'
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18104 $as_echo "host tool
" >&6; }
18106 # We need a cross tool
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18108 $as_echo "pre-installed
" >&6; }
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18113 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18114 if test "x
${build}" != "x
${host}" ; then
18115 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18116 # We already found the complete path
18117 ac_dir=`dirname $LIPO_FOR_TARGET`
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18119 $as_echo "pre-installed
in $ac_dir" >&6; }
18121 # Canadian cross, just use what we found
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18123 $as_echo "pre-installed
" >&6; }
18126 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18127 # We already found the complete path
18128 ac_dir=`dirname $LIPO_FOR_TARGET`
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18130 $as_echo "pre-installed
in $ac_dir" >&6; }
18131 elif test "x
$target" = "x
$host"; then
18132 # We can use an host tool
18133 LIPO_FOR_TARGET='$(LIPO)'
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18135 $as_echo "host tool
" >&6; }
18137 # We need a cross tool
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18139 $as_echo "pre-installed
" >&6; }
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18144 $as_echo_n "checking where to
find the target nm...
" >&6; }
18145 if test "x
${build}" != "x
${host}" ; then
18146 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18147 # We already found the complete path
18148 ac_dir=`dirname $NM_FOR_TARGET`
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18150 $as_echo "pre-installed
in $ac_dir" >&6; }
18152 # Canadian cross, just use what we found
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18154 $as_echo "pre-installed
" >&6; }
18158 case " ${configdirs} " in
18163 if test $ok = yes; then
18164 # An in-tree tool is available and we can use it
18165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18167 $as_echo "just compiled
" >&6; }
18168 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18169 # We already found the complete path
18170 ac_dir=`dirname $NM_FOR_TARGET`
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18172 $as_echo "pre-installed
in $ac_dir" >&6; }
18173 elif test "x
$target" = "x
$host"; then
18174 # We can use an host tool
18175 NM_FOR_TARGET='$(NM)'
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18177 $as_echo "host tool
" >&6; }
18179 # We need a cross tool
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18181 $as_echo "pre-installed
" >&6; }
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18186 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18187 if test "x
${build}" != "x
${host}" ; then
18188 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18189 # We already found the complete path
18190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18192 $as_echo "pre-installed
in $ac_dir" >&6; }
18194 # Canadian cross, just use what we found
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18196 $as_echo "pre-installed
" >&6; }
18200 case " ${configdirs} " in
18205 if test $ok = yes; then
18206 # An in-tree tool is available and we can use it
18207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18209 $as_echo "just compiled
" >&6; }
18210 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18211 # We already found the complete path
18212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18214 $as_echo "pre-installed
in $ac_dir" >&6; }
18215 elif test "x
$target" = "x
$host"; then
18216 # We can use an host tool
18217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18219 $as_echo "host tool
" >&6; }
18221 # We need a cross tool
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18223 $as_echo "pre-installed
" >&6; }
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18228 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18229 if test "x
${build}" != "x
${host}" ; then
18230 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18231 # We already found the complete path
18232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18234 $as_echo "pre-installed
in $ac_dir" >&6; }
18236 # Canadian cross, just use what we found
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18238 $as_echo "pre-installed
" >&6; }
18242 case " ${configdirs} " in
18247 if test $ok = yes; then
18248 # An in-tree tool is available and we can use it
18249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18251 $as_echo "just compiled
" >&6; }
18252 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18253 # We already found the complete path
18254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18256 $as_echo "pre-installed
in $ac_dir" >&6; }
18257 elif test "x
$target" = "x
$host"; then
18258 # We can use an host tool
18259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18261 $as_echo "host tool
" >&6; }
18263 # We need a cross tool
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18265 $as_echo "pre-installed
" >&6; }
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18270 $as_echo_n "checking where to
find the target otool...
" >&6; }
18271 if test "x
${build}" != "x
${host}" ; then
18272 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18273 # We already found the complete path
18274 ac_dir=`dirname $OTOOL_FOR_TARGET`
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18276 $as_echo "pre-installed
in $ac_dir" >&6; }
18278 # Canadian cross, just use what we found
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18280 $as_echo "pre-installed
" >&6; }
18283 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18284 # We already found the complete path
18285 ac_dir=`dirname $OTOOL_FOR_TARGET`
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18287 $as_echo "pre-installed
in $ac_dir" >&6; }
18288 elif test "x
$target" = "x
$host"; then
18289 # We can use an host tool
18290 OTOOL_FOR_TARGET='$(OTOOL)'
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18292 $as_echo "host tool
" >&6; }
18294 # We need a cross tool
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18296 $as_echo "pre-installed
" >&6; }
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18301 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18302 if test "x
${build}" != "x
${host}" ; then
18303 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18304 # We already found the complete path
18305 ac_dir=`dirname $RANLIB_FOR_TARGET`
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18307 $as_echo "pre-installed
in $ac_dir" >&6; }
18309 # Canadian cross, just use what we found
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18311 $as_echo "pre-installed
" >&6; }
18315 case " ${configdirs} " in
18320 if test $ok = yes; then
18321 # An in-tree tool is available and we can use it
18322 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18324 $as_echo "just compiled
" >&6; }
18325 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18326 # We already found the complete path
18327 ac_dir=`dirname $RANLIB_FOR_TARGET`
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18329 $as_echo "pre-installed
in $ac_dir" >&6; }
18330 elif test "x
$target" = "x
$host"; then
18331 # We can use an host tool
18332 RANLIB_FOR_TARGET='$(RANLIB)'
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18334 $as_echo "host tool
" >&6; }
18336 # We need a cross tool
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18338 $as_echo "pre-installed
" >&6; }
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18343 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18344 if test "x
${build}" != "x
${host}" ; then
18345 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18346 # We already found the complete path
18347 ac_dir=`dirname $READELF_FOR_TARGET`
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18349 $as_echo "pre-installed
in $ac_dir" >&6; }
18351 # Canadian cross, just use what we found
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18353 $as_echo "pre-installed
" >&6; }
18357 case " ${configdirs} " in
18362 if test $ok = yes; then
18363 # An in-tree tool is available and we can use it
18364 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18366 $as_echo "just compiled
" >&6; }
18367 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18368 # We already found the complete path
18369 ac_dir=`dirname $READELF_FOR_TARGET`
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18371 $as_echo "pre-installed
in $ac_dir" >&6; }
18372 elif test "x
$target" = "x
$host"; then
18373 # We can use an host tool
18374 READELF_FOR_TARGET='$(READELF)'
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18376 $as_echo "host tool
" >&6; }
18378 # We need a cross tool
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18380 $as_echo "pre-installed
" >&6; }
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18385 $as_echo_n "checking where to
find the target strip...
" >&6; }
18386 if test "x
${build}" != "x
${host}" ; then
18387 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18388 # We already found the complete path
18389 ac_dir=`dirname $STRIP_FOR_TARGET`
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18391 $as_echo "pre-installed
in $ac_dir" >&6; }
18393 # Canadian cross, just use what we found
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18395 $as_echo "pre-installed
" >&6; }
18399 case " ${configdirs} " in
18404 if test $ok = yes; then
18405 # An in-tree tool is available and we can use it
18406 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18408 $as_echo "just compiled
" >&6; }
18409 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18410 # We already found the complete path
18411 ac_dir=`dirname $STRIP_FOR_TARGET`
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18413 $as_echo "pre-installed
in $ac_dir" >&6; }
18414 elif test "x
$target" = "x
$host"; then
18415 # We can use an host tool
18416 STRIP_FOR_TARGET='$(STRIP)'
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18418 $as_echo "host tool
" >&6; }
18420 # We need a cross tool
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18422 $as_echo "pre-installed
" >&6; }
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18427 $as_echo_n "checking where to
find the target windres...
" >&6; }
18428 if test "x
${build}" != "x
${host}" ; then
18429 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18430 # We already found the complete path
18431 ac_dir=`dirname $WINDRES_FOR_TARGET`
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18433 $as_echo "pre-installed
in $ac_dir" >&6; }
18435 # Canadian cross, just use what we found
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18437 $as_echo "pre-installed
" >&6; }
18441 case " ${configdirs} " in
18446 if test $ok = yes; then
18447 # An in-tree tool is available and we can use it
18448 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18450 $as_echo "just compiled
" >&6; }
18451 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18452 # We already found the complete path
18453 ac_dir=`dirname $WINDRES_FOR_TARGET`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18455 $as_echo "pre-installed
in $ac_dir" >&6; }
18456 elif test "x
$target" = "x
$host"; then
18457 # We can use an host tool
18458 WINDRES_FOR_TARGET='$(WINDRES)'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18460 $as_echo "host tool
" >&6; }
18462 # We need a cross tool
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18464 $as_echo "pre-installed
" >&6; }
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18469 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18470 if test "x
${build}" != "x
${host}" ; then
18471 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $WINDMC_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18475 $as_echo "pre-installed
in $ac_dir" >&6; }
18477 # Canadian cross, just use what we found
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18479 $as_echo "pre-installed
" >&6; }
18483 case " ${configdirs} " in
18488 if test $ok = yes; then
18489 # An in-tree tool is available and we can use it
18490 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18492 $as_echo "just compiled
" >&6; }
18493 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18494 # We already found the complete path
18495 ac_dir=`dirname $WINDMC_FOR_TARGET`
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18497 $as_echo "pre-installed
in $ac_dir" >&6; }
18498 elif test "x
$target" = "x
$host"; then
18499 # We can use an host tool
18500 WINDMC_FOR_TARGET='$(WINDMC)'
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18502 $as_echo "host tool
" >&6; }
18504 # We need a cross tool
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18506 $as_echo "pre-installed
" >&6; }
18514 # Certain tools may need extra flags.
18515 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18516 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18517 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18519 # When building target libraries, except in a Canadian cross, we use
18520 # the same toolchain as the compiler we just built.
18521 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18522 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18523 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18524 if test $host = $build; then
18525 case " $configdirs " in
18527 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18528 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18529 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18539 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18540 # Check whether --enable-maintainer-mode was given.
18541 if test "${enable_maintainer_mode+set}" = set; then :
18542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18544 USE_MAINTAINER_MODE=no
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18551 if test "$USE_MAINTAINER_MODE" = yes; then
18552 MAINTAINER_MODE_TRUE=
18553 MAINTAINER_MODE_FALSE='#'
18555 MAINTAINER_MODE_TRUE='#'
18556 MAINTAINER_MODE_FALSE=
18558 MAINT=$MAINTAINER_MODE_TRUE
18560 # ---------------------
18561 # GCC bootstrap support
18562 # ---------------------
18564 # Stage specific cflags for build.
18569 yes) stage1_cflags="-g -Wa,-J" ;;
18570 *) stage1_cflags="-g -J" ;;
18576 # Enable --enable-checking in stage1 of the compiler.
18577 # Check whether --enable-stage1-checking was given.
18578 if test "${enable_stage1_checking+set}" = set; then :
18579 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18581 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18582 # For --disable-checking or implicit --enable-checking=release, avoid
18583 # setting --enable-checking=gc in the default stage1 checking for LTO
18584 # bootstraps. See PR62077.
18585 case $BUILD_CONFIG in
18587 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18589 stage1_checking=--enable-checking=yes,types;;
18591 if test "x
$enable_checking" = x && \
18592 test -d ${srcdir}/gcc && \
18593 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18594 stage1_checking=--enable-checking=yes,types,extra
18597 stage1_checking=--enable-checking=$enable_checking,types
18603 # Enable -Werror in bootstrap stage2 and later.
18604 # Check whether --enable-werror was given.
18605 if test "${enable_werror+set}" = set; then :
18606 enableval=$enable_werror;
18607 case ${enable_werror} in
18608 yes) stage2_werror_flag="--enable-werror-always" ;;
18609 *) stage2_werror_flag="" ;;
18614 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18615 case $BUILD_CONFIG in
18617 stage2_werror_flag="--enable-werror-always" ;;
18619 stage2_werror_flag="--enable-werror-always" ;;
18628 # Specify what files to not compare during bootstrap.
18630 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18631 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18632 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18633 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18635 hppa*64*-*-hpux*) ;;
18636 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18640 ac_config_files="$ac_config_files Makefile
"
18642 cat >confcache <<\_ACEOF
18643 # This file is a shell script that caches the results of configure
18644 # tests run on this system so they can be shared between configure
18645 # scripts and configure runs, see configure's option --config-cache.
18646 # It is not useful on other systems. If it contains results you don't
18647 # want to keep, you may remove or edit it.
18649 # config.status only pays attention to the cache file if you give it
18650 # the --recheck option to rerun configure.
18652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18654 # following values.
18658 # The following way of writing the cache mishandles newlines in values,
18659 # but we know of no workaround that is simple, portable, and efficient.
18660 # So, we kill variables containing newlines.
18661 # Ultrix sh set writes to stderr and can't be redirected directly,
18662 # and sets the high bit in the cache file unless we assign to the vars.
18664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18665 eval ac_val=\$$ac_var
18669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18670 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18673 _ | IFS | as_nl) ;; #(
18674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18675 *) { eval $ac_var=; unset $ac_var;} ;;
18681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18682 *${as_nl}ac_space=\ *)
18683 # `set' does not quote correctly, so add quotes: double-quote
18684 # substitution turns \\\\ into \\, and sed turns \\ into \.
18687 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18690 # `set' quotes correctly as required by POSIX, so do not add quotes.
18691 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18705 if test -w "$cache_file"; then
18706 if test "x
$cache_file" != "x
/dev
/null
"; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18708 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18709 if test ! -f "$cache_file" || test -h "$cache_file"; then
18710 cat confcache >"$cache_file"
18712 case $cache_file in #(
18714 mv -f confcache "$cache_file"$$ &&
18715 mv -f "$cache_file"$$ "$cache_file" ;; #(
18717 mv -f confcache "$cache_file" ;;
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18723 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18728 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18729 # Let make expand exec_prefix.
18730 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18732 # Transform confdefs.h into DEFS.
18733 # Protect against shell expansion while executing Makefile rules.
18734 # Protect against Makefile macro expansion.
18736 # If the first sed substitution is executed (which looks for macros that
18737 # take arguments), then branch to the quote section. Otherwise,
18738 # look for a macro that doesn't take arguments.
18748 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18750 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18754 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18767 DEFS=`sed -n "$ac_script" confdefs.h`
18773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18774 # 1. Remove the extension, and $U if already installed.
18775 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18778 # will be set to the directory where LIBOBJS objects are built.
18779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18782 LIBOBJS=$ac_libobjs
18784 LTLIBOBJS=$ac_ltlibobjs
18788 : "${CONFIG_STATUS=./config.status}"
18790 ac_clean_files_save=$ac_clean_files
18791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18797 # Generated by $as_me.
18798 # Run this file to recreate the current configuration.
18799 # Compiler output produced by configure, useful for debugging
18800 # configure, is in config.log if it exists.
18803 ac_cs_recheck=false
18806 SHELL=\${CONFIG_SHELL-$SHELL}
18809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18810 ## -------------------- ##
18811 ## M4sh Initialization. ##
18812 ## -------------------- ##
18814 # Be more Bourne compatible
18815 DUALCASE=1; export DUALCASE # for MKS sh
18816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18820 # is contrary to our usage. Disable this feature.
18821 alias -g '${1+"$@"}'='"$@"'
18822 setopt NO_GLOB_SUBST
18824 case `(set -o) 2>/dev/null` in #(
18836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18838 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18839 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18840 # Prefer a ksh shell builtin over an external printf program on Solaris,
18841 # but without wasting forks for bash or zsh.
18842 if test -z "$BASH_VERSION$ZSH_VERSION" \
18843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18844 as_echo
='print -r --'
18845 as_echo_n
='print -rn --'
18846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18847 as_echo
='printf %s\n'
18848 as_echo_n
='printf %s'
18850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18851 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18852 as_echo_n
='/usr/ucb/echo -n'
18854 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18855 as_echo_n_body
='eval
18859 expr "X$arg" : "X\\(.*\\)$as_nl";
18860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18864 export as_echo_n_body
18865 as_echo_n
='sh -c $as_echo_n_body as_echo'
18867 export as_echo_body
18868 as_echo
='sh -c $as_echo_body as_echo'
18871 # The user is always right.
18872 if test "${PATH_SEPARATOR+set}" != set; then
18874 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18875 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18882 # We need space, tab and new line, in precisely that order. Quoting is
18883 # there to prevent editors from complaining about space-tab.
18884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18885 # splitting by setting IFS to empty value.)
18888 # Find who we are. Look in the path if we contain no directory separator.
18891 *[\\/]* ) as_myself
=$0 ;;
18892 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18893 for as_dir
in $PATH
18896 test -z "$as_dir" && as_dir
=.
18897 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18903 # We did not find ourselves, most probably we were run as `sh COMMAND'
18904 # in which case we are not to be found in the path.
18905 if test "x$as_myself" = x
; then
18908 if test ! -f "$as_myself"; then
18909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18913 # Unset variables that we do not need and which cause bugs (e.g. in
18914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18915 # suppresses any "Segmentation fault" message there. '((' could
18916 # trigger a bug in pdksh 5.2.14.
18917 for as_var
in BASH_ENV ENV MAIL MAILPATH
18918 do eval test x\
${$as_var+set} = xset \
18919 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18932 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18936 # ----------------------------------------
18937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18939 # script with STATUS, using 1 if that was 0.
18942 as_status
=$1; test $as_status -eq 0 && as_status
=1
18944 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18947 $as_echo "$as_me: error: $2" >&2
18948 as_fn_exit
$as_status
18952 # as_fn_set_status STATUS
18953 # -----------------------
18954 # Set $? to STATUS, without forking.
18955 as_fn_set_status
()
18958 } # as_fn_set_status
18960 # as_fn_exit STATUS
18961 # -----------------
18962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18966 as_fn_set_status
$1
18972 # Portably unset VAR.
18975 { eval $1=; unset $1;}
18977 as_unset
=as_fn_unset
18978 # as_fn_append VAR VALUE
18979 # ----------------------
18980 # Append the text in VALUE to the end of the definition contained in VAR. Take
18981 # advantage of any shell optimizations that allow amortized linear growth over
18982 # repeated appends, instead of the typical quadratic growth present in naive
18984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18985 eval 'as_fn_append ()
18996 # as_fn_arith ARG...
18997 # ------------------
18998 # Perform arithmetic evaluation on the ARGs, and store the result in the
18999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19000 # must be portable across $(()) and expr.
19001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19002 eval 'as_fn_arith ()
19009 as_val
=`expr "$@" || test $? -eq 1`
19014 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19015 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19021 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19022 as_basename
=basename
19027 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19033 as_me
=`$as_basename -- "$0" ||
19034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19035 X"$0" : 'X\(//\)$' \| \
19036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19038 sed '/^.*\/\([^/][^/]*\)\/*$/{
19052 # Avoid depending upon Character Ranges.
19053 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19054 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19055 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19056 as_cr_digits
='0123456789'
19057 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19059 ECHO_C
= ECHO_N
= ECHO_T
=
19060 case `echo -n x` in #(((((
19062 case `echo 'xy\c'` in
19063 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19065 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19072 rm -f conf$$ conf$$.exe conf$$.
file
19073 if test -d conf$$.dir
; then
19074 rm -f conf$$.dir
/conf$$.
file
19077 mkdir conf$$.dir
2>/dev
/null
19079 if (echo >conf$$.
file) 2>/dev
/null
; then
19080 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19082 # ... but there are two gotchas:
19083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19085 # In both cases, we have to default to `cp -pR'.
19086 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19088 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19096 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19097 rmdir conf$$.dir
2>/dev
/null
19102 # Create "$as_dir" as a directory, including parents if necessary.
19107 -*) as_dir
=.
/$as_dir;;
19109 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19113 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19114 *) as_qdir
=$as_dir;;
19116 as_dirs
="'$as_qdir' $as_dirs"
19117 as_dir
=`$as_dirname -- "$as_dir" ||
19118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119 X"$as_dir" : 'X\(//\)[^/]' \| \
19120 X"$as_dir" : 'X\(//\)$' \| \
19121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19122 $as_echo X"$as_dir" |
19123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19127 /^X\(\/\/\)[^/].*/{
19140 test -d "$as_dir" && break
19142 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19143 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19147 if mkdir
-p .
2>/dev
/null
; then
19148 as_mkdir_p
='mkdir -p "$as_dir"'
19150 test -d .
/-p && rmdir .
/-p
19155 # as_fn_executable_p FILE
19156 # -----------------------
19157 # Test if FILE is an executable regular file.
19158 as_fn_executable_p
()
19160 test -f "$1" && test -x "$1"
19161 } # as_fn_executable_p
19162 as_test_x
='test -x'
19163 as_executable_p
=as_fn_executable_p
19165 # Sed expression to map a string onto a valid CPP name.
19166 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19168 # Sed expression to map a string onto a valid variable name.
19169 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19173 ## ----------------------------------- ##
19174 ## Main body of $CONFIG_STATUS script. ##
19175 ## ----------------------------------- ##
19177 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19180 # Save the log message, to keep $0 and so on meaningful, and to
19181 # report actual input values of CONFIG_FILES etc. instead of their
19182 # values after options handling.
19184 This file was extended by $as_me, which was
19185 generated by GNU Autoconf 2.69. Invocation command line was
19187 CONFIG_FILES = $CONFIG_FILES
19188 CONFIG_HEADERS = $CONFIG_HEADERS
19189 CONFIG_LINKS = $CONFIG_LINKS
19190 CONFIG_COMMANDS = $CONFIG_COMMANDS
19193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19198 case $ac_config_files in *"
19199 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 # Files that config.status was made for.
19206 config_files="$ac_config_files"
19210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19212 \`$as_me' instantiates files and other configuration actions
19213 from templates according to the current configuration. Unless the files
19214 and actions are specified as TAGs, all are instantiated by default.
19216 Usage: $0 [OPTION]... [TAG]...
19218 -h, --help print this help, then exit
19219 -V, --version print version number and configuration settings, then exit
19220 --config print configuration, then exit
19221 -q, --quiet, --silent
19222 do not print progress messages
19223 -d, --debug don't remove temporary files
19224 --recheck update $as_me by reconfiguring in the same conditions
19225 --file=FILE[:TEMPLATE]
19226 instantiate the configuration file FILE
19228 Configuration files:
19231 Report bugs to the package provider."
19234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19235 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19238 configured by $0, generated by GNU Autoconf 2.69,
19239 with options \\"\$ac_cs_config\\"
19241 Copyright (C) 2012 Free Software Foundation, Inc.
19242 This config.status script is free software; the Free Software Foundation
19243 gives unlimited permission to copy, distribute and modify it."
19249 test -n "\$AWK" || AWK=awk
19252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19253 # The default lists apply if the user does not specify any file.
19259 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19260 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19264 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19276 # Handling of the options.
19277 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19279 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19280 $as_echo "$ac_cs_version"; exit ;;
19281 --config |
--confi |
--conf |
--con |
--co |
--c )
19282 $as_echo "$ac_cs_config"; exit ;;
19283 --debug |
--debu |
--deb |
--de |
--d |
-d )
19285 --file |
--fil |
--fi |
--f )
19288 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19289 '') as_fn_error $?
"missing file argument" ;;
19291 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19292 ac_need_defaults
=false
;;
19293 --he |
--h |
--help |
--hel |
-h )
19294 $as_echo "$ac_cs_usage"; exit ;;
19295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19296 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19299 # This is an error.
19300 -*) as_fn_error $?
"unrecognized option: \`$1'
19301 Try \`$0 --help' for more information." ;;
19303 *) as_fn_append ac_config_targets
" $1"
19304 ac_need_defaults
=false
;;
19310 ac_configure_extra_args
=
19312 if $ac_cs_silent; then
19314 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 if \$ac_cs_recheck; then
19320 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19323 CONFIG_SHELL='$SHELL'
19324 export CONFIG_SHELL
19329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19334 ## Running $as_me. ##
19340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344 extrasub_build="$extrasub_build"
19345 extrasub_host="$extrasub_host"
19346 extrasub_target="$extrasub_target"
19350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19352 # Handling of arguments.
19353 for ac_config_target
in $ac_config_targets
19355 case $ac_config_target in
19356 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19358 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19363 # If the user did not use the arguments to specify the items to instantiate,
19364 # then the envvar interface is used. Set only those that are not.
19365 # We use the long form for the default assignment because of an extremely
19366 # bizarre bug on SunOS 4.1.3.
19367 if $ac_need_defaults; then
19368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19371 # Have a temporary directory for convenience. Make it in the build tree
19372 # simply because there is no reason against having it here, and in addition,
19373 # creating and moving files from /tmp can sometimes cause problems.
19374 # Hook for its removal unless debugging.
19375 # Note that there is a small window in which the directory will not be cleaned:
19376 # after its creation but before its name has been assigned to `$tmp'.
19380 trap 'exit_status=$?
19381 : "${ac_tmp:=$tmp}"
19382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19384 trap 'as_fn_exit 1' 1 2 13 15
19386 # Create a (secure) tmp directory for tmp files.
19389 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19393 tmp
=.
/conf$$
-$RANDOM
19394 (umask 077 && mkdir
"$tmp")
19395 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19398 # Set up the scripts for CONFIG_FILES section.
19399 # No need to generate them if there are no CONFIG_FILES.
19400 # This happens for instance with `./config.status config.h'.
19401 if test -n "$CONFIG_FILES"; then
19403 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19404 ac_cs_awk_getline
=:
19405 ac_cs_awk_pipe_init
=
19406 ac_cs_awk_read_file
='
19407 while ((getline aline < (F[key])) > 0)
19410 ac_cs_awk_pipe_fini
=
19412 ac_cs_awk_getline
=false
19413 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19414 ac_cs_awk_read_file
='
19416 print "cat " F[key] " &&"
19417 '$ac_cs_awk_pipe_init
19418 # The final `:' finishes the AND list.
19419 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19421 ac_cr
=`echo X | tr X '\015'`
19422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19423 # But we know of no other shell where ac_cr would be empty at this
19424 # point, so we can use a bashism as a fallback.
19425 if test "x$ac_cr" = x
; then
19426 eval ac_cr
=\$
\'\\r
\'
19428 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19432 ac_cs_awk_cr
=$ac_cr
19435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19438 # Create commands to substitute file output variables.
19440 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19441 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19442 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19445 } >conf$
$files.sh
&&
19446 . .
/conf$
$files.sh ||
19447 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19448 rm -f conf$
$files.sh
19451 echo "cat >conf$$subs.awk <<_ACEOF" &&
19452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19454 } >conf$$subs.sh ||
19455 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19458 for ac_last_try in false false false false false :; do
19459 . ./conf$$subs.sh ||
19460 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19462 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19463 if test $ac_delim_n = $ac_delim_num; then
19465 elif $ac_last_try; then
19466 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19468 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19471 rm -f conf$$subs.sh
19473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19478 s/^/S["/; s
/!.
*/"]=/
19488 s/\(.\{148\}\)..*/\1/
19490 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19495 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19502 s/\(.\{148\}\)..*/\1/
19504 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19508 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19513 ' <conf$$subs.awk | sed '
19518 ' >>$CONFIG_STATUS || ac_write_fail=1
19519 rm -f conf$$subs.awk
19520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19522 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19523 for (key in S) S_is_set[key] = 1
19525 \$ac_cs_awk_pipe_init
19529 nfields = split(line, field, "@
")
19531 len = length(field[1])
19532 for (i = 2; i < nfields; i++) {
19534 keylen = length(key)
19535 if (S_is_set[key]) {
19537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19538 len += length(value) + length(field[++i])
19543 if (nfields == 3 && !substed) {
19545 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19546 \$ac_cs_awk_read_file
19552 \$ac_cs_awk_pipe_fini
19555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19556 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19557 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19560 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19561 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19566 # trailing colons and then remove the whole line if VPATH becomes empty
19567 # (actually we leave an empty line to preserve line numbers).
19568 if test "x
$srcdir" = x.; then
19569 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19588 fi # test -n "$CONFIG_FILES"
19591 eval set X " :F
$CONFIG_FILES "
19596 :[FHLC]) ac_mode=$ac_tag; continue;;
19598 case $ac_mode$ac_tag in
19600 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19601 :[FH]-) ac_tag=-:-;;
19602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19619 -) ac_f="$ac_tmp/stdin";;
19620 *) # Look for the file first in the build tree, then in the source tree
19621 # (if the path is not absolute). The absolute path cannot be DOS-style,
19622 # because $ac_f cannot contain `:'.
19626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19628 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19631 as_fn_append ac_file_inputs " '$ac_f'"
19634 # Let's still pretend it is `configure' which instantiates (i.e., don't
19635 # use $as_me), people would be surprised to read:
19636 # /* config.h. Generated by config.status. */
19637 configure_input='Generated from '`
19638 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19640 if test x"$ac_file" != x-; then
19641 configure_input="$ac_file.
$configure_input"
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19643 $as_echo "$as_me: creating
$ac_file" >&6;}
19645 # Neutralize special characters interpreted by sed in replacement strings.
19646 case $configure_input in #(
19647 *\&* | *\|* | *\\* )
19648 ac_sed_conf_input=`$as_echo "$configure_input" |
19649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19650 *) ac_sed_conf_input=$configure_input;;
19654 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19655 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19660 ac_dir=`$as_dirname -- "$ac_file" ||
19661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19662 X"$ac_file" : 'X\(//\)[^/]' \| \
19663 X"$ac_file" : 'X\(//\)$' \| \
19664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19665 $as_echo X"$ac_file" |
19666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19670 /^X\(\/\/\)[^/].*/{
19683 as_dir="$ac_dir"; as_fn_mkdir_p
19687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19690 # A "..
" for each directory in $ac_dir_suffix.
19691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19692 case $ac_top_builddir_sub in
19693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19697 ac_abs_top_builddir=$ac_pwd
19698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19699 # for backward compatibility:
19700 ac_top_builddir=$ac_top_build_prefix
19703 .) # We are building in place.
19705 ac_top_srcdir=$ac_top_builddir_sub
19706 ac_abs_top_srcdir=$ac_pwd ;;
19707 [\\/]* | ?:[\\/]* ) # Absolute name.
19708 ac_srcdir=$srcdir$ac_dir_suffix;
19709 ac_top_srcdir=$srcdir
19710 ac_abs_top_srcdir=$srcdir ;;
19711 *) # Relative name.
19712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19713 ac_top_srcdir=$ac_top_build_prefix$srcdir
19714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19732 # If the template does not know about datarootdir, expand it.
19733 # FIXME: This hack should be removed a few years after 2.60.
19734 ac_datarootdir_hack=; ac_datarootdir_seen=
19745 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19746 *datarootdir*) ac_datarootdir_seen=yes;;
19747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19749 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752 ac_datarootdir_hack='
19753 s&@datadir@&$datadir&g
19754 s&@docdir@&$docdir&g
19755 s&@infodir@&$infodir&g
19756 s&@localedir@&$localedir&g
19757 s&@mandir@&$mandir&g
19758 s&\\\${datarootdir}&$datarootdir&g' ;;
19762 # Neutralize VPATH when `$srcdir' = `.'.
19763 # Shell code in configure.ac might set extrasub.
19764 # FIXME: do we really want to maintain this feature?
19765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766 ac_sed_extra="$ac_vpsub
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19771 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19772 s|@configure_input@|
$ac_sed_conf_input|
;t t
19773 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19774 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19775 s
&@srcdir@
&$ac_srcdir&;t t
19776 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19777 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19778 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19779 s
&@builddir@
&$ac_builddir&;t t
19780 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19781 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19782 s
&@INSTALL@
&$ac_INSTALL&;t t
19783 $ac_datarootdir_hack
19785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19786 if $ac_cs_awk_getline; then
19787 $AWK -f "$ac_tmp/subs.
awk"
19789 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19791 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19796 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19798 which seems to be undefined. Please make sure it is defined" >&5
19799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19800 which seems to be undefined. Please make sure it is defined" >&2;}
19802 rm -f "$ac_tmp/stdin"
19804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19815 case $ac_file$ac_mode in
19816 "Makefile":F) sed "$extrasub_build" Makefile |
19817 sed "$extrasub_host" |
19818 sed "$extrasub_target" > mf$$
19819 mv -f mf$$ Makefile ;;
19827 ac_clean_files=$ac_clean_files_save
19829 test $ac_write_fail = 0 ||
19830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19833 # configure is writing to config.log, and then calls config.status.
19834 # config.status does its own redirection, appending to config.log.
19835 # Unfortunately, on DOS this fails, as config.log is still kept open
19836 # by configure, so config.status won't be able to
write to it
; its
19837 # output is simply discarded. So we exec the FD to /dev/null,
19838 # effectively closing config.log, so it can be properly (re)opened and
19839 # appended to by config.status. When coming back to configure, we
19840 # need to make the FD available again.
19841 if test "$no_create" != yes; then
19843 ac_config_status_args
=
19844 test "$silent" = yes &&
19845 ac_config_status_args
="$ac_config_status_args --quiet"
19847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19850 # would make configure fail if this is the last instruction.
19851 $ac_cs_success || as_fn_exit
1
19853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}