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
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
690 extra_linker_plugin_flags
691 extra_linker_plugin_configure_flags
698 extra_isl_gmp_configure_flags
699 extra_mpc_mpfr_configure_flags
700 extra_mpc_gmp_configure_flags
701 extra_mpfr_configure_flags
749 TOPLEVEL_CONFIGURE_ARGUMENTS
777 program_transform_name
788 ac_subst_files
='serialization_dependencies
794 enable_option_checking
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
802 enable_compressed_debug_sections
804 enable_libquadmath_support
820 with_static_standard_libraries
827 enable_isl_version_check
829 enable_linker_plugin_configure_flags
830 enable_linker_plugin_flags
832 enable_stage1_languages
835 with_target_bdw_gc_include
836 with_target_bdw_gc_lib
837 with_gcc_major_version_only
839 with_debug_prefix_map
842 enable_serial_configure
843 with_build_time_tools
844 enable_maintainer_mode
845 enable_stage1_checking
848 ac_precious_vars
='build_alias
900 # Initialize some variables set by options.
902 ac_init_version
=false
903 ac_unrecognized_opts
=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name
=s
,x
,x
,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir
='${exec_prefix}/bin'
929 sbindir
='${exec_prefix}/sbin'
930 libexecdir
='${exec_prefix}/libexec'
931 datarootdir
='${prefix}/share'
932 datadir
='${datarootdir}'
933 sysconfdir
='${prefix}/etc'
934 sharedstatedir
='${prefix}/com'
935 localstatedir
='${prefix}/var'
936 includedir
='${prefix}/include'
937 oldincludedir
='/usr/include'
938 docdir
='${datarootdir}/doc/${PACKAGE}'
939 infodir
='${datarootdir}/info'
944 libdir
='${exec_prefix}/lib'
945 localedir
='${datarootdir}/locale'
946 mandir
='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\
$ac_option
960 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
973 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
976 -build |
--build |
--buil |
--bui |
--bu)
977 ac_prev
=build_alias
;;
978 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
979 build_alias
=$ac_optarg ;;
981 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
982 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
983 ac_prev
=cache_file
;;
984 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
985 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
986 cache_file
=$ac_optarg ;;
989 cache_file
=config.cache
;;
991 -datadir |
--datadir |
--datadi |
--datad)
993 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
994 datadir
=$ac_optarg ;;
996 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
997 |
--dataroo |
--dataro |
--datar)
998 ac_prev
=datarootdir
;;
999 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1000 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1001 datarootdir
=$ac_optarg ;;
1003 -disable-* |
--disable-*)
1004 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error $?
"invalid feature name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_
$ac_useropt"
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval enable_
$ac_useropt=no
;;
1019 -docdir |
--docdir |
--docdi |
--doc |
--do)
1021 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1022 docdir
=$ac_optarg ;;
1024 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1026 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1027 dvidir
=$ac_optarg ;;
1029 -enable-* |
--enable-*)
1030 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1033 as_fn_error $?
"invalid feature name: $ac_useropt"
1034 ac_useropt_orig
=$ac_useropt
1035 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_
$ac_useropt"
1040 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep
=', ';;
1043 eval enable_
$ac_useropt=\
$ac_optarg ;;
1045 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1046 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1047 |
--exec |
--exe |
--ex)
1048 ac_prev
=exec_prefix
;;
1049 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1050 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1051 |
--exec=* |
--exe=* |
--ex=*)
1052 exec_prefix
=$ac_optarg ;;
1054 -gas |
--gas |
--ga |
--g)
1055 # Obsolete; use --with-gas.
1058 -help |
--help |
--hel |
--he |
-h)
1059 ac_init_help
=long
;;
1060 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1061 ac_init_help
=recursive
;;
1062 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1063 ac_init_help
=short
;;
1065 -host |
--host |
--hos |
--ho)
1066 ac_prev
=host_alias
;;
1067 -host=* |
--host=* |
--hos=* |
--ho=*)
1068 host_alias
=$ac_optarg ;;
1070 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1072 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1074 htmldir
=$ac_optarg ;;
1076 -includedir |
--includedir |
--includedi |
--included |
--include \
1077 |
--includ |
--inclu |
--incl |
--inc)
1078 ac_prev
=includedir
;;
1079 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1080 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1081 includedir
=$ac_optarg ;;
1083 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1085 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1086 infodir
=$ac_optarg ;;
1088 -libdir |
--libdir |
--libdi |
--libd)
1090 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1091 libdir
=$ac_optarg ;;
1093 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1094 |
--libexe |
--libex |
--libe)
1095 ac_prev
=libexecdir
;;
1096 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1097 |
--libexe=* |
--libex=* |
--libe=*)
1098 libexecdir
=$ac_optarg ;;
1100 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1101 ac_prev
=localedir
;;
1102 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1103 localedir
=$ac_optarg ;;
1105 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1106 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1107 ac_prev
=localstatedir
;;
1108 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1109 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1110 localstatedir
=$ac_optarg ;;
1112 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1114 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1115 mandir
=$ac_optarg ;;
1117 -nfp |
--nfp |
--nf)
1118 # Obsolete; use --without-fp.
1121 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1122 |
--no-cr |
--no-c |
-n)
1125 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1126 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1129 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1130 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1131 |
--oldin |
--oldi |
--old |
--ol |
--o)
1132 ac_prev
=oldincludedir
;;
1133 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1134 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1135 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1136 oldincludedir
=$ac_optarg ;;
1138 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1140 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1141 prefix
=$ac_optarg ;;
1143 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1144 |
--program-pre |
--program-pr |
--program-p)
1145 ac_prev
=program_prefix
;;
1146 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1147 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1148 program_prefix
=$ac_optarg ;;
1150 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1151 |
--program-suf |
--program-su |
--program-s)
1152 ac_prev
=program_suffix
;;
1153 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1154 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1155 program_suffix
=$ac_optarg ;;
1157 -program-transform-name |
--program-transform-name \
1158 |
--program-transform-nam |
--program-transform-na \
1159 |
--program-transform-n |
--program-transform- \
1160 |
--program-transform |
--program-transfor \
1161 |
--program-transfo |
--program-transf \
1162 |
--program-trans |
--program-tran \
1163 |
--progr-tra |
--program-tr |
--program-t)
1164 ac_prev
=program_transform_name
;;
1165 -program-transform-name=* |
--program-transform-name=* \
1166 |
--program-transform-nam=* |
--program-transform-na=* \
1167 |
--program-transform-n=* |
--program-transform-=* \
1168 |
--program-transform=* |
--program-transfor=* \
1169 |
--program-transfo=* |
--program-transf=* \
1170 |
--program-trans=* |
--program-tran=* \
1171 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1172 program_transform_name
=$ac_optarg ;;
1174 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1176 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1177 pdfdir
=$ac_optarg ;;
1179 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1181 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1184 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1185 |
-silent |
--silent |
--silen |
--sile |
--sil)
1188 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1190 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1192 sbindir
=$ac_optarg ;;
1194 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1195 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1196 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1198 ac_prev
=sharedstatedir
;;
1199 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1200 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1201 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1203 sharedstatedir
=$ac_optarg ;;
1205 -site |
--site |
--sit)
1207 -site=* |
--site=* |
--sit=*)
1210 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1212 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1213 srcdir
=$ac_optarg ;;
1215 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1216 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1217 ac_prev
=sysconfdir
;;
1218 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1219 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1220 sysconfdir
=$ac_optarg ;;
1222 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1223 ac_prev
=target_alias
;;
1224 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1225 target_alias
=$ac_optarg ;;
1227 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1230 -version |
--version |
--versio |
--versi |
--vers |
-V)
1231 ac_init_version
=: ;;
1234 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error $?
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=\
$ac_optarg ;;
1249 -without-* |
--without-*)
1250 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=no
;;
1266 # Obsolete; use --with-x.
1269 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1270 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1271 ac_prev
=x_includes
;;
1272 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1273 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1274 x_includes
=$ac_optarg ;;
1276 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1277 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1278 ac_prev
=x_libraries
;;
1279 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1280 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1281 x_libraries
=$ac_optarg ;;
1283 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1288 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1292 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\
$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 if test -n "$ac_prev"; then
1309 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $?
"missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val
=\$
$ac_var
1328 # Remove trailing slashes.
1331 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\
$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$
]* | ?
:[\\/]* ) continue;;
1337 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1339 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target
=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x
; then
1351 if test "x$build_alias" = x
; then
1352 cross_compiling
=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1359 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1361 test "$silent" = yes && exec 6>/dev
/null
1364 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di
=`ls -di .` &&
1366 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $?
"working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $?
"pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted
=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir
=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1404 ac_srcdir_defaulted
=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1408 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 as_fn_error $?
"path to source, $srcdir, contains spaces"
1429 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431 for ac_var
in $ac_precious_vars; do
1432 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1434 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1445 \`configure' configures this package to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking ...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1508 --build=BUILD configure
for building on BUILD
[guessed
]
1509 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1510 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1514 if test -n "$ac_init_help"; then
1519 --disable-option-checking ignore unrecognized
--enable/--with options
1520 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1521 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1522 --enable-as-accelerator-for=ARG
1523 build as offload target compiler. Specify offload
1525 --enable-offload-targets=LIST
1526 enable offloading to devices from comma-separated
1527 LIST of TARGET
[=DIR
]. Use optional path to
find
1528 offload target compiler during the build
1529 --enable-offload-defaulted
1530 If enabled
, configured but not installed offload compilers and
1531 libgomp plugins are silently ignored. Useful
for distribution
1532 compilers where those are
in separate optional packages.
1534 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1535 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1536 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1537 Enable compressed debug sections
for gas
, gold or ld
1539 --disable-libquadmath do not build libquadmath directory
1540 --disable-libquadmath-support
1541 disable libquadmath support
for Fortran
1542 --enable-libada build libada directory
1543 --enable-libssp build libssp directory
1544 --disable-libstdcxx do not build libstdc
++-v3 directory
1545 --enable-bootstrap enable bootstrapping
[yes if native build
]
1546 --enable-pgo-build[=lto
]
1547 enable the PGO build
1548 --disable-isl-version-check
1549 disable check
for isl version
1550 --enable-lto enable link
time optimization support
1551 --enable-linker-plugin-configure-flags=FLAGS
1552 additional flags
for configuring linker plugins
1554 --enable-linker-plugin-flags=FLAGS
1555 additional flags
for configuring and building linker
1557 --enable-host-shared build
host code as shared libraries
1558 --enable-stage1-languages[=all
]
1559 choose additional languages to build during stage1.
1560 Mostly useful
for compiler development
1561 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1563 --enable-vtable-verify Enable vtable verification feature
1564 --enable-serial-[{host,target,build}-]configure
1565 force sequential configuration of sub-packages for
1566 the host, target or build machine, or all
1568 --enable-maintainer-mode
1569 enable make rules and dependencies not useful (and
1570 sometimes confusing) to the casual installer
1571 --enable-stage1-checking[=all]
1572 choose additional checking for stage1 of the
1574 --enable-werror enable -Werror in bootstrap stage2 and later
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-build-libsubdir=DIR Directory where to find libraries for build system
1580 --with-system-zlib use installed libz
1581 --with-mpc=PATH specify prefix directory for installed MPC package.
1582 Equivalent to --with-mpc-include=PATH/include plus
1583 --with-mpc-lib=PATH/lib
1584 --with-mpc-include=PATH specify directory for installed MPC include files
1585 --with-mpc-lib=PATH specify directory for the installed MPC library
1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1589 --with-mpfr-include=PATH
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1592 --with-gmp=PATH specify prefix directory for the installed GMP
1593 package. Equivalent to
1594 --with-gmp-include=PATH/include plus
1595 --with-gmp-lib=PATH/lib
1596 --with-gmp-include=PATH specify directory for installed GMP include files
1597 --with-gmp-lib=PATH specify directory for the installed GMP library
1598 --with-stage1-libs=LIBS libraries for stage1
1599 --with-static-standard-libraries
1600 use -static-libstdc++ and -static-libgcc
1602 --with-stage1-ldflags=FLAGS
1603 linker flags for stage1
1604 --with-boot-libs=LIBS libraries for stage2 and later
1605 --with-boot-ldflags=FLAGS
1606 linker flags for stage2 and later
1607 --with-isl=PATH Specify prefix directory for the installed isl
1608 package. Equivalent to
1609 --with-isl-include=PATH/include plus
1610 --with-isl-lib=PATH/lib
1611 --with-isl-include=PATH Specify directory for installed isl include files
1612 --with-isl-lib=PATH Specify the directory for the installed isl library
1613 --with-target-bdw-gc=PATHLIST
1614 specify prefix directory for installed bdw-gc
1615 package. Equivalent to
1616 --with-target-bdw-gc-include=PATH/include plus
1617 --with-target-bdw-gc-lib=PATH/lib
1618 --with-target-bdw-gc-include=PATHLIST
1619 specify directories for installed bdw-gc include
1621 --with-target-bdw-gc-lib=PATHLIST
1622 specify directories for installed bdw-gc library
1623 --with-gcc-major-version-only
1624 use only GCC major number in filesystem paths
1625 --with-build-sysroot=SYSROOT
1626 use sysroot as the system root during the build
1627 --with-debug-prefix-map='A
=B C
=D ...
'
1628 map A to B, C to D ... in debug information
1629 --with-build-config='NAME NAME2...
'
1630 use config/NAME.mk build configuration
1631 --with-build-time-tools=PATH
1632 use given path to find target tools during the build
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1645 additional configure arguments for build directories
1647 additional configure arguments for host directories
1649 additional configure arguments for target directories
1652 DLLTOOL DLLTOOL for the host
1653 DSYMUTIL DSYMUTIL for the host
1655 LIPO LIPO for the host
1657 RANLIB RANLIB for the host
1658 STRIP STRIP for the host
1659 WINDRES WINDRES for the host
1660 WINDMC WINDMC for the host
1661 OBJCOPY OBJCOPY for the host
1662 OBJDUMP OBJDUMP for the host
1663 OTOOL OTOOL for the host
1664 READELF READELF for the host
1672 GFORTRAN for the target
1682 DLLTOOL for the target
1684 DSYMUTIL for the target
1692 OBJCOPY for the target
1694 OBJDUMP for the target
1696 OTOOL for the target
1698 RANLIB for the target
1700 READELF for the target
1702 STRIP for the target
1704 WINDRES for the target
1706 WINDMC for the target
1708 Use these variables to override the choices made by `configure' or to
help
1709 it to
find libraries and programs with nonstandard names
/locations.
1711 Report bugs to the package provider.
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1725 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1727 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1732 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1735 ac_abs_top_builddir
=$ac_pwd
1736 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir
=$ac_top_build_prefix
1741 .
) # We are building in place.
1743 ac_top_srcdir
=$ac_top_builddir_sub
1744 ac_abs_top_srcdir
=$ac_pwd ;;
1745 [\\/]* | ?
:[\\/]* ) # Absolute name.
1746 ac_srcdir
=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir
=$srcdir
1748 ac_abs_top_srcdir
=$srcdir ;;
1750 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1754 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1756 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1775 generated by GNU Autoconf
2.69
1777 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1778 This configure
script is free software
; the Free Software Foundation
1779 gives unlimited permission to copy
, distribute and modify it.
1784 ## ------------------------ ##
1785 ## Autoconf initialization. ##
1786 ## ------------------------ ##
1788 # ac_fn_c_try_compile LINENO
1789 # --------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_compile
()
1793 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1794 rm -f conftest.
$ac_objext
1795 if { { ac_try
="$ac_compile"
1797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_compile
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1836 *) ac_try_echo
=$ac_try;;
1838 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1842 if test -s conftest.err
; then
1843 grep -v '^ *+' conftest.err
>conftest.er1
1844 cat conftest.er1
>&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.
$ac_objext; then :
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status
$ac_retval
1862 } # ac_fn_cxx_try_compile
1864 # ac_fn_cxx_try_link LINENO
1865 # -------------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_cxx_try_link
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1870 rm -f conftest.
$ac_objext conftest
$ac_exeext
1871 if { { ac_try
="$ac_link"
1873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_cxx_try_link
1910 # ac_fn_c_try_link LINENO
1911 # -----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded.
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1920 *) ac_try_echo
=$ac_try;;
1922 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1926 if test -s conftest.err
; then
1927 grep -v '^ *+' conftest.err
>conftest.er1
1928 cat conftest.er1
>&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest
$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 test -x conftest
$ac_exeext
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.
$ac_ext >&5
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status
$ac_retval
1954 } # ac_fn_c_try_link
1955 cat >config.log
<<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1959 It was created by $as_me, which was
1960 generated by GNU Autoconf 2.69. Invocation command line was
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir
=.
1996 $as_echo "PATH: $as_dir"
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_must_keep_next
=false
2026 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2027 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2028 |
-silent |
--silent |
--silen |
--sile |
--sil)
2031 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2036 as_fn_append ac_configure_args1
" '$ac_arg'"
2037 if test $ac_must_keep_next = true
; then
2038 ac_must_keep_next
=false
# Got value, back to normal.
2041 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2042 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2043 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2044 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 -* ) ac_must_keep_next
=true
;;
2052 as_fn_append ac_configure_args
" '$ac_arg'"
2057 { ac_configure_args0
=; unset ac_configure_args0
;}
2058 { ac_configure_args1
=; unset ac_configure_args1
;}
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log. We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2070 $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2074 # The following way of writing the cache mishandles newlines in values,
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2106 $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2110 for ac_var in $ac_subst_vars
2112 eval ac_val=\$$ac_var
2114 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 $as_echo "$ac_var='\''$ac_val'\''"
2120 if test -n "$ac_subst_files"; then
2121 $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2125 for ac_var
in $ac_subst_files
2127 eval ac_val
=\$
$ac_var
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 $as_echo "$ac_var='\''$ac_val'\''"
2136 if test -s confdefs.h; then
2137 $as_echo "## ----------- ##
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152 for ac_signal
in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest
* confdefs.h
2160 $as_echo "/* confdefs.h */" > confdefs.h
2162 # Predefined preprocessor variables.
2164 cat >>confdefs.h
<<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2168 cat >>confdefs.h
<<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172 cat >>confdefs.h
<<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176 cat >>confdefs.h
<<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2193 if test -n "$CONFIG_SITE"; then
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2197 */*) ac_site_file1
=$CONFIG_SITE;;
2198 *) ac_site_file1
=.
/$CONFIG_SITE;;
2200 elif test "x$prefix" != xNONE
; then
2201 ac_site_file1
=$prefix/share
/config.site
2202 ac_site_file2
=$prefix/etc
/config.site
2204 ac_site_file1
=$ac_default_prefix/share
/config.site
2205 ac_site_file2
=$ac_default_prefix/etc
/config.site
2207 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2209 test "x$ac_site_file" = xNONE
&& continue
2210 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2215 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $?
"failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2230 *) .
"./$cache_file";;
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 # Check that the precious variables saved in the cache have kept the same
2241 ac_cache_corrupted
=false
2242 for ac_var
in $ac_precious_vars; do
2243 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2244 eval ac_new_set
=\
$ac_env_${ac_var}_set
2245 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2246 eval ac_new_val
=\
$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted
=: ;;
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted
=: ;;
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w
=`echo x $ac_old_val`
2261 ac_new_val_w
=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted
=:
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\
$ac_old_val
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2280 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg
=$ac_var=$ac_new_val ;;
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2301 ac_cpp
='$CPP $CPPFLAGS'
2302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2314 # if PWD already has a value, it is probably wrong.
2315 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2317 # Export original configure arguments for use by sub-configures.
2318 # Quote arguments with shell meta charatcers.
2319 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2320 set -- "$progname" "$@"
2324 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2325 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2326 # if the argument is of the form -foo=baz, quote the baz part only
2327 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2330 # Add the quoted argument to the list.
2331 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2333 if test "$silent" = yes; then
2334 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2336 # Remove the initial space we just introduced and, as these will be
2337 # expanded by make, quote '$'.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2341 # Find the build, host, and target systems.
2343 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2344 if test -f "$ac_dir/install-sh"; then
2346 ac_install_sh
="$ac_aux_dir/install-sh -c"
2348 elif test -f "$ac_dir/install.sh"; then
2350 ac_install_sh
="$ac_aux_dir/install.sh -c"
2352 elif test -f "$ac_dir/shtool"; then
2354 ac_install_sh
="$ac_aux_dir/shtool install -c"
2358 if test -z "$ac_aux_dir"; then
2359 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2362 # These three variables are undocumented and unsupported,
2363 # and are intended to be withdrawn in a future Autoconf release.
2364 # They can cause serious problems if a builder's source tree is in a directory
2365 # whose full name contains unusual characters.
2366 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371 # Make sure we can run config.sub.
2372 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2373 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376 $as_echo_n "checking build system type... " >&6; }
2377 if ${ac_cv_build+:} false
; then :
2378 $as_echo_n "(cached) " >&6
2380 ac_build_alias
=$build_alias
2381 test "x$ac_build_alias" = x
&&
2382 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2383 test "x$ac_build_alias" = x
&&
2384 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2385 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390 $as_echo "$ac_cv_build" >&6; }
2391 case $ac_cv_build in
2393 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2396 ac_save_IFS
=$IFS; IFS
='-'
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2406 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2409 case ${build_alias} in
2410 "") build_noncanonical
=${build} ;;
2411 *) build_noncanonical
=${build_alias} ;;
2416 case ${host_alias} in
2417 "") host_noncanonical
=${build_noncanonical} ;;
2418 *) host_noncanonical
=${host_alias} ;;
2423 case ${target_alias} in
2424 "") target_noncanonical
=${host_noncanonical} ;;
2425 *) target_noncanonical
=${target_alias} ;;
2431 test "$host_noncanonical" = "$target_noncanonical" &&
2432 test "$program_prefix$program_suffix$program_transform_name" = \
2434 program_transform_name
=s
,y
,y
,
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2437 $as_echo_n "checking host system type... " >&6; }
2438 if ${ac_cv_host+:} false
; then :
2439 $as_echo_n "(cached) " >&6
2441 if test "x$host_alias" = x
; then
2442 ac_cv_host
=$ac_cv_build
2444 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2445 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2450 $as_echo "$ac_cv_host" >&6; }
2453 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2456 ac_save_IFS
=$IFS; IFS
='-'
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2466 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2470 $as_echo_n "checking target system type... " >&6; }
2471 if ${ac_cv_target+:} false
; then :
2472 $as_echo_n "(cached) " >&6
2474 if test "x$target_alias" = x
; then
2475 ac_cv_target
=$ac_cv_host
2477 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2478 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2483 $as_echo "$ac_cv_target" >&6; }
2484 case $ac_cv_target in
2486 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2488 target
=$ac_cv_target
2489 ac_save_IFS
=$IFS; IFS
='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2502 # The aliases save the names the user supplied, while $host etc.
2503 # will get canonicalized.
2504 test -n "$target_alias" &&
2505 test "$program_prefix$program_suffix$program_transform_name" = \
2507 program_prefix
=${target_alias}-
2509 test "$program_prefix" != NONE
&&
2510 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE
&&
2513 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521 # Get 'install' or 'install-sh' and its variants.
2522 # Find a good install program. We prefer a C program (faster),
2523 # so one script is as good as another. But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if ${ac_cv_path_install+:} false
; then :
2540 $as_echo_n "(cached) " >&6
2542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir
=.
2547 # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in #((
2549 .
/ | .
// |
/[cC
]/* | \
2550 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2551 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2557 for ac_prog
in ginstall scoinst
install; do
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one
> conftest.one
2571 echo two
> conftest.two
2573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2574 test -s conftest.one
&& test -s conftest.two
&&
2575 test -s conftest.dir
/conftest.one
&&
2576 test -s conftest.dir
/conftest.two
2578 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2591 rm -rf conftest.one conftest.two conftest.dir
2594 if test "${ac_cv_path_install+set}" = set; then
2595 INSTALL
=$ac_cv_path_install
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the value is a relative name.
2601 INSTALL
=$ac_install_sh
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2613 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2616 $as_echo_n "checking whether ln works... " >&6; }
2617 if ${acx_cv_prog_LN+:} false
; then :
2618 $as_echo_n "(cached) " >&6
2620 rm -f conftestdata_t
2621 echo >conftestdata_f
2622 if ln conftestdata_f conftestdata_t
2>/dev
/null
2628 rm -f conftestdata_f conftestdata_t
2631 if test $acx_cv_prog_LN = no
; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2634 $as_echo "no, using $LN" >&6; }
2636 LN
="$acx_cv_prog_LN"
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638 $as_echo "yes" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2642 $as_echo_n "checking whether ln -s works... " >&6; }
2644 if test "$LN_S" = "ln -s"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2649 $as_echo "no, using $LN_S" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2653 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2654 if ${ac_cv_path_SED+:} false
; then :
2655 $as_echo_n "(cached) " >&6
2657 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2658 for ac_i
in 1 2 3 4 5 6 7; do
2659 ac_script
="$ac_script$as_nl$ac_script"
2661 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2662 { ac_script
=; unset ac_script
;}
2663 if test -z "$SED"; then
2664 ac_path_SED_found
=false
2665 # Loop through the user's path and test for each of PROGNAME-LIST
2666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir
=.
2671 for ac_prog
in sed gsed
; do
2672 for ac_exec_ext
in '' $ac_executable_extensions; do
2673 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2674 as_fn_executable_p
"$ac_path_SED" ||
continue
2675 # Check for GNU ac_path_SED and select it if it is found.
2676 # Check for GNU $ac_path_SED
2677 case `"$ac_path_SED" --version 2>&1` in
2679 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2682 $as_echo_n 0123456789 >"conftest.in"
2685 cat "conftest.in" "conftest.in" >"conftest.tmp"
2686 mv "conftest.tmp" "conftest.in"
2687 cp "conftest.in" "conftest.nl"
2688 $as_echo '' >> "conftest.nl"
2689 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2690 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2691 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2692 if test $ac_count -gt ${ac_path_SED_max-0}; then
2693 # Best one so far, save it but keep looking for a better one
2694 ac_cv_path_SED
="$ac_path_SED"
2695 ac_path_SED_max
=$ac_count
2697 # 10*(2^10) chars as input seems more than enough
2698 test $ac_count -gt 10 && break
2700 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2703 $ac_path_SED_found && break 3
2708 if test -z "$ac_cv_path_SED"; then
2709 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2717 $as_echo "$ac_cv_path_SED" >&6; }
2718 SED
="$ac_cv_path_SED"
2721 for ac_prog
in gawk mawk nawk
awk
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy
$ac_prog; ac_word
=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_AWK+:} false
; then :
2728 $as_echo_n "(cached) " >&6
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir
=.
2738 for ac_exec_ext
in '' $ac_executable_extensions; do
2739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_AWK
="$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$AWK"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2753 $as_echo "$AWK" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2760 test -n "$AWK" && break
2764 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2766 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2768 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2769 INSTALL
="${srcpwd}/install-sh -c"
2772 # Set srcdir to "." if that's what it is.
2773 # This is important for multilib support.
2775 if test "${pwd}" = "${srcpwd}" ; then
2783 ### To add a new directory to the tree, first choose whether it is a target
2784 ### or a host dependent tool. Then put it into the appropriate list
2785 ### (library or tools, host or target), doing a dependency sort.
2787 # Subdirs will be configured in the order listed in build_configdirs,
2788 # configdirs, or target_configdirs; see the serialization section below.
2790 # Dependency sorting is only needed when *configuration* must be done in
2791 # a particular order. In all cases a dependency should be specified in
2792 # the Makefile, whether or not it's implicitly specified here.
2794 # Double entries in build_configdirs, configdirs, or target_configdirs may
2795 # cause circular dependencies and break everything horribly.
2797 # these library is used by various programs built for the build
2800 build_libs
="build-libiberty build-libcpp"
2802 # these tools are built for the build environment
2803 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2805 # these libraries are used by various programs built for the host environment
2807 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2809 # these tools are built for the host environment
2810 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2811 # know that we are building the simulator.
2812 # binutils, gas and ld appear in that order because it makes sense to run
2813 # "make check" in that particular order.
2814 # If --enable-gold is used, "gold" may replace "ld".
2815 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 gotools c++tools"
2817 # these libraries are built for the target environment, and are built after
2818 # the host libraries and the host tools (which may be a cross compiler)
2819 # Note that libiberty is not a target library.
2820 target_libraries
="target-libgcc \
2821 target-libbacktrace \
2827 target-libstdc++-v3 \
2828 target-libsanitizer \
2831 target-libquadmath \
2832 target-libgfortran \
2840 # these tools are built using the target libraries, and are intended to
2841 # run only in the target environment
2843 # note: any program that *uses* libraries that are in the "target_libraries"
2844 # list belongs in this list.
2846 target_tools
="target-rda"
2848 ################################################################################
2850 ## All tools belong in one of the four categories, and are assigned above
2851 ## We assign ${configdirs} this way to remove all embedded newlines. This
2852 ## is important because configure will choke if they ever get through.
2853 ## ${configdirs} is directories we build using the host tools.
2854 ## ${target_configdirs} is directories we build using the target tools.
2855 configdirs
=`echo ${host_libs} ${host_tools}`
2856 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2857 build_configdirs
=`echo ${build_libs} ${build_tools}`
2861 ################################################################################
2863 srcname
="gnu development package"
2865 # This gets set non-empty for some net releases of packages.
2868 # Define is_cross_compiler to save on calls to 'test'.
2870 if test x
"${host}" = x
"${target}" ; then
2871 is_cross_compiler
=no
2873 is_cross_compiler
=yes
2876 # Find the build and target subdir names.
2878 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2879 # have matching libraries, they should use host libraries: Makefile.tpl
2880 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2881 # However, they still use the build modules, because the corresponding
2882 # host modules (e.g. bison) are only built for the host when bootstrap
2884 # - build_subdir is where we find build modules, and never changes.
2885 # - build_libsubdir is where we find build libraries, and can be overridden.
2887 # Prefix 'build-' so this never conflicts with target_subdir.
2888 build_subdir
="build-${build_noncanonical}"
2890 # Check whether --with-build-libsubdir was given.
2891 if test "${with_build_libsubdir+set}" = set; then :
2892 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2894 build_libsubdir
="$build_subdir"
2897 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2898 if ( test $srcdir = .
&& test -d gcc
) \
2899 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2900 host_subdir
="host-${host_noncanonical}"
2905 target_subdir
=${target_noncanonical}
2907 # Be sure to cover against remnants of an in-tree build.
2908 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2909 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2910 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2913 # Skipdirs are removed silently.
2915 # Noconfigdirs are removed loudly.
2919 # Make sure we don't let GNU ld be added if we didn't want it.
2920 if test x
$with_gnu_ld = xno
; then
2922 noconfigdirs
="$noconfigdirs ld gold"
2926 # Make sure we don't let GNU as be added if we didn't want it.
2927 if test x
$with_gnu_as = xno
; then
2929 noconfigdirs
="$noconfigdirs gas"
2934 # Check whether --with-system-zlib was given.
2935 if test "${with_system_zlib+set}" = set; then :
2936 withval
=$with_system_zlib;
2939 # Make sure we don't let ZLIB be added if we didn't want it.
2940 if test x
$with_system_zlib = xyes
; then
2941 use_included_zlib
=no
2942 noconfigdirs
="$noconfigdirs zlib"
2945 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2947 if test x
$with_system_readline = xyes
; then
2948 noconfigdirs
="$noconfigdirs readline"
2951 # some tools are so dependent upon X11 that if we're not building with X,
2952 # it's not even worth trying to configure, much less build, that tool.
2955 yes |
"") ;; # the default value for this tree is that X11 is available
2957 skipdirs
="${skipdirs} tk itcl libgui"
2958 # We won't be able to build gdbtk without X.
2961 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2964 # Some are only suitable for cross toolchains.
2965 # Remove these if host=target.
2966 cross_only
="target-libgloss target-newlib target-opcodes"
2968 case $is_cross_compiler in
2969 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2972 # If both --with-headers and --with-libs are specified, default to
2974 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2975 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2976 if test x
"${with_newlib}" = x
; then
2981 # Recognize --with-newlib/--without-newlib.
2982 case ${with_newlib} in
2983 no
) skipdirs
="${skipdirs} target-newlib" ;;
2984 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2987 # Check whether --enable-as-accelerator-for was given.
2988 if test "${enable_as_accelerator_for+set}" = set; then :
2989 enableval
=$enable_as_accelerator_for;
2993 # Check whether --enable-offload-targets was given.
2994 if test "${enable_offload_targets+set}" = set; then :
2995 enableval
=$enable_offload_targets;
2996 if test x
"$enable_offload_targets" = x
; then
2997 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3001 enable_offload_targets
=
3005 # Check whether --enable-offload-defaulted was given.
3006 if test "${enable_offload_defaulted+set}" = set; then :
3007 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3009 enable_offload_defaulted
=
3013 # Handle --enable-gold, --enable-ld.
3014 # --disable-gold [--enable-ld]
3015 # Build only ld. Default option.
3016 # --enable-gold [--enable-ld]
3017 # Build both gold and ld. Install gold as "ld.gold", install ld
3018 # as "ld.bfd" and "ld".
3019 # --enable-gold=default [--enable-ld]
3020 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3021 # install ld as "ld.bfd".
3022 # --enable-gold[=default] --disable-ld
3023 # Build only gold, which is then installed as both "ld.gold" and "ld".
3024 # --enable-gold --enable-ld=default
3025 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3027 # In other words, ld is default
3028 # --enable-gold=default --enable-ld=default
3032 # Check whether --enable-gold was given.
3033 if test "${enable_gold+set}" = set; then :
3034 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3039 case "${ENABLE_GOLD}" in
3041 # Check for ELF target.
3044 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3045 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3046 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3047 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3049 *-*-linux*aout
* |
*-*-linux*oldld
*)
3057 if test "$is_elf" = "yes"; then
3058 # Check for target supported by gold.
3060 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3061 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3062 configdirs
="$configdirs gold"
3063 if test x
${ENABLE_GOLD} = xdefault
; then
3074 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3078 # Check whether --enable-ld was given.
3079 if test "${enable_ld+set}" = set; then :
3080 enableval
=$enable_ld; ENABLE_LD
=$enableval
3086 case "${ENABLE_LD}" in
3088 if test x
${default_ld} != x
; then
3089 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3095 if test x
${ENABLE_GOLD} != xyes
; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3097 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3099 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3102 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3107 # Decide the default method for compressing debug sections.
3108 # Provide a configure time option to override our default.
3109 # Check whether --enable-compressed_debug_sections was given.
3110 if test "${enable_compressed_debug_sections+set}" = set; then :
3111 enableval
=$enable_compressed_debug_sections;
3112 if test x
"$enable_compressed_debug_sections" = xyes
; then
3113 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3117 enable_compressed_debug_sections
=
3121 # Configure extra directories which are host specific
3125 configdirs
="$configdirs libtermcap" ;;
3128 # A target can indicate whether a language isn't supported for some reason.
3129 # Only spaces may be used in this macro; not newlines or tabs.
3130 unsupported_languages
=
3132 # Remove more programs from consideration, based on the host or
3133 # target this usually means that a port of the program doesn't
3137 i
[3456789]86-*-msdosdjgpp*)
3138 noconfigdirs
="$noconfigdirs tcl tk itcl"
3143 # Check whether --enable-libquadmath was given.
3144 if test "${enable_libquadmath+set}" = set; then :
3145 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3147 ENABLE_LIBQUADMATH
=yes
3150 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3151 noconfigdirs
="$noconfigdirs target-libquadmath"
3155 # Check whether --enable-libquadmath-support was given.
3156 if test "${enable_libquadmath_support+set}" = set; then :
3157 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3159 ENABLE_LIBQUADMATH_SUPPORT
=yes
3162 enable_libquadmath_support
=
3163 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3164 enable_libquadmath_support
=no
3168 # Check whether --enable-libada was given.
3169 if test "${enable_libada+set}" = set; then :
3170 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3175 if test "${ENABLE_LIBADA}" != "yes" ; then
3176 noconfigdirs
="$noconfigdirs gnattools"
3179 # Check whether --enable-libssp was given.
3180 if test "${enable_libssp+set}" = set; then :
3181 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3187 # Check whether --enable-libstdcxx was given.
3188 if test "${enable_libstdcxx+set}" = set; then :
3189 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3191 ENABLE_LIBSTDCXX
=default
3194 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3195 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3198 # Enable libgomp by default on hosted POSIX systems, and a few others.
3199 if test x
$enable_libgomp = x
; then
3201 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3203 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3205 *-*-solaris2* |
*-*-hpux11*)
3207 *-*-darwin* |
*-*-aix*)
3209 nvptx
*-*-* | amdgcn
*-*-*)
3212 noconfigdirs
="$noconfigdirs target-libgomp"
3217 # Disable libatomic on unsupported systems.
3218 if test -d ${srcdir}/libatomic
; then
3219 if test x
$enable_libatomic = x
; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3221 $as_echo_n "checking for libatomic support... " >&6; }
3222 if (srcdir
=${srcdir}/libatomic
; \
3223 .
${srcdir}/configure.tgt
; \
3224 test -n "$UNSUPPORTED")
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 noconfigdirs
="$noconfigdirs target-libatomic"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3236 # Disable libitm on unsupported systems.
3237 if test -d ${srcdir}/libitm
; then
3238 if test x
$enable_libitm = x
; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3240 $as_echo_n "checking for libitm support... " >&6; }
3241 if (srcdir
=${srcdir}/libitm
; \
3242 .
${srcdir}/configure.tgt
; \
3243 test -n "$UNSUPPORTED")
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 noconfigdirs
="$noconfigdirs target-libitm"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3255 # Disable libsanitizer on unsupported systems.
3256 if test -d ${srcdir}/libsanitizer
; then
3257 if test x
$enable_libsanitizer = x
; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3259 $as_echo_n "checking for libsanitizer support... " >&6; }
3260 if (srcdir
=${srcdir}/libsanitizer
; \
3261 .
${srcdir}/configure.tgt
; \
3262 test -n "$UNSUPPORTED")
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 noconfigdirs
="$noconfigdirs target-libsanitizer"
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3274 # Disable libvtv on unsupported systems.
3275 if test -d ${srcdir}/libvtv
; then
3276 if test x
$enable_libvtv = x
; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3278 $as_echo_n "checking for libvtv support... " >&6; }
3279 if (srcdir
=${srcdir}/libvtv
; \
3280 .
${srcdir}/configure.tgt
; \
3281 test "$VTV_SUPPORTED" != "yes")
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 noconfigdirs
="$noconfigdirs target-libvtv"
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3293 # Disable libquadmath for some systems.
3296 noconfigdirs
="$noconfigdirs target-libquadmath"
3298 # libquadmath is unused on AIX and libquadmath build process use of
3299 # LD_LIBRARY_PATH can break AIX bootstrap.
3300 powerpc-
*-aix* | rs6000-
*-aix*)
3301 noconfigdirs
="$noconfigdirs target-libquadmath"
3305 # Disable libssp for some systems.
3308 # No hosted I/O support.
3309 noconfigdirs
="$noconfigdirs target-libssp"
3312 noconfigdirs
="$noconfigdirs target-libssp"
3314 powerpc-
*-aix* | rs6000-
*-aix*)
3315 noconfigdirs
="$noconfigdirs target-libssp"
3318 # No hosted I/O support.
3319 noconfigdirs
="$noconfigdirs target-libssp"
3322 # libssp uses a misaligned load to trigger a fault, but the RL78
3323 # doesn't fault for those - instead, it gives a build-time error
3324 # for explicit misaligned loads.
3325 noconfigdirs
="$noconfigdirs target-libssp"
3328 # No hosted I/O support.
3329 noconfigdirs
="$noconfigdirs target-libssp"
3333 # Disable libstdc++-v3 for some systems.
3334 # Allow user to override this if they pass --enable-libstdcxx
3335 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3338 # VxWorks uses the Dinkumware C++ library.
3339 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3342 # Not ported/fails to build when using newlib.
3343 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3350 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3353 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3356 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3361 # Disable C++ on systems where it is known to not work.
3362 # For testing, you can override this with --enable-languages=c++.
3363 case ,${enable_languages}, in
3369 unsupported_languages
="$unsupported_languages c++"
3375 # Disable Objc on systems where it is known to not work.
3376 # For testing, you can override this with --enable-languages=objc.
3377 case ,${enable_languages}, in
3383 unsupported_languages
="$unsupported_languages objc"
3389 # Disable D on systems where it is known to not work.
3390 # For testing, you can override this with --enable-languages=d.
3391 case ,${enable_languages}, in
3397 unsupported_languages
="$unsupported_languages d"
3403 # Disable libphobos on unsupported systems.
3404 # For testing, you can override this with --enable-libphobos.
3405 if test -d ${srcdir}/libphobos
; then
3406 if test x
$enable_libphobos = x
; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3408 $as_echo_n "checking for libphobos support... " >&6; }
3409 if (srcdir
=${srcdir}/libphobos
; \
3410 .
${srcdir}/configure.tgt
; \
3411 test "$LIBPHOBOS_SUPPORTED" != "yes")
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 noconfigdirs
="$noconfigdirs target-libphobos"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3423 # Disable Fortran for some systems.
3426 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3427 unsupported_languages
="$unsupported_languages fortran"
3430 unsupported_languages
="$unsupported_languages fortran"
3434 # Disable libffi for some systems.
3438 i
[3456789]86-*-darwin*)
3440 x86_64-
*-darwin[912]*)
3443 noconfigdirs
="$noconfigdirs target-libffi"
3446 noconfigdirs
="$noconfigdirs target-libffi"
3449 noconfigdirs
="$noconfigdirs target-libffi"
3452 noconfigdirs
="$noconfigdirs target-libffi"
3455 noconfigdirs
="$noconfigdirs target-libffi"
3458 noconfigdirs
="$noconfigdirs target-libffi"
3461 noconfigdirs
="$noconfigdirs target-libffi"
3463 aarch64
*-*-freebsd*)
3464 noconfigdirs
="$noconfigdirs target-libffi"
3467 noconfigdirs
="$noconfigdirs target-libffi"
3470 noconfigdirs
="$noconfigdirs target-libffi"
3473 noconfigdirs
="$noconfigdirs target-libffi"
3476 noconfigdirs
="$noconfigdirs target-libffi"
3479 noconfigdirs
="$noconfigdirs target-libffi"
3481 cris-
*-* | crisv32-
*-*)
3485 *) # See PR46792 regarding target-libffi.
3486 noconfigdirs
="$noconfigdirs target-libffi";;
3490 noconfigdirs
="$noconfigdirs target-libffi"
3493 noconfigdirs
="$noconfigdirs target-libffi"
3495 i
[3456789]86-w64-mingw*)
3496 noconfigdirs
="$noconfigdirs target-libffi"
3498 i
[3456789]86-*-mingw*)
3499 noconfigdirs
="$noconfigdirs target-libffi"
3502 noconfigdirs
="$noconfigdirs target-libffi"
3505 noconfigdirs
="$noconfigdirs target-libffi"
3512 noconfigdirs
="$noconfigdirs target-libffi"
3515 noconfigdirs
="$noconfigdirs target-libffi"
3519 # Disable the go frontend on systems where it is known to not work. Please keep
3520 # this in sync with contrib/config-list.mk.
3522 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3523 unsupported_languages
="$unsupported_languages go"
3527 # Only allow gdbserver on some systems.
3528 if test -d ${srcdir}/gdbserver
; then
3529 if test x
$enable_gdbserver = x
; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3531 $as_echo_n "checking for gdbserver support... " >&6; }
3532 if (srcdir
=${srcdir}/gdbserver
; \
3533 .
${srcdir}/configure.srv
; \
3534 test -n "$UNSUPPORTED")
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 noconfigdirs
="$noconfigdirs gdbserver"
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3546 # Disable libgo for some systems where it is known to not work.
3547 # For testing, you can easily override this with --enable-libgo.
3548 if test x
$enable_libgo = x
; then
3552 noconfigdirs
="$noconfigdirs target-libgo"
3554 *-*-cygwin* |
*-*-mingw*)
3555 noconfigdirs
="$noconfigdirs target-libgo"
3558 noconfigdirs
="$noconfigdirs target-libgo"
3563 # Default libgloss CPU subdirectory.
3564 libgloss_dir
="$target_cpu"
3567 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3571 libgloss_dir
=aarch64
3576 cris-
*-* | crisv32-
*-*)
3586 libgloss_dir
=loongarch
3588 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3589 libgloss_dir
=m68hc11
3591 m68
*-*-* | fido-
*-*)
3608 # Disable newlib and libgloss for various target OSes.
3611 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3613 i
[3456789]86-*-linux*)
3614 # This section makes it possible to build newlib natively on linux.
3615 # If we are using a cross compiler then don't configure newlib.
3616 if test x
${is_cross_compiler} != xno
; then
3617 noconfigdirs
="$noconfigdirs target-newlib"
3619 noconfigdirs
="$noconfigdirs target-libgloss"
3620 # If we are not using a cross compiler, do configure newlib.
3621 # Note however, that newlib will only be configured in this situation
3622 # if the --with-newlib option has been given, because otherwise
3623 # 'target-newlib' will appear in skipdirs.
3625 i
[3456789]86-*-rdos*)
3626 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3628 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3629 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3632 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3635 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3638 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3641 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3644 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3647 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3650 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3652 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3653 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3656 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3659 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3662 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3665 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3668 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3671 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3674 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3682 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3683 noconfigdirs
="$noconfigdirs sim target-rda"
3688 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3689 noconfigdirs
="$noconfigdirs sim target-rda"
3692 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3693 noconfigdirs
="$noconfigdirs sim target-rda"
3695 i
[3456789]86-*-darwin*)
3696 noconfigdirs
="$noconfigdirs ld gprof"
3697 noconfigdirs
="$noconfigdirs sim target-rda"
3699 x86_64-
*-darwin[912]*)
3700 noconfigdirs
="$noconfigdirs ld gas gprof"
3701 noconfigdirs
="$noconfigdirs sim target-rda"
3704 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs
="$noconfigdirs sim target-rda"
3710 if test "x$with_gmp" = x \
3711 && ! test -d ${srcdir}/gmp \
3712 && test -f /usr
/local
/include
/gmp.h
; then
3717 # Remove unsupported stuff on all kaOS configurations.
3718 noconfigdirs
="$noconfigdirs target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-libgloss"
3730 # The tpf target doesn't support gdb yet.
3732 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3735 noconfigdirs
="$noconfigdirs target-rda"
3740 # ld works, but does not support shared libraries.
3741 # gas doesn't generate exception information.
3742 noconfigdirs
="$noconfigdirs gas ld"
3745 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3748 # newlib is not 64 bit ready
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3754 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3755 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3758 noconfigdirs
="$noconfigdirs sim"
3761 noconfigdirs
="$noconfigdirs target-libgloss"
3764 noconfigdirs
="$noconfigdirs ld target-libgloss"
3767 if test x
${with_avrlibc} != xno
; then
3768 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3771 c4x-
*-* | tic4x-
*-*)
3772 noconfigdirs
="$noconfigdirs target-libgloss"
3775 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3778 noconfigdirs
="$noconfigdirs target-libgloss"
3781 noconfigdirs
="$noconfigdirs gdb"
3784 noconfigdirs
="$noconfigdirs gdb"
3787 noconfigdirs
="$noconfigdirs target-rda gprof"
3790 noconfigdirs
="$noconfigdirs"
3793 noconfigdirs
="$noconfigdirs target-libgloss"
3796 noconfigdirs
="$noconfigdirs target-libgloss"
3799 noconfigdirs
="$noconfigdirs gdb"
3807 hppa
*-*-openbsd* | \
3813 noconfigdirs
="$noconfigdirs ld"
3816 noconfigdirs
="$noconfigdirs gdb"
3819 # No gdb support yet.
3820 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3823 # No ld support yet.
3824 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3827 # No ld support yet.
3828 noconfigdirs
="$noconfigdirs libgui itcl ld"
3830 i
[3456789]86-w64-mingw*)
3832 i
[3456789]86-*-mingw*)
3833 target_configdirs
="$target_configdirs target-winsup"
3836 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3837 noconfigdirs
="$noconfigdirs target-libgloss"
3838 # always build newlib if winsup directory is present.
3839 if test -d "$srcdir/winsup/cygwin"; then
3840 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3841 elif test -d "$srcdir/newlib"; then
3842 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3846 noconfigdirs
="$noconfigdirs target-libgloss"
3848 i
[3456789]86-*-sco3.2v5
*)
3849 # The linker does not yet know about weak symbols in COFF,
3850 # and is not configured to handle mixed ELF and COFF.
3851 noconfigdirs
="$noconfigdirs ld target-libgloss"
3853 i
[3456789]86-*-sco*)
3854 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3856 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3857 noconfigdirs
="$noconfigdirs target-libgloss"
3859 i
[3456789]86-*-sysv4*)
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3862 i
[3456789]86-*-beos*)
3863 noconfigdirs
="$noconfigdirs gdb"
3865 i
[3456789]86-*-rdos*)
3866 noconfigdirs
="$noconfigdirs gdb"
3869 noconfigdirs
="$noconfigdirs gdb"
3872 noconfigdirs
="$noconfigdirs sim"
3875 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3876 noconfigdirs
="$noconfigdirs $target_libraries"
3879 noconfigdirs
="$noconfigdirs gdb gprof"
3882 # copied from rs6000-*-* entry
3883 noconfigdirs
="$noconfigdirs gprof"
3885 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3886 target_configdirs
="$target_configdirs target-winsup"
3887 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3888 # always build newlib.
3889 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3891 # This is temporary until we can link against shared libraries
3892 powerpcle-
*-solaris*)
3893 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3896 noconfigdirs
="$noconfigdirs gdb"
3899 noconfigdirs
="$noconfigdirs gprof"
3902 noconfigdirs
="$noconfigdirs gprof"
3905 noconfigdirs
="$noconfigdirs gprof"
3908 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3911 noconfigdirs
="$noconfigdirs gprof"
3913 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3914 if test x
$with_newlib = xyes
; then
3915 noconfigdirs
="$noconfigdirs gprof"
3919 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3922 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3925 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3929 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3930 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3931 noconfigdirs
="$noconfigdirs ld gas gprof"
3934 noconfigdirs
="$noconfigdirs gprof"
3937 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3944 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3948 if test x
${is_cross_compiler} = xno
; then
3953 noconfigdirs
="$noconfigdirs sim"
3956 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3959 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3962 noconfigdirs
="$noconfigdirs ld"
3964 loongarch
*-*-linux*)
3967 noconfigdirs
="$noconfigdirs gprof"
3971 # If we aren't building newlib, then don't build libgloss, since libgloss
3972 # depends upon some newlib header files.
3973 case "${noconfigdirs}" in
3974 *target-libgloss
*) ;;
3975 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3978 # Work in distributions that contain no compiler tools, like Autoconf.
3979 host_makefile_frag
=/dev
/null
3980 if test -d ${srcdir}/config
; then
3982 i
[3456789]86-*-msdosdjgpp*)
3983 host_makefile_frag
="config/mh-djgpp"
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988 $as_echo_n "checking to see if cat works as expected... " >&6; }
3989 echo a
>cygwin-cat-check
3990 if test `cat cygwin-cat-check` = a
; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 as_fn_error $?
"The cat command does not ignore carriage return characters.
3999 Please either mount the build directory in binary mode or run the following
4000 commands before running any configure script:
4006 host_makefile_frag
="config/mh-cygwin"
4009 host_makefile_frag
="config/mh-mingw"
4012 host_makefile_frag
="config/mh-alpha-linux"
4015 host_makefile_frag
="config/mh-pa"
4018 host_makefile_frag
="config/mh-pa"
4020 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4021 host_makefile_frag
="config/mh-darwin"
4024 host_makefile_frag
="config/mh-ppc-aix"
4027 host_makefile_frag
="config/mh-ppc-aix"
4032 if test "${build}" != "${host}" ; then
4033 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4034 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4035 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4036 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4037 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4038 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4039 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4040 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4041 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4042 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4043 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4044 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4045 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4046 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4047 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4049 AR_FOR_BUILD
="\$(AR)"
4050 AS_FOR_BUILD
="\$(AS)"
4051 CC_FOR_BUILD
="\$(CC)"
4052 CXX_FOR_BUILD
="\$(CXX)"
4053 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4054 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4055 GOC_FOR_BUILD
="\$(GOC)"
4056 GDC_FOR_BUILD
="\$(GDC)"
4057 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4058 LD_FOR_BUILD
="\$(LD)"
4059 NM_FOR_BUILD
="\$(NM)"
4060 RANLIB_FOR_BUILD
="\$(RANLIB)"
4061 WINDRES_FOR_BUILD
="\$(WINDRES)"
4062 WINDMC_FOR_BUILD
="\$(WINDMC)"
4066 ac_cpp
='$CPP $CPPFLAGS'
4067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false
; then :
4076 $as_echo_n "(cached) " >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC
="$CC" # Let the user override the test.
4081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir
=.
4086 for ac_exec_ext
in '' $ac_executable_extensions; do
4087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4109 if test -z "$ac_cv_prog_CC"; then
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc
; ac_word
=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir
=.
4126 for ac_exec_ext
in '' $ac_executable_extensions; do
4127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CC
="gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4147 if test "x$ac_ct_CC" = x
; then
4150 case $cross_compiling:$ac_tool_warned in
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned
=yes ;;
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_CC+:} false
; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC
="$CC" # Let the user override the test.
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_exec_ext
in '' $ac_executable_extensions; do
4180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4203 if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc
; ac_word
=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_CC+:} false
; then :
4209 $as_echo_n "(cached) " >&6
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC
="$CC" # Let the user override the test.
4215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir
=.
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected
=yes
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy
$ac_cv_prog_CC
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4243 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog
in cl.exe
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false
; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC
="$CC" # Let the user override the test.
4273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir
=.
4278 for ac_exec_ext
in '' $ac_executable_extensions; do
4279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$CC" && break
4303 if test -z "$CC"; then
4305 for ac_prog
in cl.exe
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy
$ac_prog; ac_word
=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4312 $as_echo_n "(cached) " >&6
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir
=.
4322 for ac_exec_ext
in '' $ac_executable_extensions; do
4323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_CC
="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$ac_ct_CC" && break
4347 if test "x$ac_ct_CC" = x
; then
4350 case $cross_compiling:$ac_tool_warned in
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned
=yes ;;
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $?
"no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details" "$LINENO" 5; }
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4372 for ac_option
in --version -v -V -qversion; do
4373 { { ac_try
="$ac_compiler $ac_option >&5"
4375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4382 if test -s conftest.err; then
4384 ... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410 $as_echo_n "checking whether the C compiler works... " >&6; }
4411 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4413 # The possible output files:
4414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4417 for ac_file in $ac_files
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4426 if { { ac_try="$ac_link_default"
4428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4429 *) ac_try_echo
=$ac_try;;
4431 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_link_default") 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
4437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4442 for ac_file
in $ac_files ''
4444 test -f "$ac_file" ||
continue
4446 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4449 # We found the default executable, but exeext='' is most
4453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4455 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4467 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4472 if test -z "$ac_file"; then :
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.
$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error
77 "C compiler cannot create executables
4481 See \`config.log' for more details" "$LINENO" 5; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4487 $as_echo_n "checking for C compiler default output file name... " >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4489 $as_echo "$ac_file" >&6; }
4490 ac_exeext
=$ac_cv_exeext
4492 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4493 ac_clean_files
=$ac_clean_files_save
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4495 $as_echo_n "checking for suffix of executables... " >&6; }
4496 if { { ac_try
="$ac_link"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link") 2>&5
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4508 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4509 # work properly (i.e., refer to `conftest.exe'), while it won't with
4511 for ac_file
in conftest.exe conftest conftest.
*; do
4512 test -f "$ac_file" ||
continue
4514 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4515 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4524 See \`config.log' for more details" "$LINENO" 5; }
4526 rm -f conftest conftest
$ac_cv_exeext
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4528 $as_echo "$ac_cv_exeext" >&6; }
4530 rm -f conftest.
$ac_ext
4531 EXEEXT
=$ac_cv_exeext
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4539 FILE *f = fopen ("conftest.out", "w");
4540 return ferror (f) || fclose (f) != 0;
4546 ac_clean_files
="$ac_clean_files conftest.out"
4547 # Check that the compiler produces executables we can run. If not, either
4548 # the compiler is broken, or we cross compile.
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4550 $as_echo_n "checking whether we are cross compiling... " >&6; }
4551 if test "$cross_compiling" != yes; then
4552 { { ac_try
="$ac_link"
4554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }
4563 if { ac_try='./conftest$ac_cv_exeext'
4564 { { case "(($ac_try" in
4565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4566 *) ac_try_echo
=$ac_try;;
4568 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_try") 2>&5
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; }; then
4576 if test "$cross_compiling" = maybe
; then
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error $?
"cannot run C compiled programs.
4582 If you meant to cross compile, use \`--host'.
4583 See \`config.log' for more details" "$LINENO" 5; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4588 $as_echo "$cross_compiling" >&6; }
4590 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4591 ac_clean_files
=$ac_clean_files_save
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4593 $as_echo_n "checking for suffix of object files... " >&6; }
4594 if ${ac_cv_objext+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4608 rm -f conftest.o conftest.obj
4609 if { { ac_try
="$ac_compile"
4611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_compile") 2>&5
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }; then :
4620 for ac_file in conftest.o conftest.obj conftest.*; do
4621 test -f "$ac_file" || continue;
4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4635 See \
`config.log' for more details" "$LINENO" 5; }
4637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4640 $as_echo "$ac_cv_objext" >&6; }
4641 OBJEXT=$ac_cv_objext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4645 if ${ac_cv_c_compiler_gnu+:} false; then :
4646 $as_echo_n "(cached) " >&6
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4673 if test $ac_compiler_gnu = yes; then
4678 ac_test_CFLAGS=${CFLAGS+set}
4679 ac_save_CFLAGS=$CFLAGS
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4682 if ${ac_cv_prog_cc_g+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 ac_save_c_werror_flag=$ac_c_werror_flag
4686 ac_c_werror_flag=yes
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4700 if ac_fn_c_try_compile "$LINENO"; then :
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4715 if ac_fn_c_try_compile "$LINENO"; then :
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4731 if ac_fn_c_try_compile "$LINENO"; then :
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4742 $as_echo "$ac_cv_prog_cc_g" >&6; }
4743 if test "$ac_test_CFLAGS" = set; then
4744 CFLAGS=$ac_save_CFLAGS
4745 elif test $ac_cv_prog_cc_g = yes; then
4746 if test "$GCC" = yes; then
4752 if test "$GCC" = yes; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4760 if ${ac_cv_prog_cc_c89+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 ac_cv_prog_cc_c89=no
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4771 struct buf { int x; };
4772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773 static char *e (p, i)
4779 static char *f (char * (*g) (char **, int), char **p, ...)
4784 s = g (p, va_arg (v,int));
4789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4790 function prototypes and stuff, but not '\xHH' hex character constants.
4791 These don't provoke an error unfortunately, instead are silently treated
4792 as 'x'. The following induces an error, until -std is added to get
4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4794 array size at least. It's necessary to write '\x00'==0 to get something
4795 that's true only with -std. */
4796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799 inside strings and character constants. */
4801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4803 int test (int i, double x);
4804 struct s1 {int (*f) (int a);};
4805 struct s2 {int (*f) (double a);};
4806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4820 CC="$ac_save_CC $ac_arg"
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_c89=$ac_arg
4824 rm -f core conftest.err conftest.$ac_objext
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
4827 rm -f conftest.$ac_ext
4832 case "x$ac_cv_prog_cc_c89" in
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835 $as_echo "none needed" >&6; } ;;
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838 $as_echo "unsupported" >&6; } ;;
4840 CC="$CC $ac_cv_prog_cc_c89"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4844 if test "x$ac_cv_prog_cc_c89" != xno; then :
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4856 if ${ac_cv_prog_cc_c99+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 ac_cv_prog_cc_c99=no
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4864 #include <stdbool.h>
4869 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4870 #define debug(...) fprintf (stderr, __VA_ARGS__)
4871 #define showlist(...) puts (#__VA_ARGS__)
4872 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4874 test_varargs_macros (void)
4879 debug ("X = %d\n", x);
4880 showlist (The first, second, and third items.);
4881 report (x>y, "x is %d but y is %d", x, y);
4884 // Check long long types.
4885 #define BIG64 18446744073709551615ull
4886 #define BIG32 4294967295ul
4887 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4889 your preprocessor is broken;
4893 your preprocessor is broken;
4895 static long long int bignum = -9223372036854775807LL;
4896 static unsigned long long int ubignum = BIG64;
4898 struct incomplete_array
4906 const wchar_t *name;
4910 typedef const char *ccp;
4913 test_restrict (ccp restrict text)
4915 // See if C++-style comments work.
4916 // Iterate through items via the restricted pointer.
4917 // Also check for declarations in for loops.
4918 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4923 // Check varargs and va_copy.
4925 test_varargs (const char *format, ...)
4928 va_start (args, format);
4930 va_copy (args_copy, args);
4941 str = va_arg (args_copy, const char *);
4944 number = va_arg (args_copy, int);
4947 fnumber = va_arg (args_copy, double);
4962 _Bool success = false;
4965 if (test_restrict ("String literal") == 0)
4967 char *restrict newvar = "Another string";
4970 test_varargs ("s, d' f .", "string", 65, 34.234);
4971 test_varargs_macros ();
4973 // Check flexible array members.
4974 struct incomplete_array *ia =
4975 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4977 for (int i = 0; i < ia->datasize; ++i)
4978 ia->data[i] = i * 1.234;
4980 // Check named initializers.
4981 struct named_init ni = {
4983 .name = L"Test wide string",
4984 .average = 543.34343,
4989 int dynamic_array[ni.number];
4990 dynamic_array[ni.number - 1] = 543;
4992 // work around unused variable warnings
4993 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4994 || dynamic_array[ni.number - 1] != 543);
5000 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5002 CC="$ac_save_CC $ac_arg"
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 ac_cv_prog_cc_c99=$ac_arg
5006 rm -f core conftest.err conftest.$ac_objext
5007 test "x$ac_cv_prog_cc_c99" != "xno" && break
5009 rm -f conftest.$ac_ext
5014 case "x$ac_cv_prog_cc_c99" in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5017 $as_echo "none needed" >&6; } ;;
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5020 $as_echo "unsupported" >&6; } ;;
5022 CC="$CC $ac_cv_prog_cc_c99"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5024 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5026 if test "x$ac_cv_prog_cc_c99" != xno; then :
5032 ac_cpp='$CXXCPP $CPPFLAGS'
5033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5036 if test -z "$CXX"; then
5037 if test -n "$CCC"; then
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_CXX+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$CXX"; then
5051 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 if test -n "$CXX"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5073 $as_echo "$CXX" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5080 test -n "$CXX" && break
5083 if test -z "$CXX"; then
5085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$ac_ct_CXX"; then
5095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_CXX="$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5115 if test -n "$ac_ct_CXX"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5117 $as_echo "$ac_ct_CXX" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 test -n "$ac_ct_CXX" && break
5127 if test "x$ac_ct_CXX" = x; then
5130 case $cross_compiling:$ac_tool_warned in
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5142 # Provide some information about the compiler.
5143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5146 for ac_option in --version -v -V -qversion; do
5147 { { ac_try="$ac_compiler $ac_option >&5"
5149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5150 *) ac_try_echo
=$ac_try;;
5152 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5156 if test -s conftest.err
; then
5158 ... rest of stderr output deleted ...
5159 10q' conftest.err
>conftest.er1
5160 cat conftest.er1
>&5
5162 rm -f conftest.er1 conftest.err
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5169 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5170 $as_echo_n "(cached) " >&6
5172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5186 if ac_fn_cxx_try_compile
"$LINENO"; then :
5191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5192 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5196 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5197 if test $ac_compiler_gnu = yes; then
5202 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5203 ac_save_CXXFLAGS
=$CXXFLAGS
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5205 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5206 if ${ac_cv_prog_cxx_g+:} false
; then :
5207 $as_echo_n "(cached) " >&6
5209 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5210 ac_cxx_werror_flag
=yes
5213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5224 if ac_fn_cxx_try_compile
"$LINENO"; then :
5225 ac_cv_prog_cxx_g
=yes
5228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5239 if ac_fn_cxx_try_compile
"$LINENO"; then :
5242 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5255 if ac_fn_cxx_try_compile
"$LINENO"; then :
5256 ac_cv_prog_cxx_g
=yes
5258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5266 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5267 if test "$ac_test_CXXFLAGS" = set; then
5268 CXXFLAGS
=$ac_save_CXXFLAGS
5269 elif test $ac_cv_prog_cxx_g = yes; then
5270 if test "$GXX" = yes; then
5276 if test "$GXX" = yes; then
5283 ac_cpp
='$CPP $CPPFLAGS'
5284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5289 # We must set the default linker to the linker used by gcc for the correct
5290 # operation of libtool. If LD is not defined and we are using gcc, try to
5291 # set the LD default to the ld used by gcc.
5292 if test -z "$LD"; then
5293 if test "$GCC" = yes; then
5296 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5298 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5300 case $gcc_prog_ld in
5301 # Accept absolute paths.
5302 [\\/]* |
[A-Za-z
]:[\\/]*)
5303 LD
="$gcc_prog_ld" ;;
5308 # Check whether -static-libstdc++ -static-libgcc is supported.
5310 if test "$GCC" = yes; then
5311 saved_LDFLAGS
="$LDFLAGS"
5313 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5315 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5317 ac_cpp
='$CXXCPP $CPPFLAGS'
5318 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5327 #error -static-libstdc++ not implemented
5331 if ac_fn_cxx_try_link
"$LINENO"; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5333 $as_echo "yes" >&6; }; have_static_libs
=yes
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5338 rm -f core conftest.err conftest.
$ac_objext \
5339 conftest
$ac_exeext conftest.
$ac_ext
5341 ac_cpp
='$CPP $CPPFLAGS'
5342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5347 LDFLAGS
="$saved_LDFLAGS"
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5355 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_GNATBIND+:} false
; then :
5359 $as_echo_n "(cached) " >&6
5361 if test -n "$GNATBIND"; then
5362 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir
=.
5369 for ac_exec_ext
in '' $ac_executable_extensions; do
5370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 GNATBIND
=$ac_cv_prog_GNATBIND
5382 if test -n "$GNATBIND"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5384 $as_echo "$GNATBIND" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_GNATBIND"; then
5393 ac_ct_GNATBIND
=$GNATBIND
5394 # Extract the first word of "gnatbind", so it can be a program name with args.
5395 set dummy gnatbind
; ac_word
=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -n "$ac_ct_GNATBIND"; then
5402 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_exec_ext
in '' $ac_executable_extensions; do
5410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5422 if test -n "$ac_ct_GNATBIND"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5424 $as_echo "$ac_ct_GNATBIND" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_GNATBIND" = x
; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned
=yes ;;
5439 GNATBIND
=$ac_ct_GNATBIND
5442 GNATBIND
="$ac_cv_prog_GNATBIND"
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5447 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$GNATMAKE"; then
5454 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir
=.
5461 for ac_exec_ext
in '' $ac_executable_extensions; do
5462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 GNATMAKE
=$ac_cv_prog_GNATMAKE
5474 if test -n "$GNATMAKE"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5476 $as_echo "$GNATMAKE" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_prog_GNATMAKE"; then
5485 ac_ct_GNATMAKE
=$GNATMAKE
5486 # Extract the first word of "gnatmake", so it can be a program name with args.
5487 set dummy gnatmake
; ac_word
=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5491 $as_echo_n "(cached) " >&6
5493 if test -n "$ac_ct_GNATMAKE"; then
5494 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5514 if test -n "$ac_ct_GNATMAKE"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5516 $as_echo "$ac_ct_GNATMAKE" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_ct_GNATMAKE" = x
; then
5525 case $cross_compiling:$ac_tool_warned in
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned
=yes ;;
5531 GNATMAKE
=$ac_ct_GNATMAKE
5534 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5538 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5539 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5540 $as_echo_n "(cached) " >&6
5542 cat >conftest.adb
<<EOF
5543 pragma Warnings (Off);
5545 pragma Warnings (On);
5546 use type System.CRTL.int64;
5547 procedure conftest is begin null; end conftest;
5549 acx_cv_cc_gcc_supports_ada
=no
5550 # There is a bug in old released versions of GCC which causes the
5551 # driver to exit successfully when the appropriate language module
5552 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5553 # Therefore we must check for the error message as well as an
5554 # unsuccessful exit.
5555 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5556 # given a .adb file, but produce no object file. So we must check
5557 # if an object file was really produced to guard against this.
5558 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5559 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5560 acx_cv_cc_gcc_supports_ada
=yes
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5565 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5567 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5577 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GDC+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$GDC"; then
5584 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir
=.
5591 for ac_exec_ext
in '' $ac_executable_extensions; do
5592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 if test -n "$GDC"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5606 $as_echo "$GDC" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5614 if test -z "$ac_cv_prog_GDC"; then
5616 # Extract the first word of "gdc", so it can be a program name with args.
5617 set dummy gdc
; ac_word
=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$ac_ct_GDC"; then
5624 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GDC
="gdc"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5644 if test -n "$ac_ct_GDC"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5646 $as_echo "$ac_ct_GDC" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5652 if test "x$ac_ct_GDC" = x
; then
5655 case $cross_compiling:$ac_tool_warned in
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned
=yes ;;
5664 GDC
="$ac_cv_prog_GDC"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5668 $as_echo_n "checking whether the D compiler works... " >&6; }
5669 if ${acx_cv_d_compiler_works+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 cat >conftest.d
<<EOF
5673 module conftest; int main() { return 0; }
5675 acx_cv_d_compiler_works
=no
5676 if test "x$GDC" != xno
; then
5677 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5678 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5679 acx_cv_d_compiler_works
=yes
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5685 $as_echo "$acx_cv_d_compiler_works" >&6; }
5686 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5693 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5694 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5695 $as_echo_n "(cached) " >&6
5699 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5700 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5701 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5704 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5707 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5708 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5711 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5718 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5719 do_compare
="$gcc_cv_prog_cmp_skip"
5723 # Check whether --enable-bootstrap was given.
5724 if test "${enable_bootstrap+set}" = set; then :
5725 enableval
=$enable_bootstrap;
5727 enable_bootstrap
=default
5731 # Issue errors and warnings for invalid/strange bootstrap combinations.
5732 if test -r $srcdir/gcc
/configure
; then
5738 case "$have_compiler:$host:$target:$enable_bootstrap" in
5741 # Default behavior. Enable bootstrap if we have a compiler
5742 # and we are in a native configuration.
5743 yes:$build:$build:default
)
5744 enable_bootstrap
=yes ;;
5747 enable_bootstrap
=no
;;
5749 # We have a compiler and we are in a native configuration, bootstrap is ok
5750 yes:$build:$build:yes)
5753 # Other configurations, but we have a compiler. Assume the user knows
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5757 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5760 # No compiler: if they passed --enable-bootstrap explicitly, fail
5762 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5764 # Fail if wrong command line
5766 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5770 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5771 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5772 # require C++11 (or higher).
5773 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5774 CXX
="$CXX -std=c++11"
5775 elif test "$have_compiler" = yes; then
5776 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5778 ac_cpp
='$CXXCPP $CPPFLAGS'
5779 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5785 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5786 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5787 $as_echo_n "(cached) " >&6
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5793 // If the compiler admits that it is not ready for C++11, why torture it?
5794 // Hopefully, this will speed up the test.
5798 #error "This is not a C++ compiler"
5800 #elif __cplusplus < 201103L
5802 #error "This is not a C++11 compiler"
5809 namespace test_static_assert
5812 template <typename T>
5815 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5820 namespace test_final_override
5829 struct Derived : public Base
5831 virtual ~Derived() override {}
5832 virtual void f() override {}
5837 namespace test_double_right_angle_brackets
5840 template < typename T >
5843 typedef check<void> single_type;
5844 typedef check<check<void>> double_type;
5845 typedef check<check<check<void>>> triple_type;
5846 typedef check<check<check<check<void>>>> quadruple_type;
5850 namespace test_decltype
5863 namespace test_type_deduction
5866 template < typename T1, typename T2 >
5869 static const bool value = false;
5872 template < typename T >
5873 struct is_same<T, T>
5875 static const bool value = true;
5878 template < typename T1, typename T2 >
5880 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5886 test(const int c, volatile int v)
5888 static_assert(is_same<int, decltype(0)>::value == true, "");
5889 static_assert(is_same<int, decltype(c)>::value == false, "");
5890 static_assert(is_same<int, decltype(v)>::value == false, "");
5893 auto sumi = ac + av + 'x';
5894 auto sumf = ac + av + 1.0;
5895 static_assert(is_same<int, decltype(ac)>::value == true, "");
5896 static_assert(is_same<int, decltype(av)>::value == true, "");
5897 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5898 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5899 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5900 return (sumf > 0.0) ? sumi : add(c, v);
5905 namespace test_noexcept
5908 int f() { return 0; }
5909 int g() noexcept { return 0; }
5911 static_assert(noexcept(f()) == false, "");
5912 static_assert(noexcept(g()) == true, "");
5916 namespace test_constexpr
5919 template < typename CharT >
5920 unsigned long constexpr
5921 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5923 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5926 template < typename CharT >
5927 unsigned long constexpr
5928 strlen_c(const CharT *const s) noexcept
5930 return strlen_c_r(s, 0UL);
5933 static_assert(strlen_c("") == 0UL, "");
5934 static_assert(strlen_c("1") == 1UL, "");
5935 static_assert(strlen_c("example") == 7UL, "");
5936 static_assert(strlen_c("another\0example") == 7UL, "");
5940 namespace test_rvalue_references
5946 static constexpr int value = N;
5949 answer<1> f(int&) { return answer<1>(); }
5950 answer<2> f(const int&) { return answer<2>(); }
5951 answer<3> f(int&&) { return answer<3>(); }
5958 static_assert(decltype(f(i))::value == 1, "");
5959 static_assert(decltype(f(c))::value == 2, "");
5960 static_assert(decltype(f(0))::value == 3, "");
5965 namespace test_uniform_initialization
5970 static const int zero {};
5971 static const int one {1};
5974 static_assert(test::zero == 0, "");
5975 static_assert(test::one == 1, "");
5979 namespace test_lambdas
5985 auto lambda1 = [](){};
5986 auto lambda2 = lambda1;
5994 auto a = [](int i, int j){ return i + j; }(1, 2);
5995 auto b = []() -> int { return '0'; }();
5996 auto c = [=](){ return a + b; }();
5997 auto d = [&](){ return c; }();
5998 auto e = [a, &b](int x) mutable {
5999 const auto identity = [](int y){ return y; };
6000 for (auto i = 0; i < a; ++i)
6002 return x + identity(a + b);
6004 return a + b + c + d + e;
6010 const auto nullary = [](){ return 0; };
6011 const auto unary = [](int x){ return x; };
6012 using nullary_t = decltype(nullary);
6013 using unary_t = decltype(unary);
6014 const auto higher1st = [](nullary_t f){ return f(); };
6015 const auto higher2nd = [unary](nullary_t f1){
6016 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6018 return higher1st(nullary) + higher2nd(nullary)(unary);
6023 namespace test_variadic_templates
6029 template <int N0, int... N1toN>
6030 struct sum<N0, N1toN...>
6032 static constexpr auto value = N0 + sum<N1toN...>::value;
6038 static constexpr auto value = 0;
6041 static_assert(sum<>::value == 0, "");
6042 static_assert(sum<1>::value == 1, "");
6043 static_assert(sum<23>::value == 23, "");
6044 static_assert(sum<1, 2>::value == 3, "");
6045 static_assert(sum<5, 5, 11>::value == 21, "");
6046 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6050 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6051 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6053 namespace test_template_alias_sfinae
6058 template<typename T>
6059 using member = typename T::member_type;
6061 template<typename T>
6064 template<typename T>
6065 void func(member<T>*) {}
6069 void test() { func<foo>(0); }
6073 } // namespace cxx11
6075 #endif // __cplusplus >= 201103L
6080 if ac_fn_cxx_try_compile
"$LINENO"; then :
6081 ax_cv_cxx_compile_cxx11
=yes
6083 ax_cv_cxx_compile_cxx11
=no
6085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6088 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6089 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6093 if test x
$ac_success = xno
; then
6094 for alternative
in ${ax_cxx_compile_alternatives}; do
6095 switch
="-std=gnu++${alternative}"
6096 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6098 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6099 if eval \
${$cachevar+:} false
; then :
6100 $as_echo_n "(cached) " >&6
6104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6108 // If the compiler admits that it is not ready for C++11, why torture it?
6109 // Hopefully, this will speed up the test.
6113 #error "This is not a C++ compiler"
6115 #elif __cplusplus < 201103L
6117 #error "This is not a C++11 compiler"
6124 namespace test_static_assert
6127 template <typename T>
6130 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6135 namespace test_final_override
6144 struct Derived : public Base
6146 virtual ~Derived() override {}
6147 virtual void f() override {}
6152 namespace test_double_right_angle_brackets
6155 template < typename T >
6158 typedef check<void> single_type;
6159 typedef check<check<void>> double_type;
6160 typedef check<check<check<void>>> triple_type;
6161 typedef check<check<check<check<void>>>> quadruple_type;
6165 namespace test_decltype
6178 namespace test_type_deduction
6181 template < typename T1, typename T2 >
6184 static const bool value = false;
6187 template < typename T >
6188 struct is_same<T, T>
6190 static const bool value = true;
6193 template < typename T1, typename T2 >
6195 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6201 test(const int c, volatile int v)
6203 static_assert(is_same<int, decltype(0)>::value == true, "");
6204 static_assert(is_same<int, decltype(c)>::value == false, "");
6205 static_assert(is_same<int, decltype(v)>::value == false, "");
6208 auto sumi = ac + av + 'x';
6209 auto sumf = ac + av + 1.0;
6210 static_assert(is_same<int, decltype(ac)>::value == true, "");
6211 static_assert(is_same<int, decltype(av)>::value == true, "");
6212 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6213 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6214 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6215 return (sumf > 0.0) ? sumi : add(c, v);
6220 namespace test_noexcept
6223 int f() { return 0; }
6224 int g() noexcept { return 0; }
6226 static_assert(noexcept(f()) == false, "");
6227 static_assert(noexcept(g()) == true, "");
6231 namespace test_constexpr
6234 template < typename CharT >
6235 unsigned long constexpr
6236 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6238 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6241 template < typename CharT >
6242 unsigned long constexpr
6243 strlen_c(const CharT *const s) noexcept
6245 return strlen_c_r(s, 0UL);
6248 static_assert(strlen_c("") == 0UL, "");
6249 static_assert(strlen_c("1") == 1UL, "");
6250 static_assert(strlen_c("example") == 7UL, "");
6251 static_assert(strlen_c("another\0example") == 7UL, "");
6255 namespace test_rvalue_references
6261 static constexpr int value = N;
6264 answer<1> f(int&) { return answer<1>(); }
6265 answer<2> f(const int&) { return answer<2>(); }
6266 answer<3> f(int&&) { return answer<3>(); }
6273 static_assert(decltype(f(i))::value == 1, "");
6274 static_assert(decltype(f(c))::value == 2, "");
6275 static_assert(decltype(f(0))::value == 3, "");
6280 namespace test_uniform_initialization
6285 static const int zero {};
6286 static const int one {1};
6289 static_assert(test::zero == 0, "");
6290 static_assert(test::one == 1, "");
6294 namespace test_lambdas
6300 auto lambda1 = [](){};
6301 auto lambda2 = lambda1;
6309 auto a = [](int i, int j){ return i + j; }(1, 2);
6310 auto b = []() -> int { return '0'; }();
6311 auto c = [=](){ return a + b; }();
6312 auto d = [&](){ return c; }();
6313 auto e = [a, &b](int x) mutable {
6314 const auto identity = [](int y){ return y; };
6315 for (auto i = 0; i < a; ++i)
6317 return x + identity(a + b);
6319 return a + b + c + d + e;
6325 const auto nullary = [](){ return 0; };
6326 const auto unary = [](int x){ return x; };
6327 using nullary_t = decltype(nullary);
6328 using unary_t = decltype(unary);
6329 const auto higher1st = [](nullary_t f){ return f(); };
6330 const auto higher2nd = [unary](nullary_t f1){
6331 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6333 return higher1st(nullary) + higher2nd(nullary)(unary);
6338 namespace test_variadic_templates
6344 template <int N0, int... N1toN>
6345 struct sum<N0, N1toN...>
6347 static constexpr auto value = N0 + sum<N1toN...>::value;
6353 static constexpr auto value = 0;
6356 static_assert(sum<>::value == 0, "");
6357 static_assert(sum<1>::value == 1, "");
6358 static_assert(sum<23>::value == 23, "");
6359 static_assert(sum<1, 2>::value == 3, "");
6360 static_assert(sum<5, 5, 11>::value == 21, "");
6361 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6365 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6366 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6368 namespace test_template_alias_sfinae
6373 template<typename T>
6374 using member = typename T::member_type;
6376 template<typename T>
6379 template<typename T>
6380 void func(member<T>*) {}
6384 void test() { func<foo>(0); }
6388 } // namespace cxx11
6390 #endif // __cplusplus >= 201103L
6395 if ac_fn_cxx_try_compile
"$LINENO"; then :
6400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6403 eval ac_res
=\$
$cachevar
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6405 $as_echo "$ac_res" >&6; }
6406 if eval test x\$
$cachevar = xyes
; then
6408 if test -n "$CXXCPP" ; then
6409 CXXCPP
="$CXXCPP $switch"
6417 if test x
$ac_success = xno
; then
6418 for alternative
in ${ax_cxx_compile_alternatives}; do
6419 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6420 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6422 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6423 if eval \${$cachevar+:} false; then :
6424 $as_echo_n "(cached
) " >&6
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6432 // If the compiler admits that it is not ready for C++11, why torture it?
6433 // Hopefully, this will speed up the test.
6437 #error "This is not a C
++ compiler
"
6439 #elif __cplusplus < 201103L
6441 #error "This is not a C
++11 compiler
"
6448 namespace test_static_assert
6451 template <typename T>
6454 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6459 namespace test_final_override
6468 struct Derived : public Base
6470 virtual ~Derived() override {}
6471 virtual void f() override {}
6476 namespace test_double_right_angle_brackets
6479 template < typename T >
6482 typedef check<void> single_type;
6483 typedef check<check<void>> double_type;
6484 typedef check<check<check<void>>> triple_type;
6485 typedef check<check<check<check<void>>>> quadruple_type;
6489 namespace test_decltype
6502 namespace test_type_deduction
6505 template < typename T1, typename T2 >
6508 static const bool value = false;
6511 template < typename T >
6512 struct is_same<T, T>
6514 static const bool value = true;
6517 template < typename T1, typename T2 >
6519 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6525 test(const int c, volatile int v)
6527 static_assert(is_same<int, decltype(0)>::value == true, "");
6528 static_assert(is_same<int, decltype(c)>::value == false, "");
6529 static_assert(is_same<int, decltype(v)>::value == false, "");
6532 auto sumi = ac + av + 'x';
6533 auto sumf = ac + av + 1.0;
6534 static_assert(is_same<int, decltype(ac)>::value == true, "");
6535 static_assert(is_same<int, decltype(av)>::value == true, "");
6536 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6537 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6538 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6539 return (sumf > 0.0) ? sumi : add(c, v);
6544 namespace test_noexcept
6547 int f() { return 0; }
6548 int g() noexcept { return 0; }
6550 static_assert(noexcept(f()) == false, "");
6551 static_assert(noexcept(g()) == true, "");
6555 namespace test_constexpr
6558 template < typename CharT >
6559 unsigned long constexpr
6560 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6562 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6565 template < typename CharT >
6566 unsigned long constexpr
6567 strlen_c(const CharT *const s) noexcept
6569 return strlen_c_r(s, 0UL);
6572 static_assert(strlen_c("") == 0UL, "");
6573 static_assert(strlen_c("1") == 1UL, "");
6574 static_assert(strlen_c("example
") == 7UL, "");
6575 static_assert(strlen_c("another\
0example
") == 7UL, "");
6579 namespace test_rvalue_references
6585 static constexpr int value = N;
6588 answer<1> f(int&) { return answer<1>(); }
6589 answer<2> f(const int&) { return answer<2>(); }
6590 answer<3> f(int&&) { return answer<3>(); }
6597 static_assert(decltype(f(i))::value == 1, "");
6598 static_assert(decltype(f(c))::value == 2, "");
6599 static_assert(decltype(f(0))::value == 3, "");
6604 namespace test_uniform_initialization
6609 static const int zero {};
6610 static const int one {1};
6613 static_assert(test::zero == 0, "");
6614 static_assert(test::one == 1, "");
6618 namespace test_lambdas
6624 auto lambda1 = [](){};
6625 auto lambda2 = lambda1;
6633 auto a = [](int i, int j){ return i + j; }(1, 2);
6634 auto b = []() -> int { return '0'; }();
6635 auto c = [=](){ return a + b; }();
6636 auto d = [&](){ return c; }();
6637 auto e = [a, &b](int x) mutable {
6638 const auto identity = [](int y){ return y; };
6639 for (auto i = 0; i < a; ++i)
6641 return x + identity(a + b);
6643 return a + b + c + d + e;
6649 const auto nullary = [](){ return 0; };
6650 const auto unary = [](int x){ return x; };
6651 using nullary_t = decltype(nullary);
6652 using unary_t = decltype(unary);
6653 const auto higher1st = [](nullary_t f){ return f(); };
6654 const auto higher2nd = [unary](nullary_t f1){
6655 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6657 return higher1st(nullary) + higher2nd(nullary)(unary);
6662 namespace test_variadic_templates
6668 template <int N0, int... N1toN>
6669 struct sum<N0, N1toN...>
6671 static constexpr auto value = N0 + sum<N1toN...>::value;
6677 static constexpr auto value = 0;
6680 static_assert(sum<>::value == 0, "");
6681 static_assert(sum<1>::value == 1, "");
6682 static_assert(sum<23>::value == 23, "");
6683 static_assert(sum<1, 2>::value == 3, "");
6684 static_assert(sum<5, 5, 11>::value == 21, "");
6685 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6689 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6690 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6692 namespace test_template_alias_sfinae
6697 template<typename T>
6698 using member = typename T::member_type;
6700 template<typename T>
6703 template<typename T>
6704 void func(member<T>*) {}
6708 void test() { func<foo>(0); }
6712 } // namespace cxx11
6714 #endif // __cplusplus >= 201103L
6719 if ac_fn_cxx_try_compile "$LINENO"; then :
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 eval ac_res=\$$cachevar
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6729 $as_echo "$ac_res" >&6; }
6730 if eval test x\$$cachevar = xyes; then
6732 if test -n "$CXXCPP" ; then
6733 CXXCPP="$CXXCPP $switch"
6739 if test x$ac_success = xyes; then
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6752 if test x$ac_success = xno; then
6753 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6756 if test x$ac_success = xno; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6759 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6763 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6769 if test "${build}" != "${host}"; then
6770 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6772 ac_cpp
='$CXXCPP $CPPFLAGS'
6773 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6777 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6778 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6779 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6780 CXX
="$CXX_FOR_BUILD"
6781 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6782 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6784 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6785 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6786 $as_echo_n "(cached) " >&6
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6792 // If the compiler admits that it is not ready for C++11, why torture it?
6793 // Hopefully, this will speed up the test.
6797 #error "This is not a C++ compiler"
6799 #elif __cplusplus < 201103L
6801 #error "This is not a C++11 compiler"
6808 namespace test_static_assert
6811 template <typename T>
6814 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6819 namespace test_final_override
6828 struct Derived : public Base
6830 virtual ~Derived() override {}
6831 virtual void f() override {}
6836 namespace test_double_right_angle_brackets
6839 template < typename T >
6842 typedef check<void> single_type;
6843 typedef check<check<void>> double_type;
6844 typedef check<check<check<void>>> triple_type;
6845 typedef check<check<check<check<void>>>> quadruple_type;
6849 namespace test_decltype
6862 namespace test_type_deduction
6865 template < typename T1, typename T2 >
6868 static const bool value = false;
6871 template < typename T >
6872 struct is_same<T, T>
6874 static const bool value = true;
6877 template < typename T1, typename T2 >
6879 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6885 test(const int c, volatile int v)
6887 static_assert(is_same<int, decltype(0)>::value == true, "");
6888 static_assert(is_same<int, decltype(c)>::value == false, "");
6889 static_assert(is_same<int, decltype(v)>::value == false, "");
6892 auto sumi = ac + av + 'x';
6893 auto sumf = ac + av + 1.0;
6894 static_assert(is_same<int, decltype(ac)>::value == true, "");
6895 static_assert(is_same<int, decltype(av)>::value == true, "");
6896 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6897 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6898 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6899 return (sumf > 0.0) ? sumi : add(c, v);
6904 namespace test_noexcept
6907 int f() { return 0; }
6908 int g() noexcept { return 0; }
6910 static_assert(noexcept(f()) == false, "");
6911 static_assert(noexcept(g()) == true, "");
6915 namespace test_constexpr
6918 template < typename CharT >
6919 unsigned long constexpr
6920 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6922 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6925 template < typename CharT >
6926 unsigned long constexpr
6927 strlen_c(const CharT *const s) noexcept
6929 return strlen_c_r(s, 0UL);
6932 static_assert(strlen_c("") == 0UL, "");
6933 static_assert(strlen_c("1") == 1UL, "");
6934 static_assert(strlen_c("example") == 7UL, "");
6935 static_assert(strlen_c("another\0example") == 7UL, "");
6939 namespace test_rvalue_references
6945 static constexpr int value = N;
6948 answer<1> f(int&) { return answer<1>(); }
6949 answer<2> f(const int&) { return answer<2>(); }
6950 answer<3> f(int&&) { return answer<3>(); }
6957 static_assert(decltype(f(i))::value == 1, "");
6958 static_assert(decltype(f(c))::value == 2, "");
6959 static_assert(decltype(f(0))::value == 3, "");
6964 namespace test_uniform_initialization
6969 static const int zero {};
6970 static const int one {1};
6973 static_assert(test::zero == 0, "");
6974 static_assert(test::one == 1, "");
6978 namespace test_lambdas
6984 auto lambda1 = [](){};
6985 auto lambda2 = lambda1;
6993 auto a = [](int i, int j){ return i + j; }(1, 2);
6994 auto b = []() -> int { return '0'; }();
6995 auto c = [=](){ return a + b; }();
6996 auto d = [&](){ return c; }();
6997 auto e = [a, &b](int x) mutable {
6998 const auto identity = [](int y){ return y; };
6999 for (auto i = 0; i < a; ++i)
7001 return x + identity(a + b);
7003 return a + b + c + d + e;
7009 const auto nullary = [](){ return 0; };
7010 const auto unary = [](int x){ return x; };
7011 using nullary_t = decltype(nullary);
7012 using unary_t = decltype(unary);
7013 const auto higher1st = [](nullary_t f){ return f(); };
7014 const auto higher2nd = [unary](nullary_t f1){
7015 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7017 return higher1st(nullary) + higher2nd(nullary)(unary);
7022 namespace test_variadic_templates
7028 template <int N0, int... N1toN>
7029 struct sum<N0, N1toN...>
7031 static constexpr auto value = N0 + sum<N1toN...>::value;
7037 static constexpr auto value = 0;
7040 static_assert(sum<>::value == 0, "");
7041 static_assert(sum<1>::value == 1, "");
7042 static_assert(sum<23>::value == 23, "");
7043 static_assert(sum<1, 2>::value == 3, "");
7044 static_assert(sum<5, 5, 11>::value == 21, "");
7045 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7049 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7050 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7052 namespace test_template_alias_sfinae
7057 template<typename T>
7058 using member = typename T::member_type;
7060 template<typename T>
7063 template<typename T>
7064 void func(member<T>*) {}
7068 void test() { func<foo>(0); }
7072 } // namespace cxx11
7074 #endif // __cplusplus >= 201103L
7079 if ac_fn_cxx_try_compile
"$LINENO"; then :
7080 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7082 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7087 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7088 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7092 if test x
$ac_success = xno
; then
7093 for alternative
in ${ax_cxx_compile_alternatives}; do
7094 switch
="-std=gnu++${alternative}"
7095 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7097 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7098 if eval \
${$cachevar+:} false
; then :
7099 $as_echo_n "(cached) " >&6
7103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7107 // If the compiler admits that it is not ready for C++11, why torture it?
7108 // Hopefully, this will speed up the test.
7112 #error "This is not a C++ compiler"
7114 #elif __cplusplus < 201103L
7116 #error "This is not a C++11 compiler"
7123 namespace test_static_assert
7126 template <typename T>
7129 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7134 namespace test_final_override
7143 struct Derived : public Base
7145 virtual ~Derived() override {}
7146 virtual void f() override {}
7151 namespace test_double_right_angle_brackets
7154 template < typename T >
7157 typedef check<void> single_type;
7158 typedef check<check<void>> double_type;
7159 typedef check<check<check<void>>> triple_type;
7160 typedef check<check<check<check<void>>>> quadruple_type;
7164 namespace test_decltype
7177 namespace test_type_deduction
7180 template < typename T1, typename T2 >
7183 static const bool value = false;
7186 template < typename T >
7187 struct is_same<T, T>
7189 static const bool value = true;
7192 template < typename T1, typename T2 >
7194 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7200 test(const int c, volatile int v)
7202 static_assert(is_same<int, decltype(0)>::value == true, "");
7203 static_assert(is_same<int, decltype(c)>::value == false, "");
7204 static_assert(is_same<int, decltype(v)>::value == false, "");
7207 auto sumi = ac + av + 'x';
7208 auto sumf = ac + av + 1.0;
7209 static_assert(is_same<int, decltype(ac)>::value == true, "");
7210 static_assert(is_same<int, decltype(av)>::value == true, "");
7211 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7212 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7213 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7214 return (sumf > 0.0) ? sumi : add(c, v);
7219 namespace test_noexcept
7222 int f() { return 0; }
7223 int g() noexcept { return 0; }
7225 static_assert(noexcept(f()) == false, "");
7226 static_assert(noexcept(g()) == true, "");
7230 namespace test_constexpr
7233 template < typename CharT >
7234 unsigned long constexpr
7235 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7237 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7240 template < typename CharT >
7241 unsigned long constexpr
7242 strlen_c(const CharT *const s) noexcept
7244 return strlen_c_r(s, 0UL);
7247 static_assert(strlen_c("") == 0UL, "");
7248 static_assert(strlen_c("1") == 1UL, "");
7249 static_assert(strlen_c("example") == 7UL, "");
7250 static_assert(strlen_c("another\0example") == 7UL, "");
7254 namespace test_rvalue_references
7260 static constexpr int value = N;
7263 answer<1> f(int&) { return answer<1>(); }
7264 answer<2> f(const int&) { return answer<2>(); }
7265 answer<3> f(int&&) { return answer<3>(); }
7272 static_assert(decltype(f(i))::value == 1, "");
7273 static_assert(decltype(f(c))::value == 2, "");
7274 static_assert(decltype(f(0))::value == 3, "");
7279 namespace test_uniform_initialization
7284 static const int zero {};
7285 static const int one {1};
7288 static_assert(test::zero == 0, "");
7289 static_assert(test::one == 1, "");
7293 namespace test_lambdas
7299 auto lambda1 = [](){};
7300 auto lambda2 = lambda1;
7308 auto a = [](int i, int j){ return i + j; }(1, 2);
7309 auto b = []() -> int { return '0'; }();
7310 auto c = [=](){ return a + b; }();
7311 auto d = [&](){ return c; }();
7312 auto e = [a, &b](int x) mutable {
7313 const auto identity = [](int y){ return y; };
7314 for (auto i = 0; i < a; ++i)
7316 return x + identity(a + b);
7318 return a + b + c + d + e;
7324 const auto nullary = [](){ return 0; };
7325 const auto unary = [](int x){ return x; };
7326 using nullary_t = decltype(nullary);
7327 using unary_t = decltype(unary);
7328 const auto higher1st = [](nullary_t f){ return f(); };
7329 const auto higher2nd = [unary](nullary_t f1){
7330 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7332 return higher1st(nullary) + higher2nd(nullary)(unary);
7337 namespace test_variadic_templates
7343 template <int N0, int... N1toN>
7344 struct sum<N0, N1toN...>
7346 static constexpr auto value = N0 + sum<N1toN...>::value;
7352 static constexpr auto value = 0;
7355 static_assert(sum<>::value == 0, "");
7356 static_assert(sum<1>::value == 1, "");
7357 static_assert(sum<23>::value == 23, "");
7358 static_assert(sum<1, 2>::value == 3, "");
7359 static_assert(sum<5, 5, 11>::value == 21, "");
7360 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7364 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7365 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7367 namespace test_template_alias_sfinae
7372 template<typename T>
7373 using member = typename T::member_type;
7375 template<typename T>
7378 template<typename T>
7379 void func(member<T>*) {}
7383 void test() { func<foo>(0); }
7387 } // namespace cxx11
7389 #endif // __cplusplus >= 201103L
7394 if ac_fn_cxx_try_compile
"$LINENO"; then :
7399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 eval ac_res
=\$
$cachevar
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7404 $as_echo "$ac_res" >&6; }
7405 if eval test x\$
$cachevar = xyes
; then
7407 if test -n "$CXXCPP" ; then
7408 CXXCPP
="$CXXCPP $switch"
7416 if test x
$ac_success = xno
; then
7417 for alternative
in ${ax_cxx_compile_alternatives}; do
7418 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7419 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7421 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7422 if eval \${$cachevar+:} false; then :
7423 $as_echo_n "(cached
) " >&6
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7431 // If the compiler admits that it is not ready for C++11, why torture it?
7432 // Hopefully, this will speed up the test.
7436 #error "This is not a C
++ compiler
"
7438 #elif __cplusplus < 201103L
7440 #error "This is not a C
++11 compiler
"
7447 namespace test_static_assert
7450 template <typename T>
7453 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7458 namespace test_final_override
7467 struct Derived : public Base
7469 virtual ~Derived() override {}
7470 virtual void f() override {}
7475 namespace test_double_right_angle_brackets
7478 template < typename T >
7481 typedef check<void> single_type;
7482 typedef check<check<void>> double_type;
7483 typedef check<check<check<void>>> triple_type;
7484 typedef check<check<check<check<void>>>> quadruple_type;
7488 namespace test_decltype
7501 namespace test_type_deduction
7504 template < typename T1, typename T2 >
7507 static const bool value = false;
7510 template < typename T >
7511 struct is_same<T, T>
7513 static const bool value = true;
7516 template < typename T1, typename T2 >
7518 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7524 test(const int c, volatile int v)
7526 static_assert(is_same<int, decltype(0)>::value == true, "");
7527 static_assert(is_same<int, decltype(c)>::value == false, "");
7528 static_assert(is_same<int, decltype(v)>::value == false, "");
7531 auto sumi = ac + av + 'x';
7532 auto sumf = ac + av + 1.0;
7533 static_assert(is_same<int, decltype(ac)>::value == true, "");
7534 static_assert(is_same<int, decltype(av)>::value == true, "");
7535 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7536 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7537 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7538 return (sumf > 0.0) ? sumi : add(c, v);
7543 namespace test_noexcept
7546 int f() { return 0; }
7547 int g() noexcept { return 0; }
7549 static_assert(noexcept(f()) == false, "");
7550 static_assert(noexcept(g()) == true, "");
7554 namespace test_constexpr
7557 template < typename CharT >
7558 unsigned long constexpr
7559 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7561 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7564 template < typename CharT >
7565 unsigned long constexpr
7566 strlen_c(const CharT *const s) noexcept
7568 return strlen_c_r(s, 0UL);
7571 static_assert(strlen_c("") == 0UL, "");
7572 static_assert(strlen_c("1") == 1UL, "");
7573 static_assert(strlen_c("example
") == 7UL, "");
7574 static_assert(strlen_c("another\
0example
") == 7UL, "");
7578 namespace test_rvalue_references
7584 static constexpr int value = N;
7587 answer<1> f(int&) { return answer<1>(); }
7588 answer<2> f(const int&) { return answer<2>(); }
7589 answer<3> f(int&&) { return answer<3>(); }
7596 static_assert(decltype(f(i))::value == 1, "");
7597 static_assert(decltype(f(c))::value == 2, "");
7598 static_assert(decltype(f(0))::value == 3, "");
7603 namespace test_uniform_initialization
7608 static const int zero {};
7609 static const int one {1};
7612 static_assert(test::zero == 0, "");
7613 static_assert(test::one == 1, "");
7617 namespace test_lambdas
7623 auto lambda1 = [](){};
7624 auto lambda2 = lambda1;
7632 auto a = [](int i, int j){ return i + j; }(1, 2);
7633 auto b = []() -> int { return '0'; }();
7634 auto c = [=](){ return a + b; }();
7635 auto d = [&](){ return c; }();
7636 auto e = [a, &b](int x) mutable {
7637 const auto identity = [](int y){ return y; };
7638 for (auto i = 0; i < a; ++i)
7640 return x + identity(a + b);
7642 return a + b + c + d + e;
7648 const auto nullary = [](){ return 0; };
7649 const auto unary = [](int x){ return x; };
7650 using nullary_t = decltype(nullary);
7651 using unary_t = decltype(unary);
7652 const auto higher1st = [](nullary_t f){ return f(); };
7653 const auto higher2nd = [unary](nullary_t f1){
7654 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7656 return higher1st(nullary) + higher2nd(nullary)(unary);
7661 namespace test_variadic_templates
7667 template <int N0, int... N1toN>
7668 struct sum<N0, N1toN...>
7670 static constexpr auto value = N0 + sum<N1toN...>::value;
7676 static constexpr auto value = 0;
7679 static_assert(sum<>::value == 0, "");
7680 static_assert(sum<1>::value == 1, "");
7681 static_assert(sum<23>::value == 23, "");
7682 static_assert(sum<1, 2>::value == 3, "");
7683 static_assert(sum<5, 5, 11>::value == 21, "");
7684 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7688 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7689 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7691 namespace test_template_alias_sfinae
7696 template<typename T>
7697 using member = typename T::member_type;
7699 template<typename T>
7702 template<typename T>
7703 void func(member<T>*) {}
7707 void test() { func<foo>(0); }
7711 } // namespace cxx11
7713 #endif // __cplusplus >= 201103L
7718 if ac_fn_cxx_try_compile "$LINENO"; then :
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 eval ac_res=\$$cachevar
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7728 $as_echo "$ac_res" >&6; }
7729 if eval test x\$$cachevar = xyes; then
7731 if test -n "$CXXCPP" ; then
7732 CXXCPP="$CXXCPP $switch"
7738 if test x$ac_success = xyes; then
7743 CXX_FOR_BUILD="$CXX"
7744 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7745 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7746 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7747 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7748 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7756 if test x$ac_success = xno; then
7757 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7760 if test x$ac_success = xno; then
7761 HAVE_CXX11_FOR_BUILD=0
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7763 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7765 HAVE_CXX11_FOR_BUILD=1
7767 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7775 # Check whether --enable-pgo-build was given.
7776 if test "${enable_pgo_build+set}" = set; then :
7777 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7783 # Issue errors and warnings for invalid/strange PGO build combinations.
7784 case "$have_compiler:$host:$target:$enable_pgo_build" in
7787 # Allow the PGO build only if we aren't building a compiler and
7788 # we are in a native configuration.
7789 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7791 # Disallow the PGO bootstrap if we are building a compiler.
7792 yes:*:*:yes |
yes:*:*:lto
)
7793 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7796 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7800 if test "$enable_pgo_build" != "no"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7802 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7803 old_CFLAGS
="$CFLAGS"
7804 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7805 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7811 if ac_fn_c_try_compile
"$LINENO"; then :
7814 PGO_BUILD_GEN_CFLAGS
=
7816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7817 CFLAGS
="$old_CFLAGS"
7818 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7820 $as_echo "yes" >&6; }
7821 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7828 if test "$enable_pgo_build" = "lto"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7830 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7831 old_CFLAGS
="$CFLAGS"
7832 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7833 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7838 if ac_fn_c_try_compile
"$LINENO"; then :
7841 PGO_BUILD_LTO_CFLAGS
=
7843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7844 CFLAGS
="$old_CFLAGS"
7845 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7852 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7860 # Used for setting $lt_cv_objdir
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7862 $as_echo_n "checking for objdir... " >&6; }
7863 if ${lt_cv_objdir+:} false
; then :
7864 $as_echo_n "(cached) " >&6
7866 rm -f .libs
2>/dev
/null
7867 mkdir .libs
2>/dev
/null
7868 if test -d .libs
; then
7871 # MS-DOS does not allow filenames that begin with a dot.
7874 rmdir .libs
2>/dev
/null
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7877 $as_echo "$lt_cv_objdir" >&6; }
7878 objdir
=$lt_cv_objdir
7884 cat >>confdefs.h
<<_ACEOF
7885 #define LT_OBJDIR "$lt_cv_objdir/"
7890 # Check for GMP, MPFR and MPC
7891 gmplibs
="-lmpc -lmpfr -lgmp"
7895 # Specify a location for mpc
7896 # check for this first so it ends up on the link line before mpfr.
7898 # Check whether --with-mpc was given.
7899 if test "${with_mpc+set}" = set; then :
7904 # Check whether --with-mpc-include was given.
7905 if test "${with_mpc_include+set}" = set; then :
7906 withval
=$with_mpc_include;
7910 # Check whether --with-mpc-lib was given.
7911 if test "${with_mpc_lib+set}" = set; then :
7912 withval
=$with_mpc_lib;
7916 if test "x$with_mpc" != x
; then
7917 gmplibs
="-L$with_mpc/lib $gmplibs"
7918 gmpinc
="-I$with_mpc/include $gmpinc"
7920 if test "x$with_mpc_include" != x
; then
7921 gmpinc
="-I$with_mpc_include $gmpinc"
7923 if test "x$with_mpc_lib" != x
; then
7924 gmplibs
="-L$with_mpc_lib $gmplibs"
7926 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7927 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7928 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7929 # Do not test the mpc version. Assume that it is sufficient, since
7930 # it is in the source tree, and the library has not been built yet
7931 # but it would be included on the link line in the version check below
7932 # hence making the test fail.
7936 # Specify a location for mpfr
7937 # check for this first so it ends up on the link line before gmp.
7939 # Check whether --with-mpfr was given.
7940 if test "${with_mpfr+set}" = set; then :
7945 # Check whether --with-mpfr-include was given.
7946 if test "${with_mpfr_include+set}" = set; then :
7947 withval
=$with_mpfr_include;
7951 # Check whether --with-mpfr-lib was given.
7952 if test "${with_mpfr_lib+set}" = set; then :
7953 withval
=$with_mpfr_lib;
7957 if test "x$with_mpfr" != x
; then
7958 gmplibs
="-L$with_mpfr/lib $gmplibs"
7959 gmpinc
="-I$with_mpfr/include $gmpinc"
7961 if test "x$with_mpfr_include" != x
; then
7962 gmpinc
="-I$with_mpfr_include $gmpinc"
7964 if test "x$with_mpfr_lib" != x
; then
7965 gmplibs
="-L$with_mpfr_lib $gmplibs"
7967 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7968 # MPFR v3.1.0 moved the sources into a src sub-directory.
7969 if ! test -d ${srcdir}/mpfr
/src
; then
7970 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7972 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7973 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7974 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7975 # Do not test the mpfr version. Assume that it is sufficient, since
7976 # it is in the source tree, and the library has not been built yet
7977 # but it would be included on the link line in the version check below
7978 # hence making the test fail.
7982 # Specify a location for gmp
7984 # Check whether --with-gmp was given.
7985 if test "${with_gmp+set}" = set; then :
7990 # Check whether --with-gmp-include was given.
7991 if test "${with_gmp_include+set}" = set; then :
7992 withval
=$with_gmp_include;
7996 # Check whether --with-gmp-lib was given.
7997 if test "${with_gmp_lib+set}" = set; then :
7998 withval
=$with_gmp_lib;
8003 if test "x$with_gmp" != x
; then
8004 gmplibs
="-L$with_gmp/lib $gmplibs"
8005 gmpinc
="-I$with_gmp/include $gmpinc"
8007 if test "x$with_gmp_include" != x
; then
8008 gmpinc
="-I$with_gmp_include $gmpinc"
8010 if test "x$with_gmp_lib" != x
; then
8011 gmplibs
="-L$with_gmp_lib $gmplibs"
8013 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8014 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8015 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8016 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8017 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8018 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8019 # Do not test the gmp version. Assume that it is sufficient, since
8020 # it is in the source tree, and the library has not been built yet
8021 # but it would be included on the link line in the version check below
8022 # hence making the test fail.
8026 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8028 saved_CFLAGS
="$CFLAGS"
8029 CFLAGS
="$CFLAGS $gmpinc"
8030 # Check for the recommended and required versions of GMP.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8032 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8040 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8041 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8042 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8050 if ac_fn_c_try_compile
"$LINENO"; then :
8051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8058 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8059 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8060 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8068 if ac_fn_c_try_compile
"$LINENO"; then :
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8070 $as_echo "yes" >&6; }
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8073 $as_echo "buggy but acceptable" >&6; }
8075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }; have_gmp
=no
8080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8082 # If we have GMP, check the MPFR version.
8083 if test x
"$have_gmp" = xyes
; then
8084 # Check for the recommended and required versions of MPFR.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8086 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8095 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8103 if ac_fn_c_try_compile
"$LINENO"; then :
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8112 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8120 if ac_fn_c_try_compile
"$LINENO"; then :
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122 $as_echo "yes" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8125 $as_echo "buggy but acceptable" >&6; }
8127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }; have_gmp
=no
8132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 # Check for the MPC header version.
8136 if test x
"$have_gmp" = xyes
; then
8137 # Check for the recommended and required versions of MPC.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8139 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8147 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8155 if ac_fn_c_try_compile
"$LINENO"; then :
8156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8163 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8171 if ac_fn_c_try_compile
"$LINENO"; then :
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8173 $as_echo "yes" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8176 $as_echo "buggy but acceptable" >&6; }
8178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }; have_gmp
=no
8183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8186 # Now check the MPFR library.
8187 if test x
"$have_gmp" = xyes
; then
8189 LIBS
="$LIBS $gmplibs"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8191 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8205 mpfr_atan2 (n, n, x, MPFR_RNDN);
8206 mpfr_erfc (n, x, MPFR_RNDN);
8207 mpfr_subnormalize (x, t, MPFR_RNDN);
8211 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8212 mpc_cosh (c, c, MPC_RNDNN);
8213 mpc_pow (c, c, c, MPC_RNDNN);
8214 mpc_acosh (c, c, MPC_RNDNN);
8221 if ac_fn_c_try_link
"$LINENO"; then :
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }; have_gmp
=no
8228 rm -f core conftest.err conftest.
$ac_objext \
8229 conftest
$ac_exeext conftest.
$ac_ext
8233 CFLAGS
="$saved_CFLAGS"
8235 # The library versions listed in the error message below should match
8236 # the HARD-minimums enforced above.
8237 if test x
$have_gmp != xyes
; then
8238 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8239 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8240 their locations. Source code for these libraries can be found at
8241 their respective hosting sites as well as at
8242 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8243 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8244 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8245 make sure that you have installed both the libraries and the header
8246 files. They may be located in separate packages." "$LINENO" 5
8250 # Flags needed for both GMP, MPFR and/or MPC.
8258 # Libraries to use for stage1 or when not bootstrapping.
8260 # Check whether --with-stage1-libs was given.
8261 if test "${with_stage1_libs+set}" = set; then :
8262 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8265 stage1_libs
=$withval
8273 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8274 # default is yes if gcc is being built; no otherwise. The reason for
8275 # this default is that gdb is sometimes linked against GNU Source
8276 # Highlight, which is a shared library that uses C++ exceptions. In
8277 # this case, -static-libstdc++ will cause crashes.
8279 # Check whether --with-static-standard-libraries was given.
8280 if test "${with_static_standard_libraries+set}" = set; then :
8281 withval
=$with_static_standard_libraries;
8283 with_static_standard_libraries
=auto
8286 if test "$with_static_standard_libraries" = auto
; then
8287 with_static_standard_libraries
=$have_compiler
8290 # Linker flags to use for stage1 or when not bootstrapping.
8292 # Check whether --with-stage1-ldflags was given.
8293 if test "${with_stage1_ldflags+set}" = set; then :
8294 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8297 stage1_ldflags
=$withval
8301 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8302 # if supported. But if the user explicitly specified the libraries to use,
8303 # trust that they are doing what they want.
8304 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8305 -a "$have_static_libs" = yes; then
8306 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8312 # Libraries to use for stage2 and later builds.
8314 # Check whether --with-boot-libs was given.
8315 if test "${with_boot_libs+set}" = set; then :
8316 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8319 poststage1_libs
=$withval
8327 # Linker flags to use for stage2 and later builds.
8329 # Check whether --with-boot-ldflags was given.
8330 if test "${with_boot_ldflags+set}" = set; then :
8331 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8334 poststage1_ldflags
=$withval
8338 # In stages 2 and 3, default to linking libstdc++ and libgcc
8339 # statically. But if the user explicitly specified the libraries to
8340 # use, trust that they are doing what they want.
8341 if test "$poststage1_libs" = ""; then
8342 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8348 # GCC GRAPHITE dependency isl.
8349 # Basic setup is inlined here, actual checks are in config/isl.m4
8352 # Check whether --with-isl was given.
8353 if test "${with_isl+set}" = set; then :
8358 # Treat --without-isl as a request to disable
8359 # GRAPHITE support and skip all following checks.
8360 if test "x$with_isl" != "xno"; then
8364 # Check whether --with-isl-include was given.
8365 if test "${with_isl_include+set}" = set; then :
8366 withval
=$with_isl_include;
8370 # Check whether --with-isl-lib was given.
8371 if test "${with_isl_lib+set}" = set; then :
8372 withval
=$with_isl_lib;
8376 # Check whether --enable-isl-version-check was given.
8377 if test "${enable_isl_version_check+set}" = set; then :
8378 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8380 ENABLE_ISL_CHECK
=yes
8384 # Initialize isllibs and islinc.
8393 isllibs
="-L$with_isl/lib"
8394 islinc
="-I$with_isl/include"
8397 if test "x${with_isl_include}" != x
; then
8398 islinc
="-I$with_isl_include"
8400 if test "x${with_isl_lib}" != x
; then
8401 isllibs
="-L$with_isl_lib"
8403 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8404 && test -d ${srcdir}/isl
; then
8405 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8406 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8409 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8412 isllibs
="${isllibs} -lisl"
8416 if test "${ENABLE_ISL_CHECK}" = yes ; then
8417 _isl_saved_CFLAGS
=$CFLAGS
8418 _isl_saved_LDFLAGS
=$LDFLAGS
8419 _isl_saved_LIBS
=$LIBS
8421 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8422 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8423 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8426 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 #include <isl/schedule.h>
8433 isl_options_set_schedule_serialize_sccs (NULL, 0);
8438 if ac_fn_c_try_link
"$LINENO"; then :
8443 rm -f core conftest.err conftest.
$ac_objext \
8444 conftest
$ac_exeext conftest.
$ac_ext
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8446 $as_echo "$gcc_cv_isl" >&6; }
8448 if test "${gcc_cv_isl}" = no
; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8450 $as_echo "required isl version is 0.15 or later" >&6; }
8453 CFLAGS
=$_isl_saved_CFLAGS
8454 LDFLAGS
=$_isl_saved_LDFLAGS
8455 LIBS
=$_isl_saved_LIBS
8463 if test "x${with_isl}" = xno
; then
8464 graphite_requested
=no
8465 elif test "x${with_isl}" != x \
8466 ||
test "x${with_isl_include}" != x \
8467 ||
test "x${with_isl_lib}" != x
; then
8468 graphite_requested
=yes
8470 graphite_requested
=no
8475 if test "${gcc_cv_isl}" = no
; then
8480 if test "${graphite_requested}" = yes \
8481 && test "x${isllibs}" = x \
8482 && test "x${islinc}" = x
; then
8484 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8490 # If the isl check failed, disable builds of in-tree variant of isl
8491 if test "x$with_isl" = xno ||
8492 test "x$gcc_cv_isl" = xno
; then
8493 noconfigdirs
="$noconfigdirs isl"
8500 # Check for LTO support.
8501 # Check whether --enable-lto was given.
8502 if test "${enable_lto+set}" = set; then :
8503 enableval
=$enable_lto; enable_lto
=$enableval
8505 enable_lto
=yes; default_enable_lto
=yes
8514 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8515 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8516 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8525 if test $target_elf = yes; then :
8526 # ELF platforms build the lto-plugin always.
8527 build_lto_plugin
=yes
8530 if test x
"$default_enable_lto" = x
"yes" ; then
8532 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8533 # On other non-ELF platforms, LTO has yet to be validated.
8537 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8538 # It would also be nice to check the binutils support, but we don't
8539 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8540 # warn during gcc/ subconfigure; unless you're bootstrapping with
8541 # -flto it won't be needed until after installation anyway.
8543 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8544 *) if test x
"$enable_lto" = x
"yes"; then
8545 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8550 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8551 # Build it unless LTO was explicitly disabled.
8553 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8560 # Check whether --enable-linker-plugin-configure-flags was given.
8561 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8562 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8564 extra_linker_plugin_configure_flags
=
8568 # Check whether --enable-linker-plugin-flags was given.
8569 if test "${enable_linker_plugin_flags+set}" = set; then :
8570 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8572 extra_linker_plugin_flags
=
8577 # Enable --enable-host-shared.
8578 # Checked early to determine whether jit is an 'all' language
8579 # Check whether --enable-host-shared was given.
8580 if test "${enable_host_shared+set}" = set; then :
8581 enableval
=$enable_host_shared; host_shared
=$enableval
8583 x86_64-
*-darwin* | aarch64-
*-darwin*)
8584 if test x
$host_shared != xyes
; then
8585 # PIC is the default, and actually cannot be switched off.
8586 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8593 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8594 *) host_shared
=no
;;
8601 # If we are building PIC/PIE host executables, and we are building dependent
8602 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8605 if test "$host_shared" = "yes";then
8606 host_libs_picflag
='--with-pic'
8610 # By default, C and C++ are the only stage 1 languages.
8611 stage1_languages
=,c
,
8613 # Target libraries that we bootstrap.
8614 bootstrap_target_libs
=,target-libgcc
,
8616 # Figure out what language subdirectories are present.
8617 # Look if the user specified --enable-languages="..."; if not, use
8618 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8620 # NB: embedded tabs in this IF block -- do not untabify
8621 if test -d ${srcdir}/gcc
; then
8622 if test x
"${enable_languages+set}" != xset
; then
8623 if test x
"${LANGUAGES+set}" = xset
; then
8624 enable_languages
="${LANGUAGES}"
8625 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8627 enable_languages
=default
8630 if test x
"${enable_languages}" = x ||
8631 test x
"${enable_languages}" = xyes
;
8633 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8637 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8639 # 'f95' is the old name for the 'fortran' language. We issue a warning
8640 # and make the substitution.
8641 case ,${enable_languages}, in
8643 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8644 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8648 # If bootstrapping, C++ must be enabled.
8649 case ",$enable_languages,:$enable_bootstrap" in
8652 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8653 enable_languages
="${enable_languages},c++"
8655 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8660 # First scan to see if an enabled language requires some other language.
8661 # We assume that a given config-lang.in will list all the language
8662 # front ends it requires, even if some are required indirectly.
8663 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8664 case ${lang_frag} in
8666 # The odd quoting in the next line works around
8667 # an apparent bug in bash 1.12 on linux.
8668 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8670 # From the config-lang.in, get $language, $lang_requires, and
8671 # $lang_requires_boot_languages.
8674 lang_requires_boot_languages
=
8675 # set srcdir during sourcing lang_frag to the gcc dir.
8676 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8677 # polutes this shell
8678 saved_srcdir
=${srcdir}
8679 srcdir
=${srcdir}/gcc .
${lang_frag}
8680 srcdir
=${saved_srcdir}
8681 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8682 case ,${enable_languages}, in
8687 echo " \`$other' language required by \`$language'; enabling" 1>&2
8688 enable_languages
="${enable_languages},${other}"
8692 for other
in ${lang_requires_boot_languages} ; do
8693 if test "$other" != "c"; then
8694 case ,${enable_stage1_languages}, in
8699 case ,${enable_languages}, in
8701 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8702 enable_stage1_languages
="$enable_stage1_languages,${other}"
8713 new_enable_languages
=,c
,
8715 # If LTO is enabled, add the LTO front end.
8716 if test "$enable_lto" = "yes" ; then
8717 case ,${enable_languages}, in
8719 *) enable_languages
="${enable_languages},lto" ;;
8721 if test "${build_lto_plugin}" = "yes" ; then
8722 configdirs
="$configdirs lto-plugin"
8726 # If we're building an offloading compiler, add the LTO front end.
8727 if test x
"$enable_as_accelerator_for" != x
; then
8728 case ,${enable_languages}, in
8730 *) enable_languages
="${enable_languages},lto" ;;
8734 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8735 potential_languages
=,c
,
8737 enabled_target_libs
=
8738 disabled_target_libs
=
8740 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8741 case ${lang_frag} in
8743 # The odd quoting in the next line works around
8744 # an apparent bug in bash 1.12 on linux.
8745 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8747 # From the config-lang.in, get $language, $target_libs,
8748 # $lang_dirs, $boot_language, and $build_by_default
8754 build_by_default
=yes
8755 # set srcdir during sourcing. See above about save & restore
8756 saved_srcdir
=${srcdir}
8757 srcdir
=${srcdir}/gcc .
${lang_frag}
8758 srcdir
=${saved_srcdir}
8759 if test x
${language} = x
; then
8760 echo "${lang_frag} doesn't set \$language." 1>&2
8764 if test "$language" = "c++"; then
8769 # C is always enabled, so no need to add it again
8770 if test "$language" != "c"; then
8771 case ,${enable_languages}, in
8773 # Language was explicitly selected; include it
8777 # All languages are enabled
8781 # 'default' was selected, select it if it is a default language
8782 add_this_lang
=${build_by_default}
8787 # Disable languages that need other directories if these aren't available.
8788 for i
in $subdir_requires; do
8789 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8790 case ${add_this_lang} in
8792 # Specifically requested language; tell them.
8793 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8797 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8798 add_this_lang
=unsupported
8802 add_this_lang
=unsupported
8807 # Disable Ada if no preexisting GNAT is available.
8808 case ${add_this_lang}:${language}:${have_gnat} in
8810 # Specifically requested language; tell them.
8811 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8815 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8816 add_this_lang
=unsupported
8820 add_this_lang
=unsupported
8824 # Disable D if no preexisting GDC is available.
8825 case ${add_this_lang}:${language}:${have_gdc} in
8827 # Specifically requested language; tell them.
8828 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8832 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8833 add_this_lang
=unsupported
8837 add_this_lang
=unsupported
8841 # Disable jit if -enable-host-shared not specified
8842 # but not if building for Mingw. All code in Windows
8843 # is position independent code (PIC).
8847 case ${add_this_lang}:${language}:${host_shared} in
8849 # PR jit/64780: explicitly specify --enable-host-shared
8851 Enabling language \"jit\" requires --enable-host-shared.
8853 --enable-host-shared typically slows the rest of the compiler down by
8854 a few %, so you must explicitly enable it.
8856 If you want to build both the jit and the regular compiler, it is often
8857 best to do this via two separate configure/builds, in separate
8858 directories, to avoid imposing the performance cost of
8859 --enable-host-shared on the regular compiler." "$LINENO" 5
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8863 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8864 add_this_lang
=unsupported
8868 add_this_lang
=unsupported
8874 # Disable a language that is unsupported by the target.
8875 case "${add_this_lang}: $unsupported_languages " in
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8880 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8881 add_this_lang
=unsupported
8885 case $add_this_lang in
8887 # Remove language-dependent dirs.
8888 disabled_target_libs
="$disabled_target_libs $target_libs"
8889 noconfigdirs
="$noconfigdirs $lang_dirs"
8892 # Remove language-dependent dirs; still show language as supported.
8893 disabled_target_libs
="$disabled_target_libs $target_libs"
8894 noconfigdirs
="$noconfigdirs $lang_dirs"
8895 potential_languages
="${potential_languages}${language},"
8898 new_enable_languages
="${new_enable_languages}${language},"
8899 potential_languages
="${potential_languages}${language},"
8900 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8901 enabled_target_libs
="$enabled_target_libs $target_libs"
8902 case "${boot_language}:,$enable_stage1_languages," in
8903 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8904 # Add to (comma-separated) list of stage 1 languages.
8905 case ",$stage1_languages," in
8906 *,$language,* |
,yes, |
,all
,) ;;
8907 *) stage1_languages
="${stage1_languages}${language}," ;;
8909 # We need to bootstrap any supporting libraries.
8910 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8919 # Add target libraries which are only needed for disabled languages
8921 if test -n "$disabled_target_libs"; then
8922 for dir
in $disabled_target_libs; do
8923 case " $enabled_target_libs " in
8925 *) noconfigdirs
="$noconfigdirs $dir" ;;
8930 # Check whether --enable-stage1-languages was given.
8931 if test "${enable_stage1_languages+set}" = set; then :
8932 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8934 # Set it to something that will have no effect in the loop below
8935 enable_stage1_languages
=c
;;
8937 enable_stage1_languages
=`echo $new_enable_languages | \
8938 sed -e "s/^,//" -e "s/,$//" ` ;;
8940 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8941 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8944 # Add "good" languages from enable_stage1_languages to stage1_languages,
8945 # while "bad" languages go in missing_languages. Leave no duplicates.
8946 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8947 case $potential_languages in
8949 case $stage1_languages in
8951 *) stage1_languages
="$stage1_languages$i," ;;
8954 case $missing_languages in
8956 *) missing_languages
="$missing_languages$i," ;;
8963 # Remove leading/trailing commas that were added for simplicity
8964 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8965 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8966 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8967 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8969 if test "x$missing_languages" != x
; then
8971 The following requested languages could not be built: ${missing_languages}
8972 Supported languages are: ${potential_languages}" "$LINENO" 5
8974 if test "x$new_enable_languages" != "x$enable_languages"; then
8975 echo The following languages will be built
: ${new_enable_languages}
8976 enable_languages
="$new_enable_languages"
8980 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8983 # Handle --disable-<component> generically.
8984 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8985 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8986 varname
=`echo $dirname | sed -e s/+/_/g`
8987 if eval test x\
${enable_${varname}} "=" xno
; then
8988 noconfigdirs
="$noconfigdirs $dir"
8992 # Check for Boehm's garbage collector
8993 # Check whether --enable-objc-gc was given.
8994 if test "${enable_objc_gc+set}" = set; then :
8995 enableval
=$enable_objc_gc;
8999 # Check whether --with-target-bdw-gc was given.
9000 if test "${with_target_bdw_gc+set}" = set; then :
9001 withval
=$with_target_bdw_gc;
9005 # Check whether --with-target-bdw-gc-include was given.
9006 if test "${with_target_bdw_gc_include+set}" = set; then :
9007 withval
=$with_target_bdw_gc_include;
9011 # Check whether --with-target-bdw-gc-lib was given.
9012 if test "${with_target_bdw_gc_lib+set}" = set; then :
9013 withval
=$with_target_bdw_gc_lib;
9017 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9019 $as_echo_n "checking for bdw garbage collector... " >&6; }
9020 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9022 $as_echo "using bdw-gc in default locations" >&6; }
9024 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9025 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9026 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9027 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9030 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9035 # Disable libitm, libsanitizer, libvtv if we're not building C++
9036 case ,${enable_languages}, in
9038 # Disable libitm, libsanitizer if we're not building libstdc++
9039 case "${noconfigdirs}" in
9040 *target-libstdc
++-v3*)
9041 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9047 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9051 # If gcc/ is not in the source tree then we'll not be building a
9052 # target compiler, assume in that case we don't want to build any
9053 # target libraries or tools.
9055 # This was added primarily for the benefit for binutils-gdb who reuse
9056 # this configure script, but don't always have target tools available.
9057 if test ! -d ${srcdir}/gcc
; then
9058 skipdirs
="${skipdirs} ${target_configdirs}"
9061 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9062 # $build_configdirs and $target_configdirs.
9063 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9066 for dir
in .
$skipdirs $noconfigdirs ; do
9067 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9068 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9069 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9070 if test -r $srcdir/$dirname/configure
; then
9071 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9074 notsupp
="$notsupp $dir"
9078 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9079 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9080 if test -r $srcdir/$dirname/configure
; then
9081 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9084 notsupp
="$notsupp $dir"
9088 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9089 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9090 if test -r $srcdir/$dirname/configure
; then
9091 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9094 notsupp
="$notsupp $dir"
9100 # Quietly strip out all directories which aren't configurable in this tree.
9101 # This relies on all configurable subdirectories being autoconfiscated, which
9103 build_configdirs_all
="$build_configdirs"
9105 for i
in ${build_configdirs_all} ; do
9106 j
=`echo $i | sed -e s/build-//g`
9107 if test -f ${srcdir}/$j/configure
; then
9108 build_configdirs
="${build_configdirs} $i"
9112 configdirs_all
="$configdirs"
9114 for i
in ${configdirs_all} ; do
9115 if test -f ${srcdir}/$i/configure
; then
9116 configdirs
="${configdirs} $i"
9120 target_configdirs_all
="$target_configdirs"
9122 for i
in ${target_configdirs_all} ; do
9123 j
=`echo $i | sed -e s/target-//g`
9124 if test -f ${srcdir}/$j/configure
; then
9125 target_configdirs
="${target_configdirs} $i"
9129 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9130 # so we have to add it after the preceding checks.
9131 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9133 case " $configdirs " in
9135 # If we can build libiberty, we can also build libiberty-linker-plugin.
9136 configdirs
="$configdirs libiberty-linker-plugin"
9137 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9138 --with-libiberty=../libiberty-linker-plugin";;
9140 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9144 # Sometimes we have special requirements for the host libiberty.
9145 extra_host_libiberty_configure_flags
=
9146 case " $configdirs " in
9147 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9148 # When these are to be built as shared libraries, the same applies to
9150 extra_host_libiberty_configure_flags
=--enable-shared
9155 # Sometimes we have special requirements for the host zlib.
9156 extra_host_zlib_configure_flags
=
9157 case " $configdirs " in
9159 # When bfd is to be built as a shared library, the same applies to
9161 if test "$enable_shared" = "yes"; then
9162 extra_host_zlib_configure_flags
=--enable-host-shared
9168 # Produce a warning message for the subdirs we can't configure.
9169 # This isn't especially interesting in the Cygnus tree, but in the individual
9170 # FSF releases, it's important to let people know when their machine isn't
9171 # supported by the one or two programs in a package.
9173 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9174 # If $appdirs is non-empty, at least one of those directories must still
9175 # be configured, or we error out. (E.g., if the gas release supports a
9176 # specified target in some subdirs but not the gas subdir, we shouldn't
9177 # pretend that all is well.)
9178 if test -n "$appdirs" ; then
9179 for dir
in $appdirs ; do
9180 if test -r $dir/Makefile.
in ; then
9181 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9185 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9191 if test -n "$appdirs" ; then
9192 echo "*** This configuration is not supported by this package." 1>&2
9196 # Okay, some application will build, or we don't care to check. Still
9197 # notify of subdirs not getting built.
9198 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9199 echo " ${notsupp}" 1>&2
9200 echo " (Any other directories should still work fine.)" 1>&2
9208 # To find our prefix, in gcc_cv_tool_prefix.
9210 # The user is always right.
9211 if test "${PATH_SEPARATOR+set}" != set; then
9212 echo "#! /bin/sh" >conf$$.sh
9213 echo "exit 0" >>conf$$.sh
9215 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9224 get_gcc_base_ver
="cat"
9226 # Check whether --with-gcc-major-version-only was given.
9227 if test "${with_gcc_major_version_only+set}" = set; then :
9228 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9229 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9239 if test "x$exec_prefix" = xNONE
; then
9240 if test "x$prefix" = xNONE
; then
9241 gcc_cv_tool_prefix
=$ac_default_prefix
9243 gcc_cv_tool_prefix
=$prefix
9246 gcc_cv_tool_prefix
=$exec_prefix
9249 # If there is no compiler in the tree, use the PATH only. In any
9250 # case, if there is no compiler in the tree nobody should use
9251 # AS_FOR_TARGET and LD_FOR_TARGET.
9252 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9253 if test x
$with_gcc_major_version_only = xyes
; then
9254 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9256 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9258 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9259 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9260 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9261 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9262 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9263 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9268 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9269 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9277 # Check whether --with-build-sysroot was given.
9278 if test "${with_build_sysroot+set}" = set; then :
9279 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9280 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9283 SYSROOT_CFLAGS_FOR_TARGET
=
9289 # Check whether --with-debug-prefix-map was given.
9290 if test "${with_debug_prefix_map+set}" = set; then :
9291 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9292 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9293 for debug_map
in $withval; do
9294 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9298 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9303 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9304 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9305 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9306 # We want to ensure that TARGET libraries (which we know are built with
9307 # gcc) are built with "-O2 -g", so include those options when setting
9308 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9309 if test "x$CFLAGS_FOR_TARGET" = x
; then
9310 if test "x${is_cross_compiler}" = xyes
; then
9311 CFLAGS_FOR_TARGET
="-g -O2"
9313 CFLAGS_FOR_TARGET
=$CFLAGS
9316 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9319 *" -g "* |
*" -g3 "*) ;;
9320 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9326 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9327 if test "x${is_cross_compiler}" = xyes
; then
9328 CXXFLAGS_FOR_TARGET
="-g -O2"
9330 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9331 case " $CXXFLAGS " in
9333 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9335 case " $CXXFLAGS " in
9336 *" -g "* |
*" -g3 "*) ;;
9337 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9345 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9346 # the named directory are copied to $(tooldir)/sys-include.
9347 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9348 if test x
${is_cross_compiler} = xno
; then
9349 echo 1>&2 '***' --with-headers is only supported when cross compiling
9352 if test x
"${with_headers}" != xyes
; then
9353 x
=${gcc_cv_tool_prefix}
9354 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9358 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9359 # the name directories are copied to $(tooldir)/lib. Multiple directories
9361 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9362 if test x
${is_cross_compiler} = xno
; then
9363 echo 1>&2 '***' --with-libs is only supported when cross compiling
9366 if test x
"${with_libs}" != xyes
; then
9367 # Copy the libraries in reverse order, so that files in the first named
9368 # library override files in subsequent libraries.
9369 x
=${gcc_cv_tool_prefix}
9370 for l
in ${with_libs}; do
9371 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9376 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9378 # This is done by determining whether or not the appropriate directory
9379 # is available, and by checking whether or not specific configurations
9380 # have requested that this magic not happen.
9382 # The command line options always override the explicit settings in
9383 # configure.ac, and the settings in configure.ac override this magic.
9385 # If the default for a toolchain is to use GNU as and ld, and you don't
9386 # want to do that, then you should use the --without-gnu-as and
9387 # --without-gnu-ld options for the configure script. Similarly, if
9388 # the default is to use the included zlib and you don't want to do that,
9389 # you should use the --with-system-zlib option for the configure script.
9391 if test x
${use_gnu_as} = x
&&
9392 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9394 extra_host_args
="$extra_host_args --with-gnu-as"
9397 if test x
${use_gnu_ld} = x
&&
9398 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9400 extra_host_args
="$extra_host_args --with-gnu-ld"
9403 if test x
${use_included_zlib} = x
&&
9404 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9407 with_system_zlib
=yes
9408 extra_host_args
="$extra_host_args --with-system-zlib"
9411 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9412 # can detect this case.
9414 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9416 extra_host_args
="$extra_host_args --with-newlib"
9419 # Handle ${copy_dirs}
9420 set fnord
${copy_dirs}
9422 while test $# != 0 ; do
9423 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9426 echo Copying
$1 to
$2
9428 # Use the install script to create the directory and all required
9429 # parent directories.
9430 if test -d $2 ; then
9434 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9437 # Copy the directory, assuming we have tar.
9438 # FIXME: Should we use B in the second tar? Not all systems support it.
9439 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9441 # It is the responsibility of the user to correctly adjust all
9442 # symlinks. If somebody can figure out how to handle them correctly
9443 # here, feel free to add the code.
9450 # Determine a target-dependent exec_prefix that the installed
9451 # gcc will search in. Keep this list sorted by triplet, with
9452 # the *-*-osname triplets last.
9455 i
[34567]86-pc-msdosdjgpp*)
9456 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9461 md_exec_prefix
=/usr
/ccs
/bin
9465 extra_arflags_for_target
=
9466 extra_nmflags_for_target
=
9467 extra_ranlibflags_for_target
=
9468 target_makefile_frag
=/dev
/null
9471 target_makefile_frag
="config/mt-spu"
9473 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9474 target_makefile_frag
="config/mt-sde"
9476 mipsisa
*-*-elfoabi*)
9477 target_makefile_frag
="config/mt-mips-elfoabi"
9479 mips
*-*-*linux
* | mips
*-*-gnu*)
9480 target_makefile_frag
="config/mt-mips-gnu"
9483 target_makefile_frag
="config/mt-nios2-elf"
9486 target_makefile_frag
="config/mt-android"
9488 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9489 target_makefile_frag
="config/mt-gnu"
9491 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9492 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9493 # commands to handle both 32-bit and 64-bit objects. These flags are
9494 # harmless if we're using GNU nm or ar.
9495 extra_arflags_for_target
=" -X32_64"
9496 extra_nmflags_for_target
=" -B -X32_64"
9500 alphaieee_frag
=/dev
/null
9503 # This just makes sure to use the -mieee option to build target libs.
9504 # This should probably be set individually by each library.
9505 alphaieee_frag
="config/mt-alphaieee"
9509 # If --enable-target-optspace always use -Os instead of -O2 to build
9510 # the target libraries, similarly if it is not specified, use -Os
9511 # on selected platforms.
9512 ospace_frag
=/dev
/null
9513 case "${enable_target_optspace}:${target}" in
9515 ospace_frag
="config/mt-ospace"
9518 ospace_frag
="config/mt-d30v"
9520 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9521 ospace_frag
="config/mt-ospace"
9526 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9530 # Some systems (e.g., one of the i386-aix systems the gas testers are
9531 # using) don't handle "\$" correctly, so don't use it here.
9532 tooldir
='${exec_prefix}'/${target_noncanonical}
9533 build_tooldir
=${tooldir}
9535 # Create a .gdbinit file which runs the one in srcdir
9536 # and tells GDB to look there for source files.
9538 if test -r ${srcdir}/.gdbinit
; then
9541 *) cat > .
/.gdbinit
<<EOF
9545 source ${srcdir}/.gdbinit
9551 # Make sure that the compiler is able to generate an executable. If it
9552 # can't, we are probably in trouble. We don't care whether we can run the
9553 # executable--we might be using a cross compiler--we only care whether it
9554 # can be created. At this point the main configure script has set CC.
9556 echo "int main () { return 0; }" > conftest.c
9557 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9558 if test $?
= 0 ; then
9559 if test -s conftest ||
test -s conftest.exe
; then
9565 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9566 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9573 # Decide which environment variable is used to find dynamic libraries.
9575 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9576 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9577 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9578 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9581 # On systems where the dynamic library environment variable is PATH,
9582 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9583 # built executables to PATH.
9584 if test "$RPATH_ENVVAR" = PATH
; then
9585 GCC_SHLIB_SUBDIR
=/shlib
9590 # Adjust the toplevel makefile according to whether bootstrap was selected.
9591 case $enable_bootstrap in
9593 bootstrap_suffix
=bootstrap
9594 BUILD_CONFIG
=bootstrap-debug
9597 bootstrap_suffix
=no-bootstrap
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9603 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9606 # Check whether --with-build-config was given.
9607 if test "${with_build_config+set}" = set; then :
9608 withval
=$with_build_config; case $with_build_config in
9609 yes) with_build_config
= ;;
9610 no
) with_build_config
= BUILD_CONFIG
= ;;
9615 if test "x${with_build_config}" != x
; then
9616 BUILD_CONFIG
=$with_build_config
9618 case $BUILD_CONFIG in
9620 if echo "int f (void) { return 0; }" > conftest.c
&&
9621 ${CC} -c conftest.c
&&
9622 mv conftest.o conftest.o.g0
&&
9623 ${CC} -c -g conftest.c
&&
9624 mv conftest.o conftest.o.g
&&
9625 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9630 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9635 $as_echo "$BUILD_CONFIG" >&6; }
9638 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9640 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9641 # Check whether --enable-vtable-verify was given.
9642 if test "${enable_vtable_verify+set}" = set; then :
9643 enableval
=$enable_vtable_verify; case "$enableval" in
9644 yes) enable_vtable_verify
=yes ;;
9645 no
) enable_vtable_verify
=no
;;
9646 *) enable_vtable_verify
=no
;;
9649 enable_vtable_verify
=no
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9653 $as_echo "$enable_vtable_verify" >&6; }
9655 # Record target_configdirs and the configure arguments for target and
9656 # build configuration in Makefile.
9657 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9658 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9659 bootstrap_fixincludes
=no
9661 # If we are building libgomp, bootstrap it.
9662 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9663 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9666 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9667 # or bootstrap-ubsan, bootstrap it.
9668 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9669 case "$BUILD_CONFIG" in
9670 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9671 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9672 bootstrap_fixincludes
=yes
9677 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9678 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9679 test "$enable_vtable_verify" != no
; then
9680 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9683 # If we are building libatomic and the list of enabled languages includes the
9684 # D frontend, bootstrap it.
9685 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9686 case ,${enable_languages}, in
9688 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9693 # Determine whether gdb needs tk/tcl or not.
9694 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9695 # and in that case we want gdb to be built without tk. Ugh!
9696 # In fact I believe gdb is the *only* package directly dependent on tk,
9697 # so we should be able to put the 'maybe's in unconditionally and
9698 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9699 # 100% sure that that's safe though.
9701 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9702 case "$enable_gdbtk" in
9706 GDB_TK
="${gdb_tk}" ;;
9708 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9709 # distro. Eventually someone will fix this and move Insight, nee
9710 # gdbtk to a separate directory.
9711 if test -d ${srcdir}/gdb
/gdbtk
; then
9718 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9719 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9721 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9722 # else does, only include them if one of these is built. The Makefile
9723 # provides the ordering, so it's enough here to add to the list.
9724 case " ${configdirs} " in
9726 configdirs
="${configdirs} gnulib gdbsupport"
9729 configdirs
="${configdirs} gnulib gdbsupport"
9732 configdirs
="${configdirs} gnulib"
9736 # Strip out unwanted targets.
9738 # While at that, we remove Makefiles if we were started for recursive
9739 # configuration, so that the top-level Makefile reconfigures them,
9740 # like we used to do when configure itself was recursive.
9742 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9743 # but now we're fixing up the Makefile ourselves with the additional
9744 # commands passed to AC_CONFIG_FILES. Use separate variables
9745 # extrasub-{build,host,target} not because there is any reason to split
9746 # the substitutions up that way, but only to remain below the limit of
9747 # 99 commands in a script, for HP-UX sed.
9749 # Do not nest @if/@endif or @unless/@endunless pairs, because
9750 # configure will not warn you at all.
9752 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9753 yes:yes:*\ gold\
*:*,c
++,*) ;;
9754 yes:yes:*\ gold\
*:*)
9755 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9760 for module
in ${build_configdirs} ; do
9761 if test -z "${no_recursion}" \
9762 && test -f ${build_subdir}/${module}/Makefile
; then
9763 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9764 rm -f ${build_subdir}/${module}/Makefile
9766 extrasub_build
="$extrasub_build
9767 /^@if build-$module\$/d
9768 /^@endif build-$module\$/d
9769 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9770 /^@if build-$module-$bootstrap_suffix\$/d
9771 /^@endif build-$module-$bootstrap_suffix\$/d
9772 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9775 for module
in ${configdirs} ; do
9776 if test -z "${no_recursion}"; then
9777 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9778 if test -f ${file}; then
9779 echo 1>&2 "*** removing ${file} to force reconfigure"
9784 case ${module},${bootstrap_fixincludes} in
9785 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9786 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9788 extrasub_host
="$extrasub_host
9790 /^@endif $module\$/d
9791 /^@unless $module\$/,/^@endunless $module\$/d
9792 /^@if $module-$host_bootstrap_suffix\$/d
9793 /^@endif $module-$host_bootstrap_suffix\$/d
9794 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9797 for module
in ${target_configdirs} ; do
9798 if test -z "${no_recursion}" \
9799 && test -f ${target_subdir}/${module}/Makefile
; then
9800 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9801 rm -f ${target_subdir}/${module}/Makefile
9804 # We only bootstrap target libraries listed in bootstrap_target_libs.
9805 case $bootstrap_target_libs in
9806 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9807 *) target_bootstrap_suffix
=no-bootstrap
;;
9810 extrasub_target
="$extrasub_target
9811 /^@if target-$module\$/d
9812 /^@endif target-$module\$/d
9813 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9814 /^@if target-$module-$target_bootstrap_suffix\$/d
9815 /^@endif target-$module-$target_bootstrap_suffix\$/d
9816 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9819 # Do the final fixup along with target modules.
9820 extrasub_target
="$extrasub_target
9825 if test "$enable_pgo_build" != "no"; then
9826 extrasub_build
="$extrasub_build
9828 /^@endif pgo-build\$/d"
9831 # Create the serialization dependencies. This uses a temporary file.
9833 # Check whether --enable-serial-configure was given.
9834 if test "${enable_serial_configure+set}" = set; then :
9835 enableval
=$enable_serial_configure;
9839 case ${enable_serial_configure} in
9841 enable_serial_build_configure
=yes
9842 enable_serial_host_configure
=yes
9843 enable_serial_target_configure
=yes
9847 # These force 'configure's to be done one at a time, to avoid problems
9848 # with contention over a shared config.cache.
9850 echo '# serdep.tmp' > serdep.tmp
9852 test "x${enable_serial_build_configure}" = xyes
&&
9853 for item
in ${build_configdirs} ; do
9856 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9861 test "x${enable_serial_host_configure}" = xyes
&&
9862 for item
in ${configdirs} ; do
9865 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9870 test "x${enable_serial_target_configure}" = xyes
&&
9871 for item
in ${target_configdirs} ; do
9874 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9878 serialization_dependencies
=serdep.tmp
9881 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9882 # target, nonopt, and variable assignments. These are the ones we
9883 # might not want to pass down to subconfigures. The exception being
9884 # --cache-file=/dev/null, which is used to turn off the use of cache
9885 # files altogether, and which should be passed on to subconfigures.
9886 # Also strip program-prefix, program-suffix, and program-transform-name,
9887 # so that we can pass down a consistent program-transform-name.
9892 eval "set -- $ac_configure_args"
9895 if test X
"$skip_next" = X
"yes"; then
9899 if test X
"$keep_next" = X
"yes"; then
9902 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9904 baseargs
="$baseargs '$ac_arg'"
9905 tbaseargs
="$tbaseargs '$ac_arg'"
9910 # Handle separated arguments. Based on the logic generated by
9913 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9914 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9915 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9916 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9930 --with-* |
--without-*)
9931 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9935 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9938 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9947 mpc | mpfr | gmp | isl
)
9948 # If we're processing --with-$lib, --with-$lib-include or
9949 # --with-$lib-lib, for one of the libs above, and target is
9950 # different from host, don't pass the current argument to any
9951 # target library's configure.
9952 if test x
$is_cross_compiler = xyes
; then
9961 --cache-file=/dev
/null | \
9962 -cache-file=/dev
/null
)
9963 # Handled here to avoid the test to skip args below.
9964 baseargs
="$baseargs '$ac_arg'"
9965 tbaseargs
="$tbaseargs '$ac_arg'"
9966 # Assert: $separate_arg should always be no.
9967 keep_next
=$separate_arg
9983 -program-prefix* | \
9984 -program-suffix* | \
9985 -program-transform-name* )
9986 skip_next
=$separate_arg
9990 # An option. Add it.
9993 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9995 baseargs
="$baseargs '$ac_arg'"
9996 if test X
"$skip_targ" = Xno
; then
9997 tbaseargs
="$tbaseargs '$ac_arg'"
9999 keep_next
=$separate_arg
10002 # Either a variable assignment, or a nonopt (triplet). Don't
10003 # pass it down; let the Makefile handle this.
10008 # Remove the initial space we just introduced and, as these will be
10009 # expanded by make, quote '$'.
10010 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10012 # Add in --program-transform-name, after --program-prefix and
10013 # --program-suffix have been applied to it. Autoconf has already
10014 # doubled dollar signs and backslashes in program_transform_name; we want
10015 # the backslashes un-doubled, and then the entire thing wrapped in single
10016 # quotes, because this will be expanded first by make and then by the shell.
10017 # Also, because we want to override the logic in subdir configure scripts to
10018 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10019 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10020 ${program_transform_name}
10022 gcc_transform_name
=`cat conftestsed.out`
10023 rm -f conftestsed.out
10024 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10025 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10026 if test "$silent" = yes; then
10027 baseargs
="$baseargs --silent"
10028 tbaseargs
="$tbaseargs --silent"
10030 baseargs
="$baseargs --disable-option-checking"
10031 tbaseargs
="$tbaseargs --disable-option-checking"
10033 # Record and document user additions to sub configure arguments.
10038 # For the build-side libraries, we just need to pretend we're native,
10039 # and not use the same cache file. Multilibs are neither needed nor
10040 # desired. We can't even use the same cache file for all build-side
10041 # libraries, as they're compiled differently; some with C, some with
10042 # C++ or with different feature-enabling options.
10043 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10045 # For host modules, accept cache file option, or specification as blank.
10046 case "${cache_file}" in
10048 cache_file_option
="" ;;
10049 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10050 cache_file_option
="--cache-file=${cache_file}" ;;
10052 cache_file_option
="--cache-file=../${cache_file}" ;;
10055 # Host dirs don't like to share a cache file either, horribly enough.
10056 # This seems to be due to autoconf 2.5x stupidity.
10057 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10059 target_configargs
="$target_configargs ${tbaseargs}"
10061 # Passing a --with-cross-host argument lets the target libraries know
10062 # whether they are being built with a cross-compiler or being built
10063 # native. However, it would be better to use other mechanisms to make the
10064 # sorts of decisions they want to make on this basis. Please consider
10065 # this option to be deprecated. FIXME.
10066 if test x
${is_cross_compiler} = xyes
; then
10067 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10070 # Special user-friendly check for native x86_64-linux build, if
10071 # multilib is not explicitly enabled.
10072 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10073 x86_64-
*linux
*:yes:$build:$build:)
10074 # Make sure we have a development environment that handles 32-bit
10076 echo "int main () { return 0; }" > conftest.c
10077 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10078 if test $?
= 0 ; then
10079 if test -s conftest ||
test -s conftest.exe
; then
10084 if test x
${dev64} != xyes
; then
10085 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
10090 # Default to --enable-multilib.
10091 if test x
${enable_multilib} = x
; then
10092 target_configargs
="--enable-multilib ${target_configargs}"
10095 # Pass --with-newlib if appropriate. Note that target_configdirs has
10096 # changed from the earlier setting of with_newlib.
10097 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10098 target_configargs
="--with-newlib ${target_configargs}"
10101 # Different target subdirs use different values of certain variables
10102 # (notably CXX). Worse, multilibs use *lots* of different values.
10103 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10104 # it doesn't automatically accept command-line overrides of them.
10105 # This means it's not safe for target subdirs to share a cache file,
10106 # which is disgusting, but there you have it. Hopefully this can be
10107 # fixed in future. It's still worthwhile to use a cache file for each
10108 # directory. I think.
10110 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10111 # We need to pass --target, as newer autoconf's requires consistency
10112 # for target_alias and gcc doesn't manage it consistently.
10113 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10116 case " $target_configdirs " in
10118 case " $target_configargs " in
10119 *" --with-newlib "*)
10122 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10126 # If we're not building GCC, don't discard standard headers.
10127 if test -d ${srcdir}/gcc
; then
10128 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10130 if test "${build}" != "${host}"; then
10131 # On Canadian crosses, CC_FOR_TARGET will have already been set
10132 # by `configure', so we won't have an opportunity to add -Bgcc/
10133 # to it. This is right: we don't want to search that directory
10134 # for binaries, but we want the header files in there, so add
10136 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10138 # Someone might think of using the pre-installed headers on
10139 # Canadian crosses, in case the installed compiler is not fully
10140 # compatible with the compiler being built. In this case, it
10141 # would be better to flag an error than risking having
10142 # incompatible object files being constructed. We can't
10143 # guarantee that an error will be flagged, but let's hope the
10144 # compiler will do it, when presented with incompatible header
10149 case "${target}-${is_cross_compiler}" in
10150 i
[3456789]86-*-linux*-no)
10151 # Here host == target, so we don't need to build gcc,
10152 # so we don't want to discard standard headers.
10153 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10156 # If we're building newlib, use its generic headers last, but search
10157 # for any libc-related directories first (so make it the last -B
10159 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10161 # If we're building libgloss, find the startup file, simulator library
10162 # and linker script.
10163 case " $target_configdirs " in
10165 # Look for startup file, simulator library and maybe linker script.
10166 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10167 # Look for libnosys.a in case the target needs it.
10168 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10169 # Most targets have the linker script in the source directory.
10170 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10181 x86_64-
*mingw
* |
*-w64-mingw*)
10182 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10183 # however, use a symlink named 'mingw' in ${prefix} .
10184 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10187 # MinGW can't be handled as Cygwin above since it does not use newlib.
10188 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'
10192 # Allow the user to override the flags for
10193 # our build compiler if desired.
10194 if test x
"${build}" = x
"${host}" ; then
10195 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10196 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10197 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10198 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10201 # On Canadian crosses, we'll be searching the right directories for
10202 # the previously-installed cross compiler, so don't bother to add
10203 # flags for directories within the install tree of the compiler
10204 # being built; programs in there won't even run.
10205 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10206 # Search for pre-installed headers if nothing else fits.
10207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10210 if test "x
${use_gnu_ld}" = x &&
10211 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10212 # Arrange for us to find uninstalled linker scripts.
10213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10216 # Search for other target-specific linker scripts and such.
10217 case "${target}" in
10219 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10221 # The VxWorks support for shared libraries is getting in
10222 # incrementally. Make sure it doesn't get activated implicitly:
10224 if test "${enable_shared-unset}" = unset ; then
10226 # So the build of libraries knows ...
10227 target_configargs="${target_configargs} --disable-shared"
10229 host_configargs="${host_configargs} --disable-shared"
10234 # Makefile fragments.
10235 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10237 eval fragval=\$$frag
10238 if test $fragval != /dev/null; then
10239 eval $frag=${srcdir}/$fragval
10247 # Miscellanea: directories, flags, etc.
10256 # Build module lists & subconfigure args.
10260 # Host module lists & subconfigure args.
10265 # Target module lists & subconfigure args.
10290 # Generate default definitions for YACC, M4, LEX and other programs that run
10291 # on the build machine. These are used if the Makefile can't locate these
10292 # programs in objdir.
10293 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10295 for ac_prog in 'bison -y' byacc yacc
10297 # Extract the first word of "$ac_prog", so it can be a program name with args.
10298 set dummy $ac_prog; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10300 $as_echo_n "checking
for $ac_word...
" >&6; }
10301 if ${ac_cv_prog_YACC+:} false; then :
10302 $as_echo_n "(cached
) " >&6
10304 if test -n "$YACC"; then
10305 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_prog_YACC="$ac_prog"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10324 YACC=$ac_cv_prog_YACC
10325 if test -n "$YACC"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10327 $as_echo "$YACC" >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10330 $as_echo "no
" >&6; }
10334 test -n "$YACC" && break
10336 test -n "$YACC" || YACC="$MISSING bison
-y"
10338 case " $build_configdirs " in
10339 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10342 for ac_prog in bison
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10347 $as_echo_n "checking
for $ac_word...
" >&6; }
10348 if ${ac_cv_prog_BISON+:} false; then :
10349 $as_echo_n "(cached
) " >&6
10351 if test -n "$BISON"; then
10352 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_BISON="$ac_prog"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10371 BISON=$ac_cv_prog_BISON
10372 if test -n "$BISON"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10374 $as_echo "$BISON" >&6; }
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10377 $as_echo "no
" >&6; }
10381 test -n "$BISON" && break
10383 test -n "$BISON" || BISON="$MISSING bison
"
10385 case " $build_configdirs " in
10386 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10389 for ac_prog in gm4 gnum4 m4
10391 # Extract the first word of "$ac_prog", so it can be a program name with args.
10392 set dummy $ac_prog; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10394 $as_echo_n "checking
for $ac_word...
" >&6; }
10395 if ${ac_cv_prog_M4+:} false; then :
10396 $as_echo_n "(cached
) " >&6
10398 if test -n "$M4"; then
10399 ac_cv_prog_M4="$M4" # Let the user override the test.
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_M4="$ac_prog"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10419 if test -n "$M4"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10421 $as_echo "$M4" >&6; }
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10424 $as_echo "no
" >&6; }
10428 test -n "$M4" && break
10430 test -n "$M4" || M4="$MISSING m4"
10432 case " $build_configdirs " in
10433 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10436 for ac_prog in flex lex
10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10441 $as_echo_n "checking
for $ac_word...
" >&6; }
10442 if ${ac_cv_prog_LEX+:} false; then :
10443 $as_echo_n "(cached
) " >&6
10445 if test -n "$LEX"; then
10446 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_LEX="$ac_prog"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10465 LEX=$ac_cv_prog_LEX
10466 if test -n "$LEX"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10468 $as_echo "$LEX" >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10471 $as_echo "no
" >&6; }
10475 test -n "$LEX" && break
10477 test -n "$LEX" || LEX="$MISSING flex
"
10479 case " $build_configdirs " in
10480 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10481 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10484 for ac_prog in flex
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_FLEX+:} false; then :
10491 $as_echo_n "(cached
) " >&6
10493 if test -n "$FLEX"; then
10494 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$ac_prog"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10513 FLEX=$ac_cv_prog_FLEX
10514 if test -n "$FLEX"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10516 $as_echo "$FLEX" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10519 $as_echo "no
" >&6; }
10523 test -n "$FLEX" && break
10525 test -n "$FLEX" || FLEX="$MISSING flex
"
10527 case " $build_configdirs " in
10528 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10531 for ac_prog in makeinfo
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_MAKEINFO+:} false; then :
10538 $as_echo_n "(cached
) " >&6
10540 if test -n "$MAKEINFO"; then
10541 ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10560 MAKEINFO=$ac_cv_prog_MAKEINFO
10561 if test -n "$MAKEINFO"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10563 $as_echo "$MAKEINFO" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10566 $as_echo "no
" >&6; }
10570 test -n "$MAKEINFO" && break
10572 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10574 case " $build_configdirs " in
10575 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10578 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10579 # higher, else we use the "missing
" dummy.
10580 if ${MAKEINFO} --version \
10581 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10584 MAKEINFO="$MISSING makeinfo
"
10590 # FIXME: expect and dejagnu may become build tools?
10592 for ac_prog in expect
10594 # Extract the first word of "$ac_prog", so it can be a program name with args.
10595 set dummy $ac_prog; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10597 $as_echo_n "checking
for $ac_word...
" >&6; }
10598 if ${ac_cv_prog_EXPECT+:} false; then :
10599 $as_echo_n "(cached
) " >&6
10601 if test -n "$EXPECT"; then
10602 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_EXPECT="$ac_prog"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10621 EXPECT=$ac_cv_prog_EXPECT
10622 if test -n "$EXPECT"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10624 $as_echo "$EXPECT" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10627 $as_echo "no
" >&6; }
10631 test -n "$EXPECT" && break
10633 test -n "$EXPECT" || EXPECT="expect
"
10635 case " $configdirs " in
10637 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10641 for ac_prog in runtest
10643 # Extract the first word of "$ac_prog", so it can be a program name with args.
10644 set dummy $ac_prog; ac_word=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10646 $as_echo_n "checking
for $ac_word...
" >&6; }
10647 if ${ac_cv_prog_RUNTEST+:} false; then :
10648 $as_echo_n "(cached
) " >&6
10650 if test -n "$RUNTEST"; then
10651 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_RUNTEST="$ac_prog"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10670 RUNTEST=$ac_cv_prog_RUNTEST
10671 if test -n "$RUNTEST"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10673 $as_echo "$RUNTEST" >&6; }
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10676 $as_echo "no
" >&6; }
10680 test -n "$RUNTEST" && break
10682 test -n "$RUNTEST" || RUNTEST="runtest
"
10684 case " $configdirs " in
10686 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10693 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10694 ncn_target_tool_prefix=
10695 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10699 if test -n "$AR"; then
10701 elif test -n "$ac_cv_prog_AR"; then
10705 if test -n "$ac_cv_prog_AR"; then
10706 for ncn_progname in ar; do
10707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10708 set dummy ${ncn_progname}; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10710 $as_echo_n "checking
for $ac_word...
" >&6; }
10711 if ${ac_cv_prog_AR+:} false; then :
10712 $as_echo_n "(cached
) " >&6
10714 if test -n "$AR"; then
10715 ac_cv_prog_AR="$AR" # Let the user override the test.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_AR="${ncn_progname}"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10735 if test -n "$AR"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10737 $as_echo "$AR" >&6; }
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10740 $as_echo "no
" >&6; }
10747 for ncn_progname in ar; do
10748 if test -n "$ncn_tool_prefix"; then
10749 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10750 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10752 $as_echo_n "checking
for $ac_word...
" >&6; }
10753 if ${ac_cv_prog_AR+:} false; then :
10754 $as_echo_n "(cached
) " >&6
10756 if test -n "$AR"; then
10757 ac_cv_prog_AR="$AR" # Let the user override the test.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10777 if test -n "$AR"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10779 $as_echo "$AR" >&6; }
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10782 $as_echo "no
" >&6; }
10787 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10789 set dummy ${ncn_progname}; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10791 $as_echo_n "checking
for $ac_word...
" >&6; }
10792 if ${ac_cv_prog_AR+:} false; then :
10793 $as_echo_n "(cached
) " >&6
10795 if test -n "$AR"; then
10796 ac_cv_prog_AR="$AR" # Let the user override the test.
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_AR="${ncn_progname}"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10816 if test -n "$AR"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10818 $as_echo "$AR" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10821 $as_echo "no
" >&6; }
10826 test -n "$ac_cv_prog_AR" && break
10829 if test -z "$ac_cv_prog_AR" ; then
10831 if test $build = $host ; then
10834 AR="${ncn_tool_prefix}$2"
10840 if test -n "$AS"; then
10842 elif test -n "$ac_cv_prog_AS"; then
10846 if test -n "$ac_cv_prog_AS"; then
10847 for ncn_progname in as; do
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849 set dummy ${ncn_progname}; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10851 $as_echo_n "checking
for $ac_word...
" >&6; }
10852 if ${ac_cv_prog_AS+:} false; then :
10853 $as_echo_n "(cached
) " >&6
10855 if test -n "$AS"; then
10856 ac_cv_prog_AS="$AS" # Let the user override the test.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_AS="${ncn_progname}"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10876 if test -n "$AS"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10878 $as_echo "$AS" >&6; }
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10881 $as_echo "no
" >&6; }
10888 for ncn_progname in as; do
10889 if test -n "$ncn_tool_prefix"; then
10890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10893 $as_echo_n "checking
for $ac_word...
" >&6; }
10894 if ${ac_cv_prog_AS+:} false; then :
10895 $as_echo_n "(cached
) " >&6
10897 if test -n "$AS"; then
10898 ac_cv_prog_AS="$AS" # Let the user override the test.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10918 if test -n "$AS"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10920 $as_echo "$AS" >&6; }
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10923 $as_echo "no
" >&6; }
10928 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10930 set dummy ${ncn_progname}; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10932 $as_echo_n "checking
for $ac_word...
" >&6; }
10933 if ${ac_cv_prog_AS+:} false; then :
10934 $as_echo_n "(cached
) " >&6
10936 if test -n "$AS"; then
10937 ac_cv_prog_AS="$AS" # Let the user override the test.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946 ac_cv_prog_AS="${ncn_progname}"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10957 if test -n "$AS"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10959 $as_echo "$AS" >&6; }
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10962 $as_echo "no
" >&6; }
10967 test -n "$ac_cv_prog_AS" && break
10970 if test -z "$ac_cv_prog_AS" ; then
10972 if test $build = $host ; then
10975 AS="${ncn_tool_prefix}$2"
10981 if test -n "$DLLTOOL"; then
10982 ac_cv_prog_DLLTOOL=$DLLTOOL
10983 elif test -n "$ac_cv_prog_DLLTOOL"; then
10984 DLLTOOL=$ac_cv_prog_DLLTOOL
10987 if test -n "$ac_cv_prog_DLLTOOL"; then
10988 for ncn_progname in dlltool; do
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_progname}; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10992 $as_echo_n "checking
for $ac_word...
" >&6; }
10993 if ${ac_cv_prog_DLLTOOL+:} false; then :
10994 $as_echo_n "(cached
) " >&6
10996 if test -n "$DLLTOOL"; then
10997 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_DLLTOOL="${ncn_progname}"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11016 DLLTOOL=$ac_cv_prog_DLLTOOL
11017 if test -n "$DLLTOOL"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11019 $as_echo "$DLLTOOL" >&6; }
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11022 $as_echo "no
" >&6; }
11029 for ncn_progname in dlltool; do
11030 if test -n "$ncn_tool_prefix"; then
11031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11034 $as_echo_n "checking
for $ac_word...
" >&6; }
11035 if ${ac_cv_prog_DLLTOOL+:} false; then :
11036 $as_echo_n "(cached
) " >&6
11038 if test -n "$DLLTOOL"; then
11039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11058 DLLTOOL=$ac_cv_prog_DLLTOOL
11059 if test -n "$DLLTOOL"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11061 $as_echo "$DLLTOOL" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11064 $as_echo "no
" >&6; }
11069 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11071 set dummy ${ncn_progname}; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11073 $as_echo_n "checking
for $ac_word...
" >&6; }
11074 if ${ac_cv_prog_DLLTOOL+:} false; then :
11075 $as_echo_n "(cached
) " >&6
11077 if test -n "$DLLTOOL"; then
11078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_prog_DLLTOOL="${ncn_progname}"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11097 DLLTOOL=$ac_cv_prog_DLLTOOL
11098 if test -n "$DLLTOOL"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11100 $as_echo "$DLLTOOL" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11103 $as_echo "no
" >&6; }
11108 test -n "$ac_cv_prog_DLLTOOL" && break
11111 if test -z "$ac_cv_prog_DLLTOOL" ; then
11113 if test $build = $host ; then
11116 DLLTOOL="${ncn_tool_prefix}$2"
11122 if test -n "$DSYMUTIL"; then
11123 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11124 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11125 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11128 if test -n "$ac_cv_prog_DSYMUTIL"; then
11129 for ncn_progname in dsymutil; do
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131 set dummy ${ncn_progname}; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11133 $as_echo_n "checking
for $ac_word...
" >&6; }
11134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11135 $as_echo_n "(cached
) " >&6
11137 if test -n "$DSYMUTIL"; then
11138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11158 if test -n "$DSYMUTIL"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11160 $as_echo "$DSYMUTIL" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11163 $as_echo "no
" >&6; }
11170 for ncn_progname in dsymutil; do
11171 if test -n "$ncn_tool_prefix"; then
11172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11175 $as_echo_n "checking
for $ac_word...
" >&6; }
11176 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11177 $as_echo_n "(cached
) " >&6
11179 if test -n "$DSYMUTIL"; then
11180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11199 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11200 if test -n "$DSYMUTIL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11202 $as_echo "$DSYMUTIL" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11205 $as_echo "no
" >&6; }
11210 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212 set dummy ${ncn_progname}; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11214 $as_echo_n "checking
for $ac_word...
" >&6; }
11215 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11216 $as_echo_n "(cached
) " >&6
11218 if test -n "$DSYMUTIL"; then
11219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11238 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11239 if test -n "$DSYMUTIL"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11241 $as_echo "$DSYMUTIL" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11244 $as_echo "no
" >&6; }
11249 test -n "$ac_cv_prog_DSYMUTIL" && break
11252 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11254 if test $build = $host ; then
11257 DSYMUTIL="${ncn_tool_prefix}$2"
11263 if test -n "$LD"; then
11265 elif test -n "$ac_cv_prog_LD"; then
11269 if test -n "$ac_cv_prog_LD"; then
11270 for ncn_progname in ld; do
11271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11272 set dummy ${ncn_progname}; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11274 $as_echo_n "checking
for $ac_word...
" >&6; }
11275 if ${ac_cv_prog_LD+:} false; then :
11276 $as_echo_n "(cached
) " >&6
11278 if test -n "$LD"; then
11279 ac_cv_prog_LD="$LD" # Let the user override the test.
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_LD="${ncn_progname}"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11299 if test -n "$LD"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11301 $as_echo "$LD" >&6; }
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11304 $as_echo "no
" >&6; }
11311 for ncn_progname in ld; do
11312 if test -n "$ncn_tool_prefix"; then
11313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11316 $as_echo_n "checking
for $ac_word...
" >&6; }
11317 if ${ac_cv_prog_LD+:} false; then :
11318 $as_echo_n "(cached
) " >&6
11320 if test -n "$LD"; then
11321 ac_cv_prog_LD="$LD" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11341 if test -n "$LD"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11343 $as_echo "$LD" >&6; }
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11346 $as_echo "no
" >&6; }
11351 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11353 set dummy ${ncn_progname}; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11355 $as_echo_n "checking
for $ac_word...
" >&6; }
11356 if ${ac_cv_prog_LD+:} false; then :
11357 $as_echo_n "(cached
) " >&6
11359 if test -n "$LD"; then
11360 ac_cv_prog_LD="$LD" # Let the user override the test.
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369 ac_cv_prog_LD="${ncn_progname}"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11380 if test -n "$LD"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11382 $as_echo "$LD" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11385 $as_echo "no
" >&6; }
11390 test -n "$ac_cv_prog_LD" && break
11393 if test -z "$ac_cv_prog_LD" ; then
11395 if test $build = $host ; then
11398 LD="${ncn_tool_prefix}$2"
11404 if test -n "$LIPO"; then
11405 ac_cv_prog_LIPO=$LIPO
11406 elif test -n "$ac_cv_prog_LIPO"; then
11407 LIPO=$ac_cv_prog_LIPO
11410 if test -n "$ac_cv_prog_LIPO"; then
11411 for ncn_progname in lipo; do
11412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11413 set dummy ${ncn_progname}; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11415 $as_echo_n "checking
for $ac_word...
" >&6; }
11416 if ${ac_cv_prog_LIPO+:} false; then :
11417 $as_echo_n "(cached
) " >&6
11419 if test -n "$LIPO"; then
11420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_LIPO="${ncn_progname}"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11439 LIPO=$ac_cv_prog_LIPO
11440 if test -n "$LIPO"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11442 $as_echo "$LIPO" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11445 $as_echo "no
" >&6; }
11452 for ncn_progname in lipo; do
11453 if test -n "$ncn_tool_prefix"; then
11454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11457 $as_echo_n "checking
for $ac_word...
" >&6; }
11458 if ${ac_cv_prog_LIPO+:} false; then :
11459 $as_echo_n "(cached
) " >&6
11461 if test -n "$LIPO"; then
11462 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11481 LIPO=$ac_cv_prog_LIPO
11482 if test -n "$LIPO"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11484 $as_echo "$LIPO" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11487 $as_echo "no
" >&6; }
11492 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11496 $as_echo_n "checking
for $ac_word...
" >&6; }
11497 if ${ac_cv_prog_LIPO+:} false; then :
11498 $as_echo_n "(cached
) " >&6
11500 if test -n "$LIPO"; then
11501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_LIPO="${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11520 LIPO=$ac_cv_prog_LIPO
11521 if test -n "$LIPO"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11523 $as_echo "$LIPO" >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11526 $as_echo "no
" >&6; }
11531 test -n "$ac_cv_prog_LIPO" && break
11534 if test -z "$ac_cv_prog_LIPO" ; then
11536 if test $build = $host ; then
11539 LIPO="${ncn_tool_prefix}$2"
11545 if test -n "$NM"; then
11547 elif test -n "$ac_cv_prog_NM"; then
11551 if test -n "$ac_cv_prog_NM"; then
11552 for ncn_progname in nm; do
11553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11554 set dummy ${ncn_progname}; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11556 $as_echo_n "checking
for $ac_word...
" >&6; }
11557 if ${ac_cv_prog_NM+:} false; then :
11558 $as_echo_n "(cached
) " >&6
11560 if test -n "$NM"; then
11561 ac_cv_prog_NM="$NM" # Let the user override the test.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_NM="${ncn_progname}"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11581 if test -n "$NM"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11583 $as_echo "$NM" >&6; }
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11586 $as_echo "no
" >&6; }
11593 for ncn_progname in nm; do
11594 if test -n "$ncn_tool_prefix"; then
11595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11598 $as_echo_n "checking
for $ac_word...
" >&6; }
11599 if ${ac_cv_prog_NM+:} false; then :
11600 $as_echo_n "(cached
) " >&6
11602 if test -n "$NM"; then
11603 ac_cv_prog_NM="$NM" # Let the user override the test.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11623 if test -n "$NM"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11625 $as_echo "$NM" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11628 $as_echo "no
" >&6; }
11633 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635 set dummy ${ncn_progname}; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11637 $as_echo_n "checking
for $ac_word...
" >&6; }
11638 if ${ac_cv_prog_NM+:} false; then :
11639 $as_echo_n "(cached
) " >&6
11641 if test -n "$NM"; then
11642 ac_cv_prog_NM="$NM" # Let the user override the test.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_NM="${ncn_progname}"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11662 if test -n "$NM"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11664 $as_echo "$NM" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11667 $as_echo "no
" >&6; }
11672 test -n "$ac_cv_prog_NM" && break
11675 if test -z "$ac_cv_prog_NM" ; then
11677 if test $build = $host ; then
11680 NM="${ncn_tool_prefix}$2"
11686 if test -n "$RANLIB"; then
11687 ac_cv_prog_RANLIB=$RANLIB
11688 elif test -n "$ac_cv_prog_RANLIB"; then
11689 RANLIB=$ac_cv_prog_RANLIB
11692 if test -n "$ac_cv_prog_RANLIB"; then
11693 for ncn_progname in ranlib; do
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11697 $as_echo_n "checking
for $ac_word...
" >&6; }
11698 if ${ac_cv_prog_RANLIB+:} false; then :
11699 $as_echo_n "(cached
) " >&6
11701 if test -n "$RANLIB"; then
11702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_RANLIB="${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11721 RANLIB=$ac_cv_prog_RANLIB
11722 if test -n "$RANLIB"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11724 $as_echo "$RANLIB" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11727 $as_echo "no
" >&6; }
11734 for ncn_progname in ranlib; do
11735 if test -n "$ncn_tool_prefix"; then
11736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11739 $as_echo_n "checking
for $ac_word...
" >&6; }
11740 if ${ac_cv_prog_RANLIB+:} false; then :
11741 $as_echo_n "(cached
) " >&6
11743 if test -n "$RANLIB"; then
11744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11763 RANLIB=$ac_cv_prog_RANLIB
11764 if test -n "$RANLIB"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11766 $as_echo "$RANLIB" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11769 $as_echo "no
" >&6; }
11774 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776 set dummy ${ncn_progname}; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11778 $as_echo_n "checking
for $ac_word...
" >&6; }
11779 if ${ac_cv_prog_RANLIB+:} false; then :
11780 $as_echo_n "(cached
) " >&6
11782 if test -n "$RANLIB"; then
11783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_RANLIB="${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11802 RANLIB=$ac_cv_prog_RANLIB
11803 if test -n "$RANLIB"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11805 $as_echo "$RANLIB" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11808 $as_echo "no
" >&6; }
11813 test -n "$ac_cv_prog_RANLIB" && break
11816 if test -z "$ac_cv_prog_RANLIB" ; then
11822 if test -n "$STRIP"; then
11823 ac_cv_prog_STRIP=$STRIP
11824 elif test -n "$ac_cv_prog_STRIP"; then
11825 STRIP=$ac_cv_prog_STRIP
11828 if test -n "$ac_cv_prog_STRIP"; then
11829 for ncn_progname in strip; do
11830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11831 set dummy ${ncn_progname}; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11833 $as_echo_n "checking
for $ac_word...
" >&6; }
11834 if ${ac_cv_prog_STRIP+:} false; then :
11835 $as_echo_n "(cached
) " >&6
11837 if test -n "$STRIP"; then
11838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847 ac_cv_prog_STRIP="${ncn_progname}"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11857 STRIP=$ac_cv_prog_STRIP
11858 if test -n "$STRIP"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11860 $as_echo "$STRIP" >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11863 $as_echo "no
" >&6; }
11870 for ncn_progname in strip; do
11871 if test -n "$ncn_tool_prefix"; then
11872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11875 $as_echo_n "checking
for $ac_word...
" >&6; }
11876 if ${ac_cv_prog_STRIP+:} false; then :
11877 $as_echo_n "(cached
) " >&6
11879 if test -n "$STRIP"; then
11880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11899 STRIP=$ac_cv_prog_STRIP
11900 if test -n "$STRIP"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11902 $as_echo "$STRIP" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11905 $as_echo "no
" >&6; }
11910 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11914 $as_echo_n "checking
for $ac_word...
" >&6; }
11915 if ${ac_cv_prog_STRIP+:} false; then :
11916 $as_echo_n "(cached
) " >&6
11918 if test -n "$STRIP"; then
11919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_prog_STRIP="${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11938 STRIP=$ac_cv_prog_STRIP
11939 if test -n "$STRIP"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11941 $as_echo "$STRIP" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11944 $as_echo "no
" >&6; }
11949 test -n "$ac_cv_prog_STRIP" && break
11952 if test -z "$ac_cv_prog_STRIP" ; then
11958 if test -n "$WINDRES"; then
11959 ac_cv_prog_WINDRES=$WINDRES
11960 elif test -n "$ac_cv_prog_WINDRES"; then
11961 WINDRES=$ac_cv_prog_WINDRES
11964 if test -n "$ac_cv_prog_WINDRES"; then
11965 for ncn_progname in windres; do
11966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11967 set dummy ${ncn_progname}; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11969 $as_echo_n "checking
for $ac_word...
" >&6; }
11970 if ${ac_cv_prog_WINDRES+:} false; then :
11971 $as_echo_n "(cached
) " >&6
11973 if test -n "$WINDRES"; then
11974 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_prog_WINDRES="${ncn_progname}"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11993 WINDRES=$ac_cv_prog_WINDRES
11994 if test -n "$WINDRES"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11996 $as_echo "$WINDRES" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11999 $as_echo "no
" >&6; }
12006 for ncn_progname in windres; do
12007 if test -n "$ncn_tool_prefix"; then
12008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12011 $as_echo_n "checking
for $ac_word...
" >&6; }
12012 if ${ac_cv_prog_WINDRES+:} false; then :
12013 $as_echo_n "(cached
) " >&6
12015 if test -n "$WINDRES"; then
12016 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12035 WINDRES=$ac_cv_prog_WINDRES
12036 if test -n "$WINDRES"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12038 $as_echo "$WINDRES" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12041 $as_echo "no
" >&6; }
12046 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12048 set dummy ${ncn_progname}; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12050 $as_echo_n "checking
for $ac_word...
" >&6; }
12051 if ${ac_cv_prog_WINDRES+:} false; then :
12052 $as_echo_n "(cached
) " >&6
12054 if test -n "$WINDRES"; then
12055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_WINDRES="${ncn_progname}"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12074 WINDRES=$ac_cv_prog_WINDRES
12075 if test -n "$WINDRES"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12077 $as_echo "$WINDRES" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12080 $as_echo "no
" >&6; }
12085 test -n "$ac_cv_prog_WINDRES" && break
12088 if test -z "$ac_cv_prog_WINDRES" ; then
12090 if test $build = $host ; then
12093 WINDRES="${ncn_tool_prefix}$2"
12099 if test -n "$WINDMC"; then
12100 ac_cv_prog_WINDMC=$WINDMC
12101 elif test -n "$ac_cv_prog_WINDMC"; then
12102 WINDMC=$ac_cv_prog_WINDMC
12105 if test -n "$ac_cv_prog_WINDMC"; then
12106 for ncn_progname in windmc; do
12107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12108 set dummy ${ncn_progname}; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12110 $as_echo_n "checking
for $ac_word...
" >&6; }
12111 if ${ac_cv_prog_WINDMC+:} false; then :
12112 $as_echo_n "(cached
) " >&6
12114 if test -n "$WINDMC"; then
12115 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118 for as_dir in $PATH
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124 ac_cv_prog_WINDMC="${ncn_progname}"
12125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12134 WINDMC=$ac_cv_prog_WINDMC
12135 if test -n "$WINDMC"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12137 $as_echo "$WINDMC" >&6; }
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12140 $as_echo "no
" >&6; }
12147 for ncn_progname in windmc; do
12148 if test -n "$ncn_tool_prefix"; then
12149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12152 $as_echo_n "checking
for $ac_word...
" >&6; }
12153 if ${ac_cv_prog_WINDMC+:} false; then :
12154 $as_echo_n "(cached
) " >&6
12156 if test -n "$WINDMC"; then
12157 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12176 WINDMC=$ac_cv_prog_WINDMC
12177 if test -n "$WINDMC"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12179 $as_echo "$WINDMC" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12182 $as_echo "no
" >&6; }
12187 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12189 set dummy ${ncn_progname}; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12191 $as_echo_n "checking
for $ac_word...
" >&6; }
12192 if ${ac_cv_prog_WINDMC+:} false; then :
12193 $as_echo_n "(cached
) " >&6
12195 if test -n "$WINDMC"; then
12196 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205 ac_cv_prog_WINDMC="${ncn_progname}"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12215 WINDMC=$ac_cv_prog_WINDMC
12216 if test -n "$WINDMC"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12218 $as_echo "$WINDMC" >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12221 $as_echo "no
" >&6; }
12226 test -n "$ac_cv_prog_WINDMC" && break
12229 if test -z "$ac_cv_prog_WINDMC" ; then
12231 if test $build = $host ; then
12234 WINDMC="${ncn_tool_prefix}$2"
12240 if test -n "$OBJCOPY"; then
12241 ac_cv_prog_OBJCOPY=$OBJCOPY
12242 elif test -n "$ac_cv_prog_OBJCOPY"; then
12243 OBJCOPY=$ac_cv_prog_OBJCOPY
12246 if test -n "$ac_cv_prog_OBJCOPY"; then
12247 for ncn_progname in objcopy; do
12248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12249 set dummy ${ncn_progname}; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12251 $as_echo_n "checking
for $ac_word...
" >&6; }
12252 if ${ac_cv_prog_OBJCOPY+:} false; then :
12253 $as_echo_n "(cached
) " >&6
12255 if test -n "$OBJCOPY"; then
12256 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265 ac_cv_prog_OBJCOPY="${ncn_progname}"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12275 OBJCOPY=$ac_cv_prog_OBJCOPY
12276 if test -n "$OBJCOPY"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12278 $as_echo "$OBJCOPY" >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12281 $as_echo "no
" >&6; }
12288 for ncn_progname in objcopy; do
12289 if test -n "$ncn_tool_prefix"; then
12290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12293 $as_echo_n "checking
for $ac_word...
" >&6; }
12294 if ${ac_cv_prog_OBJCOPY+:} false; then :
12295 $as_echo_n "(cached
) " >&6
12297 if test -n "$OBJCOPY"; then
12298 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12317 OBJCOPY=$ac_cv_prog_OBJCOPY
12318 if test -n "$OBJCOPY"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12320 $as_echo "$OBJCOPY" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12323 $as_echo "no
" >&6; }
12328 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330 set dummy ${ncn_progname}; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12332 $as_echo_n "checking
for $ac_word...
" >&6; }
12333 if ${ac_cv_prog_OBJCOPY+:} false; then :
12334 $as_echo_n "(cached
) " >&6
12336 if test -n "$OBJCOPY"; then
12337 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346 ac_cv_prog_OBJCOPY="${ncn_progname}"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12356 OBJCOPY=$ac_cv_prog_OBJCOPY
12357 if test -n "$OBJCOPY"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12359 $as_echo "$OBJCOPY" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12362 $as_echo "no
" >&6; }
12367 test -n "$ac_cv_prog_OBJCOPY" && break
12370 if test -z "$ac_cv_prog_OBJCOPY" ; then
12372 if test $build = $host ; then
12375 OBJCOPY="${ncn_tool_prefix}$2"
12381 if test -n "$OBJDUMP"; then
12382 ac_cv_prog_OBJDUMP=$OBJDUMP
12383 elif test -n "$ac_cv_prog_OBJDUMP"; then
12384 OBJDUMP=$ac_cv_prog_OBJDUMP
12387 if test -n "$ac_cv_prog_OBJDUMP"; then
12388 for ncn_progname in objdump; do
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12392 $as_echo_n "checking
for $ac_word...
" >&6; }
12393 if ${ac_cv_prog_OBJDUMP+:} false; then :
12394 $as_echo_n "(cached
) " >&6
12396 if test -n "$OBJDUMP"; then
12397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_OBJDUMP="${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12416 OBJDUMP=$ac_cv_prog_OBJDUMP
12417 if test -n "$OBJDUMP"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12419 $as_echo "$OBJDUMP" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12422 $as_echo "no
" >&6; }
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_tool_prefix"; then
12431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12434 $as_echo_n "checking
for $ac_word...
" >&6; }
12435 if ${ac_cv_prog_OBJDUMP+:} false; then :
12436 $as_echo_n "(cached
) " >&6
12438 if test -n "$OBJDUMP"; then
12439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12458 OBJDUMP=$ac_cv_prog_OBJDUMP
12459 if test -n "$OBJDUMP"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12461 $as_echo "$OBJDUMP" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12464 $as_echo "no
" >&6; }
12469 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12473 $as_echo_n "checking
for $ac_word...
" >&6; }
12474 if ${ac_cv_prog_OBJDUMP+:} false; then :
12475 $as_echo_n "(cached
) " >&6
12477 if test -n "$OBJDUMP"; then
12478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_prog_OBJDUMP="${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12497 OBJDUMP=$ac_cv_prog_OBJDUMP
12498 if test -n "$OBJDUMP"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12500 $as_echo "$OBJDUMP" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12503 $as_echo "no
" >&6; }
12508 test -n "$ac_cv_prog_OBJDUMP" && break
12511 if test -z "$ac_cv_prog_OBJDUMP" ; then
12513 if test $build = $host ; then
12516 OBJDUMP="${ncn_tool_prefix}$2"
12522 if test -n "$OTOOL"; then
12523 ac_cv_prog_OTOOL=$OTOOL
12524 elif test -n "$ac_cv_prog_OTOOL"; then
12525 OTOOL=$ac_cv_prog_OTOOL
12528 if test -n "$ac_cv_prog_OTOOL"; then
12529 for ncn_progname in otool; do
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531 set dummy ${ncn_progname}; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12533 $as_echo_n "checking
for $ac_word...
" >&6; }
12534 if ${ac_cv_prog_OTOOL+:} false; then :
12535 $as_echo_n "(cached
) " >&6
12537 if test -n "$OTOOL"; then
12538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_OTOOL="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12557 OTOOL=$ac_cv_prog_OTOOL
12558 if test -n "$OTOOL"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12560 $as_echo "$OTOOL" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12563 $as_echo "no
" >&6; }
12570 for ncn_progname in otool; do
12571 if test -n "$ncn_tool_prefix"; then
12572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12575 $as_echo_n "checking
for $ac_word...
" >&6; }
12576 if ${ac_cv_prog_OTOOL+:} false; then :
12577 $as_echo_n "(cached
) " >&6
12579 if test -n "$OTOOL"; then
12580 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12599 OTOOL=$ac_cv_prog_OTOOL
12600 if test -n "$OTOOL"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12602 $as_echo "$OTOOL" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12605 $as_echo "no
" >&6; }
12610 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12612 set dummy ${ncn_progname}; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12614 $as_echo_n "checking
for $ac_word...
" >&6; }
12615 if ${ac_cv_prog_OTOOL+:} false; then :
12616 $as_echo_n "(cached
) " >&6
12618 if test -n "$OTOOL"; then
12619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_OTOOL="${ncn_progname}"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12638 OTOOL=$ac_cv_prog_OTOOL
12639 if test -n "$OTOOL"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12641 $as_echo "$OTOOL" >&6; }
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12644 $as_echo "no
" >&6; }
12649 test -n "$ac_cv_prog_OTOOL" && break
12652 if test -z "$ac_cv_prog_OTOOL" ; then
12654 if test $build = $host ; then
12657 OTOOL="${ncn_tool_prefix}$2"
12663 if test -n "$READELF"; then
12664 ac_cv_prog_READELF=$READELF
12665 elif test -n "$ac_cv_prog_READELF"; then
12666 READELF=$ac_cv_prog_READELF
12669 if test -n "$ac_cv_prog_READELF"; then
12670 for ncn_progname in readelf; do
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12674 $as_echo_n "checking
for $ac_word...
" >&6; }
12675 if ${ac_cv_prog_READELF+:} false; then :
12676 $as_echo_n "(cached
) " >&6
12678 if test -n "$READELF"; then
12679 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_READELF="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12698 READELF=$ac_cv_prog_READELF
12699 if test -n "$READELF"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12701 $as_echo "$READELF" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12704 $as_echo "no
" >&6; }
12711 for ncn_progname in readelf; do
12712 if test -n "$ncn_tool_prefix"; then
12713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12716 $as_echo_n "checking
for $ac_word...
" >&6; }
12717 if ${ac_cv_prog_READELF+:} false; then :
12718 $as_echo_n "(cached
) " >&6
12720 if test -n "$READELF"; then
12721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12740 READELF=$ac_cv_prog_READELF
12741 if test -n "$READELF"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12743 $as_echo "$READELF" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12746 $as_echo "no
" >&6; }
12751 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753 set dummy ${ncn_progname}; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12755 $as_echo_n "checking
for $ac_word...
" >&6; }
12756 if ${ac_cv_prog_READELF+:} false; then :
12757 $as_echo_n "(cached
) " >&6
12759 if test -n "$READELF"; then
12760 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769 ac_cv_prog_READELF="${ncn_progname}"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12779 READELF=$ac_cv_prog_READELF
12780 if test -n "$READELF"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12782 $as_echo "$READELF" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12785 $as_echo "no
" >&6; }
12790 test -n "$ac_cv_prog_READELF" && break
12793 if test -z "$ac_cv_prog_READELF" ; then
12795 if test $build = $host ; then
12798 READELF="${ncn_tool_prefix}$2"
12811 # Check whether --with-build-time-tools was given.
12812 if test "${with_build_time_tools+set}" = set; then :
12813 withval=$with_build_time_tools; case x"$withval" in
12816 with_build_time_tools=
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12818 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12822 with_build_time_tools=
12828 if test -n "$CC_FOR_TARGET"; then
12829 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12830 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12831 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12834 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12835 for ncn_progname in cc gcc; do
12836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12837 set dummy ${ncn_progname}; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12839 $as_echo_n "checking
for $ac_word...
" >&6; }
12840 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12841 $as_echo_n "(cached
) " >&6
12843 if test -n "$CC_FOR_TARGET"; then
12844 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12863 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12864 if test -n "$CC_FOR_TARGET"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12866 $as_echo "$CC_FOR_TARGET" >&6; }
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12869 $as_echo "no
" >&6; }
12876 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12877 for ncn_progname in cc gcc; do
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12879 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12880 if test -x $with_build_time_tools/${ncn_progname}; then
12881 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12883 $as_echo "yes" >&6; }
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12887 $as_echo "no
" >&6; }
12892 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12893 for ncn_progname in cc gcc; do
12894 if test -n "$ncn_target_tool_prefix"; then
12895 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12896 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12898 $as_echo_n "checking
for $ac_word...
" >&6; }
12899 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12900 $as_echo_n "(cached
) " >&6
12902 if test -n "$CC_FOR_TARGET"; then
12903 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12922 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12923 if test -n "$CC_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12925 $as_echo "$CC_FOR_TARGET" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12928 $as_echo "no
" >&6; }
12933 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12937 $as_echo_n "checking
for $ac_word...
" >&6; }
12938 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12939 $as_echo_n "(cached
) " >&6
12941 if test -n "$CC_FOR_TARGET"; then
12942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12962 if test -n "$CC_FOR_TARGET"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12964 $as_echo "$CC_FOR_TARGET" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12967 $as_echo "no
" >&6; }
12972 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12976 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12978 if test $build = $target ; then
12981 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12984 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12989 if test -n "$CXX_FOR_TARGET"; then
12990 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12991 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12992 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12995 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12996 for ncn_progname in c++ g++ cxx gxx; do
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13000 $as_echo_n "checking
for $ac_word...
" >&6; }
13001 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13002 $as_echo_n "(cached
) " >&6
13004 if test -n "$CXX_FOR_TARGET"; then
13005 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13024 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13025 if test -n "$CXX_FOR_TARGET"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13027 $as_echo "$CXX_FOR_TARGET" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13030 $as_echo "no
" >&6; }
13037 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13038 for ncn_progname in c++ g++ cxx gxx; do
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13040 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13041 if test -x $with_build_time_tools/${ncn_progname}; then
13042 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13044 $as_echo "yes" >&6; }
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13048 $as_echo "no
" >&6; }
13053 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13054 for ncn_progname in c++ g++ cxx gxx; do
13055 if test -n "$ncn_target_tool_prefix"; then
13056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13057 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13059 $as_echo_n "checking
for $ac_word...
" >&6; }
13060 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13061 $as_echo_n "(cached
) " >&6
13063 if test -n "$CXX_FOR_TARGET"; then
13064 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13083 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13084 if test -n "$CXX_FOR_TARGET"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13086 $as_echo "$CXX_FOR_TARGET" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13089 $as_echo "no
" >&6; }
13094 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13098 $as_echo_n "checking
for $ac_word...
" >&6; }
13099 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13100 $as_echo_n "(cached
) " >&6
13102 if test -n "$CXX_FOR_TARGET"; then
13103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13123 if test -n "$CXX_FOR_TARGET"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13125 $as_echo "$CXX_FOR_TARGET" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13128 $as_echo "no
" >&6; }
13133 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13137 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13138 set dummy c++ g++ cxx gxx
13139 if test $build = $target ; then
13140 CXX_FOR_TARGET="$2"
13142 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13145 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13150 if test -n "$GCC_FOR_TARGET"; then
13151 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13152 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13153 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13156 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13157 for ncn_progname in gcc; do
13158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13159 set dummy ${ncn_progname}; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13161 $as_echo_n "checking
for $ac_word...
" >&6; }
13162 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13163 $as_echo_n "(cached
) " >&6
13165 if test -n "$GCC_FOR_TARGET"; then
13166 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13185 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13186 if test -n "$GCC_FOR_TARGET"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13188 $as_echo "$GCC_FOR_TARGET" >&6; }
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13191 $as_echo "no
" >&6; }
13198 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13199 for ncn_progname in gcc; do
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13201 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13202 if test -x $with_build_time_tools/${ncn_progname}; then
13203 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13205 $as_echo "yes" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13209 $as_echo "no
" >&6; }
13214 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13215 for ncn_progname in gcc; do
13216 if test -n "$ncn_target_tool_prefix"; then
13217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13220 $as_echo_n "checking
for $ac_word...
" >&6; }
13221 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13222 $as_echo_n "(cached
) " >&6
13224 if test -n "$GCC_FOR_TARGET"; then
13225 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13244 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13245 if test -n "$GCC_FOR_TARGET"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13247 $as_echo "$GCC_FOR_TARGET" >&6; }
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13250 $as_echo "no
" >&6; }
13255 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13257 set dummy ${ncn_progname}; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13259 $as_echo_n "checking
for $ac_word...
" >&6; }
13260 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13261 $as_echo_n "(cached
) " >&6
13263 if test -n "$GCC_FOR_TARGET"; then
13264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13284 if test -n "$GCC_FOR_TARGET"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13286 $as_echo "$GCC_FOR_TARGET" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13289 $as_echo "no
" >&6; }
13294 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13298 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13299 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13301 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13306 if test -n "$GFORTRAN_FOR_TARGET"; then
13307 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13308 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13309 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13312 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13313 for ncn_progname in gfortran; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13317 $as_echo_n "checking
for $ac_word...
" >&6; }
13318 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13319 $as_echo_n "(cached
) " >&6
13321 if test -n "$GFORTRAN_FOR_TARGET"; then
13322 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13341 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13342 if test -n "$GFORTRAN_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13344 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13347 $as_echo "no
" >&6; }
13354 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13355 for ncn_progname in gfortran; do
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13357 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13361 $as_echo "yes" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13365 $as_echo "no
" >&6; }
13370 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13371 for ncn_progname in gfortran; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13376 $as_echo_n "checking
for $ac_word...
" >&6; }
13377 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13378 $as_echo_n "(cached
) " >&6
13380 if test -n "$GFORTRAN_FOR_TARGET"; then
13381 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13400 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13401 if test -n "$GFORTRAN_FOR_TARGET"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13403 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13406 $as_echo "no
" >&6; }
13411 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413 set dummy ${ncn_progname}; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13415 $as_echo_n "checking
for $ac_word...
" >&6; }
13416 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13417 $as_echo_n "(cached
) " >&6
13419 if test -n "$GFORTRAN_FOR_TARGET"; then
13420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13440 if test -n "$GFORTRAN_FOR_TARGET"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13442 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13445 $as_echo "no
" >&6; }
13450 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13454 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13456 if test $build = $target ; then
13457 GFORTRAN_FOR_TARGET="$2"
13459 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13462 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13467 if test -n "$GOC_FOR_TARGET"; then
13468 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13469 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13470 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13473 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13474 for ncn_progname in gccgo; do
13475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13476 set dummy ${ncn_progname}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13478 $as_echo_n "checking
for $ac_word...
" >&6; }
13479 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13480 $as_echo_n "(cached
) " >&6
13482 if test -n "$GOC_FOR_TARGET"; then
13483 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13502 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13503 if test -n "$GOC_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13505 $as_echo "$GOC_FOR_TARGET" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13508 $as_echo "no
" >&6; }
13515 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13516 for ncn_progname in gccgo; do
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13518 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13519 if test -x $with_build_time_tools/${ncn_progname}; then
13520 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13522 $as_echo "yes" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13526 $as_echo "no
" >&6; }
13531 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13532 for ncn_progname in gccgo; do
13533 if test -n "$ncn_target_tool_prefix"; then
13534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13537 $as_echo_n "checking
for $ac_word...
" >&6; }
13538 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached
) " >&6
13541 if test -n "$GOC_FOR_TARGET"; then
13542 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13561 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13562 if test -n "$GOC_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13564 $as_echo "$GOC_FOR_TARGET" >&6; }
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13567 $as_echo "no
" >&6; }
13572 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13574 set dummy ${ncn_progname}; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13576 $as_echo_n "checking
for $ac_word...
" >&6; }
13577 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13578 $as_echo_n "(cached
) " >&6
13580 if test -n "$GOC_FOR_TARGET"; then
13581 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13600 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13601 if test -n "$GOC_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13603 $as_echo "$GOC_FOR_TARGET" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13606 $as_echo "no
" >&6; }
13611 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13615 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13617 if test $build = $target ; then
13618 GOC_FOR_TARGET="$2"
13620 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13623 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13628 if test -n "$GDC_FOR_TARGET"; then
13629 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13630 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13631 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13634 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13635 for ncn_progname in gdc; do
13636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13637 set dummy ${ncn_progname}; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13639 $as_echo_n "checking
for $ac_word...
" >&6; }
13640 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13641 $as_echo_n "(cached
) " >&6
13643 if test -n "$GDC_FOR_TARGET"; then
13644 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13653 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13663 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13664 if test -n "$GDC_FOR_TARGET"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13666 $as_echo "$GDC_FOR_TARGET" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13669 $as_echo "no
" >&6; }
13676 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13677 for ncn_progname in gdc; do
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13679 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13680 if test -x $with_build_time_tools/${ncn_progname}; then
13681 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13683 $as_echo "yes" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13687 $as_echo "no
" >&6; }
13692 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13693 for ncn_progname in gdc; do
13694 if test -n "$ncn_target_tool_prefix"; then
13695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13696 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13698 $as_echo_n "checking
for $ac_word...
" >&6; }
13699 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13700 $as_echo_n "(cached
) " >&6
13702 if test -n "$GDC_FOR_TARGET"; then
13703 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13722 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13723 if test -n "$GDC_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13725 $as_echo "$GDC_FOR_TARGET" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13728 $as_echo "no
" >&6; }
13733 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13735 set dummy ${ncn_progname}; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13737 $as_echo_n "checking
for $ac_word...
" >&6; }
13738 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13739 $as_echo_n "(cached
) " >&6
13741 if test -n "$GDC_FOR_TARGET"; then
13742 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13761 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13762 if test -n "$GDC_FOR_TARGET"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13764 $as_echo "$GDC_FOR_TARGET" >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13767 $as_echo "no
" >&6; }
13772 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13776 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13778 if test $build = $target ; then
13779 GDC_FOR_TARGET="$2"
13781 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13784 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13789 cat > conftest.c << \EOF
13794 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13795 have_gcc_for_target=yes
13797 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13798 have_gcc_for_target=no
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13806 if test -n "$with_build_time_tools"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13808 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13809 if test -x $with_build_time_tools/ar; then
13810 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13811 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13813 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13816 $as_echo "no
" >&6; }
13818 elif test $build != $host && test $have_gcc_for_target = yes; then
13819 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13820 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13821 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13824 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13825 # Extract the first word of "ar", so it can be a program name with args.
13826 set dummy ar; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13828 $as_echo_n "checking
for $ac_word...
" >&6; }
13829 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13830 $as_echo_n "(cached
) " >&6
13832 case $AR_FOR_TARGET in
13834 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $gcc_cv_tool_dirs
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13855 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13856 if test -n "$AR_FOR_TARGET"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13858 $as_echo "$AR_FOR_TARGET" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13861 $as_echo "no
" >&6; }
13866 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13869 if test -n "$AR_FOR_TARGET"; then
13870 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13871 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13872 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13875 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13876 for ncn_progname in ar; do
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_AR_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached
) " >&6
13884 if test -n "$AR_FOR_TARGET"; then
13885 ac_cv_prog_AR_FOR_TARGET="$AR_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_AR_FOR_TARGET="${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13904 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13905 if test -n "$AR_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13907 $as_echo "$AR_FOR_TARGET" >&6; }
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13910 $as_echo "no
" >&6; }
13917 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13918 for ncn_progname in ar; do
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13920 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13921 if test -x $with_build_time_tools/${ncn_progname}; then
13922 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13924 $as_echo "yes" >&6; }
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13928 $as_echo "no
" >&6; }
13933 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13934 for ncn_progname in ar; do
13935 if test -n "$ncn_target_tool_prefix"; then
13936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13939 $as_echo_n "checking
for $ac_word...
" >&6; }
13940 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13941 $as_echo_n "(cached
) " >&6
13943 if test -n "$AR_FOR_TARGET"; then
13944 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13963 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13964 if test -n "$AR_FOR_TARGET"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13966 $as_echo "$AR_FOR_TARGET" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13969 $as_echo "no
" >&6; }
13974 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13976 set dummy ${ncn_progname}; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13978 $as_echo_n "checking
for $ac_word...
" >&6; }
13979 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13980 $as_echo_n "(cached
) " >&6
13982 if test -n "$AR_FOR_TARGET"; then
13983 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14002 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14003 if test -n "$AR_FOR_TARGET"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14005 $as_echo "$AR_FOR_TARGET" >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14008 $as_echo "no
" >&6; }
14013 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14017 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14019 if test $build = $target ; then
14022 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14025 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14029 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14036 if test -n "$with_build_time_tools"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14038 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14039 if test -x $with_build_time_tools/as; then
14040 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14041 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14043 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14046 $as_echo "no
" >&6; }
14048 elif test $build != $host && test $have_gcc_for_target = yes; then
14049 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14050 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14051 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14054 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14055 # Extract the first word of "as
", so it can be a program name with args.
14056 set dummy as; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14058 $as_echo_n "checking
for $ac_word...
" >&6; }
14059 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14060 $as_echo_n "(cached
) " >&6
14062 case $AS_FOR_TARGET in
14064 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $gcc_cv_tool_dirs
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14085 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14086 if test -n "$AS_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14088 $as_echo "$AS_FOR_TARGET" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14091 $as_echo "no
" >&6; }
14096 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14099 if test -n "$AS_FOR_TARGET"; then
14100 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14101 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14102 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14105 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14106 for ncn_progname in as; do
14107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14108 set dummy ${ncn_progname}; ac_word=$2
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14110 $as_echo_n "checking
for $ac_word...
" >&6; }
14111 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14112 $as_echo_n "(cached
) " >&6
14114 if test -n "$AS_FOR_TARGET"; then
14115 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
14123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14124 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14134 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14135 if test -n "$AS_FOR_TARGET"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14137 $as_echo "$AS_FOR_TARGET" >&6; }
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14140 $as_echo "no
" >&6; }
14147 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14148 for ncn_progname in as; do
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14150 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14151 if test -x $with_build_time_tools/${ncn_progname}; then
14152 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14154 $as_echo "yes" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14158 $as_echo "no
" >&6; }
14163 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14164 for ncn_progname in as; do
14165 if test -n "$ncn_target_tool_prefix"; then
14166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14167 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14169 $as_echo_n "checking
for $ac_word...
" >&6; }
14170 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14171 $as_echo_n "(cached
) " >&6
14173 if test -n "$AS_FOR_TARGET"; then
14174 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14193 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14194 if test -n "$AS_FOR_TARGET"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14196 $as_echo "$AS_FOR_TARGET" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14199 $as_echo "no
" >&6; }
14204 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14206 set dummy ${ncn_progname}; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14208 $as_echo_n "checking
for $ac_word...
" >&6; }
14209 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14210 $as_echo_n "(cached
) " >&6
14212 if test -n "$AS_FOR_TARGET"; then
14213 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14232 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14233 if test -n "$AS_FOR_TARGET"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14235 $as_echo "$AS_FOR_TARGET" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14238 $as_echo "no
" >&6; }
14243 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14247 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14249 if test $build = $target ; then
14252 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14255 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14259 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14266 if test -n "$with_build_time_tools"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14268 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14269 if test -x $with_build_time_tools/dlltool; then
14270 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14271 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14273 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14276 $as_echo "no
" >&6; }
14278 elif test $build != $host && test $have_gcc_for_target = yes; then
14279 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14280 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14281 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14284 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14285 # Extract the first word of "dlltool
", so it can be a program name with args.
14286 set dummy dlltool; ac_word=$2
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14288 $as_echo_n "checking
for $ac_word...
" >&6; }
14289 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14290 $as_echo_n "(cached
) " >&6
14292 case $DLLTOOL_FOR_TARGET in
14294 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $gcc_cv_tool_dirs
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14304 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14315 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14316 if test -n "$DLLTOOL_FOR_TARGET"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14318 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14321 $as_echo "no
" >&6; }
14326 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14329 if test -n "$DLLTOOL_FOR_TARGET"; then
14330 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14331 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14332 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14335 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14336 for ncn_progname in dlltool; do
14337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14338 set dummy ${ncn_progname}; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14340 $as_echo_n "checking
for $ac_word...
" >&6; }
14341 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14342 $as_echo_n "(cached
) " >&6
14344 if test -n "$DLLTOOL_FOR_TARGET"; then
14345 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14364 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14365 if test -n "$DLLTOOL_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14367 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14370 $as_echo "no
" >&6; }
14377 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14378 for ncn_progname in dlltool; do
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14380 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14381 if test -x $with_build_time_tools/${ncn_progname}; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14384 $as_echo "yes" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14388 $as_echo "no
" >&6; }
14393 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14394 for ncn_progname in dlltool; do
14395 if test -n "$ncn_target_tool_prefix"; then
14396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14399 $as_echo_n "checking
for $ac_word...
" >&6; }
14400 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14401 $as_echo_n "(cached
) " >&6
14403 if test -n "$DLLTOOL_FOR_TARGET"; then
14404 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14423 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14424 if test -n "$DLLTOOL_FOR_TARGET"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14426 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14429 $as_echo "no
" >&6; }
14434 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14436 set dummy ${ncn_progname}; ac_word=$2
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14438 $as_echo_n "checking
for $ac_word...
" >&6; }
14439 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14440 $as_echo_n "(cached
) " >&6
14442 if test -n "$DLLTOOL_FOR_TARGET"; then
14443 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14449 test -z "$as_dir" && as_dir=.
14450 for ac_exec_ext in '' $ac_executable_extensions; do
14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14452 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14462 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14463 if test -n "$DLLTOOL_FOR_TARGET"; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14465 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14468 $as_echo "no
" >&6; }
14473 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14477 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14479 if test $build = $target ; then
14480 DLLTOOL_FOR_TARGET="$2"
14482 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14485 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14489 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14496 if test -n "$with_build_time_tools"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14498 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14499 if test -x $with_build_time_tools/dsymutil; then
14500 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14501 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14503 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14506 $as_echo "no
" >&6; }
14508 elif test $build != $host && test $have_gcc_for_target = yes; then
14509 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14510 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14511 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14514 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14515 # Extract the first word of "dsymutil
", so it can be a program name with args.
14516 set dummy dsymutil; ac_word=$2
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14518 $as_echo_n "checking
for $ac_word...
" >&6; }
14519 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14520 $as_echo_n "(cached
) " >&6
14522 case $DSYMUTIL_FOR_TARGET in
14524 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528 for as_dir in $gcc_cv_tool_dirs
14531 test -z "$as_dir" && as_dir=.
14532 for ac_exec_ext in '' $ac_executable_extensions; do
14533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14534 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14545 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14546 if test -n "$DSYMUTIL_FOR_TARGET"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14548 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14551 $as_echo "no
" >&6; }
14556 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14559 if test -n "$DSYMUTIL_FOR_TARGET"; then
14560 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14561 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14562 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14565 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14566 for ncn_progname in dsymutil; do
14567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14568 set dummy ${ncn_progname}; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14570 $as_echo_n "checking
for $ac_word...
" >&6; }
14571 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14572 $as_echo_n "(cached
) " >&6
14574 if test -n "$DSYMUTIL_FOR_TARGET"; then
14575 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14594 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14595 if test -n "$DSYMUTIL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14597 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14600 $as_echo "no
" >&6; }
14607 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14608 for ncn_progname in dsymutil; do
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14610 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14611 if test -x $with_build_time_tools/${ncn_progname}; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14614 $as_echo "yes" >&6; }
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14618 $as_echo "no
" >&6; }
14623 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14624 for ncn_progname in dsymutil; do
14625 if test -n "$ncn_target_tool_prefix"; then
14626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14629 $as_echo_n "checking
for $ac_word...
" >&6; }
14630 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14631 $as_echo_n "(cached
) " >&6
14633 if test -n "$DSYMUTIL_FOR_TARGET"; then
14634 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14653 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14654 if test -n "$DSYMUTIL_FOR_TARGET"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14656 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14659 $as_echo "no
" >&6; }
14664 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14666 set dummy ${ncn_progname}; ac_word=$2
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14668 $as_echo_n "checking
for $ac_word...
" >&6; }
14669 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14670 $as_echo_n "(cached
) " >&6
14672 if test -n "$DSYMUTIL_FOR_TARGET"; then
14673 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $PATH
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14692 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14693 if test -n "$DSYMUTIL_FOR_TARGET"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14695 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14698 $as_echo "no
" >&6; }
14703 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14707 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14709 if test $build = $target ; then
14710 DSYMUTIL_FOR_TARGET="$2"
14712 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14715 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14719 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14726 if test -n "$with_build_time_tools"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14728 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14729 if test -x $with_build_time_tools/ld; then
14730 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14731 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14733 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14736 $as_echo "no
" >&6; }
14738 elif test $build != $host && test $have_gcc_for_target = yes; then
14739 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14740 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14741 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14744 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14745 # Extract the first word of "ld
", so it can be a program name with args.
14746 set dummy ld; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14748 $as_echo_n "checking
for $ac_word...
" >&6; }
14749 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14750 $as_echo_n "(cached
) " >&6
14752 case $LD_FOR_TARGET in
14754 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $gcc_cv_tool_dirs
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14775 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14776 if test -n "$LD_FOR_TARGET"; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14778 $as_echo "$LD_FOR_TARGET" >&6; }
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14781 $as_echo "no
" >&6; }
14786 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14789 if test -n "$LD_FOR_TARGET"; then
14790 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14791 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14792 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14795 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14796 for ncn_progname in ld; do
14797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14798 set dummy ${ncn_progname}; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14800 $as_echo_n "checking
for $ac_word...
" >&6; }
14801 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14802 $as_echo_n "(cached
) " >&6
14804 if test -n "$LD_FOR_TARGET"; then
14805 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14815 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14824 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14825 if test -n "$LD_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14827 $as_echo "$LD_FOR_TARGET" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14830 $as_echo "no
" >&6; }
14837 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14838 for ncn_progname in ld; do
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14840 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14841 if test -x $with_build_time_tools/${ncn_progname}; then
14842 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14844 $as_echo "yes" >&6; }
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14848 $as_echo "no
" >&6; }
14853 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14854 for ncn_progname in ld; do
14855 if test -n "$ncn_target_tool_prefix"; then
14856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14857 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14859 $as_echo_n "checking
for $ac_word...
" >&6; }
14860 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14861 $as_echo_n "(cached
) " >&6
14863 if test -n "$LD_FOR_TARGET"; then
14864 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14883 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14884 if test -n "$LD_FOR_TARGET"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14886 $as_echo "$LD_FOR_TARGET" >&6; }
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14889 $as_echo "no
" >&6; }
14894 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14896 set dummy ${ncn_progname}; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14898 $as_echo_n "checking
for $ac_word...
" >&6; }
14899 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14900 $as_echo_n "(cached
) " >&6
14902 if test -n "$LD_FOR_TARGET"; then
14903 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $PATH
14909 test -z "$as_dir" && as_dir=.
14910 for ac_exec_ext in '' $ac_executable_extensions; do
14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14912 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14922 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14923 if test -n "$LD_FOR_TARGET"; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14925 $as_echo "$LD_FOR_TARGET" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14928 $as_echo "no
" >&6; }
14933 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14937 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14939 if test $build = $target ; then
14942 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14945 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14949 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14956 if test -n "$with_build_time_tools"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
14958 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
14959 if test -x $with_build_time_tools/lipo; then
14960 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14961 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
14963 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14966 $as_echo "no
" >&6; }
14968 elif test $build != $host && test $have_gcc_for_target = yes; then
14969 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14970 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14971 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14974 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14975 # Extract the first word of "lipo
", so it can be a program name with args.
14976 set dummy lipo; ac_word=$2
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14978 $as_echo_n "checking
for $ac_word...
" >&6; }
14979 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14980 $as_echo_n "(cached
) " >&6
14982 case $LIPO_FOR_TARGET in
14984 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $gcc_cv_tool_dirs
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15005 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15006 if test -n "$LIPO_FOR_TARGET"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15008 $as_echo "$LIPO_FOR_TARGET" >&6; }
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15011 $as_echo "no
" >&6; }
15016 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15019 if test -n "$LIPO_FOR_TARGET"; then
15020 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15021 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15022 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15025 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15026 for ncn_progname in lipo; do
15027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15028 set dummy ${ncn_progname}; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15030 $as_echo_n "checking
for $ac_word...
" >&6; }
15031 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15032 $as_echo_n "(cached
) " >&6
15034 if test -n "$LIPO_FOR_TARGET"; then
15035 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15044 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15054 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15055 if test -n "$LIPO_FOR_TARGET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15057 $as_echo "$LIPO_FOR_TARGET" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15060 $as_echo "no
" >&6; }
15067 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15068 for ncn_progname in lipo; do
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15070 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15071 if test -x $with_build_time_tools/${ncn_progname}; then
15072 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15074 $as_echo "yes" >&6; }
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15078 $as_echo "no
" >&6; }
15083 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15084 for ncn_progname in lipo; do
15085 if test -n "$ncn_target_tool_prefix"; then
15086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15089 $as_echo_n "checking
for $ac_word...
" >&6; }
15090 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15091 $as_echo_n "(cached
) " >&6
15093 if test -n "$LIPO_FOR_TARGET"; then
15094 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15113 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15114 if test -n "$LIPO_FOR_TARGET"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15116 $as_echo "$LIPO_FOR_TARGET" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15119 $as_echo "no
" >&6; }
15124 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15126 set dummy ${ncn_progname}; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15128 $as_echo_n "checking
for $ac_word...
" >&6; }
15129 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15130 $as_echo_n "(cached
) " >&6
15132 if test -n "$LIPO_FOR_TARGET"; then
15133 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15143 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15152 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15153 if test -n "$LIPO_FOR_TARGET"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15155 $as_echo "$LIPO_FOR_TARGET" >&6; }
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15158 $as_echo "no
" >&6; }
15163 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15167 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15169 if test $build = $target ; then
15170 LIPO_FOR_TARGET="$2"
15172 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15175 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15179 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15186 if test -n "$with_build_time_tools"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15188 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15189 if test -x $with_build_time_tools/nm; then
15190 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15191 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15193 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15196 $as_echo "no
" >&6; }
15198 elif test $build != $host && test $have_gcc_for_target = yes; then
15199 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15200 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15201 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15204 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15205 # Extract the first word of "nm
", so it can be a program name with args.
15206 set dummy nm; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15208 $as_echo_n "checking
for $ac_word...
" >&6; }
15209 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15210 $as_echo_n "(cached
) " >&6
15212 case $NM_FOR_TARGET in
15214 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $gcc_cv_tool_dirs
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15235 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15236 if test -n "$NM_FOR_TARGET"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15238 $as_echo "$NM_FOR_TARGET" >&6; }
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15241 $as_echo "no
" >&6; }
15246 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15249 if test -n "$NM_FOR_TARGET"; then
15250 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15251 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15252 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15255 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15256 for ncn_progname in nm; do
15257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15258 set dummy ${ncn_progname}; ac_word=$2
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15260 $as_echo_n "checking
for $ac_word...
" >&6; }
15261 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15262 $as_echo_n "(cached
) " >&6
15264 if test -n "$NM_FOR_TARGET"; then
15265 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268 for as_dir in $PATH
15271 test -z "$as_dir" && as_dir=.
15272 for ac_exec_ext in '' $ac_executable_extensions; do
15273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15274 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15284 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15285 if test -n "$NM_FOR_TARGET"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15287 $as_echo "$NM_FOR_TARGET" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15290 $as_echo "no
" >&6; }
15297 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15298 for ncn_progname in nm; do
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15300 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15301 if test -x $with_build_time_tools/${ncn_progname}; then
15302 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15304 $as_echo "yes" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15308 $as_echo "no
" >&6; }
15313 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15314 for ncn_progname in nm; do
15315 if test -n "$ncn_target_tool_prefix"; then
15316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15319 $as_echo_n "checking
for $ac_word...
" >&6; }
15320 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15321 $as_echo_n "(cached
) " >&6
15323 if test -n "$NM_FOR_TARGET"; then
15324 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15343 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15344 if test -n "$NM_FOR_TARGET"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15346 $as_echo "$NM_FOR_TARGET" >&6; }
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15349 $as_echo "no
" >&6; }
15354 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15356 set dummy ${ncn_progname}; ac_word=$2
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15358 $as_echo_n "checking
for $ac_word...
" >&6; }
15359 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15360 $as_echo_n "(cached
) " >&6
15362 if test -n "$NM_FOR_TARGET"; then
15363 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $PATH
15369 test -z "$as_dir" && as_dir=.
15370 for ac_exec_ext in '' $ac_executable_extensions; do
15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15372 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15382 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15383 if test -n "$NM_FOR_TARGET"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15385 $as_echo "$NM_FOR_TARGET" >&6; }
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15388 $as_echo "no
" >&6; }
15393 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15397 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15399 if test $build = $target ; then
15402 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15405 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15409 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15416 if test -n "$with_build_time_tools"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15418 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15419 if test -x $with_build_time_tools/objcopy; then
15420 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15421 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15423 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15426 $as_echo "no
" >&6; }
15428 elif test $build != $host && test $have_gcc_for_target = yes; then
15429 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15430 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15431 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15434 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15435 # Extract the first word of "objcopy
", so it can be a program name with args.
15436 set dummy objcopy; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15438 $as_echo_n "checking
for $ac_word...
" >&6; }
15439 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15440 $as_echo_n "(cached
) " >&6
15442 case $OBJCOPY_FOR_TARGET in
15444 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 for as_dir in $gcc_cv_tool_dirs
15451 test -z "$as_dir" && as_dir=.
15452 for ac_exec_ext in '' $ac_executable_extensions; do
15453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15454 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15465 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15466 if test -n "$OBJCOPY_FOR_TARGET"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15468 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15471 $as_echo "no
" >&6; }
15476 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15479 if test -n "$OBJCOPY_FOR_TARGET"; then
15480 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15481 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15482 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15485 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15486 for ncn_progname in objcopy; do
15487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15488 set dummy ${ncn_progname}; ac_word=$2
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15490 $as_echo_n "checking
for $ac_word...
" >&6; }
15491 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15492 $as_echo_n "(cached
) " >&6
15494 if test -n "$OBJCOPY_FOR_TARGET"; then
15495 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15514 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15515 if test -n "$OBJCOPY_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15517 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15520 $as_echo "no
" >&6; }
15527 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15528 for ncn_progname in objcopy; do
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15530 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15531 if test -x $with_build_time_tools/${ncn_progname}; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15534 $as_echo "yes" >&6; }
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15538 $as_echo "no
" >&6; }
15543 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15544 for ncn_progname in objcopy; do
15545 if test -n "$ncn_target_tool_prefix"; then
15546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15549 $as_echo_n "checking
for $ac_word...
" >&6; }
15550 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15551 $as_echo_n "(cached
) " >&6
15553 if test -n "$OBJCOPY_FOR_TARGET"; then
15554 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15563 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15573 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15574 if test -n "$OBJCOPY_FOR_TARGET"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15576 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15579 $as_echo "no
" >&6; }
15584 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15586 set dummy ${ncn_progname}; ac_word=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15588 $as_echo_n "checking
for $ac_word...
" >&6; }
15589 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15590 $as_echo_n "(cached
) " >&6
15592 if test -n "$OBJCOPY_FOR_TARGET"; then
15593 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $PATH
15599 test -z "$as_dir" && as_dir=.
15600 for ac_exec_ext in '' $ac_executable_extensions; do
15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15602 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15612 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15613 if test -n "$OBJCOPY_FOR_TARGET"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15615 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15618 $as_echo "no
" >&6; }
15623 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15627 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15629 if test $build = $target ; then
15630 OBJCOPY_FOR_TARGET="$2"
15632 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15635 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15639 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15646 if test -n "$with_build_time_tools"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15648 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15649 if test -x $with_build_time_tools/objdump; then
15650 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15651 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15653 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15656 $as_echo "no
" >&6; }
15658 elif test $build != $host && test $have_gcc_for_target = yes; then
15659 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15660 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15661 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15664 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15665 # Extract the first word of "objdump
", so it can be a program name with args.
15666 set dummy objdump; ac_word=$2
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15668 $as_echo_n "checking
for $ac_word...
" >&6; }
15669 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15670 $as_echo_n "(cached
) " >&6
15672 case $OBJDUMP_FOR_TARGET in
15674 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678 for as_dir in $gcc_cv_tool_dirs
15681 test -z "$as_dir" && as_dir=.
15682 for ac_exec_ext in '' $ac_executable_extensions; do
15683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15684 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15695 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15696 if test -n "$OBJDUMP_FOR_TARGET"; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15698 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15701 $as_echo "no
" >&6; }
15706 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15709 if test -n "$OBJDUMP_FOR_TARGET"; then
15710 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15711 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15712 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15715 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15716 for ncn_progname in objdump; do
15717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15718 set dummy ${ncn_progname}; ac_word=$2
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15720 $as_echo_n "checking
for $ac_word...
" >&6; }
15721 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15722 $as_echo_n "(cached
) " >&6
15724 if test -n "$OBJDUMP_FOR_TARGET"; then
15725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15744 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15745 if test -n "$OBJDUMP_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15747 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15750 $as_echo "no
" >&6; }
15757 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15758 for ncn_progname in objdump; do
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15760 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15761 if test -x $with_build_time_tools/${ncn_progname}; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15764 $as_echo "yes" >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15768 $as_echo "no
" >&6; }
15773 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15774 for ncn_progname in objdump; do
15775 if test -n "$ncn_target_tool_prefix"; then
15776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15779 $as_echo_n "checking
for $ac_word...
" >&6; }
15780 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15781 $as_echo_n "(cached
) " >&6
15783 if test -n "$OBJDUMP_FOR_TARGET"; then
15784 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15803 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15804 if test -n "$OBJDUMP_FOR_TARGET"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15806 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15809 $as_echo "no
" >&6; }
15814 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15816 set dummy ${ncn_progname}; ac_word=$2
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15818 $as_echo_n "checking
for $ac_word...
" >&6; }
15819 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15820 $as_echo_n "(cached
) " >&6
15822 if test -n "$OBJDUMP_FOR_TARGET"; then
15823 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826 for as_dir in $PATH
15829 test -z "$as_dir" && as_dir=.
15830 for ac_exec_ext in '' $ac_executable_extensions; do
15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15832 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15833 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15842 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15843 if test -n "$OBJDUMP_FOR_TARGET"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15845 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15848 $as_echo "no
" >&6; }
15853 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15857 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15859 if test $build = $target ; then
15860 OBJDUMP_FOR_TARGET="$2"
15862 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15865 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15869 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15876 if test -n "$with_build_time_tools"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15878 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15879 if test -x $with_build_time_tools/otool; then
15880 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15881 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15883 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15886 $as_echo "no
" >&6; }
15888 elif test $build != $host && test $have_gcc_for_target = yes; then
15889 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15890 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15891 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15894 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15895 # Extract the first word of "otool
", so it can be a program name with args.
15896 set dummy otool; ac_word=$2
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15898 $as_echo_n "checking
for $ac_word...
" >&6; }
15899 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15900 $as_echo_n "(cached
) " >&6
15902 case $OTOOL_FOR_TARGET in
15904 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908 for as_dir in $gcc_cv_tool_dirs
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15925 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15926 if test -n "$OTOOL_FOR_TARGET"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15928 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15931 $as_echo "no
" >&6; }
15936 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15939 if test -n "$OTOOL_FOR_TARGET"; then
15940 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15941 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15942 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15945 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15946 for ncn_progname in otool; do
15947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15948 set dummy ${ncn_progname}; ac_word=$2
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15950 $as_echo_n "checking
for $ac_word...
" >&6; }
15951 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15952 $as_echo_n "(cached
) " >&6
15954 if test -n "$OTOOL_FOR_TARGET"; then
15955 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15974 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15975 if test -n "$OTOOL_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15977 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15980 $as_echo "no
" >&6; }
15987 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15988 for ncn_progname in otool; do
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15990 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15991 if test -x $with_build_time_tools/${ncn_progname}; then
15992 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15994 $as_echo "yes" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15998 $as_echo "no
" >&6; }
16003 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16004 for ncn_progname in otool; do
16005 if test -n "$ncn_target_tool_prefix"; then
16006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16009 $as_echo_n "checking
for $ac_word...
" >&6; }
16010 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16011 $as_echo_n "(cached
) " >&6
16013 if test -n "$OTOOL_FOR_TARGET"; then
16014 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16033 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16034 if test -n "$OTOOL_FOR_TARGET"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16036 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16039 $as_echo "no
" >&6; }
16044 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16046 set dummy ${ncn_progname}; ac_word=$2
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16048 $as_echo_n "checking
for $ac_word...
" >&6; }
16049 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16050 $as_echo_n "(cached
) " >&6
16052 if test -n "$OTOOL_FOR_TARGET"; then
16053 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056 for as_dir in $PATH
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
16061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16072 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16073 if test -n "$OTOOL_FOR_TARGET"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16075 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16078 $as_echo "no
" >&6; }
16083 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16087 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16089 if test $build = $target ; then
16090 OTOOL_FOR_TARGET="$2"
16092 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16095 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16099 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16106 if test -n "$with_build_time_tools"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16108 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16109 if test -x $with_build_time_tools/ranlib; then
16110 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16111 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16113 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16116 $as_echo "no
" >&6; }
16118 elif test $build != $host && test $have_gcc_for_target = yes; then
16119 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16120 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16121 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16124 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16125 # Extract the first word of "ranlib
", so it can be a program name with args.
16126 set dummy ranlib; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16128 $as_echo_n "checking
for $ac_word...
" >&6; }
16129 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16130 $as_echo_n "(cached
) " >&6
16132 case $RANLIB_FOR_TARGET in
16134 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $gcc_cv_tool_dirs
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16144 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16155 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16156 if test -n "$RANLIB_FOR_TARGET"; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16158 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16161 $as_echo "no
" >&6; }
16166 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16169 if test -n "$RANLIB_FOR_TARGET"; then
16170 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16171 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16172 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16175 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16176 for ncn_progname in ranlib; do
16177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16178 set dummy ${ncn_progname}; ac_word=$2
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16180 $as_echo_n "checking
for $ac_word...
" >&6; }
16181 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16182 $as_echo_n "(cached
) " >&6
16184 if test -n "$RANLIB_FOR_TARGET"; then
16185 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16194 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16204 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16205 if test -n "$RANLIB_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16207 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16210 $as_echo "no
" >&6; }
16217 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16218 for ncn_progname in ranlib; do
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16220 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16221 if test -x $with_build_time_tools/${ncn_progname}; then
16222 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16224 $as_echo "yes" >&6; }
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16228 $as_echo "no
" >&6; }
16233 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16234 for ncn_progname in ranlib; do
16235 if test -n "$ncn_target_tool_prefix"; then
16236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16239 $as_echo_n "checking
for $ac_word...
" >&6; }
16240 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16241 $as_echo_n "(cached
) " >&6
16243 if test -n "$RANLIB_FOR_TARGET"; then
16244 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $PATH
16250 test -z "$as_dir" && as_dir=.
16251 for ac_exec_ext in '' $ac_executable_extensions; do
16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16253 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16263 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16264 if test -n "$RANLIB_FOR_TARGET"; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16266 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16269 $as_echo "no
" >&6; }
16274 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16276 set dummy ${ncn_progname}; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16278 $as_echo_n "checking
for $ac_word...
" >&6; }
16279 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16280 $as_echo_n "(cached
) " >&6
16282 if test -n "$RANLIB_FOR_TARGET"; then
16283 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16302 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16303 if test -n "$RANLIB_FOR_TARGET"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16305 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16308 $as_echo "no
" >&6; }
16313 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16317 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16319 if test $build = $target ; then
16320 RANLIB_FOR_TARGET="$2"
16322 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16325 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16329 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16336 if test -n "$with_build_time_tools"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16338 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16339 if test -x $with_build_time_tools/readelf; then
16340 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16341 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16343 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16346 $as_echo "no
" >&6; }
16348 elif test $build != $host && test $have_gcc_for_target = yes; then
16349 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16350 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16351 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16354 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16355 # Extract the first word of "readelf
", so it can be a program name with args.
16356 set dummy readelf; ac_word=$2
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16358 $as_echo_n "checking
for $ac_word...
" >&6; }
16359 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16360 $as_echo_n "(cached
) " >&6
16362 case $READELF_FOR_TARGET in
16364 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368 for as_dir in $gcc_cv_tool_dirs
16371 test -z "$as_dir" && as_dir=.
16372 for ac_exec_ext in '' $ac_executable_extensions; do
16373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16374 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16375 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16385 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16386 if test -n "$READELF_FOR_TARGET"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16388 $as_echo "$READELF_FOR_TARGET" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16391 $as_echo "no
" >&6; }
16396 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16399 if test -n "$READELF_FOR_TARGET"; then
16400 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16401 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16402 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16405 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16406 for ncn_progname in readelf; do
16407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16408 set dummy ${ncn_progname}; ac_word=$2
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16410 $as_echo_n "checking
for $ac_word...
" >&6; }
16411 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16412 $as_echo_n "(cached
) " >&6
16414 if test -n "$READELF_FOR_TARGET"; then
16415 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16418 for as_dir in $PATH
16421 test -z "$as_dir" && as_dir=.
16422 for ac_exec_ext in '' $ac_executable_extensions; do
16423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16424 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16425 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16434 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16435 if test -n "$READELF_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16437 $as_echo "$READELF_FOR_TARGET" >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16440 $as_echo "no
" >&6; }
16447 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16448 for ncn_progname in readelf; do
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16450 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16451 if test -x $with_build_time_tools/${ncn_progname}; then
16452 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16454 $as_echo "yes" >&6; }
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16458 $as_echo "no
" >&6; }
16463 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16464 for ncn_progname in readelf; do
16465 if test -n "$ncn_target_tool_prefix"; then
16466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16469 $as_echo_n "checking
for $ac_word...
" >&6; }
16470 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16471 $as_echo_n "(cached
) " >&6
16473 if test -n "$READELF_FOR_TARGET"; then
16474 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $PATH
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16483 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16493 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16494 if test -n "$READELF_FOR_TARGET"; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16496 $as_echo "$READELF_FOR_TARGET" >&6; }
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16499 $as_echo "no
" >&6; }
16504 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16506 set dummy ${ncn_progname}; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16508 $as_echo_n "checking
for $ac_word...
" >&6; }
16509 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16510 $as_echo_n "(cached
) " >&6
16512 if test -n "$READELF_FOR_TARGET"; then
16513 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16532 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16533 if test -n "$READELF_FOR_TARGET"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16535 $as_echo "$READELF_FOR_TARGET" >&6; }
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16538 $as_echo "no
" >&6; }
16543 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16547 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16549 if test $build = $target ; then
16550 READELF_FOR_TARGET="$2"
16552 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16555 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16559 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16566 if test -n "$with_build_time_tools"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16568 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16569 if test -x $with_build_time_tools/strip; then
16570 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16571 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16573 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16576 $as_echo "no
" >&6; }
16578 elif test $build != $host && test $have_gcc_for_target = yes; then
16579 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16580 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16581 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16584 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16585 # Extract the first word of "strip
", so it can be a program name with args.
16586 set dummy strip; ac_word=$2
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16588 $as_echo_n "checking
for $ac_word...
" >&6; }
16589 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16590 $as_echo_n "(cached
) " >&6
16592 case $STRIP_FOR_TARGET in
16594 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598 for as_dir in $gcc_cv_tool_dirs
16601 test -z "$as_dir" && as_dir=.
16602 for ac_exec_ext in '' $ac_executable_extensions; do
16603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16604 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16615 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16616 if test -n "$STRIP_FOR_TARGET"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16618 $as_echo "$STRIP_FOR_TARGET" >&6; }
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16621 $as_echo "no
" >&6; }
16626 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16629 if test -n "$STRIP_FOR_TARGET"; then
16630 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16631 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16632 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16635 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16636 for ncn_progname in strip; do
16637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16638 set dummy ${ncn_progname}; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16640 $as_echo_n "checking
for $ac_word...
" >&6; }
16641 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16642 $as_echo_n "(cached
) " >&6
16644 if test -n "$STRIP_FOR_TARGET"; then
16645 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16651 test -z "$as_dir" && as_dir=.
16652 for ac_exec_ext in '' $ac_executable_extensions; do
16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16664 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16665 if test -n "$STRIP_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16667 $as_echo "$STRIP_FOR_TARGET" >&6; }
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16670 $as_echo "no
" >&6; }
16677 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16678 for ncn_progname in strip; do
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16680 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16681 if test -x $with_build_time_tools/${ncn_progname}; then
16682 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16684 $as_echo "yes" >&6; }
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16688 $as_echo "no
" >&6; }
16693 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16694 for ncn_progname in strip; do
16695 if test -n "$ncn_target_tool_prefix"; then
16696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16699 $as_echo_n "checking
for $ac_word...
" >&6; }
16700 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16701 $as_echo_n "(cached
) " >&6
16703 if test -n "$STRIP_FOR_TARGET"; then
16704 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16723 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16724 if test -n "$STRIP_FOR_TARGET"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16726 $as_echo "$STRIP_FOR_TARGET" >&6; }
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16729 $as_echo "no
" >&6; }
16734 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16736 set dummy ${ncn_progname}; ac_word=$2
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16738 $as_echo_n "checking
for $ac_word...
" >&6; }
16739 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16740 $as_echo_n "(cached
) " >&6
16742 if test -n "$STRIP_FOR_TARGET"; then
16743 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16749 test -z "$as_dir" && as_dir=.
16750 for ac_exec_ext in '' $ac_executable_extensions; do
16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16753 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16762 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16763 if test -n "$STRIP_FOR_TARGET"; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16765 $as_echo "$STRIP_FOR_TARGET" >&6; }
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16768 $as_echo "no
" >&6; }
16773 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16777 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16779 if test $build = $target ; then
16780 STRIP_FOR_TARGET="$2"
16782 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16785 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16789 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16796 if test -n "$with_build_time_tools"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16798 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16799 if test -x $with_build_time_tools/windres; then
16800 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16801 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16803 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16806 $as_echo "no
" >&6; }
16808 elif test $build != $host && test $have_gcc_for_target = yes; then
16809 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16810 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16811 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16814 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16815 # Extract the first word of "windres
", so it can be a program name with args.
16816 set dummy windres; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16818 $as_echo_n "checking
for $ac_word...
" >&6; }
16819 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16820 $as_echo_n "(cached
) " >&6
16822 case $WINDRES_FOR_TARGET in
16824 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $gcc_cv_tool_dirs
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16834 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16845 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16846 if test -n "$WINDRES_FOR_TARGET"; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16848 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16851 $as_echo "no
" >&6; }
16856 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16859 if test -n "$WINDRES_FOR_TARGET"; then
16860 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16861 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16862 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16865 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16866 for ncn_progname in windres; do
16867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16868 set dummy ${ncn_progname}; ac_word=$2
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16870 $as_echo_n "checking
for $ac_word...
" >&6; }
16871 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16872 $as_echo_n "(cached
) " >&6
16874 if test -n "$WINDRES_FOR_TARGET"; then
16875 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16881 test -z "$as_dir" && as_dir=.
16882 for ac_exec_ext in '' $ac_executable_extensions; do
16883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16884 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16885 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16894 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16895 if test -n "$WINDRES_FOR_TARGET"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16897 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16900 $as_echo "no
" >&6; }
16907 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16908 for ncn_progname in windres; do
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16910 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16911 if test -x $with_build_time_tools/${ncn_progname}; then
16912 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16914 $as_echo "yes" >&6; }
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16918 $as_echo "no
" >&6; }
16923 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16924 for ncn_progname in windres; do
16925 if test -n "$ncn_target_tool_prefix"; then
16926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16927 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16929 $as_echo_n "checking
for $ac_word...
" >&6; }
16930 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16931 $as_echo_n "(cached
) " >&6
16933 if test -n "$WINDRES_FOR_TARGET"; then
16934 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16953 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16954 if test -n "$WINDRES_FOR_TARGET"; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16956 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16959 $as_echo "no
" >&6; }
16964 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16966 set dummy ${ncn_progname}; ac_word=$2
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16968 $as_echo_n "checking
for $ac_word...
" >&6; }
16969 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16970 $as_echo_n "(cached
) " >&6
16972 if test -n "$WINDRES_FOR_TARGET"; then
16973 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in $PATH
16979 test -z "$as_dir" && as_dir=.
16980 for ac_exec_ext in '' $ac_executable_extensions; do
16981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16982 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16992 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16993 if test -n "$WINDRES_FOR_TARGET"; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16995 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16998 $as_echo "no
" >&6; }
17003 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17007 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17009 if test $build = $target ; then
17010 WINDRES_FOR_TARGET="$2"
17012 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17015 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17019 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17026 if test -n "$with_build_time_tools"; then
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17028 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17029 if test -x $with_build_time_tools/windmc; then
17030 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17031 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17033 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17036 $as_echo "no
" >&6; }
17038 elif test $build != $host && test $have_gcc_for_target = yes; then
17039 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17040 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17041 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17044 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17045 # Extract the first word of "windmc
", so it can be a program name with args.
17046 set dummy windmc; ac_word=$2
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17048 $as_echo_n "checking
for $ac_word...
" >&6; }
17049 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17050 $as_echo_n "(cached
) " >&6
17052 case $WINDMC_FOR_TARGET in
17054 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $gcc_cv_tool_dirs
17061 test -z "$as_dir" && as_dir=.
17062 for ac_exec_ext in '' $ac_executable_extensions; do
17063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17064 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17075 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17076 if test -n "$WINDMC_FOR_TARGET"; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17078 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17081 $as_echo "no
" >&6; }
17086 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17089 if test -n "$WINDMC_FOR_TARGET"; then
17090 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17091 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17092 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17095 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17096 for ncn_progname in windmc; do
17097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17098 set dummy ${ncn_progname}; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17100 $as_echo_n "checking
for $ac_word...
" >&6; }
17101 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17102 $as_echo_n "(cached
) " >&6
17104 if test -n "$WINDMC_FOR_TARGET"; then
17105 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17111 test -z "$as_dir" && as_dir=.
17112 for ac_exec_ext in '' $ac_executable_extensions; do
17113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17115 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17124 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17125 if test -n "$WINDMC_FOR_TARGET"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17127 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17130 $as_echo "no
" >&6; }
17137 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17138 for ncn_progname in windmc; do
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17140 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17141 if test -x $with_build_time_tools/${ncn_progname}; then
17142 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17144 $as_echo "yes" >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17148 $as_echo "no
" >&6; }
17153 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17154 for ncn_progname in windmc; do
17155 if test -n "$ncn_target_tool_prefix"; then
17156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17159 $as_echo_n "checking
for $ac_word...
" >&6; }
17160 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17161 $as_echo_n "(cached
) " >&6
17163 if test -n "$WINDMC_FOR_TARGET"; then
17164 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17170 test -z "$as_dir" && as_dir=.
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17183 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17184 if test -n "$WINDMC_FOR_TARGET"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17186 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17189 $as_echo "no
" >&6; }
17194 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17196 set dummy ${ncn_progname}; ac_word=$2
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17198 $as_echo_n "checking
for $ac_word...
" >&6; }
17199 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17200 $as_echo_n "(cached
) " >&6
17202 if test -n "$WINDMC_FOR_TARGET"; then
17203 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206 for as_dir in $PATH
17209 test -z "$as_dir" && as_dir=.
17210 for ac_exec_ext in '' $ac_executable_extensions; do
17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17212 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17213 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17222 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17223 if test -n "$WINDMC_FOR_TARGET"; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17225 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17228 $as_echo "no
" >&6; }
17233 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17237 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17239 if test $build = $target ; then
17240 WINDMC_FOR_TARGET="$2"
17242 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17245 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17249 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17253 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17256 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17257 if test "x
${build}" != "x
${host}" ; then
17258 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17259 # We already found the complete path
17260 ac_dir=`dirname $AR_FOR_TARGET`
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17262 $as_echo "pre-installed
in $ac_dir" >&6; }
17264 # Canadian cross, just use what we found
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17266 $as_echo "pre-installed
" >&6; }
17270 case " ${configdirs} " in
17275 if test $ok = yes; then
17276 # An in-tree tool is available and we can use it
17277 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17279 $as_echo "just compiled
" >&6; }
17280 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17281 # We already found the complete path
17282 ac_dir=`dirname $AR_FOR_TARGET`
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17284 $as_echo "pre-installed
in $ac_dir" >&6; }
17285 elif test "x
$target" = "x
$host"; then
17286 # We can use an host tool
17287 AR_FOR_TARGET='$(AR)'
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17289 $as_echo "host tool
" >&6; }
17291 # We need a cross tool
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17293 $as_echo "pre-installed
" >&6; }
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17298 $as_echo_n "checking where to
find the target as...
" >&6; }
17299 if test "x
${build}" != "x
${host}" ; then
17300 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17301 # We already found the complete path
17302 ac_dir=`dirname $AS_FOR_TARGET`
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17304 $as_echo "pre-installed
in $ac_dir" >&6; }
17306 # Canadian cross, just use what we found
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17308 $as_echo "pre-installed
" >&6; }
17312 case " ${configdirs} " in
17317 if test $ok = yes; then
17318 # An in-tree tool is available and we can use it
17319 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17321 $as_echo "just compiled
" >&6; }
17322 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $AS_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17326 $as_echo "pre-installed
in $ac_dir" >&6; }
17327 elif test "x
$target" = "x
$host"; then
17328 # We can use an host tool
17329 AS_FOR_TARGET='$(AS)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17331 $as_echo "host tool
" >&6; }
17333 # We need a cross tool
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17335 $as_echo "pre-installed
" >&6; }
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17340 $as_echo_n "checking where to
find the target cc...
" >&6; }
17341 if test "x
${build}" != "x
${host}" ; then
17342 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $CC_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17346 $as_echo "pre-installed
in $ac_dir" >&6; }
17348 # Canadian cross, just use what we found
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17350 $as_echo "pre-installed
" >&6; }
17354 case " ${configdirs} " in
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17363 $as_echo "just compiled
" >&6; }
17364 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17365 # We already found the complete path
17366 ac_dir=`dirname $CC_FOR_TARGET`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17368 $as_echo "pre-installed
in $ac_dir" >&6; }
17369 elif test "x
$target" = "x
$host"; then
17370 # We can use an host tool
17371 CC_FOR_TARGET='$(CC)'
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17373 $as_echo "host tool
" >&6; }
17375 # We need a cross tool
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17377 $as_echo "pre-installed
" >&6; }
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17382 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17383 if test "x
${build}" != "x
${host}" ; then
17384 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17385 # We already found the complete path
17386 ac_dir=`dirname $CXX_FOR_TARGET`
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17388 $as_echo "pre-installed
in $ac_dir" >&6; }
17390 # Canadian cross, just use what we found
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17392 $as_echo "pre-installed
" >&6; }
17396 case " ${configdirs} " in
17400 case ,${enable_languages}, in
17404 if test $ok = yes; then
17405 # An in-tree tool is available and we can use it
17406 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'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17408 $as_echo "just compiled
" >&6; }
17409 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17410 # We already found the complete path
17411 ac_dir=`dirname $CXX_FOR_TARGET`
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17413 $as_echo "pre-installed
in $ac_dir" >&6; }
17414 elif test "x
$target" = "x
$host"; then
17415 # We can use an host tool
17416 CXX_FOR_TARGET='$(CXX)'
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17418 $as_echo "host tool
" >&6; }
17420 # We need a cross tool
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17422 $as_echo "pre-installed
" >&6; }
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17427 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17428 if test "x
${build}" != "x
${host}" ; then
17429 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17430 # We already found the complete path
17431 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17433 $as_echo "pre-installed
in $ac_dir" >&6; }
17435 # Canadian cross, just use what we found
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17437 $as_echo "pre-installed
" >&6; }
17441 case " ${configdirs} " in
17445 case ,${enable_languages}, in
17449 if test $ok = yes; then
17450 # An in-tree tool is available and we can use it
17451 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'
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17453 $as_echo "just compiled
" >&6; }
17454 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17455 # We already found the complete path
17456 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17458 $as_echo "pre-installed
in $ac_dir" >&6; }
17459 elif test "x
$target" = "x
$host"; then
17460 # We can use an host tool
17461 RAW_CXX_FOR_TARGET='$(CXX)'
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17463 $as_echo "host tool
" >&6; }
17465 # We need a cross tool
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17467 $as_echo "pre-installed
" >&6; }
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17472 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17473 if test "x
${build}" != "x
${host}" ; then
17474 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17475 # We already found the complete path
17476 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17478 $as_echo "pre-installed
in $ac_dir" >&6; }
17480 # Canadian cross, just use what we found
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17482 $as_echo "pre-installed
" >&6; }
17486 case " ${configdirs} " in
17491 if test $ok = yes; then
17492 # An in-tree tool is available and we can use it
17493 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17495 $as_echo "just compiled
" >&6; }
17496 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17497 # We already found the complete path
17498 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17500 $as_echo "pre-installed
in $ac_dir" >&6; }
17501 elif test "x
$target" = "x
$host"; then
17502 # We can use an host tool
17503 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17505 $as_echo "host tool
" >&6; }
17507 # We need a cross tool
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17509 $as_echo "pre-installed
" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17514 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17515 if test "x
${build}" != "x
${host}" ; then
17516 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17517 # We already found the complete path
17518 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17520 $as_echo "pre-installed
in $ac_dir" >&6; }
17522 # Canadian cross, just use what we found
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17524 $as_echo "pre-installed
" >&6; }
17527 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17528 # We already found the complete path
17529 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17531 $as_echo "pre-installed
in $ac_dir" >&6; }
17532 elif test "x
$target" = "x
$host"; then
17533 # We can use an host tool
17534 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17536 $as_echo "host tool
" >&6; }
17538 # We need a cross tool
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17540 $as_echo "pre-installed
" >&6; }
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17545 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17546 if test "x
${build}" != "x
${host}" ; then
17547 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17548 # We already found the complete path
17549 ac_dir=`dirname $GCC_FOR_TARGET`
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17551 $as_echo "pre-installed
in $ac_dir" >&6; }
17553 # Canadian cross, just use what we found
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17555 $as_echo "pre-installed
" >&6; }
17559 case " ${configdirs} " in
17564 if test $ok = yes; then
17565 # An in-tree tool is available and we can use it
17566 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17568 $as_echo "just compiled
" >&6; }
17569 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17570 # We already found the complete path
17571 ac_dir=`dirname $GCC_FOR_TARGET`
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17573 $as_echo "pre-installed
in $ac_dir" >&6; }
17574 elif test "x
$target" = "x
$host"; then
17575 # We can use an host tool
17576 GCC_FOR_TARGET='$()'
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17578 $as_echo "host tool
" >&6; }
17580 # We need a cross tool
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17582 $as_echo "pre-installed
" >&6; }
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17587 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17588 if test "x
${build}" != "x
${host}" ; then
17589 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17590 # We already found the complete path
17591 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17593 $as_echo "pre-installed
in $ac_dir" >&6; }
17595 # Canadian cross, just use what we found
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17597 $as_echo "pre-installed
" >&6; }
17601 case " ${configdirs} " in
17605 case ,${enable_languages}, in
17609 if test $ok = yes; then
17610 # An in-tree tool is available and we can use it
17611 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17613 $as_echo "just compiled
" >&6; }
17614 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17615 # We already found the complete path
17616 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17618 $as_echo "pre-installed
in $ac_dir" >&6; }
17619 elif test "x
$target" = "x
$host"; then
17620 # We can use an host tool
17621 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17623 $as_echo "host tool
" >&6; }
17625 # We need a cross tool
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17627 $as_echo "pre-installed
" >&6; }
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17632 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17633 if test "x
${build}" != "x
${host}" ; then
17634 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17635 # We already found the complete path
17636 ac_dir=`dirname $GOC_FOR_TARGET`
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17638 $as_echo "pre-installed
in $ac_dir" >&6; }
17640 # Canadian cross, just use what we found
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17642 $as_echo "pre-installed
" >&6; }
17646 case " ${configdirs} " in
17650 case ,${enable_languages}, in
17654 if test $ok = yes; then
17655 # An in-tree tool is available and we can use it
17656 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17658 $as_echo "just compiled
" >&6; }
17659 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17660 # We already found the complete path
17661 ac_dir=`dirname $GOC_FOR_TARGET`
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17663 $as_echo "pre-installed
in $ac_dir" >&6; }
17664 elif test "x
$target" = "x
$host"; then
17665 # We can use an host tool
17666 GOC_FOR_TARGET='$(GOC)'
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17668 $as_echo "host tool
" >&6; }
17670 # We need a cross tool
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17672 $as_echo "pre-installed
" >&6; }
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17677 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17678 if test "x
${build}" != "x
${host}" ; then
17679 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17680 # We already found the complete path
17681 ac_dir=`dirname $GDC_FOR_TARGET`
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17683 $as_echo "pre-installed
in $ac_dir" >&6; }
17685 # Canadian cross, just use what we found
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17687 $as_echo "pre-installed
" >&6; }
17691 case " ${configdirs} " in
17695 case ,${enable_languages}, in
17699 if test $ok = yes; then
17700 # An in-tree tool is available and we can use it
17701 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17703 $as_echo "just compiled
" >&6; }
17704 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17705 # We already found the complete path
17706 ac_dir=`dirname $GDC_FOR_TARGET`
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17708 $as_echo "pre-installed
in $ac_dir" >&6; }
17709 elif test "x
$target" = "x
$host"; then
17710 # We can use an host tool
17711 GDC_FOR_TARGET='$(GDC)'
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17713 $as_echo "host tool
" >&6; }
17715 # We need a cross tool
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17717 $as_echo "pre-installed
" >&6; }
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17722 $as_echo_n "checking where to
find the target ld...
" >&6; }
17723 if test "x
${build}" != "x
${host}" ; then
17724 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17725 # We already found the complete path
17726 ac_dir=`dirname $LD_FOR_TARGET`
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17728 $as_echo "pre-installed
in $ac_dir" >&6; }
17730 # Canadian cross, just use what we found
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17732 $as_echo "pre-installed
" >&6; }
17736 case " ${configdirs} " in
17741 if test $ok = yes; then
17742 # An in-tree tool is available and we can use it
17743 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17745 $as_echo "just compiled
" >&6; }
17746 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17747 # We already found the complete path
17748 ac_dir=`dirname $LD_FOR_TARGET`
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17750 $as_echo "pre-installed
in $ac_dir" >&6; }
17751 elif test "x
$target" = "x
$host"; then
17752 # We can use an host tool
17753 LD_FOR_TARGET='$(LD)'
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17755 $as_echo "host tool
" >&6; }
17757 # We need a cross tool
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17759 $as_echo "pre-installed
" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17764 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17765 if test "x
${build}" != "x
${host}" ; then
17766 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17767 # We already found the complete path
17768 ac_dir=`dirname $LIPO_FOR_TARGET`
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17770 $as_echo "pre-installed
in $ac_dir" >&6; }
17772 # Canadian cross, just use what we found
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17774 $as_echo "pre-installed
" >&6; }
17777 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $LIPO_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17781 $as_echo "pre-installed
in $ac_dir" >&6; }
17782 elif test "x
$target" = "x
$host"; then
17783 # We can use an host tool
17784 LIPO_FOR_TARGET='$(LIPO)'
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17786 $as_echo "host tool
" >&6; }
17788 # We need a cross tool
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17790 $as_echo "pre-installed
" >&6; }
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17795 $as_echo_n "checking where to
find the target nm...
" >&6; }
17796 if test "x
${build}" != "x
${host}" ; then
17797 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $NM_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17801 $as_echo "pre-installed
in $ac_dir" >&6; }
17803 # Canadian cross, just use what we found
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17805 $as_echo "pre-installed
" >&6; }
17809 case " ${configdirs} " in
17814 if test $ok = yes; then
17815 # An in-tree tool is available and we can use it
17816 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17818 $as_echo "just compiled
" >&6; }
17819 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $NM_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17823 $as_echo "pre-installed
in $ac_dir" >&6; }
17824 elif test "x
$target" = "x
$host"; then
17825 # We can use an host tool
17826 NM_FOR_TARGET='$(NM)'
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17828 $as_echo "host tool
" >&6; }
17830 # We need a cross tool
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17832 $as_echo "pre-installed
" >&6; }
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17837 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17838 if test "x
${build}" != "x
${host}" ; then
17839 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17843 $as_echo "pre-installed
in $ac_dir" >&6; }
17845 # Canadian cross, just use what we found
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17847 $as_echo "pre-installed
" >&6; }
17851 case " ${configdirs} " in
17856 if test $ok = yes; then
17857 # An in-tree tool is available and we can use it
17858 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17860 $as_echo "just compiled
" >&6; }
17861 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17862 # We already found the complete path
17863 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17865 $as_echo "pre-installed
in $ac_dir" >&6; }
17866 elif test "x
$target" = "x
$host"; then
17867 # We can use an host tool
17868 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17870 $as_echo "host tool
" >&6; }
17872 # We need a cross tool
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17874 $as_echo "pre-installed
" >&6; }
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17879 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17880 if test "x
${build}" != "x
${host}" ; then
17881 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17885 $as_echo "pre-installed
in $ac_dir" >&6; }
17887 # Canadian cross, just use what we found
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17889 $as_echo "pre-installed
" >&6; }
17893 case " ${configdirs} " in
17898 if test $ok = yes; then
17899 # An in-tree tool is available and we can use it
17900 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17902 $as_echo "just compiled
" >&6; }
17903 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17907 $as_echo "pre-installed
in $ac_dir" >&6; }
17908 elif test "x
$target" = "x
$host"; then
17909 # We can use an host tool
17910 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17912 $as_echo "host tool
" >&6; }
17914 # We need a cross tool
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17916 $as_echo "pre-installed
" >&6; }
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17921 $as_echo_n "checking where to
find the target otool...
" >&6; }
17922 if test "x
${build}" != "x
${host}" ; then
17923 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17924 # We already found the complete path
17925 ac_dir=`dirname $OTOOL_FOR_TARGET`
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17927 $as_echo "pre-installed
in $ac_dir" >&6; }
17929 # Canadian cross, just use what we found
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17931 $as_echo "pre-installed
" >&6; }
17934 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $OTOOL_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17938 $as_echo "pre-installed
in $ac_dir" >&6; }
17939 elif test "x
$target" = "x
$host"; then
17940 # We can use an host tool
17941 OTOOL_FOR_TARGET='$(OTOOL)'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17943 $as_echo "host tool
" >&6; }
17945 # We need a cross tool
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17947 $as_echo "pre-installed
" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
17952 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
17953 if test "x
${build}" != "x
${host}" ; then
17954 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17955 # We already found the complete path
17956 ac_dir=`dirname $RANLIB_FOR_TARGET`
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17958 $as_echo "pre-installed
in $ac_dir" >&6; }
17960 # Canadian cross, just use what we found
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17962 $as_echo "pre-installed
" >&6; }
17966 case " ${configdirs} " in
17971 if test $ok = yes; then
17972 # An in-tree tool is available and we can use it
17973 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17975 $as_echo "just compiled
" >&6; }
17976 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17977 # We already found the complete path
17978 ac_dir=`dirname $RANLIB_FOR_TARGET`
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17980 $as_echo "pre-installed
in $ac_dir" >&6; }
17981 elif test "x
$target" = "x
$host"; then
17982 # We can use an host tool
17983 RANLIB_FOR_TARGET='$(RANLIB)'
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17985 $as_echo "host tool
" >&6; }
17987 # We need a cross tool
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17989 $as_echo "pre-installed
" >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
17994 $as_echo_n "checking where to
find the target readelf...
" >&6; }
17995 if test "x
${build}" != "x
${host}" ; then
17996 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
17997 # We already found the complete path
17998 ac_dir=`dirname $READELF_FOR_TARGET`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18000 $as_echo "pre-installed
in $ac_dir" >&6; }
18002 # Canadian cross, just use what we found
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18004 $as_echo "pre-installed
" >&6; }
18008 case " ${configdirs} " in
18013 if test $ok = yes; then
18014 # An in-tree tool is available and we can use it
18015 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18017 $as_echo "just compiled
" >&6; }
18018 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18019 # We already found the complete path
18020 ac_dir=`dirname $READELF_FOR_TARGET`
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18022 $as_echo "pre-installed
in $ac_dir" >&6; }
18023 elif test "x
$target" = "x
$host"; then
18024 # We can use an host tool
18025 READELF_FOR_TARGET='$(READELF)'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18027 $as_echo "host tool
" >&6; }
18029 # We need a cross tool
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18031 $as_echo "pre-installed
" >&6; }
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18036 $as_echo_n "checking where to
find the target strip...
" >&6; }
18037 if test "x
${build}" != "x
${host}" ; then
18038 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18039 # We already found the complete path
18040 ac_dir=`dirname $STRIP_FOR_TARGET`
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18042 $as_echo "pre-installed
in $ac_dir" >&6; }
18044 # Canadian cross, just use what we found
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18046 $as_echo "pre-installed
" >&6; }
18050 case " ${configdirs} " in
18055 if test $ok = yes; then
18056 # An in-tree tool is available and we can use it
18057 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18059 $as_echo "just compiled
" >&6; }
18060 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18061 # We already found the complete path
18062 ac_dir=`dirname $STRIP_FOR_TARGET`
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18064 $as_echo "pre-installed
in $ac_dir" >&6; }
18065 elif test "x
$target" = "x
$host"; then
18066 # We can use an host tool
18067 STRIP_FOR_TARGET='$(STRIP)'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18069 $as_echo "host tool
" >&6; }
18071 # We need a cross tool
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18073 $as_echo "pre-installed
" >&6; }
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18078 $as_echo_n "checking where to
find the target windres...
" >&6; }
18079 if test "x
${build}" != "x
${host}" ; then
18080 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18081 # We already found the complete path
18082 ac_dir=`dirname $WINDRES_FOR_TARGET`
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18084 $as_echo "pre-installed
in $ac_dir" >&6; }
18086 # Canadian cross, just use what we found
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18088 $as_echo "pre-installed
" >&6; }
18092 case " ${configdirs} " in
18097 if test $ok = yes; then
18098 # An in-tree tool is available and we can use it
18099 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18101 $as_echo "just compiled
" >&6; }
18102 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18103 # We already found the complete path
18104 ac_dir=`dirname $WINDRES_FOR_TARGET`
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18106 $as_echo "pre-installed
in $ac_dir" >&6; }
18107 elif test "x
$target" = "x
$host"; then
18108 # We can use an host tool
18109 WINDRES_FOR_TARGET='$(WINDRES)'
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18111 $as_echo "host tool
" >&6; }
18113 # We need a cross tool
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18115 $as_echo "pre-installed
" >&6; }
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18120 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18121 if test "x
${build}" != "x
${host}" ; then
18122 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $WINDMC_FOR_TARGET`
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18126 $as_echo "pre-installed
in $ac_dir" >&6; }
18128 # Canadian cross, just use what we found
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18130 $as_echo "pre-installed
" >&6; }
18134 case " ${configdirs} " in
18139 if test $ok = yes; then
18140 # An in-tree tool is available and we can use it
18141 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18143 $as_echo "just compiled
" >&6; }
18144 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18145 # We already found the complete path
18146 ac_dir=`dirname $WINDMC_FOR_TARGET`
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18148 $as_echo "pre-installed
in $ac_dir" >&6; }
18149 elif test "x
$target" = "x
$host"; then
18150 # We can use an host tool
18151 WINDMC_FOR_TARGET='$(WINDMC)'
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18153 $as_echo "host tool
" >&6; }
18155 # We need a cross tool
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18157 $as_echo "pre-installed
" >&6; }
18165 # Certain tools may need extra flags.
18166 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18167 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18168 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18170 # When building target libraries, except in a Canadian cross, we use
18171 # the same toolchain as the compiler we just built.
18172 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18173 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18174 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18175 if test $host = $build; then
18176 case " $configdirs " in
18178 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18179 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18180 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18190 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18191 # Check whether --enable-maintainer-mode was given.
18192 if test "${enable_maintainer_mode+set}" = set; then :
18193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18195 USE_MAINTAINER_MODE=no
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18199 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18202 if test "$USE_MAINTAINER_MODE" = yes; then
18203 MAINTAINER_MODE_TRUE=
18204 MAINTAINER_MODE_FALSE='#'
18206 MAINTAINER_MODE_TRUE='#'
18207 MAINTAINER_MODE_FALSE=
18209 MAINT=$MAINTAINER_MODE_TRUE
18211 # ---------------------
18212 # GCC bootstrap support
18213 # ---------------------
18215 # Stage specific cflags for build.
18220 yes) stage1_cflags="-g -Wa,-J" ;;
18221 *) stage1_cflags="-g -J" ;;
18227 # Enable --enable-checking in stage1 of the compiler.
18228 # Check whether --enable-stage1-checking was given.
18229 if test "${enable_stage1_checking+set}" = set; then :
18230 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18232 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18233 # For --disable-checking or implicit --enable-checking=release, avoid
18234 # setting --enable-checking=gc in the default stage1 checking for LTO
18235 # bootstraps. See PR62077.
18236 case $BUILD_CONFIG in
18238 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18240 stage1_checking=--enable-checking=yes,types;;
18242 if test "x
$enable_checking" = x && \
18243 test -d ${srcdir}/gcc && \
18244 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18245 stage1_checking=--enable-checking=yes,types,extra
18248 stage1_checking=--enable-checking=$enable_checking,types
18254 # Enable -Werror in bootstrap stage2 and later.
18255 # Check whether --enable-werror was given.
18256 if test "${enable_werror+set}" = set; then :
18257 enableval=$enable_werror;
18258 case ${enable_werror} in
18259 yes) stage2_werror_flag="--enable-werror-always" ;;
18260 *) stage2_werror_flag="" ;;
18265 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18266 case $BUILD_CONFIG in
18268 stage2_werror_flag="--enable-werror-always" ;;
18270 stage2_werror_flag="--enable-werror-always" ;;
18279 # Specify what files to not compare during bootstrap.
18281 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18283 hppa*64*-*-hpux*) ;;
18284 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18288 ac_config_files="$ac_config_files Makefile
"
18290 cat >confcache <<\_ACEOF
18291 # This file is a shell script that caches the results of configure
18292 # tests run on this system so they can be shared between configure
18293 # scripts and configure runs, see configure's option --config-cache.
18294 # It is not useful on other systems. If it contains results you don't
18295 # want to keep, you may remove or edit it.
18297 # config.status only pays attention to the cache file if you give it
18298 # the --recheck option to rerun configure.
18300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18302 # following values.
18306 # The following way of writing the cache mishandles newlines in values,
18307 # but we know of no workaround that is simple, portable, and efficient.
18308 # So, we kill variables containing newlines.
18309 # Ultrix sh set writes to stderr and can't be redirected directly,
18310 # and sets the high bit in the cache file unless we assign to the vars.
18312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18313 eval ac_val=\$$ac_var
18317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18318 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18321 _ | IFS | as_nl) ;; #(
18322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18323 *) { eval $ac_var=; unset $ac_var;} ;;
18329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18330 *${as_nl}ac_space=\ *)
18331 # `set' does not quote correctly, so add quotes: double-quote
18332 # substitution turns \\\\ into \\, and sed turns \\ into \.
18335 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18338 # `set' quotes correctly as required by POSIX, so do not add quotes.
18339 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18352 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18353 if test -w "$cache_file"; then
18354 if test "x
$cache_file" != "x
/dev
/null
"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18356 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18357 if test ! -f "$cache_file" || test -h "$cache_file"; then
18358 cat confcache >"$cache_file"
18360 case $cache_file in #(
18362 mv -f confcache "$cache_file"$$ &&
18363 mv -f "$cache_file"$$ "$cache_file" ;; #(
18365 mv -f confcache "$cache_file" ;;
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18371 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18376 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18377 # Let make expand exec_prefix.
18378 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18380 # Transform confdefs.h into DEFS.
18381 # Protect against shell expansion while executing Makefile rules.
18382 # Protect against Makefile macro expansion.
18384 # If the first sed substitution is executed (which looks for macros that
18385 # take arguments), then branch to the quote section. Otherwise,
18386 # look for a macro that doesn't take arguments.
18396 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18398 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18402 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18415 DEFS=`sed -n "$ac_script" confdefs.h`
18421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18422 # 1. Remove the extension, and $U if already installed.
18423 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18426 # will be set to the directory where LIBOBJS objects are built.
18427 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18428 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18430 LIBOBJS=$ac_libobjs
18432 LTLIBOBJS=$ac_ltlibobjs
18436 : "${CONFIG_STATUS=./config.status}"
18438 ac_clean_files_save=$ac_clean_files
18439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18441 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18443 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18445 # Generated by $as_me.
18446 # Run this file to recreate the current configuration.
18447 # Compiler output produced by configure, useful for debugging
18448 # configure, is in config.log if it exists.
18451 ac_cs_recheck=false
18454 SHELL=\${CONFIG_SHELL-$SHELL}
18457 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18458 ## -------------------- ##
18459 ## M4sh Initialization. ##
18460 ## -------------------- ##
18462 # Be more Bourne compatible
18463 DUALCASE=1; export DUALCASE # for MKS sh
18464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18468 # is contrary to our usage. Disable this feature.
18469 alias -g '${1+"$@"}'='"$@"'
18470 setopt NO_GLOB_SUBST
18472 case `(set -o) 2>/dev/null` in #(
18484 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18485 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18486 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18487 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18488 # Prefer a ksh shell builtin over an external printf program on Solaris,
18489 # but without wasting forks for bash or zsh.
18490 if test -z "$BASH_VERSION$ZSH_VERSION" \
18491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18492 as_echo
='print -r --'
18493 as_echo_n
='print -rn --'
18494 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18495 as_echo
='printf %s\n'
18496 as_echo_n
='printf %s'
18498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18499 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18500 as_echo_n
='/usr/ucb/echo -n'
18502 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18503 as_echo_n_body
='eval
18507 expr "X$arg" : "X\\(.*\\)$as_nl";
18508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18512 export as_echo_n_body
18513 as_echo_n
='sh -c $as_echo_n_body as_echo'
18515 export as_echo_body
18516 as_echo
='sh -c $as_echo_body as_echo'
18519 # The user is always right.
18520 if test "${PATH_SEPARATOR+set}" != set; then
18522 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18523 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18530 # We need space, tab and new line, in precisely that order. Quoting is
18531 # there to prevent editors from complaining about space-tab.
18532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18533 # splitting by setting IFS to empty value.)
18536 # Find who we are. Look in the path if we contain no directory separator.
18539 *[\\/]* ) as_myself
=$0 ;;
18540 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18541 for as_dir
in $PATH
18544 test -z "$as_dir" && as_dir
=.
18545 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18551 # We did not find ourselves, most probably we were run as `sh COMMAND'
18552 # in which case we are not to be found in the path.
18553 if test "x$as_myself" = x
; then
18556 if test ! -f "$as_myself"; then
18557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18561 # Unset variables that we do not need and which cause bugs (e.g. in
18562 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18563 # suppresses any "Segmentation fault" message there. '((' could
18564 # trigger a bug in pdksh 5.2.14.
18565 for as_var
in BASH_ENV ENV MAIL MAILPATH
18566 do eval test x\
${$as_var+set} = xset \
18567 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18580 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18584 # ----------------------------------------
18585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18587 # script with STATUS, using 1 if that was 0.
18590 as_status
=$1; test $as_status -eq 0 && as_status
=1
18592 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18593 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18595 $as_echo "$as_me: error: $2" >&2
18596 as_fn_exit
$as_status
18600 # as_fn_set_status STATUS
18601 # -----------------------
18602 # Set $? to STATUS, without forking.
18603 as_fn_set_status
()
18606 } # as_fn_set_status
18608 # as_fn_exit STATUS
18609 # -----------------
18610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18614 as_fn_set_status
$1
18620 # Portably unset VAR.
18623 { eval $1=; unset $1;}
18625 as_unset
=as_fn_unset
18626 # as_fn_append VAR VALUE
18627 # ----------------------
18628 # Append the text in VALUE to the end of the definition contained in VAR. Take
18629 # advantage of any shell optimizations that allow amortized linear growth over
18630 # repeated appends, instead of the typical quadratic growth present in naive
18632 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18633 eval 'as_fn_append ()
18644 # as_fn_arith ARG...
18645 # ------------------
18646 # Perform arithmetic evaluation on the ARGs, and store the result in the
18647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18648 # must be portable across $(()) and expr.
18649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18650 eval 'as_fn_arith ()
18657 as_val
=`expr "$@" || test $? -eq 1`
18662 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18663 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18669 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18670 as_basename
=basename
18675 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18681 as_me
=`$as_basename -- "$0" ||
18682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18683 X"$0" : 'X\(//\)$' \| \
18684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18686 sed '/^.*\/\([^/][^/]*\)\/*$/{
18700 # Avoid depending upon Character Ranges.
18701 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18702 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18703 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18704 as_cr_digits
='0123456789'
18705 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18707 ECHO_C
= ECHO_N
= ECHO_T
=
18708 case `echo -n x` in #(((((
18710 case `echo 'xy\c'` in
18711 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18713 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18720 rm -f conf$$ conf$$.exe conf$$.
file
18721 if test -d conf$$.dir
; then
18722 rm -f conf$$.dir
/conf$$.
file
18725 mkdir conf$$.dir
2>/dev
/null
18727 if (echo >conf$$.
file) 2>/dev
/null
; then
18728 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18730 # ... but there are two gotchas:
18731 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18732 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18733 # In both cases, we have to default to `cp -pR'.
18734 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18736 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18744 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18745 rmdir conf$$.dir
2>/dev
/null
18750 # Create "$as_dir" as a directory, including parents if necessary.
18755 -*) as_dir
=.
/$as_dir;;
18757 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18761 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18762 *) as_qdir
=$as_dir;;
18764 as_dirs
="'$as_qdir' $as_dirs"
18765 as_dir
=`$as_dirname -- "$as_dir" ||
18766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18767 X"$as_dir" : 'X\(//\)[^/]' \| \
18768 X"$as_dir" : 'X\(//\)$' \| \
18769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18770 $as_echo X"$as_dir" |
18771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18775 /^X\(\/\/\)[^/].*/{
18788 test -d "$as_dir" && break
18790 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18791 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18795 if mkdir
-p .
2>/dev
/null
; then
18796 as_mkdir_p
='mkdir -p "$as_dir"'
18798 test -d .
/-p && rmdir .
/-p
18803 # as_fn_executable_p FILE
18804 # -----------------------
18805 # Test if FILE is an executable regular file.
18806 as_fn_executable_p
()
18808 test -f "$1" && test -x "$1"
18809 } # as_fn_executable_p
18810 as_test_x
='test -x'
18811 as_executable_p
=as_fn_executable_p
18813 # Sed expression to map a string onto a valid CPP name.
18814 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18816 # Sed expression to map a string onto a valid variable name.
18817 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18821 ## ----------------------------------- ##
18822 ## Main body of $CONFIG_STATUS script. ##
18823 ## ----------------------------------- ##
18825 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18828 # Save the log message, to keep $0 and so on meaningful, and to
18829 # report actual input values of CONFIG_FILES etc. instead of their
18830 # values after options handling.
18832 This file was extended by $as_me, which was
18833 generated by GNU Autoconf 2.69. Invocation command line was
18835 CONFIG_FILES = $CONFIG_FILES
18836 CONFIG_HEADERS = $CONFIG_HEADERS
18837 CONFIG_LINKS = $CONFIG_LINKS
18838 CONFIG_COMMANDS = $CONFIG_COMMANDS
18841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18846 case $ac_config_files in *"
18847 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853 # Files that config.status was made for.
18854 config_files="$ac_config_files"
18858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18860 \`$as_me' instantiates files and other configuration actions
18861 from templates according to the current configuration. Unless the files
18862 and actions are specified as TAGs, all are instantiated by default.
18864 Usage: $0 [OPTION]... [TAG]...
18866 -h, --help print this help, then exit
18867 -V, --version print version number and configuration settings, then exit
18868 --config print configuration, then exit
18869 -q, --quiet, --silent
18870 do not print progress messages
18871 -d, --debug don't remove temporary files
18872 --recheck update $as_me by reconfiguring in the same conditions
18873 --file=FILE[:TEMPLATE]
18874 instantiate the configuration file FILE
18876 Configuration files:
18879 Report bugs to the package provider."
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18886 configured by $0, generated by GNU Autoconf 2.69,
18887 with options \\"\$ac_cs_config\\"
18889 Copyright (C) 2012 Free Software Foundation, Inc.
18890 This config.status script is free software; the Free Software Foundation
18891 gives unlimited permission to copy, distribute and modify it."
18897 test -n "\$AWK" || AWK=awk
18900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18901 # The default lists apply if the user does not specify any file.
18907 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18908 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18912 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18924 # Handling of the options.
18925 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18927 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18928 $as_echo "$ac_cs_version"; exit ;;
18929 --config |
--confi |
--conf |
--con |
--co |
--c )
18930 $as_echo "$ac_cs_config"; exit ;;
18931 --debug |
--debu |
--deb |
--de |
--d |
-d )
18933 --file |
--fil |
--fi |
--f )
18936 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18937 '') as_fn_error $?
"missing file argument" ;;
18939 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18940 ac_need_defaults
=false
;;
18941 --he |
--h |
--help |
--hel |
-h )
18942 $as_echo "$ac_cs_usage"; exit ;;
18943 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18944 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18947 # This is an error.
18948 -*) as_fn_error $?
"unrecognized option: \`$1'
18949 Try \`$0 --help' for more information." ;;
18951 *) as_fn_append ac_config_targets
" $1"
18952 ac_need_defaults
=false
;;
18958 ac_configure_extra_args
=
18960 if $ac_cs_silent; then
18962 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18967 if \$ac_cs_recheck; then
18968 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18971 CONFIG_SHELL='$SHELL'
18972 export CONFIG_SHELL
18977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18982 ## Running $as_me. ##
18988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18992 extrasub_build="$extrasub_build"
18993 extrasub_host="$extrasub_host"
18994 extrasub_target="$extrasub_target"
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19000 # Handling of arguments.
19001 for ac_config_target
in $ac_config_targets
19003 case $ac_config_target in
19004 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19006 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19011 # If the user did not use the arguments to specify the items to instantiate,
19012 # then the envvar interface is used. Set only those that are not.
19013 # We use the long form for the default assignment because of an extremely
19014 # bizarre bug on SunOS 4.1.3.
19015 if $ac_need_defaults; then
19016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19019 # Have a temporary directory for convenience. Make it in the build tree
19020 # simply because there is no reason against having it here, and in addition,
19021 # creating and moving files from /tmp can sometimes cause problems.
19022 # Hook for its removal unless debugging.
19023 # Note that there is a small window in which the directory will not be cleaned:
19024 # after its creation but before its name has been assigned to `$tmp'.
19028 trap 'exit_status=$?
19029 : "${ac_tmp:=$tmp}"
19030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19032 trap 'as_fn_exit 1' 1 2 13 15
19034 # Create a (secure) tmp directory for tmp files.
19037 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19041 tmp
=.
/conf$$
-$RANDOM
19042 (umask 077 && mkdir
"$tmp")
19043 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19046 # Set up the scripts for CONFIG_FILES section.
19047 # No need to generate them if there are no CONFIG_FILES.
19048 # This happens for instance with `./config.status config.h'.
19049 if test -n "$CONFIG_FILES"; then
19051 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19052 ac_cs_awk_getline
=:
19053 ac_cs_awk_pipe_init
=
19054 ac_cs_awk_read_file
='
19055 while ((getline aline < (F[key])) > 0)
19058 ac_cs_awk_pipe_fini
=
19060 ac_cs_awk_getline
=false
19061 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19062 ac_cs_awk_read_file
='
19064 print "cat " F[key] " &&"
19065 '$ac_cs_awk_pipe_init
19066 # The final `:' finishes the AND list.
19067 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19069 ac_cr
=`echo X | tr X '\015'`
19070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19071 # But we know of no other shell where ac_cr would be empty at this
19072 # point, so we can use a bashism as a fallback.
19073 if test "x$ac_cr" = x
; then
19074 eval ac_cr
=\$
\'\\r
\'
19076 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19080 ac_cs_awk_cr
=$ac_cr
19083 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19086 # Create commands to substitute file output variables.
19088 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19089 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19090 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19093 } >conf$
$files.sh
&&
19094 . .
/conf$
$files.sh ||
19095 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19096 rm -f conf$
$files.sh
19099 echo "cat >conf$$subs.awk <<_ACEOF" &&
19100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19102 } >conf$$subs.sh ||
19103 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19106 for ac_last_try in false false false false false :; do
19107 . ./conf$$subs.sh ||
19108 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19110 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19111 if test $ac_delim_n = $ac_delim_num; then
19113 elif $ac_last_try; then
19114 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19116 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19119 rm -f conf$$subs.sh
19121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19122 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19126 s/^/S["/; s
/!.
*/"]=/
19136 s/\(.\{148\}\)..*/\1/
19138 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19143 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19150 s/\(.\{148\}\)..*/\1/
19152 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19156 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19161 ' <conf$$subs.awk | sed '
19166 ' >>$CONFIG_STATUS || ac_write_fail=1
19167 rm -f conf$$subs.awk
19168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19170 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19171 for (key in S) S_is_set[key] = 1
19173 \$ac_cs_awk_pipe_init
19177 nfields = split(line, field, "@
")
19179 len = length(field[1])
19180 for (i = 2; i < nfields; i++) {
19182 keylen = length(key)
19183 if (S_is_set[key]) {
19185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19186 len += length(value) + length(field[++i])
19191 if (nfields == 3 && !substed) {
19193 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19194 \$ac_cs_awk_read_file
19200 \$ac_cs_awk_pipe_fini
19203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19205 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19208 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19209 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19214 # trailing colons and then remove the whole line if VPATH becomes empty
19215 # (actually we leave an empty line to preserve line numbers).
19216 if test "x
$srcdir" = x.; then
19217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19236 fi # test -n "$CONFIG_FILES"
19239 eval set X " :F
$CONFIG_FILES "
19244 :[FHLC]) ac_mode=$ac_tag; continue;;
19246 case $ac_mode$ac_tag in
19248 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19249 :[FH]-) ac_tag=-:-;;
19250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19267 -) ac_f="$ac_tmp/stdin";;
19268 *) # Look for the file first in the build tree, then in the source tree
19269 # (if the path is not absolute). The absolute path cannot be DOS-style,
19270 # because $ac_f cannot contain `:'.
19274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19279 as_fn_append ac_file_inputs " '$ac_f'"
19282 # Let's still pretend it is `configure' which instantiates (i.e., don't
19283 # use $as_me), people would be surprised to read:
19284 # /* config.h. Generated by config.status. */
19285 configure_input='Generated from '`
19286 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19288 if test x"$ac_file" != x-; then
19289 configure_input="$ac_file.
$configure_input"
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19291 $as_echo "$as_me: creating
$ac_file" >&6;}
19293 # Neutralize special characters interpreted by sed in replacement strings.
19294 case $configure_input in #(
19295 *\&* | *\|* | *\\* )
19296 ac_sed_conf_input=`$as_echo "$configure_input" |
19297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19298 *) ac_sed_conf_input=$configure_input;;
19302 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19303 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19308 ac_dir=`$as_dirname -- "$ac_file" ||
19309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19310 X"$ac_file" : 'X\(//\)[^/]' \| \
19311 X"$ac_file" : 'X\(//\)$' \| \
19312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19313 $as_echo X"$ac_file" |
19314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19318 /^X\(\/\/\)[^/].*/{
19331 as_dir="$ac_dir"; as_fn_mkdir_p
19335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19338 # A "..
" for each directory in $ac_dir_suffix.
19339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19340 case $ac_top_builddir_sub in
19341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19345 ac_abs_top_builddir=$ac_pwd
19346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19347 # for backward compatibility:
19348 ac_top_builddir=$ac_top_build_prefix
19351 .) # We are building in place.
19353 ac_top_srcdir=$ac_top_builddir_sub
19354 ac_abs_top_srcdir=$ac_pwd ;;
19355 [\\/]* | ?:[\\/]* ) # Absolute name.
19356 ac_srcdir=$srcdir$ac_dir_suffix;
19357 ac_top_srcdir=$srcdir
19358 ac_abs_top_srcdir=$srcdir ;;
19359 *) # Relative name.
19360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19361 ac_top_srcdir=$ac_top_build_prefix$srcdir
19362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380 # If the template does not know about datarootdir, expand it.
19381 # FIXME: This hack should be removed a few years after 2.60.
19382 ac_datarootdir_hack=; ac_datarootdir_seen=
19393 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19394 *datarootdir*) ac_datarootdir_seen=yes;;
19395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19397 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 ac_datarootdir_hack='
19401 s&@datadir@&$datadir&g
19402 s&@docdir@&$docdir&g
19403 s&@infodir@&$infodir&g
19404 s&@localedir@&$localedir&g
19405 s&@mandir@&$mandir&g
19406 s&\\\${datarootdir}&$datarootdir&g' ;;
19410 # Neutralize VPATH when `$srcdir' = `.'.
19411 # Shell code in configure.ac might set extrasub.
19412 # FIXME: do we really want to maintain this feature?
19413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414 ac_sed_extra="$ac_vpsub
19417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19419 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19420 s|@configure_input@|
$ac_sed_conf_input|
;t t
19421 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19422 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19423 s
&@srcdir@
&$ac_srcdir&;t t
19424 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19425 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19426 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19427 s
&@builddir@
&$ac_builddir&;t t
19428 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19429 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19430 s
&@INSTALL@
&$ac_INSTALL&;t t
19431 $ac_datarootdir_hack
19433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19434 if $ac_cs_awk_getline; then
19435 $AWK -f "$ac_tmp/subs.
awk"
19437 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19439 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19444 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19446 which seems to be undefined. Please make sure it is defined" >&5
19447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19448 which seems to be undefined. Please make sure it is defined" >&2;}
19450 rm -f "$ac_tmp/stdin"
19452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19463 case $ac_file$ac_mode in
19464 "Makefile":F) sed "$extrasub_build" Makefile |
19465 sed "$extrasub_host" |
19466 sed "$extrasub_target" > mf$$
19467 mv -f mf$$ Makefile ;;
19475 ac_clean_files=$ac_clean_files_save
19477 test $ac_write_fail = 0 ||
19478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19481 # configure is writing to config.log, and then calls config.status.
19482 # config.status does its own redirection, appending to config.log.
19483 # Unfortunately, on DOS this fails, as config.log is still kept open
19484 # by configure, so config.status won't be able to
write to it
; its
19485 # output is simply discarded. So we exec the FD to /dev/null,
19486 # effectively closing config.log, so it can be properly (re)opened and
19487 # appended to by config.status. When coming back to configure, we
19488 # need to make the FD available again.
19489 if test "$no_create" != yes; then
19491 ac_config_status_args
=
19492 test "$silent" = yes &&
19493 ac_config_status_args
="$ac_config_status_args --quiet"
19495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19498 # would make configure fail if this is the last instruction.
19499 $ac_cs_success || as_fn_exit
1
19501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}