2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
692 extra_linker_plugin_flags
693 extra_linker_plugin_configure_flags
700 extra_isl_gmp_configure_flags
701 extra_mpc_mpfr_configure_flags
702 extra_mpc_gmp_configure_flags
703 extra_mpfr_configure_flags
725 extra_liboffloadmic_configure_flags
752 TOPLEVEL_CONFIGURE_ARGUMENTS
780 program_transform_name
791 ac_subst_files
='serialization_dependencies
797 enable_option_checking
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
807 enable_compressed_debug_sections
808 enable_default_compressed_debug_sections_algorithm
811 enable_libquadmath_support
828 with_static_standard_libraries
835 enable_isl_version_check
837 enable_linker_plugin_configure_flags
838 enable_linker_plugin_flags
840 enable_stage1_languages
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
847 with_debug_prefix_map
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
856 ac_precious_vars
='build_alias
908 # Initialize some variables set by options.
910 ac_init_version
=false
911 ac_unrecognized_opts
=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name
=s
,x
,x
,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir
='${exec_prefix}/bin'
937 sbindir
='${exec_prefix}/sbin'
938 libexecdir
='${exec_prefix}/libexec'
939 datarootdir
='${prefix}/share'
940 datadir
='${datarootdir}'
941 sysconfdir
='${prefix}/etc'
942 sharedstatedir
='${prefix}/com'
943 localstatedir
='${prefix}/var'
944 includedir
='${prefix}/include'
945 oldincludedir
='/usr/include'
946 docdir
='${datarootdir}/doc/${PACKAGE}'
947 infodir
='${datarootdir}/info'
952 libdir
='${exec_prefix}/lib'
953 localedir
='${datarootdir}/locale'
954 mandir
='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\
$ac_option
968 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=no
;;
1027 -docdir |
--docdir |
--docdi |
--doc |
--do)
1029 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1030 docdir
=$ac_optarg ;;
1032 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1034 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1035 dvidir
=$ac_optarg ;;
1037 -enable-* |
--enable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=\
$ac_optarg ;;
1053 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1054 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1055 |
--exec |
--exe |
--ex)
1056 ac_prev
=exec_prefix
;;
1057 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1058 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1059 |
--exec=* |
--exe=* |
--ex=*)
1060 exec_prefix
=$ac_optarg ;;
1062 -gas |
--gas |
--ga |
--g)
1063 # Obsolete; use --with-gas.
1066 -help |
--help |
--hel |
--he |
-h)
1067 ac_init_help
=long
;;
1068 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1069 ac_init_help
=recursive
;;
1070 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1071 ac_init_help
=short
;;
1073 -host |
--host |
--hos |
--ho)
1074 ac_prev
=host_alias
;;
1075 -host=* |
--host=* |
--hos=* |
--ho=*)
1076 host_alias
=$ac_optarg ;;
1078 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1080 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1082 htmldir
=$ac_optarg ;;
1084 -includedir |
--includedir |
--includedi |
--included |
--include \
1085 |
--includ |
--inclu |
--incl |
--inc)
1086 ac_prev
=includedir
;;
1087 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1088 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1089 includedir
=$ac_optarg ;;
1091 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1093 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1094 infodir
=$ac_optarg ;;
1096 -libdir |
--libdir |
--libdi |
--libd)
1098 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1099 libdir
=$ac_optarg ;;
1101 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1102 |
--libexe |
--libex |
--libe)
1103 ac_prev
=libexecdir
;;
1104 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1105 |
--libexe=* |
--libex=* |
--libe=*)
1106 libexecdir
=$ac_optarg ;;
1108 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1109 ac_prev
=localedir
;;
1110 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1111 localedir
=$ac_optarg ;;
1113 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1114 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1115 ac_prev
=localstatedir
;;
1116 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1117 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1118 localstatedir
=$ac_optarg ;;
1120 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1122 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1123 mandir
=$ac_optarg ;;
1125 -nfp |
--nfp |
--nf)
1126 # Obsolete; use --without-fp.
1129 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1130 |
--no-cr |
--no-c |
-n)
1133 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1134 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1137 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1138 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1139 |
--oldin |
--oldi |
--old |
--ol |
--o)
1140 ac_prev
=oldincludedir
;;
1141 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1142 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1143 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1144 oldincludedir
=$ac_optarg ;;
1146 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1148 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1149 prefix
=$ac_optarg ;;
1151 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1152 |
--program-pre |
--program-pr |
--program-p)
1153 ac_prev
=program_prefix
;;
1154 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1155 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1156 program_prefix
=$ac_optarg ;;
1158 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1159 |
--program-suf |
--program-su |
--program-s)
1160 ac_prev
=program_suffix
;;
1161 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1162 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1163 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1173 -program-transform-name=* |
--program-transform-name=* \
1174 |
--program-transform-nam=* |
--program-transform-na=* \
1175 |
--program-transform-n=* |
--program-transform-=* \
1176 |
--program-transform=* |
--program-transfor=* \
1177 |
--program-transfo=* |
--program-transf=* \
1178 |
--program-trans=* |
--program-tran=* \
1179 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1180 program_transform_name
=$ac_optarg ;;
1182 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1184 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1185 pdfdir
=$ac_optarg ;;
1187 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1189 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1193 |
-silent |
--silent |
--silen |
--sile |
--sil)
1196 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1198 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1200 sbindir
=$ac_optarg ;;
1202 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1203 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1204 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1206 ac_prev
=sharedstatedir
;;
1207 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1208 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1209 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1211 sharedstatedir
=$ac_optarg ;;
1213 -site |
--site |
--sit)
1215 -site=* |
--site=* |
--sit=*)
1218 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1220 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1221 srcdir
=$ac_optarg ;;
1223 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1224 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1225 ac_prev
=sysconfdir
;;
1226 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1227 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1228 sysconfdir
=$ac_optarg ;;
1230 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1231 ac_prev
=target_alias
;;
1232 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1233 target_alias
=$ac_optarg ;;
1235 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1238 -version |
--version |
--versio |
--versi |
--vers |
-V)
1239 ac_init_version
=: ;;
1242 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1245 as_fn_error $?
"invalid package name: $ac_useropt"
1246 ac_useropt_orig
=$ac_useropt
1247 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep
=', ';;
1255 eval with_
$ac_useropt=\
$ac_optarg ;;
1257 -without-* |
--without-*)
1258 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1261 as_fn_error $?
"invalid package name: $ac_useropt"
1262 ac_useropt_orig
=$ac_useropt
1263 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep
=', ';;
1271 eval with_
$ac_useropt=no
;;
1274 # Obsolete; use --with-x.
1277 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1278 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1279 ac_prev
=x_includes
;;
1280 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1281 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1282 x_includes
=$ac_optarg ;;
1284 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1285 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1286 ac_prev
=x_libraries
;;
1287 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1288 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1289 x_libraries
=$ac_optarg ;;
1291 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1296 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1300 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\
$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 if test -n "$ac_prev"; then
1317 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $?
"missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val
=\$
$ac_var
1336 # Remove trailing slashes.
1339 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\
$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$
]* | ?
:[\\/]* ) continue;;
1345 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1347 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target
=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x
; then
1359 if test "x$build_alias" = x
; then
1360 cross_compiling
=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1369 test "$silent" = yes && exec 6>/dev
/null
1372 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di
=`ls -di .` &&
1374 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $?
"working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $?
"pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted
=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir
=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted
=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1416 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 as_fn_error $?
"path to source, $srcdir, contains spaces"
1437 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1439 for ac_var
in $ac_precious_vars; do
1440 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1442 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures this package to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1516 --build=BUILD configure
for building on BUILD
[guessed
]
1517 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1518 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1522 if test -n "$ac_init_help"; then
1527 --disable-option-checking ignore unrecognized
--enable/--with options
1528 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1529 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1530 --enable-as-accelerator-for=ARG
1531 build as offload target compiler. Specify offload
1533 --enable-offload-targets=LIST
1534 enable offloading to devices from comma-separated
1535 LIST of TARGET
[=DIR
]. Use optional path to
find
1536 offload target compiler during the build
1537 --enable-offload-defaulted
1538 If enabled
, configured but not installed offload compilers and
1539 libgomp plugins are silently ignored. Useful
for distribution
1540 compilers where those are
in separate optional packages.
1542 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1543 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1544 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1545 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1546 Enable compressed debug sections
for gas
, gold or ld
1548 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1549 Default compression algorithm
for
1550 --enable-compressed-debug-sections.
1551 --enable-year2038 enable support
for timestamps past the year
2038
1552 --disable-libquadmath do not build libquadmath directory
1553 --disable-libquadmath-support
1554 disable libquadmath support
for Fortran
1555 --enable-libada build libada directory
1556 --enable-libssp build libssp directory
1557 --disable-libstdcxx do not build libstdc
++-v3 directory
1558 --enable-liboffloadmic=ARG
1559 build liboffloadmic
[ARG
={no
,host,target
}]
1560 --enable-bootstrap enable bootstrapping
[yes if native build
]
1561 --enable-pgo-build[=lto
]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check
for isl version
1565 --enable-lto enable link
time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags
for configuring linker plugins
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags
for configuring and building linker
1572 --enable-host-shared build
host code as shared libraries
1573 --enable-stage1-languages[=all
]
1574 choose additional languages to build during stage1.
1575 Mostly useful
for compiler development
1576 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1578 --enable-vtable-verify Enable vtable verification feature
1579 --enable-serial-[{host,target,build}-]configure
1580 force sequential configuration of sub-packages for
1581 the host, target or build machine, or all
1583 --enable-maintainer-mode
1584 enable make rules and dependencies not useful (and
1585 sometimes confusing) to the casual installer
1586 --enable-stage1-checking[=all]
1587 choose additional checking for stage1 of the
1589 --enable-werror enable -Werror in bootstrap stage2 and later
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-build-libsubdir=DIR Directory where to find libraries for build system
1595 --with-system-zlib use installed libz
1596 --with-zstd Support zstd compressed debug sections
1598 --with-mpc=PATH specify prefix directory for installed MPC package.
1599 Equivalent to --with-mpc-include=PATH/include plus
1600 --with-mpc-lib=PATH/lib
1601 --with-mpc-include=PATH specify directory for installed MPC include files
1602 --with-mpc-lib=PATH specify directory for the installed MPC library
1603 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1604 Equivalent to --with-mpfr-include=PATH/include plus
1605 --with-mpfr-lib=PATH/lib
1606 --with-mpfr-include=PATH
1607 specify directory for installed MPFR include files
1608 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1609 --with-gmp=PATH specify prefix directory for the installed GMP
1610 package. Equivalent to
1611 --with-gmp-include=PATH/include plus
1612 --with-gmp-lib=PATH/lib
1613 --with-gmp-include=PATH specify directory for installed GMP include files
1614 --with-gmp-lib=PATH specify directory for the installed GMP library
1615 --with-stage1-libs=LIBS libraries for stage1
1616 --with-static-standard-libraries
1617 use -static-libstdc++ and -static-libgcc
1619 --with-stage1-ldflags=FLAGS
1620 linker flags for stage1
1621 --with-boot-libs=LIBS libraries for stage2 and later
1622 --with-boot-ldflags=FLAGS
1623 linker flags for stage2 and later
1624 --with-isl=PATH Specify prefix directory for the installed isl
1625 package. Equivalent to
1626 --with-isl-include=PATH/include plus
1627 --with-isl-lib=PATH/lib
1628 --with-isl-include=PATH Specify directory for installed isl include files
1629 --with-isl-lib=PATH Specify the directory for the installed isl library
1630 --with-target-bdw-gc=PATHLIST
1631 specify prefix directory for installed bdw-gc
1632 package. Equivalent to
1633 --with-target-bdw-gc-include=PATH/include plus
1634 --with-target-bdw-gc-lib=PATH/lib
1635 --with-target-bdw-gc-include=PATHLIST
1636 specify directories for installed bdw-gc include
1638 --with-target-bdw-gc-lib=PATHLIST
1639 specify directories for installed bdw-gc library
1640 --with-gcc-major-version-only
1641 use only GCC major number in filesystem paths
1642 --with-build-sysroot=SYSROOT
1643 use sysroot as the system root during the build
1644 --with-debug-prefix-map='A
=B C
=D ...
'
1645 map A to B, C to D ... in debug information
1646 --with-build-config='NAME NAME2...
'
1647 use config/NAME.mk build configuration
1648 --with-build-time-tools=PATH
1649 use given path to find target tools during the build
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1659 CXX C++ compiler command
1660 CXXFLAGS C++ compiler flags
1662 additional configure arguments for build directories
1664 additional configure arguments for host directories
1666 additional configure arguments for target directories
1669 DLLTOOL DLLTOOL for the host
1670 DSYMUTIL DSYMUTIL for the host
1672 LIPO LIPO for the host
1674 RANLIB RANLIB for the host
1675 STRIP STRIP for the host
1676 WINDRES WINDRES for the host
1677 WINDMC WINDMC for the host
1678 OBJCOPY OBJCOPY for the host
1679 OBJDUMP OBJDUMP for the host
1680 OTOOL OTOOL for the host
1681 READELF READELF for the host
1689 GFORTRAN for the target
1699 DLLTOOL for the target
1701 DSYMUTIL for the target
1709 OBJCOPY for the target
1711 OBJDUMP for the target
1713 OTOOL for the target
1715 RANLIB for the target
1717 READELF for the target
1719 STRIP for the target
1721 WINDRES for the target
1723 WINDMC for the target
1725 Use these variables to override the choices made by `configure' or to
help
1726 it to
find libraries and programs with nonstandard names
/locations.
1728 Report bugs to the package provider.
1733 if test "$ac_init_help" = "recursive"; then
1734 # If there are subdirs, report their specific --help.
1735 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1736 test -d "$ac_dir" ||
1737 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1742 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1744 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1745 # A ".." for each directory in $ac_dir_suffix.
1746 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1747 case $ac_top_builddir_sub in
1748 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1749 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1752 ac_abs_top_builddir
=$ac_pwd
1753 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1754 # for backward compatibility:
1755 ac_top_builddir
=$ac_top_build_prefix
1758 .
) # We are building in place.
1760 ac_top_srcdir
=$ac_top_builddir_sub
1761 ac_abs_top_srcdir
=$ac_pwd ;;
1762 [\\/]* | ?
:[\\/]* ) # Absolute name.
1763 ac_srcdir
=$srcdir$ac_dir_suffix;
1764 ac_top_srcdir
=$srcdir
1765 ac_abs_top_srcdir
=$srcdir ;;
1767 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1768 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1769 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1771 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1773 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1774 # Check for guested configure.
1775 if test -f "$ac_srcdir/configure.gnu"; then
1777 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778 elif test -f "$ac_srcdir/configure"; then
1780 $SHELL "$ac_srcdir/configure" --help=recursive
1782 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1788 test -n "$ac_init_help" && exit $ac_status
1789 if $ac_init_version; then
1792 generated by GNU Autoconf
2.69
1794 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1795 This configure
script is free software
; the Free Software Foundation
1796 gives unlimited permission to copy
, distribute and modify it.
1801 ## ------------------------ ##
1802 ## Autoconf initialization. ##
1803 ## ------------------------ ##
1805 # ac_fn_c_try_compile LINENO
1806 # --------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_compile
()
1810 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1811 rm -f conftest.
$ac_objext
1812 if { { ac_try
="$ac_compile"
1814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_compile
1843 # ac_fn_cxx_try_compile LINENO
1844 # ----------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1853 *) ac_try_echo
=$ac_try;;
1855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err
; then
1860 grep -v '^ *+' conftest.err
>conftest.er1
1861 cat conftest.er1
>&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.
$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.
$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status
$ac_retval
1879 } # ac_fn_cxx_try_compile
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link
()
1886 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1887 rm -f conftest.
$ac_objext conftest
$ac_exeext
1888 if { { ac_try
="$ac_link"
1890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_cxx_try_link
1927 # ac_fn_c_try_link LINENO
1928 # -----------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1937 *) ac_try_echo
=$ac_try;;
1939 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1943 if test -s conftest.err
; then
1944 grep -v '^ *+' conftest.err
>conftest.er1
1945 cat conftest.er1
>&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest
$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest
$ac_exeext
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.
$ac_ext >&5
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status
$ac_retval
1971 } # ac_fn_c_try_link
1972 cat >config.log
<<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by $as_me, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir
=.
2013 $as_echo "PATH: $as_dir"
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_must_keep_next
=false
2043 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2045 |
-silent |
--silent |
--silen |
--sile |
--sil)
2048 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1
" '$ac_arg'"
2054 if test $ac_must_keep_next = true
; then
2055 ac_must_keep_next
=false
# Got value, back to normal.
2058 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2059 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2060 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2061 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 -* ) ac_must_keep_next
=true
;;
2069 as_fn_append ac_configure_args
" '$ac_arg'"
2074 { ac_configure_args0
=; unset ac_configure_args0
;}
2075 { ac_configure_args1
=; unset ac_configure_args1
;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2127 for ac_var in $ac_subst_vars
2129 eval ac_val=\$$ac_var
2131 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 $as_echo "$ac_var='\''$ac_val'\''"
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2142 for ac_var
in $ac_subst_files
2144 eval ac_val
=\$
$ac_var
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 $as_echo "$ac_var='\''$ac_val'\''"
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 for ac_signal
in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest
* confdefs.h
2177 $as_echo "/* confdefs.h */" > confdefs.h
2179 # Predefined preprocessor variables.
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 cat >>confdefs.h
<<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 cat >>confdefs.h
<<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2214 */*) ac_site_file1
=$CONFIG_SITE;;
2215 *) ac_site_file1
=.
/$CONFIG_SITE;;
2217 elif test "x$prefix" != xNONE
; then
2218 ac_site_file1
=$prefix/share
/config.site
2219 ac_site_file2
=$prefix/etc
/config.site
2221 ac_site_file1
=$ac_default_prefix/share
/config.site
2222 ac_site_file2
=$ac_default_prefix/etc
/config.site
2224 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2226 test "x$ac_site_file" = xNONE
&& continue
2227 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2232 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $?
"failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2247 *) .
"./$cache_file";;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 # Check that the precious variables saved in the cache have kept the same
2258 ac_cache_corrupted
=false
2259 for ac_var
in $ac_precious_vars; do
2260 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2261 eval ac_new_set
=\
$ac_env_${ac_var}_set
2262 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2263 eval ac_new_val
=\
$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted
=: ;;
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted
=: ;;
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w
=`echo x $ac_old_val`
2278 ac_new_val_w
=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted
=:
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\
$ac_old_val
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2297 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg
=$ac_var=$ac_new_val ;;
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2318 ac_cpp
='$CPP $CPPFLAGS'
2319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2331 # if PWD already has a value, it is probably wrong.
2332 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2334 # Export original configure arguments for use by sub-configures.
2335 # Quote arguments with shell meta charatcers.
2336 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2337 set -- "$progname" "$@"
2341 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2342 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2343 # if the argument is of the form -foo=baz, quote the baz part only
2344 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2347 # Add the quoted argument to the list.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2350 if test "$silent" = yes; then
2351 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2353 # Remove the initial space we just introduced and, as these will be
2354 # expanded by make, quote '$'.
2355 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2358 # Find the build, host, and target systems.
2360 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2363 ac_install_sh
="$ac_aux_dir/install-sh -c"
2365 elif test -f "$ac_dir/install.sh"; then
2367 ac_install_sh
="$ac_aux_dir/install.sh -c"
2369 elif test -f "$ac_dir/shtool"; then
2371 ac_install_sh
="$ac_aux_dir/shtool install -c"
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2390 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false
; then :
2395 $as_echo_n "(cached) " >&6
2397 ac_build_alias
=$build_alias
2398 test "x$ac_build_alias" = x
&&
2399 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x
&&
2401 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2410 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2413 ac_save_IFS
=$IFS; IFS
='-'
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2423 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 case ${build_alias} in
2427 "") build_noncanonical
=${build} ;;
2428 *) build_noncanonical
=${build_alias} ;;
2433 case ${host_alias} in
2434 "") host_noncanonical
=${build_noncanonical} ;;
2435 *) host_noncanonical
=${host_alias} ;;
2440 case ${target_alias} in
2441 "") target_noncanonical
=${host_noncanonical} ;;
2442 *) target_noncanonical
=${target_alias} ;;
2448 test "$host_noncanonical" = "$target_noncanonical" &&
2449 test "$program_prefix$program_suffix$program_transform_name" = \
2451 program_transform_name
=s
,y
,y
,
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2454 $as_echo_n "checking host system type... " >&6; }
2455 if ${ac_cv_host+:} false
; then :
2456 $as_echo_n "(cached) " >&6
2458 if test "x$host_alias" = x
; then
2459 ac_cv_host
=$ac_cv_build
2461 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2462 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2467 $as_echo "$ac_cv_host" >&6; }
2470 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2473 ac_save_IFS
=$IFS; IFS
='-'
2479 # Remember, the first character of IFS is used to create $*,
2480 # except with old shells:
2483 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2487 $as_echo_n "checking target system type... " >&6; }
2488 if ${ac_cv_target+:} false
; then :
2489 $as_echo_n "(cached) " >&6
2491 if test "x$target_alias" = x
; then
2492 ac_cv_target
=$ac_cv_host
2494 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2495 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2500 $as_echo "$ac_cv_target" >&6; }
2501 case $ac_cv_target in
2503 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2505 target
=$ac_cv_target
2506 ac_save_IFS
=$IFS; IFS
='-'
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2516 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522 test "$program_prefix$program_suffix$program_transform_name" = \
2524 program_prefix
=${target_alias}-
2526 test "$program_prefix" != NONE
&&
2527 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE
&&
2530 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 # Get 'install' or 'install-sh' and its variants.
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 # Reject install programs that cannot install multiple files.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2554 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2555 if test -z "$INSTALL"; then
2556 if ${ac_cv_path_install+:} false
; then :
2557 $as_echo_n "(cached) " >&6
2559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir
=.
2564 # Account for people who put trailing slashes in PATH elements.
2565 case $as_dir/ in #((
2566 .
/ | .
// |
/[cC
]/* | \
2567 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2568 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2571 # OSF1 and SCO ODT 3.0 have their own names for install.
2572 # Don't use installbsd from OSF since it installs stuff as root
2574 for ac_prog
in ginstall scoinst
install; do
2575 for ac_exec_ext
in '' $ac_executable_extensions; do
2576 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2577 if test $ac_prog = install &&
2578 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2579 # AIX install. It has an incompatible calling convention.
2581 elif test $ac_prog = install &&
2582 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2583 # program-specific install script used by HP pwplus--don't use.
2586 rm -rf conftest.one conftest.two conftest.dir
2587 echo one
> conftest.one
2588 echo two
> conftest.two
2590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2591 test -s conftest.one
&& test -s conftest.two
&&
2592 test -s conftest.dir
/conftest.one
&&
2593 test -s conftest.dir
/conftest.two
2595 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2608 rm -rf conftest.one conftest.two conftest.dir
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL
=$ac_cv_path_install
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 INSTALL
=$ac_install_sh
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2622 $as_echo "$INSTALL" >&6; }
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2630 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2633 $as_echo_n "checking whether ln works... " >&6; }
2634 if ${acx_cv_prog_LN+:} false
; then :
2635 $as_echo_n "(cached) " >&6
2637 rm -f conftestdata_t
2638 echo >conftestdata_f
2639 if ln conftestdata_f conftestdata_t
2>/dev
/null
2645 rm -f conftestdata_f conftestdata_t
2648 if test $acx_cv_prog_LN = no
; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2651 $as_echo "no, using $LN" >&6; }
2653 LN
="$acx_cv_prog_LN"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2659 $as_echo_n "checking whether ln -s works... " >&6; }
2661 if test "$LN_S" = "ln -s"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2666 $as_echo "no, using $LN_S" >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2670 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2671 if ${ac_cv_path_SED+:} false
; then :
2672 $as_echo_n "(cached) " >&6
2674 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2675 for ac_i
in 1 2 3 4 5 6 7; do
2676 ac_script
="$ac_script$as_nl$ac_script"
2678 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2679 { ac_script
=; unset ac_script
;}
2680 if test -z "$SED"; then
2681 ac_path_SED_found
=false
2682 # Loop through the user's path and test for each of PROGNAME-LIST
2683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir
=.
2688 for ac_prog
in sed gsed
; do
2689 for ac_exec_ext
in '' $ac_executable_extensions; do
2690 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2691 as_fn_executable_p
"$ac_path_SED" ||
continue
2692 # Check for GNU ac_path_SED and select it if it is found.
2693 # Check for GNU $ac_path_SED
2694 case `"$ac_path_SED" --version 2>&1` in
2696 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2699 $as_echo_n 0123456789 >"conftest.in"
2702 cat "conftest.in" "conftest.in" >"conftest.tmp"
2703 mv "conftest.tmp" "conftest.in"
2704 cp "conftest.in" "conftest.nl"
2705 $as_echo '' >> "conftest.nl"
2706 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2708 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2709 if test $ac_count -gt ${ac_path_SED_max-0}; then
2710 # Best one so far, save it but keep looking for a better one
2711 ac_cv_path_SED
="$ac_path_SED"
2712 ac_path_SED_max
=$ac_count
2714 # 10*(2^10) chars as input seems more than enough
2715 test $ac_count -gt 10 && break
2717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2720 $ac_path_SED_found && break 3
2725 if test -z "$ac_cv_path_SED"; then
2726 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2734 $as_echo "$ac_cv_path_SED" >&6; }
2735 SED
="$ac_cv_path_SED"
2738 for ac_prog
in gawk mawk nawk
awk
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy
$ac_prog; ac_word
=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_AWK+:} false
; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$AWK"; then
2748 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_AWK
="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$AWK"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770 $as_echo "$AWK" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2777 test -n "$AWK" && break
2781 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2783 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2785 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2786 INSTALL
="${srcpwd}/install-sh -c"
2789 # Set srcdir to "." if that's what it is.
2790 # This is important for multilib support.
2792 if test "${pwd}" = "${srcpwd}" ; then
2800 ### To add a new directory to the tree, first choose whether it is a target
2801 ### or a host dependent tool. Then put it into the appropriate list
2802 ### (library or tools, host or target), doing a dependency sort.
2804 # Subdirs will be configured in the order listed in build_configdirs,
2805 # configdirs, or target_configdirs; see the serialization section below.
2807 # Dependency sorting is only needed when *configuration* must be done in
2808 # a particular order. In all cases a dependency should be specified in
2809 # the Makefile, whether or not it's implicitly specified here.
2811 # Double entries in build_configdirs, configdirs, or target_configdirs may
2812 # cause circular dependencies and break everything horribly.
2814 # these library is used by various programs built for the build
2817 build_libs
="build-libiberty build-libcpp"
2819 # these tools are built for the build environment
2820 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2822 # these libraries are used by various programs built for the host environment
2824 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2826 # these tools are built for the host environment
2827 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2828 # know that we are building the simulator.
2829 # binutils, gas and ld appear in that order because it makes sense to run
2830 # "make check" in that particular order.
2831 # If --enable-gold is used, "gold" may replace "ld".
2832 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"
2834 # these libraries are built for the target environment, and are built after
2835 # the host libraries and the host tools (which may be a cross compiler)
2836 # Note that libiberty is not a target library.
2837 target_libraries
="target-libgcc \
2838 target-libbacktrace \
2842 target-liboffloadmic \
2845 target-libstdc++-v3 \
2846 target-libsanitizer \
2849 target-libquadmath \
2850 target-libgfortran \
2858 # these tools are built using the target libraries, and are intended to
2859 # run only in the target environment
2861 # note: any program that *uses* libraries that are in the "target_libraries"
2862 # list belongs in this list.
2864 target_tools
="target-rda"
2866 ################################################################################
2868 ## All tools belong in one of the four categories, and are assigned above
2869 ## We assign ${configdirs} this way to remove all embedded newlines. This
2870 ## is important because configure will choke if they ever get through.
2871 ## ${configdirs} is directories we build using the host tools.
2872 ## ${target_configdirs} is directories we build using the target tools.
2873 configdirs
=`echo ${host_libs} ${host_tools}`
2874 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2875 build_configdirs
=`echo ${build_libs} ${build_tools}`
2879 ################################################################################
2881 srcname
="gnu development package"
2883 # This gets set non-empty for some net releases of packages.
2886 # Define is_cross_compiler to save on calls to 'test'.
2888 if test x
"${host}" = x
"${target}" ; then
2889 is_cross_compiler
=no
2891 is_cross_compiler
=yes
2894 # Find the build and target subdir names.
2896 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2897 # have matching libraries, they should use host libraries: Makefile.tpl
2898 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2899 # However, they still use the build modules, because the corresponding
2900 # host modules (e.g. bison) are only built for the host when bootstrap
2902 # - build_subdir is where we find build modules, and never changes.
2903 # - build_libsubdir is where we find build libraries, and can be overridden.
2905 # Prefix 'build-' so this never conflicts with target_subdir.
2906 build_subdir
="build-${build_noncanonical}"
2908 # Check whether --with-build-libsubdir was given.
2909 if test "${with_build_libsubdir+set}" = set; then :
2910 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2912 build_libsubdir
="$build_subdir"
2915 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2916 if ( test $srcdir = .
&& test -d gcc
) \
2917 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2918 host_subdir
="host-${host_noncanonical}"
2923 target_subdir
=${target_noncanonical}
2925 # Be sure to cover against remnants of an in-tree build.
2926 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2927 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2928 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2931 # Skipdirs are removed silently.
2933 # Noconfigdirs are removed loudly.
2937 # Make sure we don't let GNU ld be added if we didn't want it.
2938 if test x
$with_gnu_ld = xno
; then
2940 noconfigdirs
="$noconfigdirs ld gold"
2944 # Make sure we don't let GNU as be added if we didn't want it.
2945 if test x
$with_gnu_as = xno
; then
2947 noconfigdirs
="$noconfigdirs gas"
2952 # Check whether --with-system-zlib was given.
2953 if test "${with_system_zlib+set}" = set; then :
2954 withval
=$with_system_zlib;
2957 # Make sure we don't let ZLIB be added if we didn't want it.
2958 if test x
$with_system_zlib = xyes
; then
2959 use_included_zlib
=no
2960 noconfigdirs
="$noconfigdirs zlib"
2963 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2965 if test x
$with_system_readline = xyes
; then
2966 noconfigdirs
="$noconfigdirs readline"
2970 # Check whether --with-zstd was given.
2971 if test "${with_zstd+set}" = set; then :
2976 # some tools are so dependent upon X11 that if we're not building with X,
2977 # it's not even worth trying to configure, much less build, that tool.
2980 yes |
"") ;; # the default value for this tree is that X11 is available
2982 skipdirs
="${skipdirs} tk itcl libgui"
2983 # We won't be able to build gdbtk without X.
2986 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2989 # Some are only suitable for cross toolchains.
2990 # Remove these if host=target.
2991 cross_only
="target-libgloss target-newlib target-opcodes"
2993 case $is_cross_compiler in
2994 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2997 # If both --with-headers and --with-libs are specified, default to
2999 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3000 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3001 if test x
"${with_newlib}" = x
; then
3006 # Recognize --with-newlib/--without-newlib.
3007 case ${with_newlib} in
3008 no
) skipdirs
="${skipdirs} target-newlib" ;;
3009 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3012 # Check whether --enable-as-accelerator-for was given.
3013 if test "${enable_as_accelerator_for+set}" = set; then :
3014 enableval
=$enable_as_accelerator_for;
3018 # Check whether --enable-offload-targets was given.
3019 if test "${enable_offload_targets+set}" = set; then :
3020 enableval
=$enable_offload_targets;
3021 if test x
"$enable_offload_targets" = x
; then
3022 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3026 enable_offload_targets
=
3030 # Check whether --enable-offload-defaulted was given.
3031 if test "${enable_offload_defaulted+set}" = set; then :
3032 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3034 enable_offload_defaulted
=
3038 # Handle --enable-gold, --enable-ld.
3039 # --disable-gold [--enable-ld]
3040 # Build only ld. Default option.
3041 # --enable-gold [--enable-ld]
3042 # Build both gold and ld. Install gold as "ld.gold", install ld
3043 # as "ld.bfd" and "ld".
3044 # --enable-gold=default [--enable-ld]
3045 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3046 # install ld as "ld.bfd".
3047 # --enable-gold[=default] --disable-ld
3048 # Build only gold, which is then installed as both "ld.gold" and "ld".
3049 # --enable-gold --enable-ld=default
3050 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3052 # In other words, ld is default
3053 # --enable-gold=default --enable-ld=default
3057 # Check whether --enable-gold was given.
3058 if test "${enable_gold+set}" = set; then :
3059 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3064 case "${ENABLE_GOLD}" in
3066 # Check for ELF target.
3069 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3070 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3071 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3072 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3074 *-*-linux*aout
* |
*-*-linux*oldld
*)
3082 if test "$is_elf" = "yes"; then
3083 # Check for target supported by gold.
3085 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3086 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3087 configdirs
="$configdirs gold"
3088 if test x
${ENABLE_GOLD} = xdefault
; then
3099 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3103 # Check whether --enable-ld was given.
3104 if test "${enable_ld+set}" = set; then :
3105 enableval
=$enable_ld; ENABLE_LD
=$enableval
3111 case "${ENABLE_LD}" in
3113 if test x
${default_ld} != x
; then
3114 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3120 if test x
${ENABLE_GOLD} != xyes
; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3122 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3124 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3127 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3131 # Check whether --enable-gprofng was given.
3132 if test "${enable_gprofng+set}" = set; then :
3133 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3138 if test "$enable_gprofng" = "yes"; then
3140 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3141 configdirs
="$configdirs gprofng"
3148 # Decide the default method for compressing debug sections.
3149 # Provide a configure time option to override our default.
3150 # Check whether --enable-compressed_debug_sections was given.
3151 if test "${enable_compressed_debug_sections+set}" = set; then :
3152 enableval
=$enable_compressed_debug_sections;
3153 if test x
"$enable_compressed_debug_sections" = xyes
; then
3154 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3158 enable_compressed_debug_sections
=
3162 # Select default compression algorithm.
3163 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3164 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3165 enableval
=$enable_default_compressed_debug_sections_algorithm;
3167 default_compressed_debug_sections_algorithm
=
3171 # Configure extra directories which are host specific
3175 configdirs
="$configdirs libtermcap" ;;
3178 # A target can indicate whether a language isn't supported for some reason.
3179 # Only spaces may be used in this macro; not newlines or tabs.
3180 unsupported_languages
=
3182 # Remove more programs from consideration, based on the host or
3183 # target this usually means that a port of the program doesn't
3187 i
[3456789]86-*-msdosdjgpp*)
3188 noconfigdirs
="$noconfigdirs tcl tk itcl"
3192 # Default to --disable-year2038 until we can handle differences between
3193 # projects that use gnulib (which understands year 2038) and projects that
3194 # do not (like BFD).
3195 # Check whether --enable-year2038 was given.
3196 if test "${enable_year2038+set}" = set; then :
3197 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3203 if test "${ENABLE_YEAR2038}" = "no" ; then
3207 # Check whether --enable-libquadmath was given.
3208 if test "${enable_libquadmath+set}" = set; then :
3209 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3211 ENABLE_LIBQUADMATH
=yes
3214 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3215 noconfigdirs
="$noconfigdirs target-libquadmath"
3219 # Check whether --enable-libquadmath-support was given.
3220 if test "${enable_libquadmath_support+set}" = set; then :
3221 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3223 ENABLE_LIBQUADMATH_SUPPORT
=yes
3226 enable_libquadmath_support
=
3227 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3228 enable_libquadmath_support
=no
3232 # Check whether --enable-libada was given.
3233 if test "${enable_libada+set}" = set; then :
3234 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3239 if test "${ENABLE_LIBADA}" != "yes" ; then
3240 noconfigdirs
="$noconfigdirs gnattools"
3243 # Check whether --enable-libssp was given.
3244 if test "${enable_libssp+set}" = set; then :
3245 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3251 # Check whether --enable-libstdcxx was given.
3252 if test "${enable_libstdcxx+set}" = set; then :
3253 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3255 ENABLE_LIBSTDCXX
=default
3258 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3259 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3262 # If this is accelerator compiler and its target is intelmic we enable
3263 # target liboffloadmic by default. If this is compiler with offloading
3264 # for intelmic we enable host liboffloadmic by default. Otherwise
3265 # liboffloadmic is disabled by default.
3266 # Check whether --enable-liboffloadmic was given.
3267 if test "${enable_liboffloadmic+set}" = set; then :
3268 enableval
=$enable_liboffloadmic; case "$enableval" in
3270 enable_liboffloadmic
=$enableval ;;
3272 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3275 if test x
"$enable_as_accelerator_for" != x
; then
3277 *-intelmic-* |
*-intelmicemul-*)
3278 enable_liboffloadmic
=target
3279 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3282 enable_liboffloadmic
=no
3286 case "${enable_offload_targets}" in
3287 *-intelmic-* |
*-intelmicemul-*)
3288 enable_liboffloadmic
=host
3289 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3292 enable_liboffloadmic
=no
3300 # Enable libgomp by default on hosted POSIX systems, and a few others.
3301 if test x
$enable_libgomp = x
; then
3303 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3305 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3307 *-*-solaris2* |
*-*-hpux11*)
3309 *-*-darwin* |
*-*-aix*)
3311 nvptx
*-*-* | amdgcn
*-*-*)
3314 noconfigdirs
="$noconfigdirs target-libgomp"
3319 # Disable libatomic on unsupported systems.
3320 if test -d ${srcdir}/libatomic
; then
3321 if test x
$enable_libatomic = x
; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3323 $as_echo_n "checking for libatomic support... " >&6; }
3324 if (srcdir
=${srcdir}/libatomic
; \
3325 .
${srcdir}/configure.tgt
; \
3326 test -n "$UNSUPPORTED")
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs
="$noconfigdirs target-libatomic"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3338 # Disable liboffloadmic on unsupported systems.
3339 if test -d ${srcdir}/liboffloadmic
; then
3340 if test x
$enable_liboffloadmic != xno
; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3342 $as_echo_n "checking for liboffloadmic support... " >&6; }
3343 if (srcdir
=${srcdir}/liboffloadmic
; \
3344 .
${srcdir}/configure.tgt
; \
3345 test -n "$UNSUPPORTED")
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3357 # Disable libitm on unsupported systems.
3358 if test -d ${srcdir}/libitm
; then
3359 if test x
$enable_libitm = x
; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3361 $as_echo_n "checking for libitm support... " >&6; }
3362 if (srcdir
=${srcdir}/libitm
; \
3363 .
${srcdir}/configure.tgt
; \
3364 test -n "$UNSUPPORTED")
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 noconfigdirs
="$noconfigdirs target-libitm"
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3376 # Disable libsanitizer on unsupported systems.
3377 if test -d ${srcdir}/libsanitizer
; then
3378 if test x
$enable_libsanitizer = x
; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3380 $as_echo_n "checking for libsanitizer support... " >&6; }
3381 if (srcdir
=${srcdir}/libsanitizer
; \
3382 .
${srcdir}/configure.tgt
; \
3383 test -n "$UNSUPPORTED")
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 noconfigdirs
="$noconfigdirs target-libsanitizer"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390 $as_echo "yes" >&6; }
3395 # Disable libvtv on unsupported systems.
3396 if test -d ${srcdir}/libvtv
; then
3397 if test x
$enable_libvtv = x
; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3399 $as_echo_n "checking for libvtv support... " >&6; }
3400 if (srcdir
=${srcdir}/libvtv
; \
3401 .
${srcdir}/configure.tgt
; \
3402 test "$VTV_SUPPORTED" != "yes")
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 noconfigdirs
="$noconfigdirs target-libvtv"
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3414 # Disable libquadmath for some systems.
3417 noconfigdirs
="$noconfigdirs target-libquadmath"
3419 # libquadmath is unused on AIX and libquadmath build process use of
3420 # LD_LIBRARY_PATH can break AIX bootstrap.
3421 powerpc-
*-aix* | rs6000-
*-aix*)
3422 noconfigdirs
="$noconfigdirs target-libquadmath"
3426 # Disable libssp for some systems.
3429 # No hosted I/O support.
3430 noconfigdirs
="$noconfigdirs target-libssp"
3433 noconfigdirs
="$noconfigdirs target-libssp"
3435 powerpc-
*-aix* | rs6000-
*-aix*)
3436 noconfigdirs
="$noconfigdirs target-libssp"
3439 # No hosted I/O support.
3440 noconfigdirs
="$noconfigdirs target-libssp"
3443 # libssp uses a misaligned load to trigger a fault, but the RL78
3444 # doesn't fault for those - instead, it gives a build-time error
3445 # for explicit misaligned loads.
3446 noconfigdirs
="$noconfigdirs target-libssp"
3449 # No hosted I/O support.
3450 noconfigdirs
="$noconfigdirs target-libssp"
3454 # Disable libstdc++-v3 for some systems.
3455 # Allow user to override this if they pass --enable-libstdcxx
3456 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3459 # VxWorks uses the Dinkumware C++ library.
3460 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3463 # Not ported/fails to build when using newlib.
3464 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3467 # the C++ libraries don't build on top of CE's C libraries
3468 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3471 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3474 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3477 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3482 # Disable C++ on systems where it is known to not work.
3483 # For testing, you can override this with --enable-languages=c++.
3484 case ,${enable_languages}, in
3490 unsupported_languages
="$unsupported_languages c++"
3496 # Disable Objc on systems where it is known to not work.
3497 # For testing, you can override this with --enable-languages=objc.
3498 case ,${enable_languages}, in
3504 unsupported_languages
="$unsupported_languages objc"
3510 # Disable D on systems where it is known to not work.
3511 # For testing, you can override this with --enable-languages=d.
3512 case ,${enable_languages}, in
3518 unsupported_languages
="$unsupported_languages d"
3524 # Disable libphobos on unsupported systems.
3525 # For testing, you can override this with --enable-libphobos.
3526 if test -d ${srcdir}/libphobos
; then
3527 if test x
$enable_libphobos = x
; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3529 $as_echo_n "checking for libphobos support... " >&6; }
3530 if (srcdir
=${srcdir}/libphobos
; \
3531 .
${srcdir}/configure.tgt
; \
3532 test "$LIBPHOBOS_SUPPORTED" != "yes")
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 noconfigdirs
="$noconfigdirs target-libphobos"
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3544 # Disable Fortran for some systems.
3547 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3548 unsupported_languages
="$unsupported_languages fortran"
3551 unsupported_languages
="$unsupported_languages fortran"
3555 # Disable libffi for some systems.
3559 i
[3456789]86-*-darwin*)
3561 x86_64-
*-darwin[912]*)
3564 noconfigdirs
="$noconfigdirs target-libffi"
3567 noconfigdirs
="$noconfigdirs target-libffi"
3570 noconfigdirs
="$noconfigdirs target-libffi"
3573 noconfigdirs
="$noconfigdirs target-libffi"
3576 noconfigdirs
="$noconfigdirs target-libffi"
3579 noconfigdirs
="$noconfigdirs target-libffi"
3582 noconfigdirs
="$noconfigdirs target-libffi"
3584 aarch64
*-*-freebsd*)
3585 noconfigdirs
="$noconfigdirs target-libffi"
3588 noconfigdirs
="$noconfigdirs target-libffi"
3591 noconfigdirs
="$noconfigdirs target-libffi"
3594 noconfigdirs
="$noconfigdirs target-libffi"
3597 noconfigdirs
="$noconfigdirs target-libffi"
3600 noconfigdirs
="$noconfigdirs target-libffi"
3602 cris-
*-* | crisv32-
*-*)
3606 *) # See PR46792 regarding target-libffi.
3607 noconfigdirs
="$noconfigdirs target-libffi";;
3611 noconfigdirs
="$noconfigdirs target-libffi"
3616 noconfigdirs
="$noconfigdirs target-libffi"
3619 noconfigdirs
="$noconfigdirs target-libffi"
3621 i
[3456789]86-w64-mingw*)
3622 noconfigdirs
="$noconfigdirs target-libffi"
3624 i
[3456789]86-*-mingw*)
3625 noconfigdirs
="$noconfigdirs target-libffi"
3628 noconfigdirs
="$noconfigdirs target-libffi"
3631 noconfigdirs
="$noconfigdirs target-libffi"
3638 noconfigdirs
="$noconfigdirs target-libffi"
3641 noconfigdirs
="$noconfigdirs target-libffi"
3645 # Disable the go frontend on systems where it is known to not work. Please keep
3646 # this in sync with contrib/config-list.mk.
3648 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3649 unsupported_languages
="$unsupported_languages go"
3653 # Only allow gdbserver on some systems.
3654 if test -d ${srcdir}/gdbserver
; then
3655 if test x
$enable_gdbserver = x
; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3657 $as_echo_n "checking for gdbserver support... " >&6; }
3658 if (srcdir
=${srcdir}/gdbserver
; \
3659 .
${srcdir}/configure.srv
; \
3660 test -n "$UNSUPPORTED")
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 noconfigdirs
="$noconfigdirs gdbserver"
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3672 # Disable libgo for some systems where it is known to not work.
3673 # For testing, you can easily override this with --enable-libgo.
3674 if test x
$enable_libgo = x
; then
3678 noconfigdirs
="$noconfigdirs target-libgo"
3680 *-*-cygwin* |
*-*-mingw*)
3681 noconfigdirs
="$noconfigdirs target-libgo"
3684 noconfigdirs
="$noconfigdirs target-libgo"
3689 # Default libgloss CPU subdirectory.
3690 libgloss_dir
="$target_cpu"
3693 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3697 libgloss_dir
=aarch64
3702 cris-
*-* | crisv32-
*-*)
3712 libgloss_dir
=loongarch
3714 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3715 libgloss_dir
=m68hc11
3717 m68
*-*-* | fido-
*-*)
3734 # Disable newlib and libgloss for various target OSes.
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3739 i
[3456789]86-*-linux*)
3740 # This section makes it possible to build newlib natively on linux.
3741 # If we are using a cross compiler then don't configure newlib.
3742 if test x
${is_cross_compiler} != xno
; then
3743 noconfigdirs
="$noconfigdirs target-newlib"
3745 noconfigdirs
="$noconfigdirs target-libgloss"
3746 # If we are not using a cross compiler, do configure newlib.
3747 # Note however, that newlib will only be configured in this situation
3748 # if the --with-newlib option has been given, because otherwise
3749 # 'target-newlib' will appear in skipdirs.
3751 i
[3456789]86-*-rdos*)
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3754 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3767 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3770 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3773 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3778 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3779 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3782 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3785 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3788 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3791 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3794 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3797 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3800 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3808 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3809 noconfigdirs
="$noconfigdirs sim target-rda"
3814 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3815 noconfigdirs
="$noconfigdirs sim target-rda"
3818 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3819 noconfigdirs
="$noconfigdirs sim target-rda"
3821 i
[3456789]86-*-darwin*)
3822 noconfigdirs
="$noconfigdirs ld gprof"
3823 noconfigdirs
="$noconfigdirs sim target-rda"
3825 x86_64-
*-darwin[912]*)
3826 noconfigdirs
="$noconfigdirs ld gas gprof"
3827 noconfigdirs
="$noconfigdirs sim target-rda"
3830 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3831 noconfigdirs
="$noconfigdirs sim target-rda"
3836 if test "x$with_gmp" = x \
3837 && ! test -d ${srcdir}/gmp \
3838 && test -f /usr
/local
/include
/gmp.h
; then
3843 # Remove unsupported stuff on all kaOS configurations.
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3851 noconfigdirs
="$noconfigdirs target-libgloss"
3854 noconfigdirs
="$noconfigdirs target-libgloss"
3856 # The tpf target doesn't support gdb yet.
3858 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3861 noconfigdirs
="$noconfigdirs target-rda"
3866 # ld works, but does not support shared libraries.
3867 # gas doesn't generate exception information.
3868 noconfigdirs
="$noconfigdirs gas ld"
3871 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3874 # newlib is not 64 bit ready
3875 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3878 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3880 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3881 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3884 noconfigdirs
="$noconfigdirs sim"
3887 noconfigdirs
="$noconfigdirs target-libgloss"
3890 noconfigdirs
="$noconfigdirs ld target-libgloss"
3893 if test x
${with_avrlibc} != xno
; then
3894 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3897 c4x-
*-* | tic4x-
*-*)
3898 noconfigdirs
="$noconfigdirs target-libgloss"
3901 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3904 noconfigdirs
="$noconfigdirs target-libgloss"
3907 noconfigdirs
="$noconfigdirs gdb"
3910 noconfigdirs
="$noconfigdirs gdb"
3913 noconfigdirs
="$noconfigdirs target-rda gprof"
3916 noconfigdirs
="$noconfigdirs"
3919 noconfigdirs
="$noconfigdirs target-libgloss"
3922 noconfigdirs
="$noconfigdirs target-libgloss"
3924 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3927 noconfigdirs
="$noconfigdirs gdb"
3930 noconfigdirs
="$noconfigdirs gdb ld"
3938 hppa
*-*-openbsd* | \
3944 noconfigdirs
="$noconfigdirs ld"
3947 noconfigdirs
="$noconfigdirs gdb"
3950 # No gdb support yet.
3951 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3954 # No ld support yet.
3955 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3958 # No ld support yet.
3959 noconfigdirs
="$noconfigdirs libgui itcl ld"
3961 i
[3456789]86-w64-mingw*)
3963 i
[3456789]86-*-mingw*)
3964 target_configdirs
="$target_configdirs target-winsup"
3967 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3968 noconfigdirs
="$noconfigdirs target-libgloss"
3969 # always build newlib if winsup directory is present.
3970 if test -d "$srcdir/winsup/cygwin"; then
3971 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3972 elif test -d "$srcdir/newlib"; then
3973 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3977 noconfigdirs
="$noconfigdirs target-libgloss"
3979 i
[3456789]86-*-sco3.2v5
*)
3980 # The linker does not yet know about weak symbols in COFF,
3981 # and is not configured to handle mixed ELF and COFF.
3982 noconfigdirs
="$noconfigdirs ld target-libgloss"
3984 i
[3456789]86-*-sco*)
3985 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3987 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3988 noconfigdirs
="$noconfigdirs target-libgloss"
3990 i
[3456789]86-*-sysv4*)
3991 noconfigdirs
="$noconfigdirs target-libgloss"
3993 i
[3456789]86-*-beos*)
3994 noconfigdirs
="$noconfigdirs gdb"
3996 i
[3456789]86-*-rdos*)
3997 noconfigdirs
="$noconfigdirs gdb"
4000 noconfigdirs
="$noconfigdirs gdb"
4003 noconfigdirs
="$noconfigdirs sim"
4006 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
4007 noconfigdirs
="$noconfigdirs $target_libraries"
4010 noconfigdirs
="$noconfigdirs gdb gprof"
4013 # copied from rs6000-*-* entry
4014 noconfigdirs
="$noconfigdirs gprof"
4016 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4017 target_configdirs
="$target_configdirs target-winsup"
4018 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4019 # always build newlib.
4020 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4022 # This is temporary until we can link against shared libraries
4023 powerpcle-
*-solaris*)
4024 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4027 noconfigdirs
="$noconfigdirs gdb"
4030 noconfigdirs
="$noconfigdirs gprof"
4033 noconfigdirs
="$noconfigdirs gprof"
4036 noconfigdirs
="$noconfigdirs gprof"
4039 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4042 noconfigdirs
="$noconfigdirs gprof"
4044 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4045 if test x
$with_newlib = xyes
; then
4046 noconfigdirs
="$noconfigdirs gprof"
4050 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4053 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4056 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4060 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4061 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4062 noconfigdirs
="$noconfigdirs ld gas gprof"
4065 noconfigdirs
="$noconfigdirs gprof"
4068 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4075 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4079 if test x
${is_cross_compiler} = xno
; then
4084 noconfigdirs
="$noconfigdirs sim"
4086 tilepro
*-*-* | tilegx
*-*-*)
4087 noconfigdirs
="$noconfigdirs sim"
4090 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4093 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4096 noconfigdirs
="$noconfigdirs ld"
4098 loongarch
*-*-linux*)
4101 noconfigdirs
="$noconfigdirs gprof"
4105 # If we aren't building newlib, then don't build libgloss, since libgloss
4106 # depends upon some newlib header files.
4107 case "${noconfigdirs}" in
4108 *target-libgloss
*) ;;
4109 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4112 # Work in distributions that contain no compiler tools, like Autoconf.
4113 host_makefile_frag
=/dev
/null
4114 if test -d ${srcdir}/config
; then
4116 i
[3456789]86-*-msdosdjgpp*)
4117 host_makefile_frag
="config/mh-djgpp"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4122 $as_echo_n "checking to see if cat works as expected... " >&6; }
4123 echo a
>cygwin-cat-check
4124 if test `cat cygwin-cat-check` = a
; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 as_fn_error $?
"The cat command does not ignore carriage return characters.
4133 Please either mount the build directory in binary mode or run the following
4134 commands before running any configure script:
4140 host_makefile_frag
="config/mh-cygwin"
4143 host_makefile_frag
="config/mh-mingw"
4146 host_makefile_frag
="config/mh-alpha-linux"
4149 host_makefile_frag
="config/mh-pa-hpux10"
4152 host_makefile_frag
="config/mh-pa"
4155 host_makefile_frag
="config/mh-pa"
4157 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4158 host_makefile_frag
="config/mh-darwin"
4161 host_makefile_frag
="config/mh-ppc-aix"
4164 host_makefile_frag
="config/mh-ppc-aix"
4169 if test "${build}" != "${host}" ; then
4170 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4171 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4172 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4173 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4174 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4175 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4176 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4177 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4178 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4179 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4180 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4181 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4182 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4183 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4184 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4186 AR_FOR_BUILD
="\$(AR)"
4187 AS_FOR_BUILD
="\$(AS)"
4188 CC_FOR_BUILD
="\$(CC)"
4189 CXX_FOR_BUILD
="\$(CXX)"
4190 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4191 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4192 GOC_FOR_BUILD
="\$(GOC)"
4193 GDC_FOR_BUILD
="\$(GDC)"
4194 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4195 LD_FOR_BUILD
="\$(LD)"
4196 NM_FOR_BUILD
="\$(NM)"
4197 RANLIB_FOR_BUILD
="\$(RANLIB)"
4198 WINDRES_FOR_BUILD
="\$(WINDRES)"
4199 WINDMC_FOR_BUILD
="\$(WINDMC)"
4203 ac_cpp
='$CPP $CPPFLAGS'
4204 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4207 if test -n "$ac_tool_prefix"; then
4208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4209 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_CC+:} false
; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -n "$CC"; then
4216 ac_cv_prog_CC
="$CC" # Let the user override the test.
4218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir
=.
4223 for ac_exec_ext
in '' $ac_executable_extensions; do
4224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 if test -n "$CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238 $as_echo "$CC" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4246 if test -z "$ac_cv_prog_CC"; then
4248 # Extract the first word of "gcc", so it can be a program name with args.
4249 set dummy gcc
; ac_word
=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4253 $as_echo_n "(cached) " >&6
4255 if test -n "$ac_ct_CC"; then
4256 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir
=.
4263 for ac_exec_ext
in '' $ac_executable_extensions; do
4264 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_ac_ct_CC
="gcc"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4276 if test -n "$ac_ct_CC"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4278 $as_echo "$ac_ct_CC" >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4284 if test "x$ac_ct_CC" = x
; then
4287 case $cross_compiling:$ac_tool_warned in
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4291 ac_tool_warned
=yes ;;
4299 if test -z "$CC"; then
4300 if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4302 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_CC+:} false
; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -n "$CC"; then
4309 ac_cv_prog_CC
="$CC" # Let the user override the test.
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_exec_ext
in '' $ac_executable_extensions; do
4317 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4340 if test -z "$CC"; then
4341 # Extract the first word of "cc", so it can be a program name with args.
4342 set dummy cc
; ac_word
=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_CC+:} false
; then :
4346 $as_echo_n "(cached) " >&6
4348 if test -n "$CC"; then
4349 ac_cv_prog_CC
="$CC" # Let the user override the test.
4352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir
=.
4357 for ac_exec_ext
in '' $ac_executable_extensions; do
4358 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4360 ac_prog_rejected
=yes
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 if test $ac_prog_rejected = yes; then
4372 # We found a bogon in the path, so make sure we never use it.
4373 set dummy
$ac_cv_prog_CC
4375 if test $# != 0; then
4376 # We chose a different compiler from the bogus one.
4377 # However, it has the same basename, so the bogon will be chosen
4378 # first if we set CC to just the basename; use the full file name.
4380 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4386 if test -n "$CC"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388 $as_echo "$CC" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4396 if test -z "$CC"; then
4397 if test -n "$ac_tool_prefix"; then
4398 for ac_prog
in cl.exe
4400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4401 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_CC+:} false
; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC
="$CC" # Let the user override the test.
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_exec_ext
in '' $ac_executable_extensions; do
4416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 if test -n "$CC"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4430 $as_echo "$CC" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$CC" && break
4440 if test -z "$CC"; then
4442 for ac_prog
in cl.exe
4444 # Extract the first word of "$ac_prog", so it can be a program name with args.
4445 set dummy
$ac_prog; ac_word
=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4449 $as_echo_n "(cached) " >&6
4451 if test -n "$ac_ct_CC"; then
4452 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir
=.
4459 for ac_exec_ext
in '' $ac_executable_extensions; do
4460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_ac_ct_CC
="$ac_prog"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4472 if test -n "$ac_ct_CC"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4474 $as_echo "$ac_ct_CC" >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4481 test -n "$ac_ct_CC" && break
4484 if test "x$ac_ct_CC" = x
; then
4487 case $cross_compiling:$ac_tool_warned in
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned
=yes ;;
4500 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error $?
"no acceptable C compiler found in \$PATH
4503 See \`config.log' for more details" "$LINENO" 5; }
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4509 for ac_option
in --version -v -V -qversion; do
4510 { { ac_try
="$ac_compiler $ac_option >&5"
4512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4519 if test -s conftest.err; then
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4525 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 ac_clean_files_save=$ac_clean_files
4542 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4543 # Try to create an executable without -o first, disregard a.out.
4544 # It will help us diagnose broken compilers, and finding out an intuition
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4547 $as_echo_n "checking whether the C compiler works... " >&6; }
4548 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4550 # The possible output files:
4551 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4554 for ac_file in $ac_files
4557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4558 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4563 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4575 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4576 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4577 # so that the user can short-circuit this test for compilers unknown to
4579 for ac_file
in $ac_files ''
4581 test -f "$ac_file" ||
continue
4583 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4586 # We found the default executable, but exeext='' is most
4590 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4592 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4594 # We set ac_cv_exeext here because the later test for it is not
4595 # safe: cross compilers may not add the suffix if given an `-o'
4596 # argument, so we may need to know it at that point already.
4597 # Even if this section looks crufty: it has the advantage of
4604 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4609 if test -z "$ac_file"; then :
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.
$ac_ext >&5
4615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4617 as_fn_error
77 "C compiler cannot create executables
4618 See \`config.log' for more details" "$LINENO" 5; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4624 $as_echo_n "checking for C compiler default output file name... " >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4626 $as_echo "$ac_file" >&6; }
4627 ac_exeext
=$ac_cv_exeext
4629 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4630 ac_clean_files
=$ac_clean_files_save
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4632 $as_echo_n "checking for suffix of executables... " >&6; }
4633 if { { ac_try
="$ac_link"
4635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_link") 2>&5
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; then :
4644 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4645 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4646 # work properly (i.e., refer to `conftest.exe'), while it won't with
4648 for ac_file
in conftest.exe conftest conftest.
*; do
4649 test -f "$ac_file" ||
continue
4651 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4652 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4661 See \`config.log' for more details" "$LINENO" 5; }
4663 rm -f conftest conftest
$ac_cv_exeext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4665 $as_echo "$ac_cv_exeext" >&6; }
4667 rm -f conftest.
$ac_ext
4668 EXEEXT
=$ac_cv_exeext
4670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4676 FILE *f = fopen ("conftest.out", "w");
4677 return ferror (f) || fclose (f) != 0;
4683 ac_clean_files
="$ac_clean_files conftest.out"
4684 # Check that the compiler produces executables we can run. If not, either
4685 # the compiler is broken, or we cross compile.
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4687 $as_echo_n "checking whether we are cross compiling... " >&6; }
4688 if test "$cross_compiling" != yes; then
4689 { { ac_try
="$ac_link"
4691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_link") 2>&5
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }
4700 if { ac_try='./conftest$ac_cv_exeext'
4701 { { case "(($ac_try" in
4702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4703 *) ac_try_echo
=$ac_try;;
4705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_try") 2>&5
4709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710 test $ac_status = 0; }; }; then
4713 if test "$cross_compiling" = maybe
; then
4716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718 as_fn_error $?
"cannot run C compiled programs.
4719 If you meant to cross compile, use \`--host'.
4720 See \`config.log' for more details" "$LINENO" 5; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4725 $as_echo "$cross_compiling" >&6; }
4727 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4728 ac_clean_files
=$ac_clean_files_save
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4730 $as_echo_n "checking for suffix of object files... " >&6; }
4731 if ${ac_cv_objext+:} false
; then :
4732 $as_echo_n "(cached) " >&6
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 rm -f conftest.o conftest.obj
4746 if { { ac_try
="$ac_compile"
4748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 $as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_compile") 2>&5
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }; then :
4757 for ac_file in conftest.o conftest.obj conftest.*; do
4758 test -f "$ac_file" || continue;
4760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4761 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4771 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4772 See \
`config.log' for more details" "$LINENO" 5; }
4774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4777 $as_echo "$ac_cv_objext" >&6; }
4778 OBJEXT=$ac_cv_objext
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4781 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4782 if ${ac_cv_c_compiler_gnu+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4799 if ac_fn_c_try_compile "$LINENO"; then :
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4809 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4810 if test $ac_compiler_gnu = yes; then
4815 ac_test_CFLAGS=${CFLAGS+set}
4816 ac_save_CFLAGS=$CFLAGS
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4818 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4819 if ${ac_cv_prog_cc_g+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 ac_save_c_werror_flag=$ac_c_werror_flag
4823 ac_c_werror_flag=yes
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4837 if ac_fn_c_try_compile "$LINENO"; then :
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4852 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4868 if ac_fn_c_try_compile "$LINENO"; then :
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 ac_c_werror_flag=$ac_save_c_werror_flag
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4879 $as_echo "$ac_cv_prog_cc_g" >&6; }
4880 if test "$ac_test_CFLAGS" = set; then
4881 CFLAGS=$ac_save_CFLAGS
4882 elif test $ac_cv_prog_cc_g = yes; then
4883 if test "$GCC" = yes; then
4889 if test "$GCC" = yes; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4896 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4897 if ${ac_cv_prog_cc_c89+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 ac_cv_prog_cc_c89=no
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4908 struct buf { int x; };
4909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4910 static char *e (p, i)
4916 static char *f (char * (*g) (char **, int), char **p, ...)
4921 s = g (p, va_arg (v,int));
4926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4927 function prototypes and stuff, but not '\xHH' hex character constants.
4928 These don't provoke an error unfortunately, instead are silently treated
4929 as 'x'. The following induces an error, until -std is added to get
4930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4931 array size at least. It's necessary to write '\x00'==0 to get something
4932 that's true only with -std. */
4933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4936 inside strings and character constants. */
4938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4940 int test (int i, double x);
4941 struct s1 {int (*f) (int a);};
4942 struct s2 {int (*f) (double a);};
4943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4957 CC="$ac_save_CC $ac_arg"
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 ac_cv_prog_cc_c89=$ac_arg
4961 rm -f core conftest.err conftest.$ac_objext
4962 test "x$ac_cv_prog_cc_c89" != "xno" && break
4964 rm -f conftest.$ac_ext
4969 case "x$ac_cv_prog_cc_c89" in
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4972 $as_echo "none needed" >&6; } ;;
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4975 $as_echo "unsupported" >&6; } ;;
4977 CC="$CC $ac_cv_prog_cc_c89"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4981 if test "x$ac_cv_prog_cc_c89" != xno; then :
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4992 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4993 if ${ac_cv_prog_cc_c99+:} false; then :
4994 $as_echo_n "(cached) " >&6
4996 ac_cv_prog_cc_c99=no
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5001 #include <stdbool.h>
5006 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5007 #define debug(...) fprintf (stderr, __VA_ARGS__)
5008 #define showlist(...) puts (#__VA_ARGS__)
5009 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5011 test_varargs_macros (void)
5016 debug ("X = %d\n", x);
5017 showlist (The first, second, and third items.);
5018 report (x>y, "x is %d but y is %d", x, y);
5021 // Check long long types.
5022 #define BIG64 18446744073709551615ull
5023 #define BIG32 4294967295ul
5024 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5026 your preprocessor is broken;
5030 your preprocessor is broken;
5032 static long long int bignum = -9223372036854775807LL;
5033 static unsigned long long int ubignum = BIG64;
5035 struct incomplete_array
5043 const wchar_t *name;
5047 typedef const char *ccp;
5050 test_restrict (ccp restrict text)
5052 // See if C++-style comments work.
5053 // Iterate through items via the restricted pointer.
5054 // Also check for declarations in for loops.
5055 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5060 // Check varargs and va_copy.
5062 test_varargs (const char *format, ...)
5065 va_start (args, format);
5067 va_copy (args_copy, args);
5078 str = va_arg (args_copy, const char *);
5081 number = va_arg (args_copy, int);
5084 fnumber = va_arg (args_copy, double);
5099 _Bool success = false;
5102 if (test_restrict ("String literal") == 0)
5104 char *restrict newvar = "Another string";
5107 test_varargs ("s, d' f .", "string", 65, 34.234);
5108 test_varargs_macros ();
5110 // Check flexible array members.
5111 struct incomplete_array *ia =
5112 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5114 for (int i = 0; i < ia->datasize; ++i)
5115 ia->data[i] = i * 1.234;
5117 // Check named initializers.
5118 struct named_init ni = {
5120 .name = L"Test wide string",
5121 .average = 543.34343,
5126 int dynamic_array[ni.number];
5127 dynamic_array[ni.number - 1] = 543;
5129 // work around unused variable warnings
5130 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5131 || dynamic_array[ni.number - 1] != 543);
5137 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5139 CC="$ac_save_CC $ac_arg"
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_c99=$ac_arg
5143 rm -f core conftest.err conftest.$ac_objext
5144 test "x$ac_cv_prog_cc_c99" != "xno" && break
5146 rm -f conftest.$ac_ext
5151 case "x$ac_cv_prog_cc_c99" in
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154 $as_echo "none needed" >&6; } ;;
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157 $as_echo "unsupported" >&6; } ;;
5159 CC="$CC $ac_cv_prog_cc_c99"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5161 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5163 if test "x$ac_cv_prog_cc_c99" != xno; then :
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173 if test -z "$CXX"; then
5174 if test -n "$CCC"; then
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_CXX+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$CXX"; then
5188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 if test -n "$CXX"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5210 $as_echo "$CXX" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 test -n "$CXX" && break
5220 if test -z "$CXX"; then
5222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$ac_ct_CXX"; then
5232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_CXX="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5252 if test -n "$ac_ct_CXX"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5254 $as_echo "$ac_ct_CXX" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$ac_ct_CXX" && break
5264 if test "x$ac_ct_CXX" = x; then
5267 case $cross_compiling:$ac_tool_warned in
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5279 # Provide some information about the compiler.
5280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5283 for ac_option in --version -v -V -qversion; do
5284 { { ac_try="$ac_compiler $ac_option >&5"
5286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5287 *) ac_try_echo
=$ac_try;;
5289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5293 if test -s conftest.err
; then
5295 ... rest of stderr output deleted ...
5296 10q' conftest.err
>conftest.er1
5297 cat conftest.er1
>&5
5299 rm -f conftest.er1 conftest.err
5300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5301 test $ac_status = 0; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5306 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5307 $as_echo_n "(cached) " >&6
5309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5323 if ac_fn_cxx_try_compile
"$LINENO"; then :
5328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5329 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5334 if test $ac_compiler_gnu = yes; then
5339 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5340 ac_save_CXXFLAGS
=$CXXFLAGS
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5343 if ${ac_cv_prog_cxx_g+:} false
; then :
5344 $as_echo_n "(cached) " >&6
5346 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5347 ac_cxx_werror_flag
=yes
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5361 if ac_fn_cxx_try_compile
"$LINENO"; then :
5362 ac_cv_prog_cxx_g
=yes
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5376 if ac_fn_cxx_try_compile
"$LINENO"; then :
5379 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5392 if ac_fn_cxx_try_compile
"$LINENO"; then :
5393 ac_cv_prog_cxx_g
=yes
5395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5404 if test "$ac_test_CXXFLAGS" = set; then
5405 CXXFLAGS
=$ac_save_CXXFLAGS
5406 elif test $ac_cv_prog_cxx_g = yes; then
5407 if test "$GXX" = yes; then
5413 if test "$GXX" = yes; then
5420 ac_cpp
='$CPP $CPPFLAGS'
5421 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5426 # We must set the default linker to the linker used by gcc for the correct
5427 # operation of libtool. If LD is not defined and we are using gcc, try to
5428 # set the LD default to the ld used by gcc.
5429 if test -z "$LD"; then
5430 if test "$GCC" = yes; then
5433 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5435 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5437 case $gcc_prog_ld in
5438 # Accept absolute paths.
5439 [\\/]* |
[A-Za-z
]:[\\/]*)
5440 LD
="$gcc_prog_ld" ;;
5445 # Check whether -static-libstdc++ -static-libgcc is supported.
5447 if test "$GCC" = yes; then
5448 saved_LDFLAGS
="$LDFLAGS"
5450 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5452 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5454 ac_cpp
='$CXXCPP $CPPFLAGS'
5455 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5463 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5464 #error -static-libstdc++ not implemented
5468 if ac_fn_cxx_try_link
"$LINENO"; then :
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }; have_static_libs
=yes
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5475 rm -f core conftest.err conftest.
$ac_objext \
5476 conftest
$ac_exeext conftest.
$ac_ext
5478 ac_cpp
='$CPP $CPPFLAGS'
5479 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5484 LDFLAGS
="$saved_LDFLAGS"
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5492 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_GNATBIND+:} false
; then :
5496 $as_echo_n "(cached) " >&6
5498 if test -n "$GNATBIND"; then
5499 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir
=.
5506 for ac_exec_ext
in '' $ac_executable_extensions; do
5507 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 GNATBIND
=$ac_cv_prog_GNATBIND
5519 if test -n "$GNATBIND"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5521 $as_echo "$GNATBIND" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5529 if test -z "$ac_cv_prog_GNATBIND"; then
5530 ac_ct_GNATBIND
=$GNATBIND
5531 # Extract the first word of "gnatbind", so it can be a program name with args.
5532 set dummy gnatbind
; ac_word
=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -n "$ac_ct_GNATBIND"; then
5539 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir
=.
5546 for ac_exec_ext
in '' $ac_executable_extensions; do
5547 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5559 if test -n "$ac_ct_GNATBIND"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5561 $as_echo "$ac_ct_GNATBIND" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5567 if test "x$ac_ct_GNATBIND" = x
; then
5570 case $cross_compiling:$ac_tool_warned in
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned
=yes ;;
5576 GNATBIND
=$ac_ct_GNATBIND
5579 GNATBIND
="$ac_cv_prog_GNATBIND"
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5584 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5590 if test -n "$GNATMAKE"; then
5591 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir
=.
5598 for ac_exec_ext
in '' $ac_executable_extensions; do
5599 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 GNATMAKE
=$ac_cv_prog_GNATMAKE
5611 if test -n "$GNATMAKE"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5613 $as_echo "$GNATMAKE" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test -z "$ac_cv_prog_GNATMAKE"; then
5622 ac_ct_GNATMAKE
=$GNATMAKE
5623 # Extract the first word of "gnatmake", so it can be a program name with args.
5624 set dummy gnatmake
; ac_word
=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$ac_ct_GNATMAKE"; then
5631 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5651 if test -n "$ac_ct_GNATMAKE"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5653 $as_echo "$ac_ct_GNATMAKE" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5659 if test "x$ac_ct_GNATMAKE" = x
; then
5662 case $cross_compiling:$ac_tool_warned in
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned
=yes ;;
5668 GNATMAKE
=$ac_ct_GNATMAKE
5671 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5675 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5676 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5677 $as_echo_n "(cached) " >&6
5679 cat >conftest.adb
<<EOF
5680 pragma Warnings (Off);
5682 pragma Warnings (On);
5683 use type System.CRTL.int64;
5684 procedure conftest is begin null; end conftest;
5686 acx_cv_cc_gcc_supports_ada
=no
5687 # There is a bug in old released versions of GCC which causes the
5688 # driver to exit successfully when the appropriate language module
5689 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5690 # Therefore we must check for the error message as well as an
5691 # unsuccessful exit.
5692 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5693 # given a .adb file, but produce no object file. So we must check
5694 # if an object file was really produced to guard against this.
5695 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5696 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5697 acx_cv_cc_gcc_supports_ada
=yes
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5702 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5704 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5714 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_GDC+:} false
; then :
5718 $as_echo_n "(cached) " >&6
5720 if test -n "$GDC"; then
5721 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir
=.
5728 for ac_exec_ext
in '' $ac_executable_extensions; do
5729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 if test -n "$GDC"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5743 $as_echo "$GDC" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5751 if test -z "$ac_cv_prog_GDC"; then
5753 # Extract the first word of "gdc", so it can be a program name with args.
5754 set dummy gdc
; ac_word
=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$ac_ct_GDC"; then
5761 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir
=.
5768 for ac_exec_ext
in '' $ac_executable_extensions; do
5769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_GDC
="gdc"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5781 if test -n "$ac_ct_GDC"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5783 $as_echo "$ac_ct_GDC" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5789 if test "x$ac_ct_GDC" = x
; then
5792 case $cross_compiling:$ac_tool_warned in
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned
=yes ;;
5801 GDC
="$ac_cv_prog_GDC"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5805 $as_echo_n "checking whether the D compiler works... " >&6; }
5806 if ${acx_cv_d_compiler_works+:} false
; then :
5807 $as_echo_n "(cached) " >&6
5809 cat >conftest.d
<<EOF
5810 module conftest; int main() { return 0; }
5812 acx_cv_d_compiler_works
=no
5813 if test "x$GDC" != xno
; then
5814 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5815 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5816 acx_cv_d_compiler_works
=yes
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5822 $as_echo "$acx_cv_d_compiler_works" >&6; }
5823 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5830 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5831 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5832 $as_echo_n "(cached) " >&6
5836 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5837 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5838 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5841 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5844 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5845 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5848 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5855 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5856 do_compare
="$gcc_cv_prog_cmp_skip"
5860 # Check whether --enable-bootstrap was given.
5861 if test "${enable_bootstrap+set}" = set; then :
5862 enableval
=$enable_bootstrap;
5864 enable_bootstrap
=default
5868 # Issue errors and warnings for invalid/strange bootstrap combinations.
5869 if test -r $srcdir/gcc
/configure
; then
5875 case "$have_compiler:$host:$target:$enable_bootstrap" in
5878 # Default behavior. Enable bootstrap if we have a compiler
5879 # and we are in a native configuration.
5880 yes:$build:$build:default
)
5881 enable_bootstrap
=yes ;;
5884 enable_bootstrap
=no
;;
5886 # We have a compiler and we are in a native configuration, bootstrap is ok
5887 yes:$build:$build:yes)
5890 # Other configurations, but we have a compiler. Assume the user knows
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5894 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5897 # No compiler: if they passed --enable-bootstrap explicitly, fail
5899 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5901 # Fail if wrong command line
5903 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5907 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5908 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5909 # require C++11 (or higher).
5910 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5911 CXX
="$CXX -std=c++11"
5912 elif test "$have_compiler" = yes; then
5913 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5915 ac_cpp
='$CXXCPP $CPPFLAGS'
5916 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5922 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5923 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5924 $as_echo_n "(cached) " >&6
5926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5930 // If the compiler admits that it is not ready for C++11, why torture it?
5931 // Hopefully, this will speed up the test.
5935 #error "This is not a C++ compiler"
5937 #elif __cplusplus < 201103L
5939 #error "This is not a C++11 compiler"
5946 namespace test_static_assert
5949 template <typename T>
5952 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5957 namespace test_final_override
5966 struct Derived : public Base
5968 virtual ~Derived() override {}
5969 virtual void f() override {}
5974 namespace test_double_right_angle_brackets
5977 template < typename T >
5980 typedef check<void> single_type;
5981 typedef check<check<void>> double_type;
5982 typedef check<check<check<void>>> triple_type;
5983 typedef check<check<check<check<void>>>> quadruple_type;
5987 namespace test_decltype
6000 namespace test_type_deduction
6003 template < typename T1, typename T2 >
6006 static const bool value = false;
6009 template < typename T >
6010 struct is_same<T, T>
6012 static const bool value = true;
6015 template < typename T1, typename T2 >
6017 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6023 test(const int c, volatile int v)
6025 static_assert(is_same<int, decltype(0)>::value == true, "");
6026 static_assert(is_same<int, decltype(c)>::value == false, "");
6027 static_assert(is_same<int, decltype(v)>::value == false, "");
6030 auto sumi = ac + av + 'x';
6031 auto sumf = ac + av + 1.0;
6032 static_assert(is_same<int, decltype(ac)>::value == true, "");
6033 static_assert(is_same<int, decltype(av)>::value == true, "");
6034 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6035 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6036 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6037 return (sumf > 0.0) ? sumi : add(c, v);
6042 namespace test_noexcept
6045 int f() { return 0; }
6046 int g() noexcept { return 0; }
6048 static_assert(noexcept(f()) == false, "");
6049 static_assert(noexcept(g()) == true, "");
6053 namespace test_constexpr
6056 template < typename CharT >
6057 unsigned long constexpr
6058 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6060 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6063 template < typename CharT >
6064 unsigned long constexpr
6065 strlen_c(const CharT *const s) noexcept
6067 return strlen_c_r(s, 0UL);
6070 static_assert(strlen_c("") == 0UL, "");
6071 static_assert(strlen_c("1") == 1UL, "");
6072 static_assert(strlen_c("example") == 7UL, "");
6073 static_assert(strlen_c("another\0example") == 7UL, "");
6077 namespace test_rvalue_references
6083 static constexpr int value = N;
6086 answer<1> f(int&) { return answer<1>(); }
6087 answer<2> f(const int&) { return answer<2>(); }
6088 answer<3> f(int&&) { return answer<3>(); }
6095 static_assert(decltype(f(i))::value == 1, "");
6096 static_assert(decltype(f(c))::value == 2, "");
6097 static_assert(decltype(f(0))::value == 3, "");
6102 namespace test_uniform_initialization
6107 static const int zero {};
6108 static const int one {1};
6111 static_assert(test::zero == 0, "");
6112 static_assert(test::one == 1, "");
6116 namespace test_lambdas
6122 auto lambda1 = [](){};
6123 auto lambda2 = lambda1;
6131 auto a = [](int i, int j){ return i + j; }(1, 2);
6132 auto b = []() -> int { return '0'; }();
6133 auto c = [=](){ return a + b; }();
6134 auto d = [&](){ return c; }();
6135 auto e = [a, &b](int x) mutable {
6136 const auto identity = [](int y){ return y; };
6137 for (auto i = 0; i < a; ++i)
6139 return x + identity(a + b);
6141 return a + b + c + d + e;
6147 const auto nullary = [](){ return 0; };
6148 const auto unary = [](int x){ return x; };
6149 using nullary_t = decltype(nullary);
6150 using unary_t = decltype(unary);
6151 const auto higher1st = [](nullary_t f){ return f(); };
6152 const auto higher2nd = [unary](nullary_t f1){
6153 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6155 return higher1st(nullary) + higher2nd(nullary)(unary);
6160 namespace test_variadic_templates
6166 template <int N0, int... N1toN>
6167 struct sum<N0, N1toN...>
6169 static constexpr auto value = N0 + sum<N1toN...>::value;
6175 static constexpr auto value = 0;
6178 static_assert(sum<>::value == 0, "");
6179 static_assert(sum<1>::value == 1, "");
6180 static_assert(sum<23>::value == 23, "");
6181 static_assert(sum<1, 2>::value == 3, "");
6182 static_assert(sum<5, 5, 11>::value == 21, "");
6183 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6187 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6188 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6190 namespace test_template_alias_sfinae
6195 template<typename T>
6196 using member = typename T::member_type;
6198 template<typename T>
6201 template<typename T>
6202 void func(member<T>*) {}
6206 void test() { func<foo>(0); }
6210 } // namespace cxx11
6212 #endif // __cplusplus >= 201103L
6217 if ac_fn_cxx_try_compile
"$LINENO"; then :
6218 ax_cv_cxx_compile_cxx11
=yes
6220 ax_cv_cxx_compile_cxx11
=no
6222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6225 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6226 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6230 if test x
$ac_success = xno
; then
6231 for alternative
in ${ax_cxx_compile_alternatives}; do
6232 switch
="-std=gnu++${alternative}"
6233 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6235 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6236 if eval \
${$cachevar+:} false
; then :
6237 $as_echo_n "(cached) " >&6
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6245 // If the compiler admits that it is not ready for C++11, why torture it?
6246 // Hopefully, this will speed up the test.
6250 #error "This is not a C++ compiler"
6252 #elif __cplusplus < 201103L
6254 #error "This is not a C++11 compiler"
6261 namespace test_static_assert
6264 template <typename T>
6267 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6272 namespace test_final_override
6281 struct Derived : public Base
6283 virtual ~Derived() override {}
6284 virtual void f() override {}
6289 namespace test_double_right_angle_brackets
6292 template < typename T >
6295 typedef check<void> single_type;
6296 typedef check<check<void>> double_type;
6297 typedef check<check<check<void>>> triple_type;
6298 typedef check<check<check<check<void>>>> quadruple_type;
6302 namespace test_decltype
6315 namespace test_type_deduction
6318 template < typename T1, typename T2 >
6321 static const bool value = false;
6324 template < typename T >
6325 struct is_same<T, T>
6327 static const bool value = true;
6330 template < typename T1, typename T2 >
6332 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6338 test(const int c, volatile int v)
6340 static_assert(is_same<int, decltype(0)>::value == true, "");
6341 static_assert(is_same<int, decltype(c)>::value == false, "");
6342 static_assert(is_same<int, decltype(v)>::value == false, "");
6345 auto sumi = ac + av + 'x';
6346 auto sumf = ac + av + 1.0;
6347 static_assert(is_same<int, decltype(ac)>::value == true, "");
6348 static_assert(is_same<int, decltype(av)>::value == true, "");
6349 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6350 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6351 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6352 return (sumf > 0.0) ? sumi : add(c, v);
6357 namespace test_noexcept
6360 int f() { return 0; }
6361 int g() noexcept { return 0; }
6363 static_assert(noexcept(f()) == false, "");
6364 static_assert(noexcept(g()) == true, "");
6368 namespace test_constexpr
6371 template < typename CharT >
6372 unsigned long constexpr
6373 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6375 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6378 template < typename CharT >
6379 unsigned long constexpr
6380 strlen_c(const CharT *const s) noexcept
6382 return strlen_c_r(s, 0UL);
6385 static_assert(strlen_c("") == 0UL, "");
6386 static_assert(strlen_c("1") == 1UL, "");
6387 static_assert(strlen_c("example") == 7UL, "");
6388 static_assert(strlen_c("another\0example") == 7UL, "");
6392 namespace test_rvalue_references
6398 static constexpr int value = N;
6401 answer<1> f(int&) { return answer<1>(); }
6402 answer<2> f(const int&) { return answer<2>(); }
6403 answer<3> f(int&&) { return answer<3>(); }
6410 static_assert(decltype(f(i))::value == 1, "");
6411 static_assert(decltype(f(c))::value == 2, "");
6412 static_assert(decltype(f(0))::value == 3, "");
6417 namespace test_uniform_initialization
6422 static const int zero {};
6423 static const int one {1};
6426 static_assert(test::zero == 0, "");
6427 static_assert(test::one == 1, "");
6431 namespace test_lambdas
6437 auto lambda1 = [](){};
6438 auto lambda2 = lambda1;
6446 auto a = [](int i, int j){ return i + j; }(1, 2);
6447 auto b = []() -> int { return '0'; }();
6448 auto c = [=](){ return a + b; }();
6449 auto d = [&](){ return c; }();
6450 auto e = [a, &b](int x) mutable {
6451 const auto identity = [](int y){ return y; };
6452 for (auto i = 0; i < a; ++i)
6454 return x + identity(a + b);
6456 return a + b + c + d + e;
6462 const auto nullary = [](){ return 0; };
6463 const auto unary = [](int x){ return x; };
6464 using nullary_t = decltype(nullary);
6465 using unary_t = decltype(unary);
6466 const auto higher1st = [](nullary_t f){ return f(); };
6467 const auto higher2nd = [unary](nullary_t f1){
6468 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6470 return higher1st(nullary) + higher2nd(nullary)(unary);
6475 namespace test_variadic_templates
6481 template <int N0, int... N1toN>
6482 struct sum<N0, N1toN...>
6484 static constexpr auto value = N0 + sum<N1toN...>::value;
6490 static constexpr auto value = 0;
6493 static_assert(sum<>::value == 0, "");
6494 static_assert(sum<1>::value == 1, "");
6495 static_assert(sum<23>::value == 23, "");
6496 static_assert(sum<1, 2>::value == 3, "");
6497 static_assert(sum<5, 5, 11>::value == 21, "");
6498 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6502 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6503 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6505 namespace test_template_alias_sfinae
6510 template<typename T>
6511 using member = typename T::member_type;
6513 template<typename T>
6516 template<typename T>
6517 void func(member<T>*) {}
6521 void test() { func<foo>(0); }
6525 } // namespace cxx11
6527 #endif // __cplusplus >= 201103L
6532 if ac_fn_cxx_try_compile
"$LINENO"; then :
6537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6540 eval ac_res
=\$
$cachevar
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6542 $as_echo "$ac_res" >&6; }
6543 if eval test x\$
$cachevar = xyes
; then
6545 if test -n "$CXXCPP" ; then
6546 CXXCPP
="$CXXCPP $switch"
6554 if test x
$ac_success = xno
; then
6555 for alternative
in ${ax_cxx_compile_alternatives}; do
6556 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6557 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6559 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6560 if eval \${$cachevar+:} false; then :
6561 $as_echo_n "(cached
) " >&6
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6569 // If the compiler admits that it is not ready for C++11, why torture it?
6570 // Hopefully, this will speed up the test.
6574 #error "This is not a C
++ compiler
"
6576 #elif __cplusplus < 201103L
6578 #error "This is not a C
++11 compiler
"
6585 namespace test_static_assert
6588 template <typename T>
6591 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6596 namespace test_final_override
6605 struct Derived : public Base
6607 virtual ~Derived() override {}
6608 virtual void f() override {}
6613 namespace test_double_right_angle_brackets
6616 template < typename T >
6619 typedef check<void> single_type;
6620 typedef check<check<void>> double_type;
6621 typedef check<check<check<void>>> triple_type;
6622 typedef check<check<check<check<void>>>> quadruple_type;
6626 namespace test_decltype
6639 namespace test_type_deduction
6642 template < typename T1, typename T2 >
6645 static const bool value = false;
6648 template < typename T >
6649 struct is_same<T, T>
6651 static const bool value = true;
6654 template < typename T1, typename T2 >
6656 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6662 test(const int c, volatile int v)
6664 static_assert(is_same<int, decltype(0)>::value == true, "");
6665 static_assert(is_same<int, decltype(c)>::value == false, "");
6666 static_assert(is_same<int, decltype(v)>::value == false, "");
6669 auto sumi = ac + av + 'x';
6670 auto sumf = ac + av + 1.0;
6671 static_assert(is_same<int, decltype(ac)>::value == true, "");
6672 static_assert(is_same<int, decltype(av)>::value == true, "");
6673 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6674 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6675 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6676 return (sumf > 0.0) ? sumi : add(c, v);
6681 namespace test_noexcept
6684 int f() { return 0; }
6685 int g() noexcept { return 0; }
6687 static_assert(noexcept(f()) == false, "");
6688 static_assert(noexcept(g()) == true, "");
6692 namespace test_constexpr
6695 template < typename CharT >
6696 unsigned long constexpr
6697 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6699 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6702 template < typename CharT >
6703 unsigned long constexpr
6704 strlen_c(const CharT *const s) noexcept
6706 return strlen_c_r(s, 0UL);
6709 static_assert(strlen_c("") == 0UL, "");
6710 static_assert(strlen_c("1") == 1UL, "");
6711 static_assert(strlen_c("example
") == 7UL, "");
6712 static_assert(strlen_c("another\
0example
") == 7UL, "");
6716 namespace test_rvalue_references
6722 static constexpr int value = N;
6725 answer<1> f(int&) { return answer<1>(); }
6726 answer<2> f(const int&) { return answer<2>(); }
6727 answer<3> f(int&&) { return answer<3>(); }
6734 static_assert(decltype(f(i))::value == 1, "");
6735 static_assert(decltype(f(c))::value == 2, "");
6736 static_assert(decltype(f(0))::value == 3, "");
6741 namespace test_uniform_initialization
6746 static const int zero {};
6747 static const int one {1};
6750 static_assert(test::zero == 0, "");
6751 static_assert(test::one == 1, "");
6755 namespace test_lambdas
6761 auto lambda1 = [](){};
6762 auto lambda2 = lambda1;
6770 auto a = [](int i, int j){ return i + j; }(1, 2);
6771 auto b = []() -> int { return '0'; }();
6772 auto c = [=](){ return a + b; }();
6773 auto d = [&](){ return c; }();
6774 auto e = [a, &b](int x) mutable {
6775 const auto identity = [](int y){ return y; };
6776 for (auto i = 0; i < a; ++i)
6778 return x + identity(a + b);
6780 return a + b + c + d + e;
6786 const auto nullary = [](){ return 0; };
6787 const auto unary = [](int x){ return x; };
6788 using nullary_t = decltype(nullary);
6789 using unary_t = decltype(unary);
6790 const auto higher1st = [](nullary_t f){ return f(); };
6791 const auto higher2nd = [unary](nullary_t f1){
6792 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6794 return higher1st(nullary) + higher2nd(nullary)(unary);
6799 namespace test_variadic_templates
6805 template <int N0, int... N1toN>
6806 struct sum<N0, N1toN...>
6808 static constexpr auto value = N0 + sum<N1toN...>::value;
6814 static constexpr auto value = 0;
6817 static_assert(sum<>::value == 0, "");
6818 static_assert(sum<1>::value == 1, "");
6819 static_assert(sum<23>::value == 23, "");
6820 static_assert(sum<1, 2>::value == 3, "");
6821 static_assert(sum<5, 5, 11>::value == 21, "");
6822 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6826 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6827 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6829 namespace test_template_alias_sfinae
6834 template<typename T>
6835 using member = typename T::member_type;
6837 template<typename T>
6840 template<typename T>
6841 void func(member<T>*) {}
6845 void test() { func<foo>(0); }
6849 } // namespace cxx11
6851 #endif // __cplusplus >= 201103L
6856 if ac_fn_cxx_try_compile "$LINENO"; then :
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 eval ac_res=\$$cachevar
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if eval test x\$$cachevar = xyes; then
6869 if test -n "$CXXCPP" ; then
6870 CXXCPP="$CXXCPP $switch"
6876 if test x$ac_success = xyes; then
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6889 if test x$ac_success = xno; then
6890 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6893 if test x$ac_success = xno; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6896 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6900 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6906 if test "${build}" != "${host}"; then
6907 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6909 ac_cpp
='$CXXCPP $CPPFLAGS'
6910 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6914 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6915 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6916 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6917 CXX
="$CXX_FOR_BUILD"
6918 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6919 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6921 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6922 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6923 $as_echo_n "(cached) " >&6
6925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6929 // If the compiler admits that it is not ready for C++11, why torture it?
6930 // Hopefully, this will speed up the test.
6934 #error "This is not a C++ compiler"
6936 #elif __cplusplus < 201103L
6938 #error "This is not a C++11 compiler"
6945 namespace test_static_assert
6948 template <typename T>
6951 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6956 namespace test_final_override
6965 struct Derived : public Base
6967 virtual ~Derived() override {}
6968 virtual void f() override {}
6973 namespace test_double_right_angle_brackets
6976 template < typename T >
6979 typedef check<void> single_type;
6980 typedef check<check<void>> double_type;
6981 typedef check<check<check<void>>> triple_type;
6982 typedef check<check<check<check<void>>>> quadruple_type;
6986 namespace test_decltype
6999 namespace test_type_deduction
7002 template < typename T1, typename T2 >
7005 static const bool value = false;
7008 template < typename T >
7009 struct is_same<T, T>
7011 static const bool value = true;
7014 template < typename T1, typename T2 >
7016 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7022 test(const int c, volatile int v)
7024 static_assert(is_same<int, decltype(0)>::value == true, "");
7025 static_assert(is_same<int, decltype(c)>::value == false, "");
7026 static_assert(is_same<int, decltype(v)>::value == false, "");
7029 auto sumi = ac + av + 'x';
7030 auto sumf = ac + av + 1.0;
7031 static_assert(is_same<int, decltype(ac)>::value == true, "");
7032 static_assert(is_same<int, decltype(av)>::value == true, "");
7033 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7034 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7035 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7036 return (sumf > 0.0) ? sumi : add(c, v);
7041 namespace test_noexcept
7044 int f() { return 0; }
7045 int g() noexcept { return 0; }
7047 static_assert(noexcept(f()) == false, "");
7048 static_assert(noexcept(g()) == true, "");
7052 namespace test_constexpr
7055 template < typename CharT >
7056 unsigned long constexpr
7057 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7059 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7062 template < typename CharT >
7063 unsigned long constexpr
7064 strlen_c(const CharT *const s) noexcept
7066 return strlen_c_r(s, 0UL);
7069 static_assert(strlen_c("") == 0UL, "");
7070 static_assert(strlen_c("1") == 1UL, "");
7071 static_assert(strlen_c("example") == 7UL, "");
7072 static_assert(strlen_c("another\0example") == 7UL, "");
7076 namespace test_rvalue_references
7082 static constexpr int value = N;
7085 answer<1> f(int&) { return answer<1>(); }
7086 answer<2> f(const int&) { return answer<2>(); }
7087 answer<3> f(int&&) { return answer<3>(); }
7094 static_assert(decltype(f(i))::value == 1, "");
7095 static_assert(decltype(f(c))::value == 2, "");
7096 static_assert(decltype(f(0))::value == 3, "");
7101 namespace test_uniform_initialization
7106 static const int zero {};
7107 static const int one {1};
7110 static_assert(test::zero == 0, "");
7111 static_assert(test::one == 1, "");
7115 namespace test_lambdas
7121 auto lambda1 = [](){};
7122 auto lambda2 = lambda1;
7130 auto a = [](int i, int j){ return i + j; }(1, 2);
7131 auto b = []() -> int { return '0'; }();
7132 auto c = [=](){ return a + b; }();
7133 auto d = [&](){ return c; }();
7134 auto e = [a, &b](int x) mutable {
7135 const auto identity = [](int y){ return y; };
7136 for (auto i = 0; i < a; ++i)
7138 return x + identity(a + b);
7140 return a + b + c + d + e;
7146 const auto nullary = [](){ return 0; };
7147 const auto unary = [](int x){ return x; };
7148 using nullary_t = decltype(nullary);
7149 using unary_t = decltype(unary);
7150 const auto higher1st = [](nullary_t f){ return f(); };
7151 const auto higher2nd = [unary](nullary_t f1){
7152 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7154 return higher1st(nullary) + higher2nd(nullary)(unary);
7159 namespace test_variadic_templates
7165 template <int N0, int... N1toN>
7166 struct sum<N0, N1toN...>
7168 static constexpr auto value = N0 + sum<N1toN...>::value;
7174 static constexpr auto value = 0;
7177 static_assert(sum<>::value == 0, "");
7178 static_assert(sum<1>::value == 1, "");
7179 static_assert(sum<23>::value == 23, "");
7180 static_assert(sum<1, 2>::value == 3, "");
7181 static_assert(sum<5, 5, 11>::value == 21, "");
7182 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7186 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7187 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7189 namespace test_template_alias_sfinae
7194 template<typename T>
7195 using member = typename T::member_type;
7197 template<typename T>
7200 template<typename T>
7201 void func(member<T>*) {}
7205 void test() { func<foo>(0); }
7209 } // namespace cxx11
7211 #endif // __cplusplus >= 201103L
7216 if ac_fn_cxx_try_compile
"$LINENO"; then :
7217 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7219 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7224 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7225 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7229 if test x
$ac_success = xno
; then
7230 for alternative
in ${ax_cxx_compile_alternatives}; do
7231 switch
="-std=gnu++${alternative}"
7232 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7234 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7235 if eval \
${$cachevar+:} false
; then :
7236 $as_echo_n "(cached) " >&6
7240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7244 // If the compiler admits that it is not ready for C++11, why torture it?
7245 // Hopefully, this will speed up the test.
7249 #error "This is not a C++ compiler"
7251 #elif __cplusplus < 201103L
7253 #error "This is not a C++11 compiler"
7260 namespace test_static_assert
7263 template <typename T>
7266 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7271 namespace test_final_override
7280 struct Derived : public Base
7282 virtual ~Derived() override {}
7283 virtual void f() override {}
7288 namespace test_double_right_angle_brackets
7291 template < typename T >
7294 typedef check<void> single_type;
7295 typedef check<check<void>> double_type;
7296 typedef check<check<check<void>>> triple_type;
7297 typedef check<check<check<check<void>>>> quadruple_type;
7301 namespace test_decltype
7314 namespace test_type_deduction
7317 template < typename T1, typename T2 >
7320 static const bool value = false;
7323 template < typename T >
7324 struct is_same<T, T>
7326 static const bool value = true;
7329 template < typename T1, typename T2 >
7331 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7337 test(const int c, volatile int v)
7339 static_assert(is_same<int, decltype(0)>::value == true, "");
7340 static_assert(is_same<int, decltype(c)>::value == false, "");
7341 static_assert(is_same<int, decltype(v)>::value == false, "");
7344 auto sumi = ac + av + 'x';
7345 auto sumf = ac + av + 1.0;
7346 static_assert(is_same<int, decltype(ac)>::value == true, "");
7347 static_assert(is_same<int, decltype(av)>::value == true, "");
7348 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7349 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7350 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7351 return (sumf > 0.0) ? sumi : add(c, v);
7356 namespace test_noexcept
7359 int f() { return 0; }
7360 int g() noexcept { return 0; }
7362 static_assert(noexcept(f()) == false, "");
7363 static_assert(noexcept(g()) == true, "");
7367 namespace test_constexpr
7370 template < typename CharT >
7371 unsigned long constexpr
7372 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7374 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7377 template < typename CharT >
7378 unsigned long constexpr
7379 strlen_c(const CharT *const s) noexcept
7381 return strlen_c_r(s, 0UL);
7384 static_assert(strlen_c("") == 0UL, "");
7385 static_assert(strlen_c("1") == 1UL, "");
7386 static_assert(strlen_c("example") == 7UL, "");
7387 static_assert(strlen_c("another\0example") == 7UL, "");
7391 namespace test_rvalue_references
7397 static constexpr int value = N;
7400 answer<1> f(int&) { return answer<1>(); }
7401 answer<2> f(const int&) { return answer<2>(); }
7402 answer<3> f(int&&) { return answer<3>(); }
7409 static_assert(decltype(f(i))::value == 1, "");
7410 static_assert(decltype(f(c))::value == 2, "");
7411 static_assert(decltype(f(0))::value == 3, "");
7416 namespace test_uniform_initialization
7421 static const int zero {};
7422 static const int one {1};
7425 static_assert(test::zero == 0, "");
7426 static_assert(test::one == 1, "");
7430 namespace test_lambdas
7436 auto lambda1 = [](){};
7437 auto lambda2 = lambda1;
7445 auto a = [](int i, int j){ return i + j; }(1, 2);
7446 auto b = []() -> int { return '0'; }();
7447 auto c = [=](){ return a + b; }();
7448 auto d = [&](){ return c; }();
7449 auto e = [a, &b](int x) mutable {
7450 const auto identity = [](int y){ return y; };
7451 for (auto i = 0; i < a; ++i)
7453 return x + identity(a + b);
7455 return a + b + c + d + e;
7461 const auto nullary = [](){ return 0; };
7462 const auto unary = [](int x){ return x; };
7463 using nullary_t = decltype(nullary);
7464 using unary_t = decltype(unary);
7465 const auto higher1st = [](nullary_t f){ return f(); };
7466 const auto higher2nd = [unary](nullary_t f1){
7467 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7469 return higher1st(nullary) + higher2nd(nullary)(unary);
7474 namespace test_variadic_templates
7480 template <int N0, int... N1toN>
7481 struct sum<N0, N1toN...>
7483 static constexpr auto value = N0 + sum<N1toN...>::value;
7489 static constexpr auto value = 0;
7492 static_assert(sum<>::value == 0, "");
7493 static_assert(sum<1>::value == 1, "");
7494 static_assert(sum<23>::value == 23, "");
7495 static_assert(sum<1, 2>::value == 3, "");
7496 static_assert(sum<5, 5, 11>::value == 21, "");
7497 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7501 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7502 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7504 namespace test_template_alias_sfinae
7509 template<typename T>
7510 using member = typename T::member_type;
7512 template<typename T>
7515 template<typename T>
7516 void func(member<T>*) {}
7520 void test() { func<foo>(0); }
7524 } // namespace cxx11
7526 #endif // __cplusplus >= 201103L
7531 if ac_fn_cxx_try_compile
"$LINENO"; then :
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 eval ac_res
=\$
$cachevar
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7541 $as_echo "$ac_res" >&6; }
7542 if eval test x\$
$cachevar = xyes
; then
7544 if test -n "$CXXCPP" ; then
7545 CXXCPP
="$CXXCPP $switch"
7553 if test x
$ac_success = xno
; then
7554 for alternative
in ${ax_cxx_compile_alternatives}; do
7555 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7556 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7558 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7559 if eval \${$cachevar+:} false; then :
7560 $as_echo_n "(cached
) " >&6
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7568 // If the compiler admits that it is not ready for C++11, why torture it?
7569 // Hopefully, this will speed up the test.
7573 #error "This is not a C
++ compiler
"
7575 #elif __cplusplus < 201103L
7577 #error "This is not a C
++11 compiler
"
7584 namespace test_static_assert
7587 template <typename T>
7590 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7595 namespace test_final_override
7604 struct Derived : public Base
7606 virtual ~Derived() override {}
7607 virtual void f() override {}
7612 namespace test_double_right_angle_brackets
7615 template < typename T >
7618 typedef check<void> single_type;
7619 typedef check<check<void>> double_type;
7620 typedef check<check<check<void>>> triple_type;
7621 typedef check<check<check<check<void>>>> quadruple_type;
7625 namespace test_decltype
7638 namespace test_type_deduction
7641 template < typename T1, typename T2 >
7644 static const bool value = false;
7647 template < typename T >
7648 struct is_same<T, T>
7650 static const bool value = true;
7653 template < typename T1, typename T2 >
7655 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7661 test(const int c, volatile int v)
7663 static_assert(is_same<int, decltype(0)>::value == true, "");
7664 static_assert(is_same<int, decltype(c)>::value == false, "");
7665 static_assert(is_same<int, decltype(v)>::value == false, "");
7668 auto sumi = ac + av + 'x';
7669 auto sumf = ac + av + 1.0;
7670 static_assert(is_same<int, decltype(ac)>::value == true, "");
7671 static_assert(is_same<int, decltype(av)>::value == true, "");
7672 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7673 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7674 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7675 return (sumf > 0.0) ? sumi : add(c, v);
7680 namespace test_noexcept
7683 int f() { return 0; }
7684 int g() noexcept { return 0; }
7686 static_assert(noexcept(f()) == false, "");
7687 static_assert(noexcept(g()) == true, "");
7691 namespace test_constexpr
7694 template < typename CharT >
7695 unsigned long constexpr
7696 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7698 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7701 template < typename CharT >
7702 unsigned long constexpr
7703 strlen_c(const CharT *const s) noexcept
7705 return strlen_c_r(s, 0UL);
7708 static_assert(strlen_c("") == 0UL, "");
7709 static_assert(strlen_c("1") == 1UL, "");
7710 static_assert(strlen_c("example
") == 7UL, "");
7711 static_assert(strlen_c("another\
0example
") == 7UL, "");
7715 namespace test_rvalue_references
7721 static constexpr int value = N;
7724 answer<1> f(int&) { return answer<1>(); }
7725 answer<2> f(const int&) { return answer<2>(); }
7726 answer<3> f(int&&) { return answer<3>(); }
7733 static_assert(decltype(f(i))::value == 1, "");
7734 static_assert(decltype(f(c))::value == 2, "");
7735 static_assert(decltype(f(0))::value == 3, "");
7740 namespace test_uniform_initialization
7745 static const int zero {};
7746 static const int one {1};
7749 static_assert(test::zero == 0, "");
7750 static_assert(test::one == 1, "");
7754 namespace test_lambdas
7760 auto lambda1 = [](){};
7761 auto lambda2 = lambda1;
7769 auto a = [](int i, int j){ return i + j; }(1, 2);
7770 auto b = []() -> int { return '0'; }();
7771 auto c = [=](){ return a + b; }();
7772 auto d = [&](){ return c; }();
7773 auto e = [a, &b](int x) mutable {
7774 const auto identity = [](int y){ return y; };
7775 for (auto i = 0; i < a; ++i)
7777 return x + identity(a + b);
7779 return a + b + c + d + e;
7785 const auto nullary = [](){ return 0; };
7786 const auto unary = [](int x){ return x; };
7787 using nullary_t = decltype(nullary);
7788 using unary_t = decltype(unary);
7789 const auto higher1st = [](nullary_t f){ return f(); };
7790 const auto higher2nd = [unary](nullary_t f1){
7791 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7793 return higher1st(nullary) + higher2nd(nullary)(unary);
7798 namespace test_variadic_templates
7804 template <int N0, int... N1toN>
7805 struct sum<N0, N1toN...>
7807 static constexpr auto value = N0 + sum<N1toN...>::value;
7813 static constexpr auto value = 0;
7816 static_assert(sum<>::value == 0, "");
7817 static_assert(sum<1>::value == 1, "");
7818 static_assert(sum<23>::value == 23, "");
7819 static_assert(sum<1, 2>::value == 3, "");
7820 static_assert(sum<5, 5, 11>::value == 21, "");
7821 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7825 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7826 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7828 namespace test_template_alias_sfinae
7833 template<typename T>
7834 using member = typename T::member_type;
7836 template<typename T>
7839 template<typename T>
7840 void func(member<T>*) {}
7844 void test() { func<foo>(0); }
7848 } // namespace cxx11
7850 #endif // __cplusplus >= 201103L
7855 if ac_fn_cxx_try_compile "$LINENO"; then :
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 eval ac_res=\$$cachevar
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7866 if eval test x\$$cachevar = xyes; then
7868 if test -n "$CXXCPP" ; then
7869 CXXCPP="$CXXCPP $switch"
7875 if test x$ac_success = xyes; then
7880 CXX_FOR_BUILD="$CXX"
7881 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7882 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7883 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7884 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7885 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7893 if test x$ac_success = xno; then
7894 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7897 if test x$ac_success = xno; then
7898 HAVE_CXX11_FOR_BUILD=0
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7900 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7902 HAVE_CXX11_FOR_BUILD=1
7904 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7912 # Check whether --enable-pgo-build was given.
7913 if test "${enable_pgo_build+set}" = set; then :
7914 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7920 # Issue errors and warnings for invalid/strange PGO build combinations.
7921 case "$have_compiler:$host:$target:$enable_pgo_build" in
7924 # Allow the PGO build only if we aren't building a compiler and
7925 # we are in a native configuration.
7926 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7928 # Disallow the PGO bootstrap if we are building a compiler.
7929 yes:*:*:yes |
yes:*:*:lto
)
7930 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7933 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7937 if test "$enable_pgo_build" != "no"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7939 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7940 old_CFLAGS
="$CFLAGS"
7941 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7942 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7948 if ac_fn_c_try_compile
"$LINENO"; then :
7951 PGO_BUILD_GEN_CFLAGS
=
7953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7954 CFLAGS
="$old_CFLAGS"
7955 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7957 $as_echo "yes" >&6; }
7958 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7965 if test "$enable_pgo_build" = "lto"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7967 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7968 old_CFLAGS
="$CFLAGS"
7969 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7970 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7975 if ac_fn_c_try_compile
"$LINENO"; then :
7978 PGO_BUILD_LTO_CFLAGS
=
7980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 CFLAGS
="$old_CFLAGS"
7982 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7989 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7997 # Used for setting $lt_cv_objdir
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7999 $as_echo_n "checking for objdir... " >&6; }
8000 if ${lt_cv_objdir+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 rm -f .libs
2>/dev
/null
8004 mkdir .libs
2>/dev
/null
8005 if test -d .libs
; then
8008 # MS-DOS does not allow filenames that begin with a dot.
8011 rmdir .libs
2>/dev
/null
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8014 $as_echo "$lt_cv_objdir" >&6; }
8015 objdir
=$lt_cv_objdir
8021 cat >>confdefs.h
<<_ACEOF
8022 #define LT_OBJDIR "$lt_cv_objdir/"
8027 # Check for GMP, MPFR and MPC
8030 if test -d ${srcdir}/gcc
; then
8034 if test -d ${srcdir}/gdb
; then
8038 gmplibs
="-lmpfr -lgmp"
8039 if test x
"$require_mpc" = "xyes" ; then
8040 gmplibs
="-lmpc $gmplibs"
8045 # Specify a location for mpc
8046 # check for this first so it ends up on the link line before mpfr.
8048 # Check whether --with-mpc was given.
8049 if test "${with_mpc+set}" = set; then :
8054 # Check whether --with-mpc-include was given.
8055 if test "${with_mpc_include+set}" = set; then :
8056 withval
=$with_mpc_include;
8060 # Check whether --with-mpc-lib was given.
8061 if test "${with_mpc_lib+set}" = set; then :
8062 withval
=$with_mpc_lib;
8066 if test "x$with_mpc" != x
; then
8067 gmplibs
="-L$with_mpc/lib $gmplibs"
8068 gmpinc
="-I$with_mpc/include $gmpinc"
8070 if test "x$with_mpc_include" != x
; then
8071 gmpinc
="-I$with_mpc_include $gmpinc"
8073 if test "x$with_mpc_lib" != x
; then
8074 gmplibs
="-L$with_mpc_lib $gmplibs"
8076 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8077 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8078 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8079 # Do not test the mpc version. Assume that it is sufficient, since
8080 # it is in the source tree, and the library has not been built yet
8081 # but it would be included on the link line in the version check below
8082 # hence making the test fail.
8086 # Specify a location for mpfr
8087 # check for this first so it ends up on the link line before gmp.
8089 # Check whether --with-mpfr was given.
8090 if test "${with_mpfr+set}" = set; then :
8095 # Check whether --with-mpfr-include was given.
8096 if test "${with_mpfr_include+set}" = set; then :
8097 withval
=$with_mpfr_include;
8101 # Check whether --with-mpfr-lib was given.
8102 if test "${with_mpfr_lib+set}" = set; then :
8103 withval
=$with_mpfr_lib;
8107 if test "x$with_mpfr" != x
; then
8108 gmplibs
="-L$with_mpfr/lib $gmplibs"
8109 gmpinc
="-I$with_mpfr/include $gmpinc"
8111 if test "x$with_mpfr_include" != x
; then
8112 gmpinc
="-I$with_mpfr_include $gmpinc"
8114 if test "x$with_mpfr_lib" != x
; then
8115 gmplibs
="-L$with_mpfr_lib $gmplibs"
8117 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8118 # MPFR v3.1.0 moved the sources into a src sub-directory.
8119 if ! test -d ${srcdir}/mpfr
/src
; then
8120 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8122 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8123 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8124 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8125 # Do not test the mpfr version. Assume that it is sufficient, since
8126 # it is in the source tree, and the library has not been built yet
8127 # but it would be included on the link line in the version check below
8128 # hence making the test fail.
8132 # Specify a location for gmp
8134 # Check whether --with-gmp was given.
8135 if test "${with_gmp+set}" = set; then :
8140 # Check whether --with-gmp-include was given.
8141 if test "${with_gmp_include+set}" = set; then :
8142 withval
=$with_gmp_include;
8146 # Check whether --with-gmp-lib was given.
8147 if test "${with_gmp_lib+set}" = set; then :
8148 withval
=$with_gmp_lib;
8153 if test "x$with_gmp" != x
; then
8154 gmplibs
="-L$with_gmp/lib $gmplibs"
8155 gmpinc
="-I$with_gmp/include $gmpinc"
8157 if test "x$with_gmp_include" != x
; then
8158 gmpinc
="-I$with_gmp_include $gmpinc"
8160 if test "x$with_gmp_lib" != x
; then
8161 gmplibs
="-L$with_gmp_lib $gmplibs"
8163 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8164 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8165 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8166 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8167 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8168 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8169 # Do not test the gmp version. Assume that it is sufficient, since
8170 # it is in the source tree, and the library has not been built yet
8171 # but it would be included on the link line in the version check below
8172 # hence making the test fail.
8176 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8178 saved_CFLAGS
="$CFLAGS"
8179 CFLAGS
="$CFLAGS $gmpinc"
8180 # Check for the recommended and required versions of GMP.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8182 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8190 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8191 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8192 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8200 if ac_fn_c_try_compile
"$LINENO"; then :
8201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8208 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8209 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8210 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8218 if ac_fn_c_try_compile
"$LINENO"; then :
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8223 $as_echo "buggy but acceptable" >&6; }
8225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }; have_gmp
=no
8230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8232 # If we have GMP, check the MPFR version.
8233 if test x
"$have_gmp" = xyes
; then
8234 # Check for the recommended and required versions of MPFR.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8236 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8245 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8253 if ac_fn_c_try_compile
"$LINENO"; then :
8254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8262 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8270 if ac_fn_c_try_compile
"$LINENO"; then :
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8275 $as_echo "buggy but acceptable" >&6; }
8277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }; have_gmp
=no
8282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 # Check for the MPC header version.
8286 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8287 # Check for the recommended and required versions of MPC.
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8289 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8297 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8305 if ac_fn_c_try_compile
"$LINENO"; then :
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8313 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8321 if ac_fn_c_try_compile
"$LINENO"; then :
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8326 $as_echo "buggy but acceptable" >&6; }
8328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }; have_gmp
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 # Now check the MPFR library.
8337 if test x
"$have_gmp" = xyes
; then
8339 LIBS
="$LIBS $gmplibs"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8341 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8354 mpfr_atan2 (n, n, x, MPFR_RNDN);
8355 mpfr_erfc (n, x, MPFR_RNDN);
8356 mpfr_subnormalize (x, t, MPFR_RNDN);
8364 if ac_fn_c_try_link
"$LINENO"; then :
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8366 $as_echo "yes" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }; have_gmp
=no
8371 rm -f core conftest.err conftest.
$ac_objext \
8372 conftest
$ac_exeext conftest.
$ac_ext
8376 # Now check the MPC library
8377 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8379 LIBS
="$LIBS $gmplibs"
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8381 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8391 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8392 mpc_cosh (c, c, MPC_RNDNN);
8393 mpc_pow (c, c, c, MPC_RNDNN);
8394 mpc_acosh (c, c, MPC_RNDNN);
8401 if ac_fn_c_try_link
"$LINENO"; then :
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8403 $as_echo "yes" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }; have_gmp
=no
8408 rm -f core conftest.err conftest.
$ac_objext \
8409 conftest
$ac_exeext conftest.
$ac_ext
8413 CFLAGS
="$saved_CFLAGS"
8415 # The library versions listed in the error message below should match
8416 # the HARD-minimums enforced above.
8417 if test x
$have_gmp != xyes
; then
8418 if test -d ${srcdir}/gcc
; then
8419 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8420 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8421 their locations. Source code for these libraries can be found at
8422 their respective hosting sites as well as at
8423 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8424 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8425 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8426 make sure that you have installed both the libraries and the header
8427 files. They may be located in separate packages." "$LINENO" 5
8429 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8430 Try the --with-gmp and/or --with-mpfr options to specify
8431 their locations. If you obtained GMP and/or MPFR from a vendor
8432 distribution package, make sure that you have installed both the libraries
8433 and the header files. They may be located in separate packages." "$LINENO" 5
8438 # Flags needed for both GMP, MPFR and/or MPC.
8446 # Libraries to use for stage1 or when not bootstrapping.
8448 # Check whether --with-stage1-libs was given.
8449 if test "${with_stage1_libs+set}" = set; then :
8450 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8453 stage1_libs
=$withval
8461 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8462 # default is yes if gcc is being built; no otherwise. The reason for
8463 # this default is that gdb is sometimes linked against GNU Source
8464 # Highlight, which is a shared library that uses C++ exceptions. In
8465 # this case, -static-libstdc++ will cause crashes.
8467 # Check whether --with-static-standard-libraries was given.
8468 if test "${with_static_standard_libraries+set}" = set; then :
8469 withval
=$with_static_standard_libraries;
8471 with_static_standard_libraries
=auto
8474 if test "$with_static_standard_libraries" = auto
; then
8475 with_static_standard_libraries
=$have_compiler
8478 # Linker flags to use for stage1 or when not bootstrapping.
8480 # Check whether --with-stage1-ldflags was given.
8481 if test "${with_stage1_ldflags+set}" = set; then :
8482 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8485 stage1_ldflags
=$withval
8489 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8490 # if supported. But if the user explicitly specified the libraries to use,
8491 # trust that they are doing what they want.
8492 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8493 -a "$have_static_libs" = yes; then
8494 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8500 # Libraries to use for stage2 and later builds.
8502 # Check whether --with-boot-libs was given.
8503 if test "${with_boot_libs+set}" = set; then :
8504 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8507 poststage1_libs
=$withval
8515 # Linker flags to use for stage2 and later builds.
8517 # Check whether --with-boot-ldflags was given.
8518 if test "${with_boot_ldflags+set}" = set; then :
8519 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8522 poststage1_ldflags
=$withval
8526 # In stages 2 and 3, default to linking libstdc++ and libgcc
8527 # statically. But if the user explicitly specified the libraries to
8528 # use, trust that they are doing what they want.
8529 if test "$poststage1_libs" = ""; then
8530 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8536 # GCC GRAPHITE dependency isl.
8537 # Basic setup is inlined here, actual checks are in config/isl.m4
8540 # Check whether --with-isl was given.
8541 if test "${with_isl+set}" = set; then :
8546 # Treat --without-isl as a request to disable
8547 # GRAPHITE support and skip all following checks.
8548 if test "x$with_isl" != "xno"; then
8552 # Check whether --with-isl-include was given.
8553 if test "${with_isl_include+set}" = set; then :
8554 withval
=$with_isl_include;
8558 # Check whether --with-isl-lib was given.
8559 if test "${with_isl_lib+set}" = set; then :
8560 withval
=$with_isl_lib;
8564 # Check whether --enable-isl-version-check was given.
8565 if test "${enable_isl_version_check+set}" = set; then :
8566 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8568 ENABLE_ISL_CHECK
=yes
8572 # Initialize isllibs and islinc.
8581 isllibs
="-L$with_isl/lib"
8582 islinc
="-I$with_isl/include"
8585 if test "x${with_isl_include}" != x
; then
8586 islinc
="-I$with_isl_include"
8588 if test "x${with_isl_lib}" != x
; then
8589 isllibs
="-L$with_isl_lib"
8591 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8592 && test -d ${srcdir}/isl
; then
8593 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8594 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8597 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8600 isllibs
="${isllibs} -lisl"
8604 if test "${ENABLE_ISL_CHECK}" = yes ; then
8605 _isl_saved_CFLAGS
=$CFLAGS
8606 _isl_saved_LDFLAGS
=$LDFLAGS
8607 _isl_saved_LIBS
=$LIBS
8609 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8610 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8611 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8614 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <isl/schedule.h>
8621 isl_options_set_schedule_serialize_sccs (NULL, 0);
8626 if ac_fn_c_try_link
"$LINENO"; then :
8631 rm -f core conftest.err conftest.
$ac_objext \
8632 conftest
$ac_exeext conftest.
$ac_ext
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8634 $as_echo "$gcc_cv_isl" >&6; }
8636 if test "${gcc_cv_isl}" = no
; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8638 $as_echo "required isl version is 0.15 or later" >&6; }
8641 CFLAGS
=$_isl_saved_CFLAGS
8642 LDFLAGS
=$_isl_saved_LDFLAGS
8643 LIBS
=$_isl_saved_LIBS
8651 if test "x${with_isl}" = xno
; then
8652 graphite_requested
=no
8653 elif test "x${with_isl}" != x \
8654 ||
test "x${with_isl_include}" != x \
8655 ||
test "x${with_isl_lib}" != x
; then
8656 graphite_requested
=yes
8658 graphite_requested
=no
8663 if test "${gcc_cv_isl}" = no
; then
8668 if test "${graphite_requested}" = yes \
8669 && test "x${isllibs}" = x \
8670 && test "x${islinc}" = x
; then
8672 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8678 # If the isl check failed, disable builds of in-tree variant of isl
8679 if test "x$with_isl" = xno ||
8680 test "x$gcc_cv_isl" = xno
; then
8681 noconfigdirs
="$noconfigdirs isl"
8688 # Check for LTO support.
8689 # Check whether --enable-lto was given.
8690 if test "${enable_lto+set}" = set; then :
8691 enableval
=$enable_lto; enable_lto
=$enableval
8693 enable_lto
=yes; default_enable_lto
=yes
8702 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8703 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8704 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8713 if test $target_elf = yes; then :
8714 # ELF platforms build the lto-plugin always.
8715 build_lto_plugin
=yes
8718 if test x
"$default_enable_lto" = x
"yes" ; then
8720 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8721 # On other non-ELF platforms, LTO has yet to be validated.
8725 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8726 # It would also be nice to check the binutils support, but we don't
8727 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8728 # warn during gcc/ subconfigure; unless you're bootstrapping with
8729 # -flto it won't be needed until after installation anyway.
8731 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8732 *) if test x
"$enable_lto" = x
"yes"; then
8733 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8738 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8739 # Build it unless LTO was explicitly disabled.
8741 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8748 # Check whether --enable-linker-plugin-configure-flags was given.
8749 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8750 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8752 extra_linker_plugin_configure_flags
=
8756 # Check whether --enable-linker-plugin-flags was given.
8757 if test "${enable_linker_plugin_flags+set}" = set; then :
8758 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8760 extra_linker_plugin_flags
=
8765 # Enable --enable-host-shared.
8766 # Checked early to determine whether jit is an 'all' language
8767 # Check whether --enable-host-shared was given.
8768 if test "${enable_host_shared+set}" = set; then :
8769 enableval
=$enable_host_shared; host_shared
=$enableval
8771 x86_64-
*-darwin* | aarch64-
*-darwin*)
8772 if test x
$host_shared != xyes
; then
8773 # PIC is the default, and actually cannot be switched off.
8774 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8781 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8782 *) host_shared
=no
;;
8788 # By default, C and C++ are the only stage 1 languages.
8789 stage1_languages
=,c
,
8791 # Target libraries that we bootstrap.
8792 bootstrap_target_libs
=,target-libgcc
,
8794 # Figure out what language subdirectories are present.
8795 # Look if the user specified --enable-languages="..."; if not, use
8796 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8798 # NB: embedded tabs in this IF block -- do not untabify
8799 if test -d ${srcdir}/gcc
; then
8800 if test x
"${enable_languages+set}" != xset
; then
8801 if test x
"${LANGUAGES+set}" = xset
; then
8802 enable_languages
="${LANGUAGES}"
8803 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8805 enable_languages
=default
8808 if test x
"${enable_languages}" = x ||
8809 test x
"${enable_languages}" = xyes
;
8811 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8815 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8817 # 'f95' is the old name for the 'fortran' language. We issue a warning
8818 # and make the substitution.
8819 case ,${enable_languages}, in
8821 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8822 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8826 # If bootstrapping, C++ must be enabled.
8827 case ",$enable_languages,:$enable_bootstrap" in
8830 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8831 enable_languages
="${enable_languages},c++"
8833 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8838 # First scan to see if an enabled language requires some other language.
8839 # We assume that a given config-lang.in will list all the language
8840 # front ends it requires, even if some are required indirectly.
8841 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8842 case ${lang_frag} in
8844 # The odd quoting in the next line works around
8845 # an apparent bug in bash 1.12 on linux.
8846 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8848 # From the config-lang.in, get $language, $lang_requires, and
8849 # $lang_requires_boot_languages.
8852 lang_requires_boot_languages
=
8853 # set srcdir during sourcing lang_frag to the gcc dir.
8854 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8855 # polutes this shell
8856 saved_srcdir
=${srcdir}
8857 srcdir
=${srcdir}/gcc .
${lang_frag}
8858 srcdir
=${saved_srcdir}
8859 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8860 case ,${enable_languages}, in
8865 echo " \`$other' language required by \`$language'; enabling" 1>&2
8866 enable_languages
="${enable_languages},${other}"
8870 for other
in ${lang_requires_boot_languages} ; do
8871 if test "$other" != "c"; then
8872 case ,${enable_stage1_languages}, in
8877 case ,${enable_languages}, in
8879 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8880 enable_stage1_languages
="$enable_stage1_languages,${other}"
8891 new_enable_languages
=,c
,
8893 # If LTO is enabled, add the LTO front end.
8894 if test "$enable_lto" = "yes" ; then
8895 case ,${enable_languages}, in
8897 *) enable_languages
="${enable_languages},lto" ;;
8899 if test "${build_lto_plugin}" = "yes" ; then
8900 configdirs
="$configdirs lto-plugin"
8904 # If we're building an offloading compiler, add the LTO front end.
8905 if test x
"$enable_as_accelerator_for" != x
; then
8906 case ,${enable_languages}, in
8908 *) enable_languages
="${enable_languages},lto" ;;
8912 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8913 potential_languages
=,c
,
8915 enabled_target_libs
=
8916 disabled_target_libs
=
8918 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8919 case ${lang_frag} in
8921 # The odd quoting in the next line works around
8922 # an apparent bug in bash 1.12 on linux.
8923 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8925 # From the config-lang.in, get $language, $target_libs,
8926 # $lang_dirs, $boot_language, and $build_by_default
8932 build_by_default
=yes
8933 # set srcdir during sourcing. See above about save & restore
8934 saved_srcdir
=${srcdir}
8935 srcdir
=${srcdir}/gcc .
${lang_frag}
8936 srcdir
=${saved_srcdir}
8937 if test x
${language} = x
; then
8938 echo "${lang_frag} doesn't set \$language." 1>&2
8942 if test "$language" = "c++"; then
8947 # C is always enabled, so no need to add it again
8948 if test "$language" != "c"; then
8949 case ,${enable_languages}, in
8951 # Language was explicitly selected; include it
8955 # All languages are enabled
8959 # 'default' was selected, select it if it is a default language
8960 add_this_lang
=${build_by_default}
8965 # Disable languages that need other directories if these aren't available.
8966 for i
in $subdir_requires; do
8967 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8968 case ${add_this_lang} in
8970 # Specifically requested language; tell them.
8971 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8975 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8976 add_this_lang
=unsupported
8980 add_this_lang
=unsupported
8985 # Disable Ada if no preexisting GNAT is available.
8986 case ${add_this_lang}:${language}:${have_gnat} in
8988 # Specifically requested language; tell them.
8989 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8993 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8994 add_this_lang
=unsupported
8998 add_this_lang
=unsupported
9002 # Disable D if no preexisting GDC is available.
9003 case ${add_this_lang}:${language}:${have_gdc} in
9005 # Specifically requested language; tell them.
9006 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9010 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9011 add_this_lang
=unsupported
9015 add_this_lang
=unsupported
9019 # Disable jit if -enable-host-shared not specified
9020 # but not if building for Mingw. All code in Windows
9021 # is position independent code (PIC).
9025 case ${add_this_lang}:${language}:${host_shared} in
9027 # PR jit/64780: explicitly specify --enable-host-shared
9029 Enabling language \"jit\" requires --enable-host-shared.
9031 --enable-host-shared typically slows the rest of the compiler down by
9032 a few %, so you must explicitly enable it.
9034 If you want to build both the jit and the regular compiler, it is often
9035 best to do this via two separate configure/builds, in separate
9036 directories, to avoid imposing the performance cost of
9037 --enable-host-shared on the regular compiler." "$LINENO" 5
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9041 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9042 add_this_lang
=unsupported
9046 add_this_lang
=unsupported
9052 # Disable a language that is unsupported by the target.
9053 case "${add_this_lang}: $unsupported_languages " in
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9058 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9059 add_this_lang
=unsupported
9063 case $add_this_lang in
9065 # Remove language-dependent dirs.
9066 disabled_target_libs
="$disabled_target_libs $target_libs"
9067 noconfigdirs
="$noconfigdirs $lang_dirs"
9070 # Remove language-dependent dirs; still show language as supported.
9071 disabled_target_libs
="$disabled_target_libs $target_libs"
9072 noconfigdirs
="$noconfigdirs $lang_dirs"
9073 potential_languages
="${potential_languages}${language},"
9076 new_enable_languages
="${new_enable_languages}${language},"
9077 potential_languages
="${potential_languages}${language},"
9078 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9079 enabled_target_libs
="$enabled_target_libs $target_libs"
9080 case "${boot_language}:,$enable_stage1_languages," in
9081 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9082 # Add to (comma-separated) list of stage 1 languages.
9083 case ",$stage1_languages," in
9084 *,$language,* |
,yes, |
,all
,) ;;
9085 *) stage1_languages
="${stage1_languages}${language}," ;;
9087 # We need to bootstrap any supporting libraries.
9088 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9097 # Add target libraries which are only needed for disabled languages
9099 if test -n "$disabled_target_libs"; then
9100 for dir
in $disabled_target_libs; do
9101 case " $enabled_target_libs " in
9103 *) noconfigdirs
="$noconfigdirs $dir" ;;
9108 # Check whether --enable-stage1-languages was given.
9109 if test "${enable_stage1_languages+set}" = set; then :
9110 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9112 # Set it to something that will have no effect in the loop below
9113 enable_stage1_languages
=c
;;
9115 enable_stage1_languages
=`echo $new_enable_languages | \
9116 sed -e "s/^,//" -e "s/,$//" ` ;;
9118 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9119 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9122 # Add "good" languages from enable_stage1_languages to stage1_languages,
9123 # while "bad" languages go in missing_languages. Leave no duplicates.
9124 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9125 case $potential_languages in
9127 case $stage1_languages in
9129 *) stage1_languages
="$stage1_languages$i," ;;
9132 case $missing_languages in
9134 *) missing_languages
="$missing_languages$i," ;;
9141 # Remove leading/trailing commas that were added for simplicity
9142 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9143 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9144 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9145 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9147 if test "x$missing_languages" != x
; then
9149 The following requested languages could not be built: ${missing_languages}
9150 Supported languages are: ${potential_languages}" "$LINENO" 5
9152 if test "x$new_enable_languages" != "x$enable_languages"; then
9153 echo The following languages will be built
: ${new_enable_languages}
9154 enable_languages
="$new_enable_languages"
9158 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9161 # Handle --disable-<component> generically.
9162 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9163 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9164 varname
=`echo $dirname | sed -e s/+/_/g`
9165 if eval test x\
${enable_${varname}} "=" xno
; then
9166 noconfigdirs
="$noconfigdirs $dir"
9170 # Check for Boehm's garbage collector
9171 # Check whether --enable-objc-gc was given.
9172 if test "${enable_objc_gc+set}" = set; then :
9173 enableval
=$enable_objc_gc;
9177 # Check whether --with-target-bdw-gc was given.
9178 if test "${with_target_bdw_gc+set}" = set; then :
9179 withval
=$with_target_bdw_gc;
9183 # Check whether --with-target-bdw-gc-include was given.
9184 if test "${with_target_bdw_gc_include+set}" = set; then :
9185 withval
=$with_target_bdw_gc_include;
9189 # Check whether --with-target-bdw-gc-lib was given.
9190 if test "${with_target_bdw_gc_lib+set}" = set; then :
9191 withval
=$with_target_bdw_gc_lib;
9195 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9197 $as_echo_n "checking for bdw garbage collector... " >&6; }
9198 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9200 $as_echo "using bdw-gc in default locations" >&6; }
9202 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9203 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9204 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9205 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9208 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9213 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9214 case ,${enable_languages}, in
9216 # Disable libitm, libsanitizer if we're not building libstdc++
9217 case "${noconfigdirs}" in
9218 *target-libstdc
++-v3*)
9219 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9225 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9229 # If gcc/ is not in the source tree then we'll not be building a
9230 # target compiler, assume in that case we don't want to build any
9231 # target libraries or tools.
9233 # This was added primarily for the benefit for binutils-gdb who reuse
9234 # this configure script, but don't always have target tools available.
9235 if test ! -d ${srcdir}/gcc
; then
9236 skipdirs
="${skipdirs} ${target_configdirs}"
9239 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9240 # $build_configdirs and $target_configdirs.
9241 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9244 for dir
in .
$skipdirs $noconfigdirs ; do
9245 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9246 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9247 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9248 if test -r $srcdir/$dirname/configure
; then
9249 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9252 notsupp
="$notsupp $dir"
9256 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9257 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9258 if test -r $srcdir/$dirname/configure
; then
9259 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9262 notsupp
="$notsupp $dir"
9266 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9267 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9268 if test -r $srcdir/$dirname/configure
; then
9269 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9272 notsupp
="$notsupp $dir"
9278 # Quietly strip out all directories which aren't configurable in this tree.
9279 # This relies on all configurable subdirectories being autoconfiscated, which
9281 build_configdirs_all
="$build_configdirs"
9283 for i
in ${build_configdirs_all} ; do
9284 j
=`echo $i | sed -e s/build-//g`
9285 if test -f ${srcdir}/$j/configure
; then
9286 build_configdirs
="${build_configdirs} $i"
9290 configdirs_all
="$configdirs"
9292 for i
in ${configdirs_all} ; do
9293 if test -f ${srcdir}/$i/configure
; then
9294 configdirs
="${configdirs} $i"
9298 target_configdirs_all
="$target_configdirs"
9300 for i
in ${target_configdirs_all} ; do
9301 j
=`echo $i | sed -e s/target-//g`
9302 if test -f ${srcdir}/$j/configure
; then
9303 target_configdirs
="${target_configdirs} $i"
9307 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9308 # so we have to add it after the preceding checks.
9309 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9311 case " $configdirs " in
9313 # If we can build libiberty, we can also build libiberty-linker-plugin.
9314 configdirs
="$configdirs libiberty-linker-plugin"
9315 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9316 --with-libiberty=../libiberty-linker-plugin";;
9318 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9322 # Sometimes we have special requirements for the host libiberty.
9323 extra_host_libiberty_configure_flags
=
9324 case " $configdirs " in
9325 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9326 # When these are to be built as shared libraries, the same applies to
9328 extra_host_libiberty_configure_flags
=--enable-shared
9333 # Sometimes we have special requirements for the host zlib.
9334 extra_host_zlib_configure_flags
=
9335 case " $configdirs " in
9337 # When bfd is to be built as a shared library, the same applies to
9339 if test "$enable_shared" = "yes"; then
9340 extra_host_zlib_configure_flags
=--enable-host-shared
9346 # Produce a warning message for the subdirs we can't configure.
9347 # This isn't especially interesting in the Cygnus tree, but in the individual
9348 # FSF releases, it's important to let people know when their machine isn't
9349 # supported by the one or two programs in a package.
9351 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9352 # If $appdirs is non-empty, at least one of those directories must still
9353 # be configured, or we error out. (E.g., if the gas release supports a
9354 # specified target in some subdirs but not the gas subdir, we shouldn't
9355 # pretend that all is well.)
9356 if test -n "$appdirs" ; then
9357 for dir
in $appdirs ; do
9358 if test -r $dir/Makefile.
in ; then
9359 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9363 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9369 if test -n "$appdirs" ; then
9370 echo "*** This configuration is not supported by this package." 1>&2
9374 # Okay, some application will build, or we don't care to check. Still
9375 # notify of subdirs not getting built.
9376 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9377 echo " ${notsupp}" 1>&2
9378 echo " (Any other directories should still work fine.)" 1>&2
9386 # To find our prefix, in gcc_cv_tool_prefix.
9388 # The user is always right.
9389 if test "${PATH_SEPARATOR+set}" != set; then
9390 echo "#! /bin/sh" >conf$$.sh
9391 echo "exit 0" >>conf$$.sh
9393 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9402 get_gcc_base_ver
="cat"
9404 # Check whether --with-gcc-major-version-only was given.
9405 if test "${with_gcc_major_version_only+set}" = set; then :
9406 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9407 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9417 if test "x$exec_prefix" = xNONE
; then
9418 if test "x$prefix" = xNONE
; then
9419 gcc_cv_tool_prefix
=$ac_default_prefix
9421 gcc_cv_tool_prefix
=$prefix
9424 gcc_cv_tool_prefix
=$exec_prefix
9427 # If there is no compiler in the tree, use the PATH only. In any
9428 # case, if there is no compiler in the tree nobody should use
9429 # AS_FOR_TARGET and LD_FOR_TARGET.
9430 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9431 if test x
$with_gcc_major_version_only = xyes
; then
9432 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9434 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9436 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9437 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9438 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9439 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9440 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9441 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9446 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9447 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9455 # Check whether --with-build-sysroot was given.
9456 if test "${with_build_sysroot+set}" = set; then :
9457 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9458 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9461 SYSROOT_CFLAGS_FOR_TARGET
=
9467 # Check whether --with-debug-prefix-map was given.
9468 if test "${with_debug_prefix_map+set}" = set; then :
9469 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9470 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9471 for debug_map
in $withval; do
9472 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9476 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9481 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9482 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9483 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9484 # We want to ensure that TARGET libraries (which we know are built with
9485 # gcc) are built with "-O2 -g", so include those options when setting
9486 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9487 if test "x$CFLAGS_FOR_TARGET" = x
; then
9488 if test "x${is_cross_compiler}" = xyes
; then
9489 CFLAGS_FOR_TARGET
="-g -O2"
9491 CFLAGS_FOR_TARGET
=$CFLAGS
9494 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9497 *" -g "* |
*" -g3 "*) ;;
9498 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9504 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9505 if test "x${is_cross_compiler}" = xyes
; then
9506 CXXFLAGS_FOR_TARGET
="-g -O2"
9508 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9509 case " $CXXFLAGS " in
9511 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9513 case " $CXXFLAGS " in
9514 *" -g "* |
*" -g3 "*) ;;
9515 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9523 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9524 # the named directory are copied to $(tooldir)/sys-include.
9525 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9526 if test x
${is_cross_compiler} = xno
; then
9527 echo 1>&2 '***' --with-headers is only supported when cross compiling
9530 if test x
"${with_headers}" != xyes
; then
9531 x
=${gcc_cv_tool_prefix}
9532 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9536 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9537 # the name directories are copied to $(tooldir)/lib. Multiple directories
9539 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9540 if test x
${is_cross_compiler} = xno
; then
9541 echo 1>&2 '***' --with-libs is only supported when cross compiling
9544 if test x
"${with_libs}" != xyes
; then
9545 # Copy the libraries in reverse order, so that files in the first named
9546 # library override files in subsequent libraries.
9547 x
=${gcc_cv_tool_prefix}
9548 for l
in ${with_libs}; do
9549 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9554 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9556 # This is done by determining whether or not the appropriate directory
9557 # is available, and by checking whether or not specific configurations
9558 # have requested that this magic not happen.
9560 # The command line options always override the explicit settings in
9561 # configure.ac, and the settings in configure.ac override this magic.
9563 # If the default for a toolchain is to use GNU as and ld, and you don't
9564 # want to do that, then you should use the --without-gnu-as and
9565 # --without-gnu-ld options for the configure script. Similarly, if
9566 # the default is to use the included zlib and you don't want to do that,
9567 # you should use the --with-system-zlib option for the configure script.
9569 if test x
${use_gnu_as} = x
&&
9570 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9572 extra_host_args
="$extra_host_args --with-gnu-as"
9575 if test x
${use_gnu_ld} = x
&&
9576 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9578 extra_host_args
="$extra_host_args --with-gnu-ld"
9581 if test x
${use_included_zlib} = x
&&
9582 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9585 with_system_zlib
=yes
9586 extra_host_args
="$extra_host_args --with-system-zlib"
9589 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9590 # can detect this case.
9592 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9594 extra_host_args
="$extra_host_args --with-newlib"
9597 # Handle ${copy_dirs}
9598 set fnord
${copy_dirs}
9600 while test $# != 0 ; do
9601 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9604 echo Copying
$1 to
$2
9606 # Use the install script to create the directory and all required
9607 # parent directories.
9608 if test -d $2 ; then
9612 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9615 # Copy the directory, assuming we have tar.
9616 # FIXME: Should we use B in the second tar? Not all systems support it.
9617 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9619 # It is the responsibility of the user to correctly adjust all
9620 # symlinks. If somebody can figure out how to handle them correctly
9621 # here, feel free to add the code.
9628 # Determine a target-dependent exec_prefix that the installed
9629 # gcc will search in. Keep this list sorted by triplet, with
9630 # the *-*-osname triplets last.
9633 i
[34567]86-pc-msdosdjgpp*)
9634 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9639 md_exec_prefix
=/usr
/ccs
/bin
9643 extra_arflags_for_target
=
9644 extra_nmflags_for_target
=
9645 extra_ranlibflags_for_target
=
9646 target_makefile_frag
=/dev
/null
9649 target_makefile_frag
="config/mt-spu"
9651 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9652 target_makefile_frag
="config/mt-sde"
9654 mipsisa
*-*-elfoabi*)
9655 target_makefile_frag
="config/mt-mips-elfoabi"
9657 mips
*-*-*linux
* | mips
*-*-gnu*)
9658 target_makefile_frag
="config/mt-mips-gnu"
9661 target_makefile_frag
="config/mt-nios2-elf"
9664 target_makefile_frag
="config/mt-android"
9666 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9667 target_makefile_frag
="config/mt-gnu"
9669 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9670 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9671 # commands to handle both 32-bit and 64-bit objects. These flags are
9672 # harmless if we're using GNU nm or ar.
9673 extra_arflags_for_target
=" -X32_64"
9674 extra_nmflags_for_target
=" -B -X32_64"
9678 alphaieee_frag
=/dev
/null
9681 # This just makes sure to use the -mieee option to build target libs.
9682 # This should probably be set individually by each library.
9683 alphaieee_frag
="config/mt-alphaieee"
9687 # If --enable-target-optspace always use -Os instead of -O2 to build
9688 # the target libraries, similarly if it is not specified, use -Os
9689 # on selected platforms.
9690 ospace_frag
=/dev
/null
9691 case "${enable_target_optspace}:${target}" in
9693 ospace_frag
="config/mt-ospace"
9696 ospace_frag
="config/mt-d30v"
9698 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9699 ospace_frag
="config/mt-ospace"
9704 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9708 # Some systems (e.g., one of the i386-aix systems the gas testers are
9709 # using) don't handle "\$" correctly, so don't use it here.
9710 tooldir
='${exec_prefix}'/${target_noncanonical}
9711 build_tooldir
=${tooldir}
9713 # Create a .gdbinit file which runs the one in srcdir
9714 # and tells GDB to look there for source files.
9716 if test -r ${srcdir}/.gdbinit
; then
9719 *) cat > .
/.gdbinit
<<EOF
9723 source ${srcdir}/.gdbinit
9729 # Make sure that the compiler is able to generate an executable. If it
9730 # can't, we are probably in trouble. We don't care whether we can run the
9731 # executable--we might be using a cross compiler--we only care whether it
9732 # can be created. At this point the main configure script has set CC.
9734 echo "int main () { return 0; }" > conftest.c
9735 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9736 if test $?
= 0 ; then
9737 if test -s conftest ||
test -s conftest.exe
; then
9743 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9744 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9751 # Decide which environment variable is used to find dynamic libraries.
9753 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9754 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9755 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9756 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9759 # On systems where the dynamic library environment variable is PATH,
9760 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9761 # built executables to PATH.
9762 if test "$RPATH_ENVVAR" = PATH
; then
9763 GCC_SHLIB_SUBDIR
=/shlib
9768 # Adjust the toplevel makefile according to whether bootstrap was selected.
9769 case $enable_bootstrap in
9771 bootstrap_suffix
=bootstrap
9772 BUILD_CONFIG
=bootstrap-debug
9775 bootstrap_suffix
=no-bootstrap
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9781 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9784 # Check whether --with-build-config was given.
9785 if test "${with_build_config+set}" = set; then :
9786 withval
=$with_build_config; case $with_build_config in
9787 yes) with_build_config
= ;;
9788 no
) with_build_config
= BUILD_CONFIG
= ;;
9793 if test "x${with_build_config}" != x
; then
9794 BUILD_CONFIG
=$with_build_config
9796 case $BUILD_CONFIG in
9798 if echo "int f (void) { return 0; }" > conftest.c
&&
9799 ${CC} -c conftest.c
&&
9800 mv conftest.o conftest.o.g0
&&
9801 ${CC} -c -g conftest.c
&&
9802 mv conftest.o conftest.o.g
&&
9803 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9808 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9813 $as_echo "$BUILD_CONFIG" >&6; }
9816 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9818 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9819 # Check whether --enable-vtable-verify was given.
9820 if test "${enable_vtable_verify+set}" = set; then :
9821 enableval
=$enable_vtable_verify; case "$enableval" in
9822 yes) enable_vtable_verify
=yes ;;
9823 no
) enable_vtable_verify
=no
;;
9824 *) enable_vtable_verify
=no
;;
9827 enable_vtable_verify
=no
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9831 $as_echo "$enable_vtable_verify" >&6; }
9833 # Record target_configdirs and the configure arguments for target and
9834 # build configuration in Makefile.
9835 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9836 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9837 bootstrap_fixincludes
=no
9839 # If we are building libgomp, bootstrap it.
9840 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9841 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9844 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9845 # or bootstrap-ubsan, bootstrap it.
9846 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9847 case "$BUILD_CONFIG" in
9848 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9849 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9850 bootstrap_fixincludes
=yes
9855 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9856 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9857 test "$enable_vtable_verify" != no
; then
9858 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9861 # If we are building libatomic and the list of enabled languages includes the
9862 # D frontend, bootstrap it.
9863 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9864 case ,${enable_languages}, in
9866 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9871 # Determine whether gdb needs tk/tcl or not.
9872 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9873 # and in that case we want gdb to be built without tk. Ugh!
9874 # In fact I believe gdb is the *only* package directly dependent on tk,
9875 # so we should be able to put the 'maybe's in unconditionally and
9876 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9877 # 100% sure that that's safe though.
9879 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9880 case "$enable_gdbtk" in
9884 GDB_TK
="${gdb_tk}" ;;
9886 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9887 # distro. Eventually someone will fix this and move Insight, nee
9888 # gdbtk to a separate directory.
9889 if test -d ${srcdir}/gdb
/gdbtk
; then
9896 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9897 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9899 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9900 # else does, only include them if one of these is built. The Makefile
9901 # provides the ordering, so it's enough here to add to the list.
9902 case " ${configdirs} " in
9904 configdirs
="${configdirs} gnulib gdbsupport"
9907 configdirs
="${configdirs} gnulib gdbsupport"
9910 configdirs
="${configdirs} gnulib"
9914 # Strip out unwanted targets.
9916 # While at that, we remove Makefiles if we were started for recursive
9917 # configuration, so that the top-level Makefile reconfigures them,
9918 # like we used to do when configure itself was recursive.
9920 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9921 # but now we're fixing up the Makefile ourselves with the additional
9922 # commands passed to AC_CONFIG_FILES. Use separate variables
9923 # extrasub-{build,host,target} not because there is any reason to split
9924 # the substitutions up that way, but only to remain below the limit of
9925 # 99 commands in a script, for HP-UX sed.
9927 # Do not nest @if/@endif or @unless/@endunless pairs, because
9928 # configure will not warn you at all.
9930 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9931 yes:yes:*\ gold\
*:*,c
++,*) ;;
9932 yes:yes:*\ gold\
*:*)
9933 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9938 for module
in ${build_configdirs} ; do
9939 if test -z "${no_recursion}" \
9940 && test -f ${build_subdir}/${module}/Makefile
; then
9941 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9942 rm -f ${build_subdir}/${module}/Makefile
9944 extrasub_build
="$extrasub_build
9945 /^@if build-$module\$/d
9946 /^@endif build-$module\$/d
9947 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9948 /^@if build-$module-$bootstrap_suffix\$/d
9949 /^@endif build-$module-$bootstrap_suffix\$/d
9950 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9953 for module
in ${configdirs} ; do
9954 if test -z "${no_recursion}"; then
9955 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9956 if test -f ${file}; then
9957 echo 1>&2 "*** removing ${file} to force reconfigure"
9962 case ${module},${bootstrap_fixincludes} in
9963 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9964 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9966 extrasub_host
="$extrasub_host
9968 /^@endif $module\$/d
9969 /^@unless $module\$/,/^@endunless $module\$/d
9970 /^@if $module-$host_bootstrap_suffix\$/d
9971 /^@endif $module-$host_bootstrap_suffix\$/d
9972 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9975 for module
in ${target_configdirs} ; do
9976 if test -z "${no_recursion}" \
9977 && test -f ${target_subdir}/${module}/Makefile
; then
9978 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9979 rm -f ${target_subdir}/${module}/Makefile
9982 # We only bootstrap target libraries listed in bootstrap_target_libs.
9983 case $bootstrap_target_libs in
9984 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9985 *) target_bootstrap_suffix
=no-bootstrap
;;
9988 extrasub_target
="$extrasub_target
9989 /^@if target-$module\$/d
9990 /^@endif target-$module\$/d
9991 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9992 /^@if target-$module-$target_bootstrap_suffix\$/d
9993 /^@endif target-$module-$target_bootstrap_suffix\$/d
9994 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9997 # Do the final fixup along with target modules.
9998 extrasub_target
="$extrasub_target
10003 if test "$enable_pgo_build" != "no"; then
10004 extrasub_build
="$extrasub_build
10005 /^@if pgo-build\$/d
10006 /^@endif pgo-build\$/d"
10009 # Create the serialization dependencies. This uses a temporary file.
10011 # Check whether --enable-serial-configure was given.
10012 if test "${enable_serial_configure+set}" = set; then :
10013 enableval
=$enable_serial_configure;
10017 case ${enable_serial_configure} in
10019 enable_serial_build_configure
=yes
10020 enable_serial_host_configure
=yes
10021 enable_serial_target_configure
=yes
10025 # These force 'configure's to be done one at a time, to avoid problems
10026 # with contention over a shared config.cache.
10028 echo '# serdep.tmp' > serdep.tmp
10030 test "x${enable_serial_build_configure}" = xyes
&&
10031 for item
in ${build_configdirs} ; do
10034 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10039 test "x${enable_serial_host_configure}" = xyes
&&
10040 for item
in ${configdirs} ; do
10043 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10048 test "x${enable_serial_target_configure}" = xyes
&&
10049 for item
in ${target_configdirs} ; do
10052 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10056 serialization_dependencies
=serdep.tmp
10059 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10060 # target, nonopt, and variable assignments. These are the ones we
10061 # might not want to pass down to subconfigures. The exception being
10062 # --cache-file=/dev/null, which is used to turn off the use of cache
10063 # files altogether, and which should be passed on to subconfigures.
10064 # Also strip program-prefix, program-suffix, and program-transform-name,
10065 # so that we can pass down a consistent program-transform-name.
10070 eval "set -- $ac_configure_args"
10073 if test X
"$skip_next" = X
"yes"; then
10077 if test X
"$keep_next" = X
"yes"; then
10080 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10082 baseargs
="$baseargs '$ac_arg'"
10083 tbaseargs
="$tbaseargs '$ac_arg'"
10088 # Handle separated arguments. Based on the logic generated by
10091 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10092 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10093 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10094 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10108 --with-* |
--without-*)
10109 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10113 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10116 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10125 mpc | mpfr | gmp | isl
)
10126 # If we're processing --with-$lib, --with-$lib-include or
10127 # --with-$lib-lib, for one of the libs above, and target is
10128 # different from host, don't pass the current argument to any
10129 # target library's configure.
10130 if test x
$is_cross_compiler = xyes
; then
10139 --cache-file=/dev
/null | \
10140 -cache-file=/dev
/null
)
10141 # Handled here to avoid the test to skip args below.
10142 baseargs
="$baseargs '$ac_arg'"
10143 tbaseargs
="$tbaseargs '$ac_arg'"
10144 # Assert: $separate_arg should always be no.
10145 keep_next
=$separate_arg
10161 -program-prefix* | \
10162 -program-suffix* | \
10163 -program-transform-name* )
10164 skip_next
=$separate_arg
10168 # An option. Add it.
10171 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10173 baseargs
="$baseargs '$ac_arg'"
10174 if test X
"$skip_targ" = Xno
; then
10175 tbaseargs
="$tbaseargs '$ac_arg'"
10177 keep_next
=$separate_arg
10180 # Either a variable assignment, or a nonopt (triplet). Don't
10181 # pass it down; let the Makefile handle this.
10186 # Remove the initial space we just introduced and, as these will be
10187 # expanded by make, quote '$'.
10188 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10190 # Add in --program-transform-name, after --program-prefix and
10191 # --program-suffix have been applied to it. Autoconf has already
10192 # doubled dollar signs and backslashes in program_transform_name; we want
10193 # the backslashes un-doubled, and then the entire thing wrapped in single
10194 # quotes, because this will be expanded first by make and then by the shell.
10195 # Also, because we want to override the logic in subdir configure scripts to
10196 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10197 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10198 ${program_transform_name}
10200 gcc_transform_name
=`cat conftestsed.out`
10201 rm -f conftestsed.out
10202 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10203 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10204 if test "$silent" = yes; then
10205 baseargs
="$baseargs --silent"
10206 tbaseargs
="$tbaseargs --silent"
10209 baseargs
="$baseargs --disable-option-checking"
10210 tbaseargs
="$tbaseargs --disable-option-checking"
10212 if test "$enable_year2038" = no
; then
10213 baseargs
="$baseargs --disable-year2038"
10214 tbaseargs
="$tbaseargs --disable-year2038"
10217 # Record and document user additions to sub configure arguments.
10222 # For the build-side libraries, we just need to pretend we're native,
10223 # and not use the same cache file. Multilibs are neither needed nor
10224 # desired. We can't even use the same cache file for all build-side
10225 # libraries, as they're compiled differently; some with C, some with
10226 # C++ or with different feature-enabling options.
10227 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10229 # For host modules, accept cache file option, or specification as blank.
10230 case "${cache_file}" in
10232 cache_file_option
="" ;;
10233 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10234 cache_file_option
="--cache-file=${cache_file}" ;;
10236 cache_file_option
="--cache-file=../${cache_file}" ;;
10239 # Host dirs don't like to share a cache file either, horribly enough.
10240 # This seems to be due to autoconf 2.5x stupidity.
10241 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10243 target_configargs
="$target_configargs ${tbaseargs}"
10245 # Passing a --with-cross-host argument lets the target libraries know
10246 # whether they are being built with a cross-compiler or being built
10247 # native. However, it would be better to use other mechanisms to make the
10248 # sorts of decisions they want to make on this basis. Please consider
10249 # this option to be deprecated. FIXME.
10250 if test x
${is_cross_compiler} = xyes
; then
10251 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10254 # Special user-friendly check for native x86_64-linux build, if
10255 # multilib is not explicitly enabled.
10256 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10257 x86_64-
*linux
*:yes:$build:$build:)
10258 # Make sure we have a development environment that handles 32-bit
10260 echo "int main () { return 0; }" > conftest.c
10261 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10262 if test $?
= 0 ; then
10263 if test -s conftest ||
test -s conftest.exe
; then
10268 if test x
${dev64} != xyes
; then
10269 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
10274 # Default to --enable-multilib.
10275 if test x
${enable_multilib} = x
; then
10276 target_configargs
="--enable-multilib ${target_configargs}"
10279 # Pass --with-newlib if appropriate. Note that target_configdirs has
10280 # changed from the earlier setting of with_newlib.
10281 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10282 target_configargs
="--with-newlib ${target_configargs}"
10285 # Different target subdirs use different values of certain variables
10286 # (notably CXX). Worse, multilibs use *lots* of different values.
10287 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10288 # it doesn't automatically accept command-line overrides of them.
10289 # This means it's not safe for target subdirs to share a cache file,
10290 # which is disgusting, but there you have it. Hopefully this can be
10291 # fixed in future. It's still worthwhile to use a cache file for each
10292 # directory. I think.
10294 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10295 # We need to pass --target, as newer autoconf's requires consistency
10296 # for target_alias and gcc doesn't manage it consistently.
10297 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10300 case " $target_configdirs " in
10302 case " $target_configargs " in
10303 *" --with-newlib "*)
10306 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10310 # If we're not building GCC, don't discard standard headers.
10311 if test -d ${srcdir}/gcc
; then
10312 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10314 if test "${build}" != "${host}"; then
10315 # On Canadian crosses, CC_FOR_TARGET will have already been set
10316 # by `configure', so we won't have an opportunity to add -Bgcc/
10317 # to it. This is right: we don't want to search that directory
10318 # for binaries, but we want the header files in there, so add
10320 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10322 # Someone might think of using the pre-installed headers on
10323 # Canadian crosses, in case the installed compiler is not fully
10324 # compatible with the compiler being built. In this case, it
10325 # would be better to flag an error than risking having
10326 # incompatible object files being constructed. We can't
10327 # guarantee that an error will be flagged, but let's hope the
10328 # compiler will do it, when presented with incompatible header
10333 case "${target}-${is_cross_compiler}" in
10334 i
[3456789]86-*-linux*-no)
10335 # Here host == target, so we don't need to build gcc,
10336 # so we don't want to discard standard headers.
10337 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10340 # If we're building newlib, use its generic headers last, but search
10341 # for any libc-related directories first (so make it the last -B
10343 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10345 # If we're building libgloss, find the startup file, simulator library
10346 # and linker script.
10347 case " $target_configdirs " in
10349 # Look for startup file, simulator library and maybe linker script.
10350 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10351 # Look for libnosys.a in case the target needs it.
10352 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10353 # Most targets have the linker script in the source directory.
10354 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10365 x86_64-
*mingw
* |
*-w64-mingw*)
10366 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10367 # however, use a symlink named 'mingw' in ${prefix} .
10368 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10371 # MinGW can't be handled as Cygwin above since it does not use newlib.
10372 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'
10376 # Allow the user to override the flags for
10377 # our build compiler if desired.
10378 if test x
"${build}" = x
"${host}" ; then
10379 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10380 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10381 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10382 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10385 # On Canadian crosses, we'll be searching the right directories for
10386 # the previously-installed cross compiler, so don't bother to add
10387 # flags for directories within the install tree of the compiler
10388 # being built; programs in there won't even run.
10389 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10390 # Search for pre-installed headers if nothing else fits.
10391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10394 if test "x
${use_gnu_ld}" = x &&
10395 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10396 # Arrange for us to find uninstalled linker scripts.
10397 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10400 # Search for other target-specific linker scripts and such.
10401 case "${target}" in
10403 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10405 # The VxWorks support for shared libraries is getting in
10406 # incrementally. Make sure it doesn't get activated implicitly:
10408 if test "${enable_shared-unset}" = unset ; then
10410 # So the build of libraries knows ...
10411 target_configargs="${target_configargs} --disable-shared"
10413 host_configargs="${host_configargs} --disable-shared"
10418 # Makefile fragments.
10419 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10421 eval fragval=\$$frag
10422 if test $fragval != /dev/null; then
10423 eval $frag=${srcdir}/$fragval
10431 # Miscellanea: directories, flags, etc.
10440 # Build module lists & subconfigure args.
10444 # Host module lists & subconfigure args.
10449 # Target module lists & subconfigure args.
10474 # Generate default definitions for YACC, M4, LEX and other programs that run
10475 # on the build machine. These are used if the Makefile can't locate these
10476 # programs in objdir.
10477 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10479 for ac_prog in 'bison -y' byacc yacc
10481 # Extract the first word of "$ac_prog", so it can be a program name with args.
10482 set dummy $ac_prog; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10484 $as_echo_n "checking
for $ac_word...
" >&6; }
10485 if ${ac_cv_prog_YACC+:} false; then :
10486 $as_echo_n "(cached
) " >&6
10488 if test -n "$YACC"; then
10489 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_YACC="$ac_prog"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10508 YACC=$ac_cv_prog_YACC
10509 if test -n "$YACC"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10511 $as_echo "$YACC" >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10514 $as_echo "no
" >&6; }
10518 test -n "$YACC" && break
10520 test -n "$YACC" || YACC="$MISSING bison
-y"
10522 case " $build_configdirs " in
10523 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10526 for ac_prog in bison
10528 # Extract the first word of "$ac_prog", so it can be a program name with args.
10529 set dummy $ac_prog; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10531 $as_echo_n "checking
for $ac_word...
" >&6; }
10532 if ${ac_cv_prog_BISON+:} false; then :
10533 $as_echo_n "(cached
) " >&6
10535 if test -n "$BISON"; then
10536 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_prog_BISON="$ac_prog"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10555 BISON=$ac_cv_prog_BISON
10556 if test -n "$BISON"; then
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10558 $as_echo "$BISON" >&6; }
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10561 $as_echo "no
" >&6; }
10565 test -n "$BISON" && break
10567 test -n "$BISON" || BISON="$MISSING bison
"
10569 case " $build_configdirs " in
10570 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10573 for ac_prog in gm4 gnum4 m4
10575 # Extract the first word of "$ac_prog", so it can be a program name with args.
10576 set dummy $ac_prog; ac_word=$2
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10578 $as_echo_n "checking
for $ac_word...
" >&6; }
10579 if ${ac_cv_prog_M4+:} false; then :
10580 $as_echo_n "(cached
) " >&6
10582 if test -n "$M4"; then
10583 ac_cv_prog_M4="$M4" # Let the user override the test.
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592 ac_cv_prog_M4="$ac_prog"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10603 if test -n "$M4"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10605 $as_echo "$M4" >&6; }
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10608 $as_echo "no
" >&6; }
10612 test -n "$M4" && break
10614 test -n "$M4" || M4="$MISSING m4"
10616 case " $build_configdirs " in
10617 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10620 for ac_prog in flex lex
10622 # Extract the first word of "$ac_prog", so it can be a program name with args.
10623 set dummy $ac_prog; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10625 $as_echo_n "checking
for $ac_word...
" >&6; }
10626 if ${ac_cv_prog_LEX+:} false; then :
10627 $as_echo_n "(cached
) " >&6
10629 if test -n "$LEX"; then
10630 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_LEX="$ac_prog"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10649 LEX=$ac_cv_prog_LEX
10650 if test -n "$LEX"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10652 $as_echo "$LEX" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10655 $as_echo "no
" >&6; }
10659 test -n "$LEX" && break
10661 test -n "$LEX" || LEX="$MISSING flex
"
10663 case " $build_configdirs " in
10664 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10665 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10668 for ac_prog in flex
10670 # Extract the first word of "$ac_prog", so it can be a program name with args.
10671 set dummy $ac_prog; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10673 $as_echo_n "checking
for $ac_word...
" >&6; }
10674 if ${ac_cv_prog_FLEX+:} false; then :
10675 $as_echo_n "(cached
) " >&6
10677 if test -n "$FLEX"; then
10678 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_FLEX="$ac_prog"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10697 FLEX=$ac_cv_prog_FLEX
10698 if test -n "$FLEX"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10700 $as_echo "$FLEX" >&6; }
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10703 $as_echo "no
" >&6; }
10707 test -n "$FLEX" && break
10709 test -n "$FLEX" || FLEX="$MISSING flex
"
10711 case " $build_configdirs " in
10712 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10715 for ac_prog in makeinfo
10717 # Extract the first word of "$ac_prog", so it can be a program name with args.
10718 set dummy $ac_prog; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10720 $as_echo_n "checking
for $ac_word...
" >&6; }
10721 if ${ac_cv_prog_MAKEINFO+:} false; then :
10722 $as_echo_n "(cached
) " >&6
10724 if test -n "$MAKEINFO"; then
10725 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_MAKEINFO="$ac_prog"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10744 MAKEINFO=$ac_cv_prog_MAKEINFO
10745 if test -n "$MAKEINFO"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10747 $as_echo "$MAKEINFO" >&6; }
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10750 $as_echo "no
" >&6; }
10754 test -n "$MAKEINFO" && break
10756 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10758 case " $build_configdirs " in
10759 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10762 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10763 # higher, else we use the "missing
" dummy.
10764 if ${MAKEINFO} --version \
10765 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10768 MAKEINFO="$MISSING makeinfo
"
10774 # FIXME: expect and dejagnu may become build tools?
10776 for ac_prog in expect
10778 # Extract the first word of "$ac_prog", so it can be a program name with args.
10779 set dummy $ac_prog; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10781 $as_echo_n "checking
for $ac_word...
" >&6; }
10782 if ${ac_cv_prog_EXPECT+:} false; then :
10783 $as_echo_n "(cached
) " >&6
10785 if test -n "$EXPECT"; then
10786 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 ac_cv_prog_EXPECT="$ac_prog"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10805 EXPECT=$ac_cv_prog_EXPECT
10806 if test -n "$EXPECT"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10808 $as_echo "$EXPECT" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10811 $as_echo "no
" >&6; }
10815 test -n "$EXPECT" && break
10817 test -n "$EXPECT" || EXPECT="expect
"
10819 case " $configdirs " in
10821 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10825 for ac_prog in runtest
10827 # Extract the first word of "$ac_prog", so it can be a program name with args.
10828 set dummy $ac_prog; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10830 $as_echo_n "checking
for $ac_word...
" >&6; }
10831 if ${ac_cv_prog_RUNTEST+:} false; then :
10832 $as_echo_n "(cached
) " >&6
10834 if test -n "$RUNTEST"; then
10835 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_RUNTEST="$ac_prog"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10854 RUNTEST=$ac_cv_prog_RUNTEST
10855 if test -n "$RUNTEST"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10857 $as_echo "$RUNTEST" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10860 $as_echo "no
" >&6; }
10864 test -n "$RUNTEST" && break
10866 test -n "$RUNTEST" || RUNTEST="runtest
"
10868 case " $configdirs " in
10870 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10877 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10878 ncn_target_tool_prefix=
10879 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10883 if test -n "$AR"; then
10885 elif test -n "$ac_cv_prog_AR"; then
10889 if test -n "$ac_cv_prog_AR"; then
10890 for ncn_progname in ar; do
10891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10894 $as_echo_n "checking
for $ac_word...
" >&6; }
10895 if ${ac_cv_prog_AR+:} false; then :
10896 $as_echo_n "(cached
) " >&6
10898 if test -n "$AR"; then
10899 ac_cv_prog_AR="$AR" # Let the user override the test.
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_prog_AR="${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10919 if test -n "$AR"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10921 $as_echo "$AR" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10924 $as_echo "no
" >&6; }
10931 for ncn_progname in ar; do
10932 if test -n "$ncn_tool_prefix"; then
10933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10936 $as_echo_n "checking
for $ac_word...
" >&6; }
10937 if ${ac_cv_prog_AR+:} false; then :
10938 $as_echo_n "(cached
) " >&6
10940 if test -n "$AR"; then
10941 ac_cv_prog_AR="$AR" # Let the user override the test.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10961 if test -n "$AR"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10963 $as_echo "$AR" >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10966 $as_echo "no
" >&6; }
10971 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10973 set dummy ${ncn_progname}; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10975 $as_echo_n "checking
for $ac_word...
" >&6; }
10976 if ${ac_cv_prog_AR+:} false; then :
10977 $as_echo_n "(cached
) " >&6
10979 if test -n "$AR"; then
10980 ac_cv_prog_AR="$AR" # Let the user override the test.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_prog_AR="${ncn_progname}"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11000 if test -n "$AR"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11002 $as_echo "$AR" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11005 $as_echo "no
" >&6; }
11010 test -n "$ac_cv_prog_AR" && break
11013 if test -z "$ac_cv_prog_AR" ; then
11015 if test $build = $host ; then
11018 AR="${ncn_tool_prefix}$2"
11024 if test -n "$AS"; then
11026 elif test -n "$ac_cv_prog_AS"; then
11030 if test -n "$ac_cv_prog_AS"; then
11031 for ncn_progname in as; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11035 $as_echo_n "checking
for $ac_word...
" >&6; }
11036 if ${ac_cv_prog_AS+:} false; then :
11037 $as_echo_n "(cached
) " >&6
11039 if test -n "$AS"; then
11040 ac_cv_prog_AS="$AS" # Let the user override the test.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_AS="${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11060 if test -n "$AS"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11062 $as_echo "$AS" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11065 $as_echo "no
" >&6; }
11072 for ncn_progname in as; do
11073 if test -n "$ncn_tool_prefix"; then
11074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11075 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11077 $as_echo_n "checking
for $ac_word...
" >&6; }
11078 if ${ac_cv_prog_AS+:} false; then :
11079 $as_echo_n "(cached
) " >&6
11081 if test -n "$AS"; then
11082 ac_cv_prog_AS="$AS" # Let the user override the test.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11091 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11102 if test -n "$AS"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11104 $as_echo "$AS" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11107 $as_echo "no
" >&6; }
11112 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11114 set dummy ${ncn_progname}; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11116 $as_echo_n "checking
for $ac_word...
" >&6; }
11117 if ${ac_cv_prog_AS+:} false; then :
11118 $as_echo_n "(cached
) " >&6
11120 if test -n "$AS"; then
11121 ac_cv_prog_AS="$AS" # Let the user override the test.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_prog_AS="${ncn_progname}"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11141 if test -n "$AS"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11143 $as_echo "$AS" >&6; }
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11146 $as_echo "no
" >&6; }
11151 test -n "$ac_cv_prog_AS" && break
11154 if test -z "$ac_cv_prog_AS" ; then
11156 if test $build = $host ; then
11159 AS="${ncn_tool_prefix}$2"
11165 if test -n "$DLLTOOL"; then
11166 ac_cv_prog_DLLTOOL=$DLLTOOL
11167 elif test -n "$ac_cv_prog_DLLTOOL"; then
11168 DLLTOOL=$ac_cv_prog_DLLTOOL
11171 if test -n "$ac_cv_prog_DLLTOOL"; then
11172 for ncn_progname in dlltool; do
11173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11174 set dummy ${ncn_progname}; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11176 $as_echo_n "checking
for $ac_word...
" >&6; }
11177 if ${ac_cv_prog_DLLTOOL+:} false; then :
11178 $as_echo_n "(cached
) " >&6
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DLLTOOL="${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11200 DLLTOOL=$ac_cv_prog_DLLTOOL
11201 if test -n "$DLLTOOL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11203 $as_echo "$DLLTOOL" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11206 $as_echo "no
" >&6; }
11213 for ncn_progname in dlltool; do
11214 if test -n "$ncn_tool_prefix"; then
11215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11218 $as_echo_n "checking
for $ac_word...
" >&6; }
11219 if ${ac_cv_prog_DLLTOOL+:} false; then :
11220 $as_echo_n "(cached
) " >&6
11222 if test -n "$DLLTOOL"; then
11223 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11242 DLLTOOL=$ac_cv_prog_DLLTOOL
11243 if test -n "$DLLTOOL"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11245 $as_echo "$DLLTOOL" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11248 $as_echo "no
" >&6; }
11253 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11255 set dummy ${ncn_progname}; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11257 $as_echo_n "checking
for $ac_word...
" >&6; }
11258 if ${ac_cv_prog_DLLTOOL+:} false; then :
11259 $as_echo_n "(cached
) " >&6
11261 if test -n "$DLLTOOL"; then
11262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271 ac_cv_prog_DLLTOOL="${ncn_progname}"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11281 DLLTOOL=$ac_cv_prog_DLLTOOL
11282 if test -n "$DLLTOOL"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11284 $as_echo "$DLLTOOL" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11287 $as_echo "no
" >&6; }
11292 test -n "$ac_cv_prog_DLLTOOL" && break
11295 if test -z "$ac_cv_prog_DLLTOOL" ; then
11297 if test $build = $host ; then
11300 DLLTOOL="${ncn_tool_prefix}$2"
11306 if test -n "$DSYMUTIL"; then
11307 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11308 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11309 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11312 if test -n "$ac_cv_prog_DSYMUTIL"; then
11313 for ncn_progname in dsymutil; do
11314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11317 $as_echo_n "checking
for $ac_word...
" >&6; }
11318 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11319 $as_echo_n "(cached
) " >&6
11321 if test -n "$DSYMUTIL"; then
11322 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11341 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11342 if test -n "$DSYMUTIL"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11344 $as_echo "$DSYMUTIL" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11347 $as_echo "no
" >&6; }
11354 for ncn_progname in dsymutil; do
11355 if test -n "$ncn_tool_prefix"; then
11356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11357 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11359 $as_echo_n "checking
for $ac_word...
" >&6; }
11360 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11361 $as_echo_n "(cached
) " >&6
11363 if test -n "$DSYMUTIL"; then
11364 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11384 if test -n "$DSYMUTIL"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11386 $as_echo "$DSYMUTIL" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11389 $as_echo "no
" >&6; }
11394 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11398 $as_echo_n "checking
for $ac_word...
" >&6; }
11399 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11400 $as_echo_n "(cached
) " >&6
11402 if test -n "$DSYMUTIL"; then
11403 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11423 if test -n "$DSYMUTIL"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11425 $as_echo "$DSYMUTIL" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11428 $as_echo "no
" >&6; }
11433 test -n "$ac_cv_prog_DSYMUTIL" && break
11436 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11438 if test $build = $host ; then
11441 DSYMUTIL="${ncn_tool_prefix}$2"
11447 if test -n "$LD"; then
11449 elif test -n "$ac_cv_prog_LD"; then
11453 if test -n "$ac_cv_prog_LD"; then
11454 for ncn_progname in ld; do
11455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11458 $as_echo_n "checking
for $ac_word...
" >&6; }
11459 if ${ac_cv_prog_LD+:} false; then :
11460 $as_echo_n "(cached
) " >&6
11462 if test -n "$LD"; then
11463 ac_cv_prog_LD="$LD" # Let the user override the test.
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_prog_LD="${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11483 if test -n "$LD"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11485 $as_echo "$LD" >&6; }
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11488 $as_echo "no
" >&6; }
11495 for ncn_progname in ld; do
11496 if test -n "$ncn_tool_prefix"; then
11497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11498 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11500 $as_echo_n "checking
for $ac_word...
" >&6; }
11501 if ${ac_cv_prog_LD+:} false; then :
11502 $as_echo_n "(cached
) " >&6
11504 if test -n "$LD"; then
11505 ac_cv_prog_LD="$LD" # Let the user override the test.
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11515 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11525 if test -n "$LD"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11527 $as_echo "$LD" >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11530 $as_echo "no
" >&6; }
11535 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11537 set dummy ${ncn_progname}; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11539 $as_echo_n "checking
for $ac_word...
" >&6; }
11540 if ${ac_cv_prog_LD+:} false; then :
11541 $as_echo_n "(cached
) " >&6
11543 if test -n "$LD"; then
11544 ac_cv_prog_LD="$LD" # Let the user override the test.
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_LD="${ncn_progname}"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11564 if test -n "$LD"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11566 $as_echo "$LD" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11569 $as_echo "no
" >&6; }
11574 test -n "$ac_cv_prog_LD" && break
11577 if test -z "$ac_cv_prog_LD" ; then
11579 if test $build = $host ; then
11582 LD="${ncn_tool_prefix}$2"
11588 if test -n "$LIPO"; then
11589 ac_cv_prog_LIPO=$LIPO
11590 elif test -n "$ac_cv_prog_LIPO"; then
11591 LIPO=$ac_cv_prog_LIPO
11594 if test -n "$ac_cv_prog_LIPO"; then
11595 for ncn_progname in lipo; do
11596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11599 $as_echo_n "checking
for $ac_word...
" >&6; }
11600 if ${ac_cv_prog_LIPO+:} false; then :
11601 $as_echo_n "(cached
) " >&6
11603 if test -n "$LIPO"; then
11604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_LIPO="${ncn_progname}"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11623 LIPO=$ac_cv_prog_LIPO
11624 if test -n "$LIPO"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11626 $as_echo "$LIPO" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11629 $as_echo "no
" >&6; }
11636 for ncn_progname in lipo; do
11637 if test -n "$ncn_tool_prefix"; then
11638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11639 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11641 $as_echo_n "checking
for $ac_word...
" >&6; }
11642 if ${ac_cv_prog_LIPO+:} false; then :
11643 $as_echo_n "(cached
) " >&6
11645 if test -n "$LIPO"; then
11646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11665 LIPO=$ac_cv_prog_LIPO
11666 if test -n "$LIPO"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11668 $as_echo "$LIPO" >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11671 $as_echo "no
" >&6; }
11676 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11680 $as_echo_n "checking
for $ac_word...
" >&6; }
11681 if ${ac_cv_prog_LIPO+:} false; then :
11682 $as_echo_n "(cached
) " >&6
11684 if test -n "$LIPO"; then
11685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_prog_LIPO="${ncn_progname}"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11704 LIPO=$ac_cv_prog_LIPO
11705 if test -n "$LIPO"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11707 $as_echo "$LIPO" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11710 $as_echo "no
" >&6; }
11715 test -n "$ac_cv_prog_LIPO" && break
11718 if test -z "$ac_cv_prog_LIPO" ; then
11720 if test $build = $host ; then
11723 LIPO="${ncn_tool_prefix}$2"
11729 if test -n "$NM"; then
11731 elif test -n "$ac_cv_prog_NM"; then
11735 if test -n "$ac_cv_prog_NM"; then
11736 for ncn_progname in nm; do
11737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11740 $as_echo_n "checking
for $ac_word...
" >&6; }
11741 if ${ac_cv_prog_NM+:} false; then :
11742 $as_echo_n "(cached
) " >&6
11744 if test -n "$NM"; then
11745 ac_cv_prog_NM="$NM" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_NM="${ncn_progname}"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11765 if test -n "$NM"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11767 $as_echo "$NM" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11770 $as_echo "no
" >&6; }
11777 for ncn_progname in nm; do
11778 if test -n "$ncn_tool_prefix"; then
11779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11782 $as_echo_n "checking
for $ac_word...
" >&6; }
11783 if ${ac_cv_prog_NM+:} false; then :
11784 $as_echo_n "(cached
) " >&6
11786 if test -n "$NM"; then
11787 ac_cv_prog_NM="$NM" # Let the user override the test.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11807 if test -n "$NM"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11809 $as_echo "$NM" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11812 $as_echo "no
" >&6; }
11817 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11821 $as_echo_n "checking
for $ac_word...
" >&6; }
11822 if ${ac_cv_prog_NM+:} false; then :
11823 $as_echo_n "(cached
) " >&6
11825 if test -n "$NM"; then
11826 ac_cv_prog_NM="$NM" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835 ac_cv_prog_NM="${ncn_progname}"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11846 if test -n "$NM"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11848 $as_echo "$NM" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11851 $as_echo "no
" >&6; }
11856 test -n "$ac_cv_prog_NM" && break
11859 if test -z "$ac_cv_prog_NM" ; then
11861 if test $build = $host ; then
11864 NM="${ncn_tool_prefix}$2"
11870 if test -n "$RANLIB"; then
11871 ac_cv_prog_RANLIB=$RANLIB
11872 elif test -n "$ac_cv_prog_RANLIB"; then
11873 RANLIB=$ac_cv_prog_RANLIB
11876 if test -n "$ac_cv_prog_RANLIB"; then
11877 for ncn_progname in ranlib; do
11878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11881 $as_echo_n "checking
for $ac_word...
" >&6; }
11882 if ${ac_cv_prog_RANLIB+:} false; then :
11883 $as_echo_n "(cached
) " >&6
11885 if test -n "$RANLIB"; then
11886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_prog_RANLIB="${ncn_progname}"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11905 RANLIB=$ac_cv_prog_RANLIB
11906 if test -n "$RANLIB"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11908 $as_echo "$RANLIB" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11911 $as_echo "no
" >&6; }
11918 for ncn_progname in ranlib; do
11919 if test -n "$ncn_tool_prefix"; then
11920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11923 $as_echo_n "checking
for $ac_word...
" >&6; }
11924 if ${ac_cv_prog_RANLIB+:} false; then :
11925 $as_echo_n "(cached
) " >&6
11927 if test -n "$RANLIB"; then
11928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11947 RANLIB=$ac_cv_prog_RANLIB
11948 if test -n "$RANLIB"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11950 $as_echo "$RANLIB" >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11953 $as_echo "no
" >&6; }
11958 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11960 set dummy ${ncn_progname}; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11962 $as_echo_n "checking
for $ac_word...
" >&6; }
11963 if ${ac_cv_prog_RANLIB+:} false; then :
11964 $as_echo_n "(cached
) " >&6
11966 if test -n "$RANLIB"; then
11967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_prog_RANLIB="${ncn_progname}"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11986 RANLIB=$ac_cv_prog_RANLIB
11987 if test -n "$RANLIB"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11989 $as_echo "$RANLIB" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11992 $as_echo "no
" >&6; }
11997 test -n "$ac_cv_prog_RANLIB" && break
12000 if test -z "$ac_cv_prog_RANLIB" ; then
12006 if test -n "$STRIP"; then
12007 ac_cv_prog_STRIP=$STRIP
12008 elif test -n "$ac_cv_prog_STRIP"; then
12009 STRIP=$ac_cv_prog_STRIP
12012 if test -n "$ac_cv_prog_STRIP"; then
12013 for ncn_progname in strip; do
12014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12017 $as_echo_n "checking
for $ac_word...
" >&6; }
12018 if ${ac_cv_prog_STRIP+:} false; then :
12019 $as_echo_n "(cached
) " >&6
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_STRIP="${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12041 STRIP=$ac_cv_prog_STRIP
12042 if test -n "$STRIP"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12044 $as_echo "$STRIP" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12047 $as_echo "no
" >&6; }
12054 for ncn_progname in strip; do
12055 if test -n "$ncn_tool_prefix"; then
12056 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12057 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12059 $as_echo_n "checking
for $ac_word...
" >&6; }
12060 if ${ac_cv_prog_STRIP+:} false; then :
12061 $as_echo_n "(cached
) " >&6
12063 if test -n "$STRIP"; then
12064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12083 STRIP=$ac_cv_prog_STRIP
12084 if test -n "$STRIP"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12086 $as_echo "$STRIP" >&6; }
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12089 $as_echo "no
" >&6; }
12094 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12096 set dummy ${ncn_progname}; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12098 $as_echo_n "checking
for $ac_word...
" >&6; }
12099 if ${ac_cv_prog_STRIP+:} false; then :
12100 $as_echo_n "(cached
) " >&6
12102 if test -n "$STRIP"; then
12103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_STRIP="${ncn_progname}"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12122 STRIP=$ac_cv_prog_STRIP
12123 if test -n "$STRIP"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12125 $as_echo "$STRIP" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12128 $as_echo "no
" >&6; }
12133 test -n "$ac_cv_prog_STRIP" && break
12136 if test -z "$ac_cv_prog_STRIP" ; then
12142 if test -n "$WINDRES"; then
12143 ac_cv_prog_WINDRES=$WINDRES
12144 elif test -n "$ac_cv_prog_WINDRES"; then
12145 WINDRES=$ac_cv_prog_WINDRES
12148 if test -n "$ac_cv_prog_WINDRES"; then
12149 for ncn_progname in windres; do
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12153 $as_echo_n "checking
for $ac_word...
" >&6; }
12154 if ${ac_cv_prog_WINDRES+:} false; then :
12155 $as_echo_n "(cached
) " >&6
12157 if test -n "$WINDRES"; then
12158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_WINDRES="${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12177 WINDRES=$ac_cv_prog_WINDRES
12178 if test -n "$WINDRES"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12180 $as_echo "$WINDRES" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12183 $as_echo "no
" >&6; }
12190 for ncn_progname in windres; do
12191 if test -n "$ncn_tool_prefix"; then
12192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12193 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12195 $as_echo_n "checking
for $ac_word...
" >&6; }
12196 if ${ac_cv_prog_WINDRES+:} false; then :
12197 $as_echo_n "(cached
) " >&6
12199 if test -n "$WINDRES"; then
12200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12219 WINDRES=$ac_cv_prog_WINDRES
12220 if test -n "$WINDRES"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12222 $as_echo "$WINDRES" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12225 $as_echo "no
" >&6; }
12230 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12232 set dummy ${ncn_progname}; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12234 $as_echo_n "checking
for $ac_word...
" >&6; }
12235 if ${ac_cv_prog_WINDRES+:} false; then :
12236 $as_echo_n "(cached
) " >&6
12238 if test -n "$WINDRES"; then
12239 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_WINDRES="${ncn_progname}"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12258 WINDRES=$ac_cv_prog_WINDRES
12259 if test -n "$WINDRES"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12261 $as_echo "$WINDRES" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12264 $as_echo "no
" >&6; }
12269 test -n "$ac_cv_prog_WINDRES" && break
12272 if test -z "$ac_cv_prog_WINDRES" ; then
12274 if test $build = $host ; then
12277 WINDRES="${ncn_tool_prefix}$2"
12283 if test -n "$WINDMC"; then
12284 ac_cv_prog_WINDMC=$WINDMC
12285 elif test -n "$ac_cv_prog_WINDMC"; then
12286 WINDMC=$ac_cv_prog_WINDMC
12289 if test -n "$ac_cv_prog_WINDMC"; then
12290 for ncn_progname in windmc; do
12291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12292 set dummy ${ncn_progname}; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12294 $as_echo_n "checking
for $ac_word...
" >&6; }
12295 if ${ac_cv_prog_WINDMC+:} false; then :
12296 $as_echo_n "(cached
) " >&6
12298 if test -n "$WINDMC"; then
12299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_WINDMC="${ncn_progname}"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12318 WINDMC=$ac_cv_prog_WINDMC
12319 if test -n "$WINDMC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12321 $as_echo "$WINDMC" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12324 $as_echo "no
" >&6; }
12331 for ncn_progname in windmc; do
12332 if test -n "$ncn_tool_prefix"; then
12333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12336 $as_echo_n "checking
for $ac_word...
" >&6; }
12337 if ${ac_cv_prog_WINDMC+:} false; then :
12338 $as_echo_n "(cached
) " >&6
12340 if test -n "$WINDMC"; then
12341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12360 WINDMC=$ac_cv_prog_WINDMC
12361 if test -n "$WINDMC"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12363 $as_echo "$WINDMC" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12366 $as_echo "no
" >&6; }
12371 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12375 $as_echo_n "checking
for $ac_word...
" >&6; }
12376 if ${ac_cv_prog_WINDMC+:} false; then :
12377 $as_echo_n "(cached
) " >&6
12379 if test -n "$WINDMC"; then
12380 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 ac_cv_prog_WINDMC="${ncn_progname}"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12399 WINDMC=$ac_cv_prog_WINDMC
12400 if test -n "$WINDMC"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12402 $as_echo "$WINDMC" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12405 $as_echo "no
" >&6; }
12410 test -n "$ac_cv_prog_WINDMC" && break
12413 if test -z "$ac_cv_prog_WINDMC" ; then
12415 if test $build = $host ; then
12418 WINDMC="${ncn_tool_prefix}$2"
12424 if test -n "$OBJCOPY"; then
12425 ac_cv_prog_OBJCOPY=$OBJCOPY
12426 elif test -n "$ac_cv_prog_OBJCOPY"; then
12427 OBJCOPY=$ac_cv_prog_OBJCOPY
12430 if test -n "$ac_cv_prog_OBJCOPY"; then
12431 for ncn_progname in objcopy; do
12432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12433 set dummy ${ncn_progname}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12435 $as_echo_n "checking
for $ac_word...
" >&6; }
12436 if ${ac_cv_prog_OBJCOPY+:} false; then :
12437 $as_echo_n "(cached
) " >&6
12439 if test -n "$OBJCOPY"; then
12440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_OBJCOPY="${ncn_progname}"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12459 OBJCOPY=$ac_cv_prog_OBJCOPY
12460 if test -n "$OBJCOPY"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12462 $as_echo "$OBJCOPY" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12465 $as_echo "no
" >&6; }
12472 for ncn_progname in objcopy; do
12473 if test -n "$ncn_tool_prefix"; then
12474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12477 $as_echo_n "checking
for $ac_word...
" >&6; }
12478 if ${ac_cv_prog_OBJCOPY+:} false; then :
12479 $as_echo_n "(cached
) " >&6
12481 if test -n "$OBJCOPY"; then
12482 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12501 OBJCOPY=$ac_cv_prog_OBJCOPY
12502 if test -n "$OBJCOPY"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12504 $as_echo "$OBJCOPY" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12507 $as_echo "no
" >&6; }
12512 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12514 set dummy ${ncn_progname}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12516 $as_echo_n "checking
for $ac_word...
" >&6; }
12517 if ${ac_cv_prog_OBJCOPY+:} false; then :
12518 $as_echo_n "(cached
) " >&6
12520 if test -n "$OBJCOPY"; then
12521 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530 ac_cv_prog_OBJCOPY="${ncn_progname}"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12540 OBJCOPY=$ac_cv_prog_OBJCOPY
12541 if test -n "$OBJCOPY"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12543 $as_echo "$OBJCOPY" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12546 $as_echo "no
" >&6; }
12551 test -n "$ac_cv_prog_OBJCOPY" && break
12554 if test -z "$ac_cv_prog_OBJCOPY" ; then
12556 if test $build = $host ; then
12559 OBJCOPY="${ncn_tool_prefix}$2"
12565 if test -n "$OBJDUMP"; then
12566 ac_cv_prog_OBJDUMP=$OBJDUMP
12567 elif test -n "$ac_cv_prog_OBJDUMP"; then
12568 OBJDUMP=$ac_cv_prog_OBJDUMP
12571 if test -n "$ac_cv_prog_OBJDUMP"; then
12572 for ncn_progname in objdump; do
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12576 $as_echo_n "checking
for $ac_word...
" >&6; }
12577 if ${ac_cv_prog_OBJDUMP+:} false; then :
12578 $as_echo_n "(cached
) " >&6
12580 if test -n "$OBJDUMP"; then
12581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_OBJDUMP="${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12600 OBJDUMP=$ac_cv_prog_OBJDUMP
12601 if test -n "$OBJDUMP"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12603 $as_echo "$OBJDUMP" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12606 $as_echo "no
" >&6; }
12613 for ncn_progname in objdump; do
12614 if test -n "$ncn_tool_prefix"; then
12615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12618 $as_echo_n "checking
for $ac_word...
" >&6; }
12619 if ${ac_cv_prog_OBJDUMP+:} false; then :
12620 $as_echo_n "(cached
) " >&6
12622 if test -n "$OBJDUMP"; then
12623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12642 OBJDUMP=$ac_cv_prog_OBJDUMP
12643 if test -n "$OBJDUMP"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12645 $as_echo "$OBJDUMP" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12648 $as_echo "no
" >&6; }
12653 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12657 $as_echo_n "checking
for $ac_word...
" >&6; }
12658 if ${ac_cv_prog_OBJDUMP+:} false; then :
12659 $as_echo_n "(cached
) " >&6
12661 if test -n "$OBJDUMP"; then
12662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_prog_OBJDUMP="${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12681 OBJDUMP=$ac_cv_prog_OBJDUMP
12682 if test -n "$OBJDUMP"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12684 $as_echo "$OBJDUMP" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12687 $as_echo "no
" >&6; }
12692 test -n "$ac_cv_prog_OBJDUMP" && break
12695 if test -z "$ac_cv_prog_OBJDUMP" ; then
12697 if test $build = $host ; then
12700 OBJDUMP="${ncn_tool_prefix}$2"
12706 if test -n "$OTOOL"; then
12707 ac_cv_prog_OTOOL=$OTOOL
12708 elif test -n "$ac_cv_prog_OTOOL"; then
12709 OTOOL=$ac_cv_prog_OTOOL
12712 if test -n "$ac_cv_prog_OTOOL"; then
12713 for ncn_progname in otool; do
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12717 $as_echo_n "checking
for $ac_word...
" >&6; }
12718 if ${ac_cv_prog_OTOOL+:} false; then :
12719 $as_echo_n "(cached
) " >&6
12721 if test -n "$OTOOL"; then
12722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_OTOOL="${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12741 OTOOL=$ac_cv_prog_OTOOL
12742 if test -n "$OTOOL"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12744 $as_echo "$OTOOL" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12747 $as_echo "no
" >&6; }
12754 for ncn_progname in otool; do
12755 if test -n "$ncn_tool_prefix"; then
12756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12757 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12759 $as_echo_n "checking
for $ac_word...
" >&6; }
12760 if ${ac_cv_prog_OTOOL+:} false; then :
12761 $as_echo_n "(cached
) " >&6
12763 if test -n "$OTOOL"; then
12764 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12773 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12783 OTOOL=$ac_cv_prog_OTOOL
12784 if test -n "$OTOOL"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12786 $as_echo "$OTOOL" >&6; }
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12789 $as_echo "no
" >&6; }
12794 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12796 set dummy ${ncn_progname}; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12798 $as_echo_n "checking
for $ac_word...
" >&6; }
12799 if ${ac_cv_prog_OTOOL+:} false; then :
12800 $as_echo_n "(cached
) " >&6
12802 if test -n "$OTOOL"; then
12803 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806 for as_dir in $PATH
12809 test -z "$as_dir" && as_dir=.
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12812 ac_cv_prog_OTOOL="${ncn_progname}"
12813 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12822 OTOOL=$ac_cv_prog_OTOOL
12823 if test -n "$OTOOL"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12825 $as_echo "$OTOOL" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12828 $as_echo "no
" >&6; }
12833 test -n "$ac_cv_prog_OTOOL" && break
12836 if test -z "$ac_cv_prog_OTOOL" ; then
12838 if test $build = $host ; then
12841 OTOOL="${ncn_tool_prefix}$2"
12847 if test -n "$READELF"; then
12848 ac_cv_prog_READELF=$READELF
12849 elif test -n "$ac_cv_prog_READELF"; then
12850 READELF=$ac_cv_prog_READELF
12853 if test -n "$ac_cv_prog_READELF"; then
12854 for ncn_progname in readelf; do
12855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12858 $as_echo_n "checking
for $ac_word...
" >&6; }
12859 if ${ac_cv_prog_READELF+:} false; then :
12860 $as_echo_n "(cached
) " >&6
12862 if test -n "$READELF"; then
12863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_READELF="${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12882 READELF=$ac_cv_prog_READELF
12883 if test -n "$READELF"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12885 $as_echo "$READELF" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12888 $as_echo "no
" >&6; }
12895 for ncn_progname in readelf; do
12896 if test -n "$ncn_tool_prefix"; then
12897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12898 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12900 $as_echo_n "checking
for $ac_word...
" >&6; }
12901 if ${ac_cv_prog_READELF+:} false; then :
12902 $as_echo_n "(cached
) " >&6
12904 if test -n "$READELF"; then
12905 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12914 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12924 READELF=$ac_cv_prog_READELF
12925 if test -n "$READELF"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12927 $as_echo "$READELF" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12930 $as_echo "no
" >&6; }
12935 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937 set dummy ${ncn_progname}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12939 $as_echo_n "checking
for $ac_word...
" >&6; }
12940 if ${ac_cv_prog_READELF+:} false; then :
12941 $as_echo_n "(cached
) " >&6
12943 if test -n "$READELF"; then
12944 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_READELF="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12963 READELF=$ac_cv_prog_READELF
12964 if test -n "$READELF"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12966 $as_echo "$READELF" >&6; }
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12969 $as_echo "no
" >&6; }
12974 test -n "$ac_cv_prog_READELF" && break
12977 if test -z "$ac_cv_prog_READELF" ; then
12979 if test $build = $host ; then
12982 READELF="${ncn_tool_prefix}$2"
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12995 $as_echo_n "checking
for -plugin option...
" >&6; }
12997 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12999 for plugin in $plugin_names; do
13000 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13001 if test x$plugin_so = x$plugin; then
13002 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13004 if test x$plugin_so != x$plugin; then
13005 plugin_option="--plugin $plugin_so"
13009 if test -n "$ac_tool_prefix"; then
13010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13011 set dummy ${ac_tool_prefix}ar; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13013 $as_echo_n "checking
for $ac_word...
" >&6; }
13014 if ${ac_cv_prog_AR+:} false; then :
13015 $as_echo_n "(cached
) " >&6
13017 if test -n "$AR"; then
13018 ac_cv_prog_AR="$AR" # Let the user override the test.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027 ac_cv_prog_AR="${ac_tool_prefix}ar"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13038 if test -n "$AR"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13040 $as_echo "$AR" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13043 $as_echo "no
" >&6; }
13048 if test -z "$ac_cv_prog_AR"; then
13050 # Extract the first word of "ar", so it can be a program name with args.
13051 set dummy ar; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13053 $as_echo_n "checking
for $ac_word...
" >&6; }
13054 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13055 $as_echo_n "(cached
) " >&6
13057 if test -n "$ac_ct_AR"; then
13058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13067 ac_cv_prog_ac_ct_AR="ar"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13078 if test -n "$ac_ct_AR"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13080 $as_echo "$ac_ct_AR" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13083 $as_echo "no
" >&6; }
13086 if test "x
$ac_ct_AR" = x; then
13089 case $cross_compiling:$ac_tool_warned in
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13092 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13093 ac_tool_warned=yes ;;
13098 AR="$ac_cv_prog_AR"
13101 if test "${AR}" = "" ; then
13102 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13105 ${AR} $plugin_option rc conftest.a conftest.c
13106 if test "$?
" != 0; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13108 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13112 if test -n "$plugin_option"; then
13113 PLUGIN_OPTION="$plugin_option"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13115 $as_echo "$plugin_option" >&6; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13118 $as_echo "no
" >&6; }
13122 RANLIB_PLUGIN_OPTION=
13123 if test -n "$PLUGIN_OPTION"; then
13124 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13125 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13127 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13128 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13136 # Check whether --with-build-time-tools was given.
13137 if test "${with_build_time_tools+set}" = set; then :
13138 withval=$with_build_time_tools; case x"$withval" in
13141 with_build_time_tools=
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13143 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13147 with_build_time_tools=
13153 if test -n "$CC_FOR_TARGET"; then
13154 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13155 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13156 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13159 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13160 for ncn_progname in cc gcc; do
13161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13162 set dummy ${ncn_progname}; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13164 $as_echo_n "checking
for $ac_word...
" >&6; }
13165 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13166 $as_echo_n "(cached
) " >&6
13168 if test -n "$CC_FOR_TARGET"; then
13169 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13178 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13188 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13189 if test -n "$CC_FOR_TARGET"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13191 $as_echo "$CC_FOR_TARGET" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13194 $as_echo "no
" >&6; }
13201 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13202 for ncn_progname in cc gcc; do
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13204 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13205 if test -x $with_build_time_tools/${ncn_progname}; then
13206 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13208 $as_echo "yes" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13212 $as_echo "no
" >&6; }
13217 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13218 for ncn_progname in cc gcc; do
13219 if test -n "$ncn_target_tool_prefix"; then
13220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13223 $as_echo_n "checking
for $ac_word...
" >&6; }
13224 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13225 $as_echo_n "(cached
) " >&6
13227 if test -n "$CC_FOR_TARGET"; then
13228 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13247 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13248 if test -n "$CC_FOR_TARGET"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13250 $as_echo "$CC_FOR_TARGET" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13253 $as_echo "no
" >&6; }
13258 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13260 set dummy ${ncn_progname}; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13262 $as_echo_n "checking
for $ac_word...
" >&6; }
13263 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13264 $as_echo_n "(cached
) " >&6
13266 if test -n "$CC_FOR_TARGET"; then
13267 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13286 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13287 if test -n "$CC_FOR_TARGET"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13289 $as_echo "$CC_FOR_TARGET" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13292 $as_echo "no
" >&6; }
13297 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13301 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13303 if test $build = $target ; then
13306 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13309 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13314 if test -n "$CXX_FOR_TARGET"; then
13315 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13316 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13317 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13320 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13321 for ncn_progname in c++ g++ cxx gxx; do
13322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13323 set dummy ${ncn_progname}; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13325 $as_echo_n "checking
for $ac_word...
" >&6; }
13326 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13327 $as_echo_n "(cached
) " >&6
13329 if test -n "$CXX_FOR_TARGET"; then
13330 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13349 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13350 if test -n "$CXX_FOR_TARGET"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13352 $as_echo "$CXX_FOR_TARGET" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13355 $as_echo "no
" >&6; }
13362 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13363 for ncn_progname in c++ g++ cxx gxx; do
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13365 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13366 if test -x $with_build_time_tools/${ncn_progname}; then
13367 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13369 $as_echo "yes" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13373 $as_echo "no
" >&6; }
13378 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13379 for ncn_progname in c++ g++ cxx gxx; do
13380 if test -n "$ncn_target_tool_prefix"; then
13381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13382 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13384 $as_echo_n "checking
for $ac_word...
" >&6; }
13385 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13386 $as_echo_n "(cached
) " >&6
13388 if test -n "$CXX_FOR_TARGET"; then
13389 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH
13395 test -z "$as_dir" && as_dir=.
13396 for ac_exec_ext in '' $ac_executable_extensions; do
13397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13408 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13409 if test -n "$CXX_FOR_TARGET"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13411 $as_echo "$CXX_FOR_TARGET" >&6; }
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13414 $as_echo "no
" >&6; }
13419 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13421 set dummy ${ncn_progname}; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13423 $as_echo_n "checking
for $ac_word...
" >&6; }
13424 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13425 $as_echo_n "(cached
) " >&6
13427 if test -n "$CXX_FOR_TARGET"; then
13428 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13447 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13448 if test -n "$CXX_FOR_TARGET"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13450 $as_echo "$CXX_FOR_TARGET" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13453 $as_echo "no
" >&6; }
13458 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13462 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13463 set dummy c++ g++ cxx gxx
13464 if test $build = $target ; then
13465 CXX_FOR_TARGET="$2"
13467 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13470 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13475 if test -n "$GCC_FOR_TARGET"; then
13476 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13477 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13478 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13481 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13482 for ncn_progname in gcc; do
13483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13484 set dummy ${ncn_progname}; ac_word=$2
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13486 $as_echo_n "checking
for $ac_word...
" >&6; }
13487 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13488 $as_echo_n "(cached
) " >&6
13490 if test -n "$GCC_FOR_TARGET"; then
13491 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13497 test -z "$as_dir" && as_dir=.
13498 for ac_exec_ext in '' $ac_executable_extensions; do
13499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13500 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13510 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13511 if test -n "$GCC_FOR_TARGET"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13513 $as_echo "$GCC_FOR_TARGET" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13516 $as_echo "no
" >&6; }
13523 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13524 for ncn_progname in gcc; do
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13526 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13527 if test -x $with_build_time_tools/${ncn_progname}; then
13528 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13530 $as_echo "yes" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13534 $as_echo "no
" >&6; }
13539 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13540 for ncn_progname in gcc; do
13541 if test -n "$ncn_target_tool_prefix"; then
13542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13543 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13545 $as_echo_n "checking
for $ac_word...
" >&6; }
13546 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13547 $as_echo_n "(cached
) " >&6
13549 if test -n "$GCC_FOR_TARGET"; then
13550 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13556 test -z "$as_dir" && as_dir=.
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13560 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13569 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13570 if test -n "$GCC_FOR_TARGET"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13572 $as_echo "$GCC_FOR_TARGET" >&6; }
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13575 $as_echo "no
" >&6; }
13580 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13582 set dummy ${ncn_progname}; ac_word=$2
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13584 $as_echo_n "checking
for $ac_word...
" >&6; }
13585 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13586 $as_echo_n "(cached
) " >&6
13588 if test -n "$GCC_FOR_TARGET"; then
13589 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13608 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13609 if test -n "$GCC_FOR_TARGET"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13611 $as_echo "$GCC_FOR_TARGET" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13614 $as_echo "no
" >&6; }
13619 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13623 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13624 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13626 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13631 if test -n "$GFORTRAN_FOR_TARGET"; then
13632 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13633 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13634 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13637 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13638 for ncn_progname in gfortran; do
13639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13642 $as_echo_n "checking
for $ac_word...
" >&6; }
13643 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13644 $as_echo_n "(cached
) " >&6
13646 if test -n "$GFORTRAN_FOR_TARGET"; then
13647 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13666 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13667 if test -n "$GFORTRAN_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13669 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13672 $as_echo "no
" >&6; }
13679 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13680 for ncn_progname in gfortran; do
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13682 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13683 if test -x $with_build_time_tools/${ncn_progname}; then
13684 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13686 $as_echo "yes" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13690 $as_echo "no
" >&6; }
13695 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13696 for ncn_progname in gfortran; do
13697 if test -n "$ncn_target_tool_prefix"; then
13698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13701 $as_echo_n "checking
for $ac_word...
" >&6; }
13702 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13703 $as_echo_n "(cached
) " >&6
13705 if test -n "$GFORTRAN_FOR_TARGET"; then
13706 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13715 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13725 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13726 if test -n "$GFORTRAN_FOR_TARGET"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13728 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13731 $as_echo "no
" >&6; }
13736 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13738 set dummy ${ncn_progname}; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13740 $as_echo_n "checking
for $ac_word...
" >&6; }
13741 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13742 $as_echo_n "(cached
) " >&6
13744 if test -n "$GFORTRAN_FOR_TARGET"; then
13745 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13764 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13765 if test -n "$GFORTRAN_FOR_TARGET"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13767 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13770 $as_echo "no
" >&6; }
13775 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13779 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13781 if test $build = $target ; then
13782 GFORTRAN_FOR_TARGET="$2"
13784 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13787 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13792 if test -n "$GOC_FOR_TARGET"; then
13793 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13794 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13795 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13798 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13799 for ncn_progname in gccgo; do
13800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13801 set dummy ${ncn_progname}; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13803 $as_echo_n "checking
for $ac_word...
" >&6; }
13804 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13805 $as_echo_n "(cached
) " >&6
13807 if test -n "$GOC_FOR_TARGET"; then
13808 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13827 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13828 if test -n "$GOC_FOR_TARGET"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13830 $as_echo "$GOC_FOR_TARGET" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13833 $as_echo "no
" >&6; }
13840 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13841 for ncn_progname in gccgo; do
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13843 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13844 if test -x $with_build_time_tools/${ncn_progname}; then
13845 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13847 $as_echo "yes" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13851 $as_echo "no
" >&6; }
13856 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13857 for ncn_progname in gccgo; do
13858 if test -n "$ncn_target_tool_prefix"; then
13859 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13860 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13862 $as_echo_n "checking
for $ac_word...
" >&6; }
13863 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13864 $as_echo_n "(cached
) " >&6
13866 if test -n "$GOC_FOR_TARGET"; then
13867 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13876 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13886 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13887 if test -n "$GOC_FOR_TARGET"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13889 $as_echo "$GOC_FOR_TARGET" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13892 $as_echo "no
" >&6; }
13897 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13899 set dummy ${ncn_progname}; ac_word=$2
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13901 $as_echo_n "checking
for $ac_word...
" >&6; }
13902 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13903 $as_echo_n "(cached
) " >&6
13905 if test -n "$GOC_FOR_TARGET"; then
13906 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909 for as_dir in $PATH
13912 test -z "$as_dir" && as_dir=.
13913 for ac_exec_ext in '' $ac_executable_extensions; do
13914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13915 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13916 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13925 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13926 if test -n "$GOC_FOR_TARGET"; then
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13928 $as_echo "$GOC_FOR_TARGET" >&6; }
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13931 $as_echo "no
" >&6; }
13936 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13940 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13942 if test $build = $target ; then
13943 GOC_FOR_TARGET="$2"
13945 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13948 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13953 if test -n "$GDC_FOR_TARGET"; then
13954 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13955 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13956 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13959 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13960 for ncn_progname in gdc; do
13961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13962 set dummy ${ncn_progname}; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13964 $as_echo_n "checking
for $ac_word...
" >&6; }
13965 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13966 $as_echo_n "(cached
) " >&6
13968 if test -n "$GDC_FOR_TARGET"; then
13969 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13988 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13989 if test -n "$GDC_FOR_TARGET"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13991 $as_echo "$GDC_FOR_TARGET" >&6; }
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13994 $as_echo "no
" >&6; }
14001 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14002 for ncn_progname in gdc; do
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14004 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14005 if test -x $with_build_time_tools/${ncn_progname}; then
14006 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14008 $as_echo "yes" >&6; }
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14012 $as_echo "no
" >&6; }
14017 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14018 for ncn_progname in gdc; do
14019 if test -n "$ncn_target_tool_prefix"; then
14020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14023 $as_echo_n "checking
for $ac_word...
" >&6; }
14024 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14025 $as_echo_n "(cached
) " >&6
14027 if test -n "$GDC_FOR_TARGET"; then
14028 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14037 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14047 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14048 if test -n "$GDC_FOR_TARGET"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14050 $as_echo "$GDC_FOR_TARGET" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14053 $as_echo "no
" >&6; }
14058 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14060 set dummy ${ncn_progname}; ac_word=$2
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14062 $as_echo_n "checking
for $ac_word...
" >&6; }
14063 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14064 $as_echo_n "(cached
) " >&6
14066 if test -n "$GDC_FOR_TARGET"; then
14067 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in $PATH
14073 test -z "$as_dir" && as_dir=.
14074 for ac_exec_ext in '' $ac_executable_extensions; do
14075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14076 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14086 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14087 if test -n "$GDC_FOR_TARGET"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14089 $as_echo "$GDC_FOR_TARGET" >&6; }
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14092 $as_echo "no
" >&6; }
14097 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14101 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14103 if test $build = $target ; then
14104 GDC_FOR_TARGET="$2"
14106 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14109 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14114 cat > conftest.c << \EOF
14119 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14120 have_gcc_for_target=yes
14122 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14123 have_gcc_for_target=no
14130 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14131 if test -n "$with_build_time_tools"; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14133 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14134 if test -x $with_build_time_tools/ar; then
14135 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14136 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14138 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14141 $as_echo "no
" >&6; }
14143 elif test $build != $host && test $have_gcc_for_target = yes; then
14144 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14145 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14146 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14149 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14150 # Extract the first word of "ar", so it can be a program name with args.
14151 set dummy ar; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14153 $as_echo_n "checking
for $ac_word...
" >&6; }
14154 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14155 $as_echo_n "(cached
) " >&6
14157 case $AR_FOR_TARGET in
14159 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $gcc_cv_tool_dirs
14166 test -z "$as_dir" && as_dir=.
14167 for ac_exec_ext in '' $ac_executable_extensions; do
14168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14169 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14180 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14181 if test -n "$AR_FOR_TARGET"; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14183 $as_echo "$AR_FOR_TARGET" >&6; }
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14186 $as_echo "no
" >&6; }
14191 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14194 if test -n "$AR_FOR_TARGET"; then
14195 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14196 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14197 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14200 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14201 for ncn_progname in ar; do
14202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14203 set dummy ${ncn_progname}; ac_word=$2
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14205 $as_echo_n "checking
for $ac_word...
" >&6; }
14206 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14207 $as_echo_n "(cached
) " >&6
14209 if test -n "$AR_FOR_TARGET"; then
14210 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14229 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14230 if test -n "$AR_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14232 $as_echo "$AR_FOR_TARGET" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14235 $as_echo "no
" >&6; }
14242 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14243 for ncn_progname in ar; do
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14245 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14246 if test -x $with_build_time_tools/${ncn_progname}; then
14247 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14249 $as_echo "yes" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14253 $as_echo "no
" >&6; }
14258 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14259 for ncn_progname in ar; do
14260 if test -n "$ncn_target_tool_prefix"; then
14261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14262 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14264 $as_echo_n "checking
for $ac_word...
" >&6; }
14265 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14266 $as_echo_n "(cached
) " >&6
14268 if test -n "$AR_FOR_TARGET"; then
14269 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14275 test -z "$as_dir" && as_dir=.
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14279 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14288 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14289 if test -n "$AR_FOR_TARGET"; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14291 $as_echo "$AR_FOR_TARGET" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14294 $as_echo "no
" >&6; }
14299 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14301 set dummy ${ncn_progname}; ac_word=$2
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14303 $as_echo_n "checking
for $ac_word...
" >&6; }
14304 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14305 $as_echo_n "(cached
) " >&6
14307 if test -n "$AR_FOR_TARGET"; then
14308 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14311 for as_dir in $PATH
14314 test -z "$as_dir" && as_dir=.
14315 for ac_exec_ext in '' $ac_executable_extensions; do
14316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14317 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14327 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14328 if test -n "$AR_FOR_TARGET"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14330 $as_echo "$AR_FOR_TARGET" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14333 $as_echo "no
" >&6; }
14338 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14342 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14344 if test $build = $target ; then
14347 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14350 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14354 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14360 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14361 if test -n "$with_build_time_tools"; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14363 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14364 if test -x $with_build_time_tools/as; then
14365 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14366 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14368 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14371 $as_echo "no
" >&6; }
14373 elif test $build != $host && test $have_gcc_for_target = yes; then
14374 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14375 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14376 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14379 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14380 # Extract the first word of "as
", so it can be a program name with args.
14381 set dummy as; ac_word=$2
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14383 $as_echo_n "checking
for $ac_word...
" >&6; }
14384 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14385 $as_echo_n "(cached
) " >&6
14387 case $AS_FOR_TARGET in
14389 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $gcc_cv_tool_dirs
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14410 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14411 if test -n "$AS_FOR_TARGET"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14413 $as_echo "$AS_FOR_TARGET" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14416 $as_echo "no
" >&6; }
14421 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14424 if test -n "$AS_FOR_TARGET"; then
14425 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14426 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14427 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14430 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14431 for ncn_progname in as; do
14432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14433 set dummy ${ncn_progname}; ac_word=$2
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14435 $as_echo_n "checking
for $ac_word...
" >&6; }
14436 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14437 $as_echo_n "(cached
) " >&6
14439 if test -n "$AS_FOR_TARGET"; then
14440 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14459 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14460 if test -n "$AS_FOR_TARGET"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14462 $as_echo "$AS_FOR_TARGET" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14465 $as_echo "no
" >&6; }
14472 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14473 for ncn_progname in as; do
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14475 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14476 if test -x $with_build_time_tools/${ncn_progname}; then
14477 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14479 $as_echo "yes" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14483 $as_echo "no
" >&6; }
14488 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14489 for ncn_progname in as; do
14490 if test -n "$ncn_target_tool_prefix"; then
14491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14494 $as_echo_n "checking
for $ac_word...
" >&6; }
14495 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14496 $as_echo_n "(cached
) " >&6
14498 if test -n "$AS_FOR_TARGET"; then
14499 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14518 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14519 if test -n "$AS_FOR_TARGET"; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14521 $as_echo "$AS_FOR_TARGET" >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14524 $as_echo "no
" >&6; }
14529 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14531 set dummy ${ncn_progname}; ac_word=$2
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14533 $as_echo_n "checking
for $ac_word...
" >&6; }
14534 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14535 $as_echo_n "(cached
) " >&6
14537 if test -n "$AS_FOR_TARGET"; then
14538 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14541 for as_dir in $PATH
14544 test -z "$as_dir" && as_dir=.
14545 for ac_exec_ext in '' $ac_executable_extensions; do
14546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14547 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14557 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14558 if test -n "$AS_FOR_TARGET"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14560 $as_echo "$AS_FOR_TARGET" >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14563 $as_echo "no
" >&6; }
14568 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14572 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14574 if test $build = $target ; then
14577 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14580 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14584 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14590 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14591 if test -n "$with_build_time_tools"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14593 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14594 if test -x $with_build_time_tools/dlltool; then
14595 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14596 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14598 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14601 $as_echo "no
" >&6; }
14603 elif test $build != $host && test $have_gcc_for_target = yes; then
14604 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14605 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14606 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14609 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14610 # Extract the first word of "dlltool
", so it can be a program name with args.
14611 set dummy dlltool; ac_word=$2
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14613 $as_echo_n "checking
for $ac_word...
" >&6; }
14614 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14615 $as_echo_n "(cached
) " >&6
14617 case $DLLTOOL_FOR_TARGET in
14619 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $gcc_cv_tool_dirs
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14640 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14641 if test -n "$DLLTOOL_FOR_TARGET"; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14643 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14646 $as_echo "no
" >&6; }
14651 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14654 if test -n "$DLLTOOL_FOR_TARGET"; then
14655 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14656 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14657 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14660 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14661 for ncn_progname in dlltool; do
14662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14663 set dummy ${ncn_progname}; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14665 $as_echo_n "checking
for $ac_word...
" >&6; }
14666 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14667 $as_echo_n "(cached
) " >&6
14669 if test -n "$DLLTOOL_FOR_TARGET"; then
14670 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14689 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14690 if test -n "$DLLTOOL_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14692 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14695 $as_echo "no
" >&6; }
14702 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14703 for ncn_progname in dlltool; do
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14705 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14706 if test -x $with_build_time_tools/${ncn_progname}; then
14707 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14709 $as_echo "yes" >&6; }
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14713 $as_echo "no
" >&6; }
14718 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14719 for ncn_progname in dlltool; do
14720 if test -n "$ncn_target_tool_prefix"; then
14721 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14722 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14724 $as_echo_n "checking
for $ac_word...
" >&6; }
14725 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14726 $as_echo_n "(cached
) " >&6
14728 if test -n "$DLLTOOL_FOR_TARGET"; then
14729 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732 for as_dir in $PATH
14735 test -z "$as_dir" && as_dir=.
14736 for ac_exec_ext in '' $ac_executable_extensions; do
14737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14738 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14748 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14749 if test -n "$DLLTOOL_FOR_TARGET"; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14751 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14754 $as_echo "no
" >&6; }
14759 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14761 set dummy ${ncn_progname}; ac_word=$2
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14763 $as_echo_n "checking
for $ac_word...
" >&6; }
14764 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14765 $as_echo_n "(cached
) " >&6
14767 if test -n "$DLLTOOL_FOR_TARGET"; then
14768 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14774 test -z "$as_dir" && as_dir=.
14775 for ac_exec_ext in '' $ac_executable_extensions; do
14776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14777 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14787 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14788 if test -n "$DLLTOOL_FOR_TARGET"; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14790 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14793 $as_echo "no
" >&6; }
14798 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14802 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14804 if test $build = $target ; then
14805 DLLTOOL_FOR_TARGET="$2"
14807 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14810 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14814 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14820 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14821 if test -n "$with_build_time_tools"; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14823 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14824 if test -x $with_build_time_tools/dsymutil; then
14825 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14826 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14828 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14831 $as_echo "no
" >&6; }
14833 elif test $build != $host && test $have_gcc_for_target = yes; then
14834 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14835 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14836 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14839 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14840 # Extract the first word of "dsymutil
", so it can be a program name with args.
14841 set dummy dsymutil; ac_word=$2
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14843 $as_echo_n "checking
for $ac_word...
" >&6; }
14844 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14845 $as_echo_n "(cached
) " >&6
14847 case $DSYMUTIL_FOR_TARGET in
14849 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14853 for as_dir in $gcc_cv_tool_dirs
14856 test -z "$as_dir" && as_dir=.
14857 for ac_exec_ext in '' $ac_executable_extensions; do
14858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14859 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14870 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14871 if test -n "$DSYMUTIL_FOR_TARGET"; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14873 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14876 $as_echo "no
" >&6; }
14881 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14884 if test -n "$DSYMUTIL_FOR_TARGET"; then
14885 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14886 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14887 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14890 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14891 for ncn_progname in dsymutil; do
14892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14893 set dummy ${ncn_progname}; ac_word=$2
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14895 $as_echo_n "checking
for $ac_word...
" >&6; }
14896 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14897 $as_echo_n "(cached
) " >&6
14899 if test -n "$DSYMUTIL_FOR_TARGET"; then
14900 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14919 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14920 if test -n "$DSYMUTIL_FOR_TARGET"; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14922 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14925 $as_echo "no
" >&6; }
14932 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14933 for ncn_progname in dsymutil; do
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14935 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14936 if test -x $with_build_time_tools/${ncn_progname}; then
14937 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14939 $as_echo "yes" >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14943 $as_echo "no
" >&6; }
14948 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14949 for ncn_progname in dsymutil; do
14950 if test -n "$ncn_target_tool_prefix"; then
14951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14952 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14954 $as_echo_n "checking
for $ac_word...
" >&6; }
14955 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14956 $as_echo_n "(cached
) " >&6
14958 if test -n "$DSYMUTIL_FOR_TARGET"; then
14959 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14962 for as_dir in $PATH
14965 test -z "$as_dir" && as_dir=.
14966 for ac_exec_ext in '' $ac_executable_extensions; do
14967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14968 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14978 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14979 if test -n "$DSYMUTIL_FOR_TARGET"; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14981 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14984 $as_echo "no
" >&6; }
14989 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14991 set dummy ${ncn_progname}; ac_word=$2
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14993 $as_echo_n "checking
for $ac_word...
" >&6; }
14994 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14995 $as_echo_n "(cached
) " >&6
14997 if test -n "$DSYMUTIL_FOR_TARGET"; then
14998 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15007 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15017 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15018 if test -n "$DSYMUTIL_FOR_TARGET"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15020 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15023 $as_echo "no
" >&6; }
15028 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15032 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15034 if test $build = $target ; then
15035 DSYMUTIL_FOR_TARGET="$2"
15037 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15040 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15044 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15050 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15051 if test -n "$with_build_time_tools"; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15053 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15054 if test -x $with_build_time_tools/ld; then
15055 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15056 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15058 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15061 $as_echo "no
" >&6; }
15063 elif test $build != $host && test $have_gcc_for_target = yes; then
15064 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15065 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15066 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15069 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15070 # Extract the first word of "ld
", so it can be a program name with args.
15071 set dummy ld; ac_word=$2
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15073 $as_echo_n "checking
for $ac_word...
" >&6; }
15074 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15075 $as_echo_n "(cached
) " >&6
15077 case $LD_FOR_TARGET in
15079 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15083 for as_dir in $gcc_cv_tool_dirs
15086 test -z "$as_dir" && as_dir=.
15087 for ac_exec_ext in '' $ac_executable_extensions; do
15088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15089 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15100 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15101 if test -n "$LD_FOR_TARGET"; then
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15103 $as_echo "$LD_FOR_TARGET" >&6; }
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15106 $as_echo "no
" >&6; }
15111 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15114 if test -n "$LD_FOR_TARGET"; then
15115 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15116 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15117 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15120 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15121 for ncn_progname in ld; do
15122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15123 set dummy ${ncn_progname}; ac_word=$2
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15125 $as_echo_n "checking
for $ac_word...
" >&6; }
15126 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15127 $as_echo_n "(cached
) " >&6
15129 if test -n "$LD_FOR_TARGET"; then
15130 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15136 test -z "$as_dir" && as_dir=.
15137 for ac_exec_ext in '' $ac_executable_extensions; do
15138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15139 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15149 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15150 if test -n "$LD_FOR_TARGET"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15152 $as_echo "$LD_FOR_TARGET" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15155 $as_echo "no
" >&6; }
15162 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15163 for ncn_progname in ld; do
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15165 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15166 if test -x $with_build_time_tools/${ncn_progname}; then
15167 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15169 $as_echo "yes" >&6; }
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15173 $as_echo "no
" >&6; }
15178 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15179 for ncn_progname in ld; do
15180 if test -n "$ncn_target_tool_prefix"; then
15181 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15182 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15184 $as_echo_n "checking
for $ac_word...
" >&6; }
15185 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15186 $as_echo_n "(cached
) " >&6
15188 if test -n "$LD_FOR_TARGET"; then
15189 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15208 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15209 if test -n "$LD_FOR_TARGET"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15211 $as_echo "$LD_FOR_TARGET" >&6; }
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15214 $as_echo "no
" >&6; }
15219 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15221 set dummy ${ncn_progname}; ac_word=$2
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15223 $as_echo_n "checking
for $ac_word...
" >&6; }
15224 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15225 $as_echo_n "(cached
) " >&6
15227 if test -n "$LD_FOR_TARGET"; then
15228 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15231 for as_dir in $PATH
15234 test -z "$as_dir" && as_dir=.
15235 for ac_exec_ext in '' $ac_executable_extensions; do
15236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15237 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15247 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15248 if test -n "$LD_FOR_TARGET"; then
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15250 $as_echo "$LD_FOR_TARGET" >&6; }
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15253 $as_echo "no
" >&6; }
15258 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15262 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15264 if test $build = $target ; then
15267 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15270 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15274 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15280 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15281 if test -n "$with_build_time_tools"; then
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15283 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15284 if test -x $with_build_time_tools/lipo; then
15285 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15288 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15291 $as_echo "no
" >&6; }
15293 elif test $build != $host && test $have_gcc_for_target = yes; then
15294 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15295 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15296 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15299 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15300 # Extract the first word of "lipo
", so it can be a program name with args.
15301 set dummy lipo; ac_word=$2
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15303 $as_echo_n "checking
for $ac_word...
" >&6; }
15304 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15305 $as_echo_n "(cached
) " >&6
15307 case $LIPO_FOR_TARGET in
15309 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15313 for as_dir in $gcc_cv_tool_dirs
15316 test -z "$as_dir" && as_dir=.
15317 for ac_exec_ext in '' $ac_executable_extensions; do
15318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15319 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15330 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15331 if test -n "$LIPO_FOR_TARGET"; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15333 $as_echo "$LIPO_FOR_TARGET" >&6; }
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15336 $as_echo "no
" >&6; }
15341 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15344 if test -n "$LIPO_FOR_TARGET"; then
15345 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15346 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15347 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15350 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15351 for ncn_progname in lipo; do
15352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15353 set dummy ${ncn_progname}; ac_word=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15355 $as_echo_n "checking
for $ac_word...
" >&6; }
15356 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15357 $as_echo_n "(cached
) " >&6
15359 if test -n "$LIPO_FOR_TARGET"; then
15360 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15379 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15380 if test -n "$LIPO_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15382 $as_echo "$LIPO_FOR_TARGET" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15385 $as_echo "no
" >&6; }
15392 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15393 for ncn_progname in lipo; do
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15395 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15396 if test -x $with_build_time_tools/${ncn_progname}; then
15397 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15399 $as_echo "yes" >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15403 $as_echo "no
" >&6; }
15408 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15409 for ncn_progname in lipo; do
15410 if test -n "$ncn_target_tool_prefix"; then
15411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15414 $as_echo_n "checking
for $ac_word...
" >&6; }
15415 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15416 $as_echo_n "(cached
) " >&6
15418 if test -n "$LIPO_FOR_TARGET"; then
15419 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15438 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15439 if test -n "$LIPO_FOR_TARGET"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15441 $as_echo "$LIPO_FOR_TARGET" >&6; }
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15444 $as_echo "no
" >&6; }
15449 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15451 set dummy ${ncn_progname}; ac_word=$2
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15453 $as_echo_n "checking
for $ac_word...
" >&6; }
15454 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15455 $as_echo_n "(cached
) " >&6
15457 if test -n "$LIPO_FOR_TARGET"; then
15458 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461 for as_dir in $PATH
15464 test -z "$as_dir" && as_dir=.
15465 for ac_exec_ext in '' $ac_executable_extensions; do
15466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15467 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15477 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15478 if test -n "$LIPO_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15480 $as_echo "$LIPO_FOR_TARGET" >&6; }
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15483 $as_echo "no
" >&6; }
15488 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15492 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15494 if test $build = $target ; then
15495 LIPO_FOR_TARGET="$2"
15497 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15500 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15504 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15510 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15511 if test -n "$with_build_time_tools"; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15513 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15514 if test -x $with_build_time_tools/nm; then
15515 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15516 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15518 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15521 $as_echo "no
" >&6; }
15523 elif test $build != $host && test $have_gcc_for_target = yes; then
15524 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15525 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15526 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15529 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15530 # Extract the first word of "nm
", so it can be a program name with args.
15531 set dummy nm; ac_word=$2
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15533 $as_echo_n "checking
for $ac_word...
" >&6; }
15534 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15535 $as_echo_n "(cached
) " >&6
15537 case $NM_FOR_TARGET in
15539 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543 for as_dir in $gcc_cv_tool_dirs
15546 test -z "$as_dir" && as_dir=.
15547 for ac_exec_ext in '' $ac_executable_extensions; do
15548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15549 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15550 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15560 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15561 if test -n "$NM_FOR_TARGET"; then
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15563 $as_echo "$NM_FOR_TARGET" >&6; }
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15566 $as_echo "no
" >&6; }
15571 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15574 if test -n "$NM_FOR_TARGET"; then
15575 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15576 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15577 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15580 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15581 for ncn_progname in nm; do
15582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15583 set dummy ${ncn_progname}; ac_word=$2
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15585 $as_echo_n "checking
for $ac_word...
" >&6; }
15586 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15587 $as_echo_n "(cached
) " >&6
15589 if test -n "$NM_FOR_TARGET"; then
15590 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15596 test -z "$as_dir" && as_dir=.
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15609 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15610 if test -n "$NM_FOR_TARGET"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15612 $as_echo "$NM_FOR_TARGET" >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15615 $as_echo "no
" >&6; }
15622 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15623 for ncn_progname in nm; do
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15625 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15626 if test -x $with_build_time_tools/${ncn_progname}; then
15627 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15629 $as_echo "yes" >&6; }
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15633 $as_echo "no
" >&6; }
15638 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15639 for ncn_progname in nm; do
15640 if test -n "$ncn_target_tool_prefix"; then
15641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15644 $as_echo_n "checking
for $ac_word...
" >&6; }
15645 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15646 $as_echo_n "(cached
) " >&6
15648 if test -n "$NM_FOR_TARGET"; then
15649 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15652 for as_dir in $PATH
15655 test -z "$as_dir" && as_dir=.
15656 for ac_exec_ext in '' $ac_executable_extensions; do
15657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15658 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15659 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15668 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15669 if test -n "$NM_FOR_TARGET"; then
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15671 $as_echo "$NM_FOR_TARGET" >&6; }
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15674 $as_echo "no
" >&6; }
15679 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15681 set dummy ${ncn_progname}; ac_word=$2
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15683 $as_echo_n "checking
for $ac_word...
" >&6; }
15684 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15685 $as_echo_n "(cached
) " >&6
15687 if test -n "$NM_FOR_TARGET"; then
15688 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15691 for as_dir in $PATH
15694 test -z "$as_dir" && as_dir=.
15695 for ac_exec_ext in '' $ac_executable_extensions; do
15696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15697 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15707 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15708 if test -n "$NM_FOR_TARGET"; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15710 $as_echo "$NM_FOR_TARGET" >&6; }
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15713 $as_echo "no
" >&6; }
15718 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15722 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15724 if test $build = $target ; then
15727 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15730 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15734 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15740 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15741 if test -n "$with_build_time_tools"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15743 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15744 if test -x $with_build_time_tools/objcopy; then
15745 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15746 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15748 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15751 $as_echo "no
" >&6; }
15753 elif test $build != $host && test $have_gcc_for_target = yes; then
15754 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15755 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15756 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15759 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15760 # Extract the first word of "objcopy
", so it can be a program name with args.
15761 set dummy objcopy; ac_word=$2
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15763 $as_echo_n "checking
for $ac_word...
" >&6; }
15764 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15765 $as_echo_n "(cached
) " >&6
15767 case $OBJCOPY_FOR_TARGET in
15769 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $gcc_cv_tool_dirs
15776 test -z "$as_dir" && as_dir=.
15777 for ac_exec_ext in '' $ac_executable_extensions; do
15778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15779 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15790 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15791 if test -n "$OBJCOPY_FOR_TARGET"; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15793 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15796 $as_echo "no
" >&6; }
15801 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15804 if test -n "$OBJCOPY_FOR_TARGET"; then
15805 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15806 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15807 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15810 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15811 for ncn_progname in objcopy; do
15812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15813 set dummy ${ncn_progname}; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15815 $as_echo_n "checking
for $ac_word...
" >&6; }
15816 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15817 $as_echo_n "(cached
) " >&6
15819 if test -n "$OBJCOPY_FOR_TARGET"; then
15820 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15839 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15840 if test -n "$OBJCOPY_FOR_TARGET"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15842 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15845 $as_echo "no
" >&6; }
15852 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15853 for ncn_progname in objcopy; do
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15855 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15856 if test -x $with_build_time_tools/${ncn_progname}; then
15857 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15859 $as_echo "yes" >&6; }
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15863 $as_echo "no
" >&6; }
15868 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15869 for ncn_progname in objcopy; do
15870 if test -n "$ncn_target_tool_prefix"; then
15871 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15872 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15874 $as_echo_n "checking
for $ac_word...
" >&6; }
15875 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15876 $as_echo_n "(cached
) " >&6
15878 if test -n "$OBJCOPY_FOR_TARGET"; then
15879 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15882 for as_dir in $PATH
15885 test -z "$as_dir" && as_dir=.
15886 for ac_exec_ext in '' $ac_executable_extensions; do
15887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15888 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15889 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15898 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15899 if test -n "$OBJCOPY_FOR_TARGET"; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15901 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15904 $as_echo "no
" >&6; }
15909 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15911 set dummy ${ncn_progname}; ac_word=$2
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15913 $as_echo_n "checking
for $ac_word...
" >&6; }
15914 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15915 $as_echo_n "(cached
) " >&6
15917 if test -n "$OBJCOPY_FOR_TARGET"; then
15918 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15921 for as_dir in $PATH
15924 test -z "$as_dir" && as_dir=.
15925 for ac_exec_ext in '' $ac_executable_extensions; do
15926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15927 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15937 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15938 if test -n "$OBJCOPY_FOR_TARGET"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15940 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15943 $as_echo "no
" >&6; }
15948 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15952 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15954 if test $build = $target ; then
15955 OBJCOPY_FOR_TARGET="$2"
15957 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15960 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15964 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15970 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15971 if test -n "$with_build_time_tools"; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15973 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15974 if test -x $with_build_time_tools/objdump; then
15975 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15976 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15978 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15981 $as_echo "no
" >&6; }
15983 elif test $build != $host && test $have_gcc_for_target = yes; then
15984 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15985 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15986 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15989 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15990 # Extract the first word of "objdump
", so it can be a program name with args.
15991 set dummy objdump; ac_word=$2
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15993 $as_echo_n "checking
for $ac_word...
" >&6; }
15994 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15995 $as_echo_n "(cached
) " >&6
15997 case $OBJDUMP_FOR_TARGET in
15999 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003 for as_dir in $gcc_cv_tool_dirs
16006 test -z "$as_dir" && as_dir=.
16007 for ac_exec_ext in '' $ac_executable_extensions; do
16008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16009 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16020 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16021 if test -n "$OBJDUMP_FOR_TARGET"; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16023 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16026 $as_echo "no
" >&6; }
16031 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16034 if test -n "$OBJDUMP_FOR_TARGET"; then
16035 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16036 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16037 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16040 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16041 for ncn_progname in objdump; do
16042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16043 set dummy ${ncn_progname}; ac_word=$2
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16045 $as_echo_n "checking
for $ac_word...
" >&6; }
16046 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16047 $as_echo_n "(cached
) " >&6
16049 if test -n "$OBJDUMP_FOR_TARGET"; then
16050 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16053 for as_dir in $PATH
16056 test -z "$as_dir" && as_dir=.
16057 for ac_exec_ext in '' $ac_executable_extensions; do
16058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16059 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16069 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16070 if test -n "$OBJDUMP_FOR_TARGET"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16072 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16075 $as_echo "no
" >&6; }
16082 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16083 for ncn_progname in objdump; do
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16085 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16086 if test -x $with_build_time_tools/${ncn_progname}; then
16087 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16089 $as_echo "yes" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16093 $as_echo "no
" >&6; }
16098 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16099 for ncn_progname in objdump; do
16100 if test -n "$ncn_target_tool_prefix"; then
16101 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16102 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16104 $as_echo_n "checking
for $ac_word...
" >&6; }
16105 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16106 $as_echo_n "(cached
) " >&6
16108 if test -n "$OBJDUMP_FOR_TARGET"; then
16109 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16115 test -z "$as_dir" && as_dir=.
16116 for ac_exec_ext in '' $ac_executable_extensions; do
16117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16118 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16128 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16129 if test -n "$OBJDUMP_FOR_TARGET"; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16131 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16134 $as_echo "no
" >&6; }
16139 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16141 set dummy ${ncn_progname}; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16143 $as_echo_n "checking
for $ac_word...
" >&6; }
16144 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16145 $as_echo_n "(cached
) " >&6
16147 if test -n "$OBJDUMP_FOR_TARGET"; then
16148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16167 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16168 if test -n "$OBJDUMP_FOR_TARGET"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16170 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16173 $as_echo "no
" >&6; }
16178 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16182 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16184 if test $build = $target ; then
16185 OBJDUMP_FOR_TARGET="$2"
16187 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16190 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16194 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16200 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16201 if test -n "$with_build_time_tools"; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16203 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16204 if test -x $with_build_time_tools/otool; then
16205 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16206 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16208 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16211 $as_echo "no
" >&6; }
16213 elif test $build != $host && test $have_gcc_for_target = yes; then
16214 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16215 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16216 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16219 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16220 # Extract the first word of "otool
", so it can be a program name with args.
16221 set dummy otool; ac_word=$2
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16223 $as_echo_n "checking
for $ac_word...
" >&6; }
16224 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16225 $as_echo_n "(cached
) " >&6
16227 case $OTOOL_FOR_TARGET in
16229 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16233 for as_dir in $gcc_cv_tool_dirs
16236 test -z "$as_dir" && as_dir=.
16237 for ac_exec_ext in '' $ac_executable_extensions; do
16238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16239 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16250 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16251 if test -n "$OTOOL_FOR_TARGET"; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16253 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16256 $as_echo "no
" >&6; }
16261 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16264 if test -n "$OTOOL_FOR_TARGET"; then
16265 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16266 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16267 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16270 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16271 for ncn_progname in otool; do
16272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16273 set dummy ${ncn_progname}; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16275 $as_echo_n "checking
for $ac_word...
" >&6; }
16276 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16277 $as_echo_n "(cached
) " >&6
16279 if test -n "$OTOOL_FOR_TARGET"; then
16280 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283 for as_dir in $PATH
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16289 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16299 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16300 if test -n "$OTOOL_FOR_TARGET"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16302 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16305 $as_echo "no
" >&6; }
16312 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16313 for ncn_progname in otool; do
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16315 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16316 if test -x $with_build_time_tools/${ncn_progname}; then
16317 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16319 $as_echo "yes" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16323 $as_echo "no
" >&6; }
16328 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16329 for ncn_progname in otool; do
16330 if test -n "$ncn_target_tool_prefix"; then
16331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16332 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16334 $as_echo_n "checking
for $ac_word...
" >&6; }
16335 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16336 $as_echo_n "(cached
) " >&6
16338 if test -n "$OTOOL_FOR_TARGET"; then
16339 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16342 for as_dir in $PATH
16345 test -z "$as_dir" && as_dir=.
16346 for ac_exec_ext in '' $ac_executable_extensions; do
16347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16348 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16358 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16359 if test -n "$OTOOL_FOR_TARGET"; then
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16361 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16364 $as_echo "no
" >&6; }
16369 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16371 set dummy ${ncn_progname}; ac_word=$2
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16373 $as_echo_n "checking
for $ac_word...
" >&6; }
16374 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16375 $as_echo_n "(cached
) " >&6
16377 if test -n "$OTOOL_FOR_TARGET"; then
16378 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16381 for as_dir in $PATH
16384 test -z "$as_dir" && as_dir=.
16385 for ac_exec_ext in '' $ac_executable_extensions; do
16386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16387 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16397 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16398 if test -n "$OTOOL_FOR_TARGET"; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16400 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16403 $as_echo "no
" >&6; }
16408 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16412 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16414 if test $build = $target ; then
16415 OTOOL_FOR_TARGET="$2"
16417 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16420 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16424 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16430 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16431 if test -n "$with_build_time_tools"; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16433 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16434 if test -x $with_build_time_tools/ranlib; then
16435 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16436 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16438 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16441 $as_echo "no
" >&6; }
16443 elif test $build != $host && test $have_gcc_for_target = yes; then
16444 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16445 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16446 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16449 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16450 # Extract the first word of "ranlib
", so it can be a program name with args.
16451 set dummy ranlib; ac_word=$2
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16453 $as_echo_n "checking
for $ac_word...
" >&6; }
16454 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16455 $as_echo_n "(cached
) " >&6
16457 case $RANLIB_FOR_TARGET in
16459 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16463 for as_dir in $gcc_cv_tool_dirs
16466 test -z "$as_dir" && as_dir=.
16467 for ac_exec_ext in '' $ac_executable_extensions; do
16468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16469 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16470 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16480 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16481 if test -n "$RANLIB_FOR_TARGET"; then
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16483 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16486 $as_echo "no
" >&6; }
16491 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16494 if test -n "$RANLIB_FOR_TARGET"; then
16495 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16496 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16497 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16500 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16501 for ncn_progname in ranlib; do
16502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16503 set dummy ${ncn_progname}; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16505 $as_echo_n "checking
for $ac_word...
" >&6; }
16506 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16507 $as_echo_n "(cached
) " >&6
16509 if test -n "$RANLIB_FOR_TARGET"; then
16510 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16516 test -z "$as_dir" && as_dir=.
16517 for ac_exec_ext in '' $ac_executable_extensions; do
16518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16519 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16520 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16529 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16530 if test -n "$RANLIB_FOR_TARGET"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16532 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16535 $as_echo "no
" >&6; }
16542 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16543 for ncn_progname in ranlib; do
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16545 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16546 if test -x $with_build_time_tools/${ncn_progname}; then
16547 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16549 $as_echo "yes" >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16553 $as_echo "no
" >&6; }
16558 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16559 for ncn_progname in ranlib; do
16560 if test -n "$ncn_target_tool_prefix"; then
16561 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16562 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16564 $as_echo_n "checking
for $ac_word...
" >&6; }
16565 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16566 $as_echo_n "(cached
) " >&6
16568 if test -n "$RANLIB_FOR_TARGET"; then
16569 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16575 test -z "$as_dir" && as_dir=.
16576 for ac_exec_ext in '' $ac_executable_extensions; do
16577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16578 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16579 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16588 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16589 if test -n "$RANLIB_FOR_TARGET"; then
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16591 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16594 $as_echo "no
" >&6; }
16599 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16601 set dummy ${ncn_progname}; ac_word=$2
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16603 $as_echo_n "checking
for $ac_word...
" >&6; }
16604 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16605 $as_echo_n "(cached
) " >&6
16607 if test -n "$RANLIB_FOR_TARGET"; then
16608 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16611 for as_dir in $PATH
16614 test -z "$as_dir" && as_dir=.
16615 for ac_exec_ext in '' $ac_executable_extensions; do
16616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16617 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16627 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16628 if test -n "$RANLIB_FOR_TARGET"; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16630 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16633 $as_echo "no
" >&6; }
16638 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16642 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16644 if test $build = $target ; then
16645 RANLIB_FOR_TARGET="$2"
16647 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16650 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16654 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16660 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16661 if test -n "$with_build_time_tools"; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16663 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16664 if test -x $with_build_time_tools/readelf; then
16665 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16666 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16668 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16671 $as_echo "no
" >&6; }
16673 elif test $build != $host && test $have_gcc_for_target = yes; then
16674 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16675 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16676 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16679 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16680 # Extract the first word of "readelf
", so it can be a program name with args.
16681 set dummy readelf; ac_word=$2
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16683 $as_echo_n "checking
for $ac_word...
" >&6; }
16684 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16685 $as_echo_n "(cached
) " >&6
16687 case $READELF_FOR_TARGET in
16689 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $gcc_cv_tool_dirs
16696 test -z "$as_dir" && as_dir=.
16697 for ac_exec_ext in '' $ac_executable_extensions; do
16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16710 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16711 if test -n "$READELF_FOR_TARGET"; then
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16713 $as_echo "$READELF_FOR_TARGET" >&6; }
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16716 $as_echo "no
" >&6; }
16721 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16724 if test -n "$READELF_FOR_TARGET"; then
16725 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16726 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16727 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16730 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16731 for ncn_progname in readelf; do
16732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16733 set dummy ${ncn_progname}; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16735 $as_echo_n "checking
for $ac_word...
" >&6; }
16736 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16737 $as_echo_n "(cached
) " >&6
16739 if test -n "$READELF_FOR_TARGET"; then
16740 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16759 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16760 if test -n "$READELF_FOR_TARGET"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16762 $as_echo "$READELF_FOR_TARGET" >&6; }
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16765 $as_echo "no
" >&6; }
16772 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16773 for ncn_progname in readelf; do
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16775 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16776 if test -x $with_build_time_tools/${ncn_progname}; then
16777 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16779 $as_echo "yes" >&6; }
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16783 $as_echo "no
" >&6; }
16788 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16789 for ncn_progname in readelf; do
16790 if test -n "$ncn_target_tool_prefix"; then
16791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16792 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16794 $as_echo_n "checking
for $ac_word...
" >&6; }
16795 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16796 $as_echo_n "(cached
) " >&6
16798 if test -n "$READELF_FOR_TARGET"; then
16799 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16802 for as_dir in $PATH
16805 test -z "$as_dir" && as_dir=.
16806 for ac_exec_ext in '' $ac_executable_extensions; do
16807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16808 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16818 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16819 if test -n "$READELF_FOR_TARGET"; then
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16821 $as_echo "$READELF_FOR_TARGET" >&6; }
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16824 $as_echo "no
" >&6; }
16829 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16831 set dummy ${ncn_progname}; ac_word=$2
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16833 $as_echo_n "checking
for $ac_word...
" >&6; }
16834 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16835 $as_echo_n "(cached
) " >&6
16837 if test -n "$READELF_FOR_TARGET"; then
16838 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in $PATH
16844 test -z "$as_dir" && as_dir=.
16845 for ac_exec_ext in '' $ac_executable_extensions; do
16846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16847 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16857 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16858 if test -n "$READELF_FOR_TARGET"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16860 $as_echo "$READELF_FOR_TARGET" >&6; }
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16863 $as_echo "no
" >&6; }
16868 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16872 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16874 if test $build = $target ; then
16875 READELF_FOR_TARGET="$2"
16877 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16880 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16884 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16890 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16891 if test -n "$with_build_time_tools"; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16893 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16894 if test -x $with_build_time_tools/strip; then
16895 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16896 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16898 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16901 $as_echo "no
" >&6; }
16903 elif test $build != $host && test $have_gcc_for_target = yes; then
16904 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16905 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16906 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16909 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16910 # Extract the first word of "strip
", so it can be a program name with args.
16911 set dummy strip; ac_word=$2
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16913 $as_echo_n "checking
for $ac_word...
" >&6; }
16914 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16915 $as_echo_n "(cached
) " >&6
16917 case $STRIP_FOR_TARGET in
16919 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16923 for as_dir in $gcc_cv_tool_dirs
16926 test -z "$as_dir" && as_dir=.
16927 for ac_exec_ext in '' $ac_executable_extensions; do
16928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16929 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16940 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16941 if test -n "$STRIP_FOR_TARGET"; then
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16943 $as_echo "$STRIP_FOR_TARGET" >&6; }
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16946 $as_echo "no
" >&6; }
16951 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16954 if test -n "$STRIP_FOR_TARGET"; then
16955 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16956 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16957 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16960 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16961 for ncn_progname in strip; do
16962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16963 set dummy ${ncn_progname}; ac_word=$2
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16965 $as_echo_n "checking
for $ac_word...
" >&6; }
16966 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16967 $as_echo_n "(cached
) " >&6
16969 if test -n "$STRIP_FOR_TARGET"; then
16970 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in $PATH
16976 test -z "$as_dir" && as_dir=.
16977 for ac_exec_ext in '' $ac_executable_extensions; do
16978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16989 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16990 if test -n "$STRIP_FOR_TARGET"; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16992 $as_echo "$STRIP_FOR_TARGET" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16995 $as_echo "no
" >&6; }
17002 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17003 for ncn_progname in strip; do
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17005 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17006 if test -x $with_build_time_tools/${ncn_progname}; then
17007 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17009 $as_echo "yes" >&6; }
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17013 $as_echo "no
" >&6; }
17018 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17019 for ncn_progname in strip; do
17020 if test -n "$ncn_target_tool_prefix"; then
17021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17024 $as_echo_n "checking
for $ac_word...
" >&6; }
17025 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17026 $as_echo_n "(cached
) " >&6
17028 if test -n "$STRIP_FOR_TARGET"; then
17029 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17032 for as_dir in $PATH
17035 test -z "$as_dir" && as_dir=.
17036 for ac_exec_ext in '' $ac_executable_extensions; do
17037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17038 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17048 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17049 if test -n "$STRIP_FOR_TARGET"; then
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17051 $as_echo "$STRIP_FOR_TARGET" >&6; }
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17054 $as_echo "no
" >&6; }
17059 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17061 set dummy ${ncn_progname}; ac_word=$2
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17063 $as_echo_n "checking
for $ac_word...
" >&6; }
17064 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17065 $as_echo_n "(cached
) " >&6
17067 if test -n "$STRIP_FOR_TARGET"; then
17068 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in $PATH
17074 test -z "$as_dir" && as_dir=.
17075 for ac_exec_ext in '' $ac_executable_extensions; do
17076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17077 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17087 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17088 if test -n "$STRIP_FOR_TARGET"; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17090 $as_echo "$STRIP_FOR_TARGET" >&6; }
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17093 $as_echo "no
" >&6; }
17098 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17102 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17104 if test $build = $target ; then
17105 STRIP_FOR_TARGET="$2"
17107 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17110 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17114 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17120 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17121 if test -n "$with_build_time_tools"; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17123 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17124 if test -x $with_build_time_tools/windres; then
17125 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17126 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17128 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17131 $as_echo "no
" >&6; }
17133 elif test $build != $host && test $have_gcc_for_target = yes; then
17134 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17135 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17136 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17139 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17140 # Extract the first word of "windres
", so it can be a program name with args.
17141 set dummy windres; ac_word=$2
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17143 $as_echo_n "checking
for $ac_word...
" >&6; }
17144 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17145 $as_echo_n "(cached
) " >&6
17147 case $WINDRES_FOR_TARGET in
17149 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $gcc_cv_tool_dirs
17156 test -z "$as_dir" && as_dir=.
17157 for ac_exec_ext in '' $ac_executable_extensions; do
17158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17159 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17170 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17171 if test -n "$WINDRES_FOR_TARGET"; then
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17173 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17176 $as_echo "no
" >&6; }
17181 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17184 if test -n "$WINDRES_FOR_TARGET"; then
17185 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17186 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17187 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17190 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17191 for ncn_progname in windres; do
17192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17193 set dummy ${ncn_progname}; ac_word=$2
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17195 $as_echo_n "checking
for $ac_word...
" >&6; }
17196 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17197 $as_echo_n "(cached
) " >&6
17199 if test -n "$WINDRES_FOR_TARGET"; then
17200 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17209 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17219 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17220 if test -n "$WINDRES_FOR_TARGET"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17222 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17225 $as_echo "no
" >&6; }
17232 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17233 for ncn_progname in windres; do
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17235 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17236 if test -x $with_build_time_tools/${ncn_progname}; then
17237 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17239 $as_echo "yes" >&6; }
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17243 $as_echo "no
" >&6; }
17248 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17249 for ncn_progname in windres; do
17250 if test -n "$ncn_target_tool_prefix"; then
17251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17252 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17254 $as_echo_n "checking
for $ac_word...
" >&6; }
17255 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17256 $as_echo_n "(cached
) " >&6
17258 if test -n "$WINDRES_FOR_TARGET"; then
17259 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17265 test -z "$as_dir" && as_dir=.
17266 for ac_exec_ext in '' $ac_executable_extensions; do
17267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17268 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17278 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17279 if test -n "$WINDRES_FOR_TARGET"; then
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17281 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17284 $as_echo "no
" >&6; }
17289 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17291 set dummy ${ncn_progname}; ac_word=$2
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17293 $as_echo_n "checking
for $ac_word...
" >&6; }
17294 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17295 $as_echo_n "(cached
) " >&6
17297 if test -n "$WINDRES_FOR_TARGET"; then
17298 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301 for as_dir in $PATH
17304 test -z "$as_dir" && as_dir=.
17305 for ac_exec_ext in '' $ac_executable_extensions; do
17306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17307 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17317 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17318 if test -n "$WINDRES_FOR_TARGET"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17320 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17323 $as_echo "no
" >&6; }
17328 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17332 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17334 if test $build = $target ; then
17335 WINDRES_FOR_TARGET="$2"
17337 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17340 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17344 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17350 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17351 if test -n "$with_build_time_tools"; then
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17353 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17354 if test -x $with_build_time_tools/windmc; then
17355 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17356 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17358 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17361 $as_echo "no
" >&6; }
17363 elif test $build != $host && test $have_gcc_for_target = yes; then
17364 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17365 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17366 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17369 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17370 # Extract the first word of "windmc
", so it can be a program name with args.
17371 set dummy windmc; ac_word=$2
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17373 $as_echo_n "checking
for $ac_word...
" >&6; }
17374 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17375 $as_echo_n "(cached
) " >&6
17377 case $WINDMC_FOR_TARGET in
17379 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17383 for as_dir in $gcc_cv_tool_dirs
17386 test -z "$as_dir" && as_dir=.
17387 for ac_exec_ext in '' $ac_executable_extensions; do
17388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17389 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17400 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17401 if test -n "$WINDMC_FOR_TARGET"; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17403 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17406 $as_echo "no
" >&6; }
17411 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17414 if test -n "$WINDMC_FOR_TARGET"; then
17415 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17416 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17417 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17420 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17421 for ncn_progname in windmc; do
17422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17423 set dummy ${ncn_progname}; ac_word=$2
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17425 $as_echo_n "checking
for $ac_word...
" >&6; }
17426 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17427 $as_echo_n "(cached
) " >&6
17429 if test -n "$WINDMC_FOR_TARGET"; then
17430 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17436 test -z "$as_dir" && as_dir=.
17437 for ac_exec_ext in '' $ac_executable_extensions; do
17438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17449 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17450 if test -n "$WINDMC_FOR_TARGET"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17452 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17455 $as_echo "no
" >&6; }
17462 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17463 for ncn_progname in windmc; do
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17465 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17466 if test -x $with_build_time_tools/${ncn_progname}; then
17467 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17469 $as_echo "yes" >&6; }
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17473 $as_echo "no
" >&6; }
17478 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17479 for ncn_progname in windmc; do
17480 if test -n "$ncn_target_tool_prefix"; then
17481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17482 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17484 $as_echo_n "checking
for $ac_word...
" >&6; }
17485 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17486 $as_echo_n "(cached
) " >&6
17488 if test -n "$WINDMC_FOR_TARGET"; then
17489 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17495 test -z "$as_dir" && as_dir=.
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17508 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17509 if test -n "$WINDMC_FOR_TARGET"; then
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17511 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17514 $as_echo "no
" >&6; }
17519 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17521 set dummy ${ncn_progname}; ac_word=$2
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17523 $as_echo_n "checking
for $ac_word...
" >&6; }
17524 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17525 $as_echo_n "(cached
) " >&6
17527 if test -n "$WINDMC_FOR_TARGET"; then
17528 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531 for as_dir in $PATH
17534 test -z "$as_dir" && as_dir=.
17535 for ac_exec_ext in '' $ac_executable_extensions; do
17536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17537 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17547 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17548 if test -n "$WINDMC_FOR_TARGET"; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17550 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17553 $as_echo "no
" >&6; }
17558 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17562 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17564 if test $build = $target ; then
17565 WINDMC_FOR_TARGET="$2"
17567 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17570 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17574 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17578 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17581 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17582 if test "x
${build}" != "x
${host}" ; then
17583 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17584 # We already found the complete path
17585 ac_dir=`dirname $AR_FOR_TARGET`
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17587 $as_echo "pre-installed
in $ac_dir" >&6; }
17589 # Canadian cross, just use what we found
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17591 $as_echo "pre-installed
" >&6; }
17595 case " ${configdirs} " in
17600 if test $ok = yes; then
17601 # An in-tree tool is available and we can use it
17602 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17604 $as_echo "just compiled
" >&6; }
17605 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17606 # We already found the complete path
17607 ac_dir=`dirname $AR_FOR_TARGET`
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17609 $as_echo "pre-installed
in $ac_dir" >&6; }
17610 elif test "x
$target" = "x
$host"; then
17611 # We can use an host tool
17612 AR_FOR_TARGET='$(AR)'
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17614 $as_echo "host tool
" >&6; }
17616 # We need a cross tool
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17618 $as_echo "pre-installed
" >&6; }
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17623 $as_echo_n "checking where to
find the target as...
" >&6; }
17624 if test "x
${build}" != "x
${host}" ; then
17625 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17626 # We already found the complete path
17627 ac_dir=`dirname $AS_FOR_TARGET`
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17629 $as_echo "pre-installed
in $ac_dir" >&6; }
17631 # Canadian cross, just use what we found
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17633 $as_echo "pre-installed
" >&6; }
17637 case " ${configdirs} " in
17642 if test $ok = yes; then
17643 # An in-tree tool is available and we can use it
17644 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17646 $as_echo "just compiled
" >&6; }
17647 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17648 # We already found the complete path
17649 ac_dir=`dirname $AS_FOR_TARGET`
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17651 $as_echo "pre-installed
in $ac_dir" >&6; }
17652 elif test "x
$target" = "x
$host"; then
17653 # We can use an host tool
17654 AS_FOR_TARGET='$(AS)'
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17656 $as_echo "host tool
" >&6; }
17658 # We need a cross tool
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17660 $as_echo "pre-installed
" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17665 $as_echo_n "checking where to
find the target cc...
" >&6; }
17666 if test "x
${build}" != "x
${host}" ; then
17667 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17668 # We already found the complete path
17669 ac_dir=`dirname $CC_FOR_TARGET`
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17671 $as_echo "pre-installed
in $ac_dir" >&6; }
17673 # Canadian cross, just use what we found
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17675 $as_echo "pre-installed
" >&6; }
17679 case " ${configdirs} " in
17684 if test $ok = yes; then
17685 # An in-tree tool is available and we can use it
17686 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17688 $as_echo "just compiled
" >&6; }
17689 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17690 # We already found the complete path
17691 ac_dir=`dirname $CC_FOR_TARGET`
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17693 $as_echo "pre-installed
in $ac_dir" >&6; }
17694 elif test "x
$target" = "x
$host"; then
17695 # We can use an host tool
17696 CC_FOR_TARGET='$(CC)'
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17698 $as_echo "host tool
" >&6; }
17700 # We need a cross tool
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17702 $as_echo "pre-installed
" >&6; }
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17707 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17708 if test "x
${build}" != "x
${host}" ; then
17709 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17710 # We already found the complete path
17711 ac_dir=`dirname $CXX_FOR_TARGET`
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17713 $as_echo "pre-installed
in $ac_dir" >&6; }
17715 # Canadian cross, just use what we found
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17717 $as_echo "pre-installed
" >&6; }
17721 case " ${configdirs} " in
17725 case ,${enable_languages}, in
17729 if test $ok = yes; then
17730 # An in-tree tool is available and we can use it
17731 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'
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17733 $as_echo "just compiled
" >&6; }
17734 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17735 # We already found the complete path
17736 ac_dir=`dirname $CXX_FOR_TARGET`
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17738 $as_echo "pre-installed
in $ac_dir" >&6; }
17739 elif test "x
$target" = "x
$host"; then
17740 # We can use an host tool
17741 CXX_FOR_TARGET='$(CXX)'
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17743 $as_echo "host tool
" >&6; }
17745 # We need a cross tool
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17747 $as_echo "pre-installed
" >&6; }
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17752 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17753 if test "x
${build}" != "x
${host}" ; then
17754 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17755 # We already found the complete path
17756 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17758 $as_echo "pre-installed
in $ac_dir" >&6; }
17760 # Canadian cross, just use what we found
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17762 $as_echo "pre-installed
" >&6; }
17766 case " ${configdirs} " in
17770 case ,${enable_languages}, in
17774 if test $ok = yes; then
17775 # An in-tree tool is available and we can use it
17776 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'
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17778 $as_echo "just compiled
" >&6; }
17779 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17780 # We already found the complete path
17781 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17783 $as_echo "pre-installed
in $ac_dir" >&6; }
17784 elif test "x
$target" = "x
$host"; then
17785 # We can use an host tool
17786 RAW_CXX_FOR_TARGET='$(CXX)'
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17788 $as_echo "host tool
" >&6; }
17790 # We need a cross tool
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17792 $as_echo "pre-installed
" >&6; }
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17797 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17798 if test "x
${build}" != "x
${host}" ; then
17799 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17800 # We already found the complete path
17801 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17803 $as_echo "pre-installed
in $ac_dir" >&6; }
17805 # Canadian cross, just use what we found
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17807 $as_echo "pre-installed
" >&6; }
17811 case " ${configdirs} " in
17816 if test $ok = yes; then
17817 # An in-tree tool is available and we can use it
17818 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17820 $as_echo "just compiled
" >&6; }
17821 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17822 # We already found the complete path
17823 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17825 $as_echo "pre-installed
in $ac_dir" >&6; }
17826 elif test "x
$target" = "x
$host"; then
17827 # We can use an host tool
17828 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17830 $as_echo "host tool
" >&6; }
17832 # We need a cross tool
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17834 $as_echo "pre-installed
" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17839 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17840 if test "x
${build}" != "x
${host}" ; then
17841 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17842 # We already found the complete path
17843 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17845 $as_echo "pre-installed
in $ac_dir" >&6; }
17847 # Canadian cross, just use what we found
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17849 $as_echo "pre-installed
" >&6; }
17852 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17853 # We already found the complete path
17854 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17856 $as_echo "pre-installed
in $ac_dir" >&6; }
17857 elif test "x
$target" = "x
$host"; then
17858 # We can use an host tool
17859 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17861 $as_echo "host tool
" >&6; }
17863 # We need a cross tool
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17865 $as_echo "pre-installed
" >&6; }
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17870 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17871 if test "x
${build}" != "x
${host}" ; then
17872 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17873 # We already found the complete path
17874 ac_dir=`dirname $GCC_FOR_TARGET`
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17876 $as_echo "pre-installed
in $ac_dir" >&6; }
17878 # Canadian cross, just use what we found
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17880 $as_echo "pre-installed
" >&6; }
17884 case " ${configdirs} " in
17889 if test $ok = yes; then
17890 # An in-tree tool is available and we can use it
17891 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17893 $as_echo "just compiled
" >&6; }
17894 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17895 # We already found the complete path
17896 ac_dir=`dirname $GCC_FOR_TARGET`
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17898 $as_echo "pre-installed
in $ac_dir" >&6; }
17899 elif test "x
$target" = "x
$host"; then
17900 # We can use an host tool
17901 GCC_FOR_TARGET='$()'
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17903 $as_echo "host tool
" >&6; }
17905 # We need a cross tool
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17907 $as_echo "pre-installed
" >&6; }
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17912 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17913 if test "x
${build}" != "x
${host}" ; then
17914 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17915 # We already found the complete path
17916 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17918 $as_echo "pre-installed
in $ac_dir" >&6; }
17920 # Canadian cross, just use what we found
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17922 $as_echo "pre-installed
" >&6; }
17926 case " ${configdirs} " in
17930 case ,${enable_languages}, in
17934 if test $ok = yes; then
17935 # An in-tree tool is available and we can use it
17936 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17938 $as_echo "just compiled
" >&6; }
17939 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17940 # We already found the complete path
17941 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17943 $as_echo "pre-installed
in $ac_dir" >&6; }
17944 elif test "x
$target" = "x
$host"; then
17945 # We can use an host tool
17946 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17948 $as_echo "host tool
" >&6; }
17950 # We need a cross tool
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17952 $as_echo "pre-installed
" >&6; }
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17957 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17958 if test "x
${build}" != "x
${host}" ; then
17959 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17960 # We already found the complete path
17961 ac_dir=`dirname $GOC_FOR_TARGET`
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17963 $as_echo "pre-installed
in $ac_dir" >&6; }
17965 # Canadian cross, just use what we found
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17967 $as_echo "pre-installed
" >&6; }
17971 case " ${configdirs} " in
17975 case ,${enable_languages}, in
17979 if test $ok = yes; then
17980 # An in-tree tool is available and we can use it
17981 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17983 $as_echo "just compiled
" >&6; }
17984 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17985 # We already found the complete path
17986 ac_dir=`dirname $GOC_FOR_TARGET`
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17988 $as_echo "pre-installed
in $ac_dir" >&6; }
17989 elif test "x
$target" = "x
$host"; then
17990 # We can use an host tool
17991 GOC_FOR_TARGET='$(GOC)'
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17993 $as_echo "host tool
" >&6; }
17995 # We need a cross tool
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17997 $as_echo "pre-installed
" >&6; }
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18002 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18003 if test "x
${build}" != "x
${host}" ; then
18004 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18005 # We already found the complete path
18006 ac_dir=`dirname $GDC_FOR_TARGET`
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18008 $as_echo "pre-installed
in $ac_dir" >&6; }
18010 # Canadian cross, just use what we found
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18012 $as_echo "pre-installed
" >&6; }
18016 case " ${configdirs} " in
18020 case ,${enable_languages}, in
18024 if test $ok = yes; then
18025 # An in-tree tool is available and we can use it
18026 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18028 $as_echo "just compiled
" >&6; }
18029 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18030 # We already found the complete path
18031 ac_dir=`dirname $GDC_FOR_TARGET`
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18033 $as_echo "pre-installed
in $ac_dir" >&6; }
18034 elif test "x
$target" = "x
$host"; then
18035 # We can use an host tool
18036 GDC_FOR_TARGET='$(GDC)'
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18038 $as_echo "host tool
" >&6; }
18040 # We need a cross tool
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18042 $as_echo "pre-installed
" >&6; }
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18047 $as_echo_n "checking where to
find the target ld...
" >&6; }
18048 if test "x
${build}" != "x
${host}" ; then
18049 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18050 # We already found the complete path
18051 ac_dir=`dirname $LD_FOR_TARGET`
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18053 $as_echo "pre-installed
in $ac_dir" >&6; }
18055 # Canadian cross, just use what we found
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18057 $as_echo "pre-installed
" >&6; }
18061 case " ${configdirs} " in
18066 if test $ok = yes; then
18067 # An in-tree tool is available and we can use it
18068 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18070 $as_echo "just compiled
" >&6; }
18071 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18072 # We already found the complete path
18073 ac_dir=`dirname $LD_FOR_TARGET`
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18075 $as_echo "pre-installed
in $ac_dir" >&6; }
18076 elif test "x
$target" = "x
$host"; then
18077 # We can use an host tool
18078 LD_FOR_TARGET='$(LD)'
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18080 $as_echo "host tool
" >&6; }
18082 # We need a cross tool
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18084 $as_echo "pre-installed
" >&6; }
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18089 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18090 if test "x
${build}" != "x
${host}" ; then
18091 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18092 # We already found the complete path
18093 ac_dir=`dirname $LIPO_FOR_TARGET`
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18095 $as_echo "pre-installed
in $ac_dir" >&6; }
18097 # Canadian cross, just use what we found
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18099 $as_echo "pre-installed
" >&6; }
18102 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18103 # We already found the complete path
18104 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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 nm
" >&5
18120 $as_echo_n "checking where to
find the target nm...
" >&6; }
18121 if test "x
${build}" != "x
${host}" ; then
18122 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $NM_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 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18143 $as_echo "just compiled
" >&6; }
18144 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18145 # We already found the complete path
18146 ac_dir=`dirname $NM_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 NM_FOR_TARGET='$(NM)'
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; }
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18162 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18163 if test "x
${build}" != "x
${host}" ; then
18164 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18165 # We already found the complete path
18166 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18168 $as_echo "pre-installed
in $ac_dir" >&6; }
18170 # Canadian cross, just use what we found
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18172 $as_echo "pre-installed
" >&6; }
18176 case " ${configdirs} " in
18181 if test $ok = yes; then
18182 # An in-tree tool is available and we can use it
18183 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18185 $as_echo "just compiled
" >&6; }
18186 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18187 # We already found the complete path
18188 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18190 $as_echo "pre-installed
in $ac_dir" >&6; }
18191 elif test "x
$target" = "x
$host"; then
18192 # We can use an host tool
18193 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18195 $as_echo "host tool
" >&6; }
18197 # We need a cross tool
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18199 $as_echo "pre-installed
" >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18204 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18205 if test "x
${build}" != "x
${host}" ; then
18206 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18207 # We already found the complete path
18208 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18210 $as_echo "pre-installed
in $ac_dir" >&6; }
18212 # Canadian cross, just use what we found
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18214 $as_echo "pre-installed
" >&6; }
18218 case " ${configdirs} " in
18223 if test $ok = yes; then
18224 # An in-tree tool is available and we can use it
18225 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18227 $as_echo "just compiled
" >&6; }
18228 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18229 # We already found the complete path
18230 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18232 $as_echo "pre-installed
in $ac_dir" >&6; }
18233 elif test "x
$target" = "x
$host"; then
18234 # We can use an host tool
18235 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18237 $as_echo "host tool
" >&6; }
18239 # We need a cross tool
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18241 $as_echo "pre-installed
" >&6; }
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18246 $as_echo_n "checking where to
find the target otool...
" >&6; }
18247 if test "x
${build}" != "x
${host}" ; then
18248 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18249 # We already found the complete path
18250 ac_dir=`dirname $OTOOL_FOR_TARGET`
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18252 $as_echo "pre-installed
in $ac_dir" >&6; }
18254 # Canadian cross, just use what we found
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18256 $as_echo "pre-installed
" >&6; }
18259 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18260 # We already found the complete path
18261 ac_dir=`dirname $OTOOL_FOR_TARGET`
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18263 $as_echo "pre-installed
in $ac_dir" >&6; }
18264 elif test "x
$target" = "x
$host"; then
18265 # We can use an host tool
18266 OTOOL_FOR_TARGET='$(OTOOL)'
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18268 $as_echo "host tool
" >&6; }
18270 # We need a cross tool
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18272 $as_echo "pre-installed
" >&6; }
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18277 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18278 if test "x
${build}" != "x
${host}" ; then
18279 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18280 # We already found the complete path
18281 ac_dir=`dirname $RANLIB_FOR_TARGET`
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18283 $as_echo "pre-installed
in $ac_dir" >&6; }
18285 # Canadian cross, just use what we found
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18287 $as_echo "pre-installed
" >&6; }
18291 case " ${configdirs} " in
18296 if test $ok = yes; then
18297 # An in-tree tool is available and we can use it
18298 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18300 $as_echo "just compiled
" >&6; }
18301 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18302 # We already found the complete path
18303 ac_dir=`dirname $RANLIB_FOR_TARGET`
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18305 $as_echo "pre-installed
in $ac_dir" >&6; }
18306 elif test "x
$target" = "x
$host"; then
18307 # We can use an host tool
18308 RANLIB_FOR_TARGET='$(RANLIB)'
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18310 $as_echo "host tool
" >&6; }
18312 # We need a cross tool
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18314 $as_echo "pre-installed
" >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18319 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18320 if test "x
${build}" != "x
${host}" ; then
18321 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18322 # We already found the complete path
18323 ac_dir=`dirname $READELF_FOR_TARGET`
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18325 $as_echo "pre-installed
in $ac_dir" >&6; }
18327 # Canadian cross, just use what we found
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18329 $as_echo "pre-installed
" >&6; }
18333 case " ${configdirs} " in
18338 if test $ok = yes; then
18339 # An in-tree tool is available and we can use it
18340 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18342 $as_echo "just compiled
" >&6; }
18343 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18344 # We already found the complete path
18345 ac_dir=`dirname $READELF_FOR_TARGET`
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18347 $as_echo "pre-installed
in $ac_dir" >&6; }
18348 elif test "x
$target" = "x
$host"; then
18349 # We can use an host tool
18350 READELF_FOR_TARGET='$(READELF)'
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18352 $as_echo "host tool
" >&6; }
18354 # We need a cross tool
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18356 $as_echo "pre-installed
" >&6; }
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18361 $as_echo_n "checking where to
find the target strip...
" >&6; }
18362 if test "x
${build}" != "x
${host}" ; then
18363 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18364 # We already found the complete path
18365 ac_dir=`dirname $STRIP_FOR_TARGET`
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18367 $as_echo "pre-installed
in $ac_dir" >&6; }
18369 # Canadian cross, just use what we found
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18371 $as_echo "pre-installed
" >&6; }
18375 case " ${configdirs} " in
18380 if test $ok = yes; then
18381 # An in-tree tool is available and we can use it
18382 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18384 $as_echo "just compiled
" >&6; }
18385 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18386 # We already found the complete path
18387 ac_dir=`dirname $STRIP_FOR_TARGET`
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18389 $as_echo "pre-installed
in $ac_dir" >&6; }
18390 elif test "x
$target" = "x
$host"; then
18391 # We can use an host tool
18392 STRIP_FOR_TARGET='$(STRIP)'
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18394 $as_echo "host tool
" >&6; }
18396 # We need a cross tool
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18398 $as_echo "pre-installed
" >&6; }
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18403 $as_echo_n "checking where to
find the target windres...
" >&6; }
18404 if test "x
${build}" != "x
${host}" ; then
18405 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18406 # We already found the complete path
18407 ac_dir=`dirname $WINDRES_FOR_TARGET`
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18409 $as_echo "pre-installed
in $ac_dir" >&6; }
18411 # Canadian cross, just use what we found
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18413 $as_echo "pre-installed
" >&6; }
18417 case " ${configdirs} " in
18422 if test $ok = yes; then
18423 # An in-tree tool is available and we can use it
18424 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18426 $as_echo "just compiled
" >&6; }
18427 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18428 # We already found the complete path
18429 ac_dir=`dirname $WINDRES_FOR_TARGET`
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18431 $as_echo "pre-installed
in $ac_dir" >&6; }
18432 elif test "x
$target" = "x
$host"; then
18433 # We can use an host tool
18434 WINDRES_FOR_TARGET='$(WINDRES)'
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18436 $as_echo "host tool
" >&6; }
18438 # We need a cross tool
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18440 $as_echo "pre-installed
" >&6; }
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18445 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18446 if test "x
${build}" != "x
${host}" ; then
18447 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18448 # We already found the complete path
18449 ac_dir=`dirname $WINDMC_FOR_TARGET`
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18451 $as_echo "pre-installed
in $ac_dir" >&6; }
18453 # Canadian cross, just use what we found
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18455 $as_echo "pre-installed
" >&6; }
18459 case " ${configdirs} " in
18464 if test $ok = yes; then
18465 # An in-tree tool is available and we can use it
18466 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18468 $as_echo "just compiled
" >&6; }
18469 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18470 # We already found the complete path
18471 ac_dir=`dirname $WINDMC_FOR_TARGET`
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18473 $as_echo "pre-installed
in $ac_dir" >&6; }
18474 elif test "x
$target" = "x
$host"; then
18475 # We can use an host tool
18476 WINDMC_FOR_TARGET='$(WINDMC)'
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18478 $as_echo "host tool
" >&6; }
18480 # We need a cross tool
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18482 $as_echo "pre-installed
" >&6; }
18490 # Certain tools may need extra flags.
18491 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18492 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18493 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18495 # When building target libraries, except in a Canadian cross, we use
18496 # the same toolchain as the compiler we just built.
18497 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18498 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18499 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18500 if test $host = $build; then
18501 case " $configdirs " in
18503 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18504 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18505 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18515 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18516 # Check whether --enable-maintainer-mode was given.
18517 if test "${enable_maintainer_mode+set}" = set; then :
18518 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18520 USE_MAINTAINER_MODE=no
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18524 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18527 if test "$USE_MAINTAINER_MODE" = yes; then
18528 MAINTAINER_MODE_TRUE=
18529 MAINTAINER_MODE_FALSE='#'
18531 MAINTAINER_MODE_TRUE='#'
18532 MAINTAINER_MODE_FALSE=
18534 MAINT=$MAINTAINER_MODE_TRUE
18536 # ---------------------
18537 # GCC bootstrap support
18538 # ---------------------
18540 # Stage specific cflags for build.
18545 yes) stage1_cflags="-g -Wa,-J" ;;
18546 *) stage1_cflags="-g -J" ;;
18552 # Enable --enable-checking in stage1 of the compiler.
18553 # Check whether --enable-stage1-checking was given.
18554 if test "${enable_stage1_checking+set}" = set; then :
18555 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18557 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18558 # For --disable-checking or implicit --enable-checking=release, avoid
18559 # setting --enable-checking=gc in the default stage1 checking for LTO
18560 # bootstraps. See PR62077.
18561 case $BUILD_CONFIG in
18563 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18565 stage1_checking=--enable-checking=yes,types;;
18567 if test "x
$enable_checking" = x && \
18568 test -d ${srcdir}/gcc && \
18569 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18570 stage1_checking=--enable-checking=yes,types,extra
18573 stage1_checking=--enable-checking=$enable_checking,types
18579 # Enable -Werror in bootstrap stage2 and later.
18580 # Check whether --enable-werror was given.
18581 if test "${enable_werror+set}" = set; then :
18582 enableval=$enable_werror;
18583 case ${enable_werror} in
18584 yes) stage2_werror_flag="--enable-werror-always" ;;
18585 *) stage2_werror_flag="" ;;
18590 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18591 case $BUILD_CONFIG in
18593 stage2_werror_flag="--enable-werror-always" ;;
18595 stage2_werror_flag="--enable-werror-always" ;;
18604 # Specify what files to not compare during bootstrap.
18606 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18608 hppa*64*-*-hpux*) ;;
18609 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18610 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18614 ac_config_files="$ac_config_files Makefile
"
18616 cat >confcache <<\_ACEOF
18617 # This file is a shell script that caches the results of configure
18618 # tests run on this system so they can be shared between configure
18619 # scripts and configure runs, see configure's option --config-cache.
18620 # It is not useful on other systems. If it contains results you don't
18621 # want to keep, you may remove or edit it.
18623 # config.status only pays attention to the cache file if you give it
18624 # the --recheck option to rerun configure.
18626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18628 # following values.
18632 # The following way of writing the cache mishandles newlines in values,
18633 # but we know of no workaround that is simple, portable, and efficient.
18634 # So, we kill variables containing newlines.
18635 # Ultrix sh set writes to stderr and can't be redirected directly,
18636 # and sets the high bit in the cache file unless we assign to the vars.
18638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18639 eval ac_val=\$$ac_var
18643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18644 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18647 _ | IFS | as_nl) ;; #(
18648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18649 *) { eval $ac_var=; unset $ac_var;} ;;
18655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18656 *${as_nl}ac_space=\ *)
18657 # `set' does not quote correctly, so add quotes: double-quote
18658 # substitution turns \\\\ into \\, and sed turns \\ into \.
18661 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18664 # `set' quotes correctly as required by POSIX, so do not add quotes.
18665 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18679 if test -w "$cache_file"; then
18680 if test "x
$cache_file" != "x
/dev
/null
"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18682 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18683 if test ! -f "$cache_file" || test -h "$cache_file"; then
18684 cat confcache >"$cache_file"
18686 case $cache_file in #(
18688 mv -f confcache "$cache_file"$$ &&
18689 mv -f "$cache_file"$$ "$cache_file" ;; #(
18691 mv -f confcache "$cache_file" ;;
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18697 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18702 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18703 # Let make expand exec_prefix.
18704 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18706 # Transform confdefs.h into DEFS.
18707 # Protect against shell expansion while executing Makefile rules.
18708 # Protect against Makefile macro expansion.
18710 # If the first sed substitution is executed (which looks for macros that
18711 # take arguments), then branch to the quote section. Otherwise,
18712 # look for a macro that doesn't take arguments.
18722 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18724 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18728 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18741 DEFS=`sed -n "$ac_script" confdefs.h`
18747 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18748 # 1. Remove the extension, and $U if already installed.
18749 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18752 # will be set to the directory where LIBOBJS objects are built.
18753 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18754 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18756 LIBOBJS=$ac_libobjs
18758 LTLIBOBJS=$ac_ltlibobjs
18762 : "${CONFIG_STATUS=./config.status}"
18764 ac_clean_files_save=$ac_clean_files
18765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18767 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18769 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18771 # Generated by $as_me.
18772 # Run this file to recreate the current configuration.
18773 # Compiler output produced by configure, useful for debugging
18774 # configure, is in config.log if it exists.
18777 ac_cs_recheck=false
18780 SHELL=\${CONFIG_SHELL-$SHELL}
18783 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18784 ## -------------------- ##
18785 ## M4sh Initialization. ##
18786 ## -------------------- ##
18788 # Be more Bourne compatible
18789 DUALCASE=1; export DUALCASE # for MKS sh
18790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18793 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18794 # is contrary to our usage. Disable this feature.
18795 alias -g '${1+"$@"}'='"$@"'
18796 setopt NO_GLOB_SUBST
18798 case `(set -o) 2>/dev/null` in #(
18810 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18811 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18812 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18813 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18814 # Prefer a ksh shell builtin over an external printf program on Solaris,
18815 # but without wasting forks for bash or zsh.
18816 if test -z "$BASH_VERSION$ZSH_VERSION" \
18817 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18818 as_echo
='print -r --'
18819 as_echo_n
='print -rn --'
18820 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18821 as_echo
='printf %s\n'
18822 as_echo_n
='printf %s'
18824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18825 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18826 as_echo_n
='/usr/ucb/echo -n'
18828 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18829 as_echo_n_body
='eval
18833 expr "X$arg" : "X\\(.*\\)$as_nl";
18834 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18836 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18838 export as_echo_n_body
18839 as_echo_n
='sh -c $as_echo_n_body as_echo'
18841 export as_echo_body
18842 as_echo
='sh -c $as_echo_body as_echo'
18845 # The user is always right.
18846 if test "${PATH_SEPARATOR+set}" != set; then
18848 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18849 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18856 # We need space, tab and new line, in precisely that order. Quoting is
18857 # there to prevent editors from complaining about space-tab.
18858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18859 # splitting by setting IFS to empty value.)
18862 # Find who we are. Look in the path if we contain no directory separator.
18865 *[\\/]* ) as_myself
=$0 ;;
18866 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18867 for as_dir
in $PATH
18870 test -z "$as_dir" && as_dir
=.
18871 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18877 # We did not find ourselves, most probably we were run as `sh COMMAND'
18878 # in which case we are not to be found in the path.
18879 if test "x$as_myself" = x
; then
18882 if test ! -f "$as_myself"; then
18883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18887 # Unset variables that we do not need and which cause bugs (e.g. in
18888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18889 # suppresses any "Segmentation fault" message there. '((' could
18890 # trigger a bug in pdksh 5.2.14.
18891 for as_var
in BASH_ENV ENV MAIL MAILPATH
18892 do eval test x\
${$as_var+set} = xset \
18893 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18906 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18909 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18910 # ----------------------------------------
18911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18913 # script with STATUS, using 1 if that was 0.
18916 as_status
=$1; test $as_status -eq 0 && as_status
=1
18918 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18921 $as_echo "$as_me: error: $2" >&2
18922 as_fn_exit
$as_status
18926 # as_fn_set_status STATUS
18927 # -----------------------
18928 # Set $? to STATUS, without forking.
18929 as_fn_set_status
()
18932 } # as_fn_set_status
18934 # as_fn_exit STATUS
18935 # -----------------
18936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18940 as_fn_set_status
$1
18946 # Portably unset VAR.
18949 { eval $1=; unset $1;}
18951 as_unset
=as_fn_unset
18952 # as_fn_append VAR VALUE
18953 # ----------------------
18954 # Append the text in VALUE to the end of the definition contained in VAR. Take
18955 # advantage of any shell optimizations that allow amortized linear growth over
18956 # repeated appends, instead of the typical quadratic growth present in naive
18958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18959 eval 'as_fn_append ()
18970 # as_fn_arith ARG...
18971 # ------------------
18972 # Perform arithmetic evaluation on the ARGs, and store the result in the
18973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18974 # must be portable across $(()) and expr.
18975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18976 eval 'as_fn_arith ()
18983 as_val
=`expr "$@" || test $? -eq 1`
18988 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18989 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18995 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18996 as_basename
=basename
19001 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19007 as_me
=`$as_basename -- "$0" ||
19008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19009 X"$0" : 'X\(//\)$' \| \
19010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19012 sed '/^.*\/\([^/][^/]*\)\/*$/{
19026 # Avoid depending upon Character Ranges.
19027 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19028 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19029 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19030 as_cr_digits
='0123456789'
19031 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19033 ECHO_C
= ECHO_N
= ECHO_T
=
19034 case `echo -n x` in #(((((
19036 case `echo 'xy\c'` in
19037 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19039 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19046 rm -f conf$$ conf$$.exe conf$$.
file
19047 if test -d conf$$.dir
; then
19048 rm -f conf$$.dir
/conf$$.
file
19051 mkdir conf$$.dir
2>/dev
/null
19053 if (echo >conf$$.
file) 2>/dev
/null
; then
19054 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19056 # ... but there are two gotchas:
19057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19059 # In both cases, we have to default to `cp -pR'.
19060 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19062 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19070 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19071 rmdir conf$$.dir
2>/dev
/null
19076 # Create "$as_dir" as a directory, including parents if necessary.
19081 -*) as_dir
=.
/$as_dir;;
19083 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19087 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19088 *) as_qdir
=$as_dir;;
19090 as_dirs
="'$as_qdir' $as_dirs"
19091 as_dir
=`$as_dirname -- "$as_dir" ||
19092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19093 X"$as_dir" : 'X\(//\)[^/]' \| \
19094 X"$as_dir" : 'X\(//\)$' \| \
19095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19096 $as_echo X"$as_dir" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19101 /^X\(\/\/\)[^/].*/{
19114 test -d "$as_dir" && break
19116 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19117 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19121 if mkdir
-p .
2>/dev
/null
; then
19122 as_mkdir_p
='mkdir -p "$as_dir"'
19124 test -d .
/-p && rmdir .
/-p
19129 # as_fn_executable_p FILE
19130 # -----------------------
19131 # Test if FILE is an executable regular file.
19132 as_fn_executable_p
()
19134 test -f "$1" && test -x "$1"
19135 } # as_fn_executable_p
19136 as_test_x
='test -x'
19137 as_executable_p
=as_fn_executable_p
19139 # Sed expression to map a string onto a valid CPP name.
19140 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19142 # Sed expression to map a string onto a valid variable name.
19143 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19147 ## ----------------------------------- ##
19148 ## Main body of $CONFIG_STATUS script. ##
19149 ## ----------------------------------- ##
19151 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19154 # Save the log message, to keep $0 and so on meaningful, and to
19155 # report actual input values of CONFIG_FILES etc. instead of their
19156 # values after options handling.
19158 This file was extended by $as_me, which was
19159 generated by GNU Autoconf 2.69. Invocation command line was
19161 CONFIG_FILES = $CONFIG_FILES
19162 CONFIG_HEADERS = $CONFIG_HEADERS
19163 CONFIG_LINKS = $CONFIG_LINKS
19164 CONFIG_COMMANDS = $CONFIG_COMMANDS
19167 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19172 case $ac_config_files in *"
19173 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179 # Files that config.status was made for.
19180 config_files="$ac_config_files"
19184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19186 \`$as_me' instantiates files and other configuration actions
19187 from templates according to the current configuration. Unless the files
19188 and actions are specified as TAGs, all are instantiated by default.
19190 Usage: $0 [OPTION]... [TAG]...
19192 -h, --help print this help, then exit
19193 -V, --version print version number and configuration settings, then exit
19194 --config print configuration, then exit
19195 -q, --quiet, --silent
19196 do not print progress messages
19197 -d, --debug don't remove temporary files
19198 --recheck update $as_me by reconfiguring in the same conditions
19199 --file=FILE[:TEMPLATE]
19200 instantiate the configuration file FILE
19202 Configuration files:
19205 Report bugs to the package provider."
19208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19212 configured by $0, generated by GNU Autoconf 2.69,
19213 with options \\"\$ac_cs_config\\"
19215 Copyright (C) 2012 Free Software Foundation, Inc.
19216 This config.status script is free software; the Free Software Foundation
19217 gives unlimited permission to copy, distribute and modify it."
19223 test -n "\$AWK" || AWK=awk
19226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19227 # The default lists apply if the user does not specify any file.
19233 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19234 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19238 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19250 # Handling of the options.
19251 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19253 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19254 $as_echo "$ac_cs_version"; exit ;;
19255 --config |
--confi |
--conf |
--con |
--co |
--c )
19256 $as_echo "$ac_cs_config"; exit ;;
19257 --debug |
--debu |
--deb |
--de |
--d |
-d )
19259 --file |
--fil |
--fi |
--f )
19262 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19263 '') as_fn_error $?
"missing file argument" ;;
19265 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19266 ac_need_defaults
=false
;;
19267 --he |
--h |
--help |
--hel |
-h )
19268 $as_echo "$ac_cs_usage"; exit ;;
19269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19270 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19273 # This is an error.
19274 -*) as_fn_error $?
"unrecognized option: \`$1'
19275 Try \`$0 --help' for more information." ;;
19277 *) as_fn_append ac_config_targets
" $1"
19278 ac_need_defaults
=false
;;
19284 ac_configure_extra_args
=
19286 if $ac_cs_silent; then
19288 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19293 if \$ac_cs_recheck; then
19294 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19296 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19297 CONFIG_SHELL='$SHELL'
19298 export CONFIG_SHELL
19303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19308 ## Running $as_me. ##
19314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19318 extrasub_build="$extrasub_build"
19319 extrasub_host="$extrasub_host"
19320 extrasub_target="$extrasub_target"
19324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19326 # Handling of arguments.
19327 for ac_config_target
in $ac_config_targets
19329 case $ac_config_target in
19330 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19332 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19337 # If the user did not use the arguments to specify the items to instantiate,
19338 # then the envvar interface is used. Set only those that are not.
19339 # We use the long form for the default assignment because of an extremely
19340 # bizarre bug on SunOS 4.1.3.
19341 if $ac_need_defaults; then
19342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19345 # Have a temporary directory for convenience. Make it in the build tree
19346 # simply because there is no reason against having it here, and in addition,
19347 # creating and moving files from /tmp can sometimes cause problems.
19348 # Hook for its removal unless debugging.
19349 # Note that there is a small window in which the directory will not be cleaned:
19350 # after its creation but before its name has been assigned to `$tmp'.
19354 trap 'exit_status=$?
19355 : "${ac_tmp:=$tmp}"
19356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19358 trap 'as_fn_exit 1' 1 2 13 15
19360 # Create a (secure) tmp directory for tmp files.
19363 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19367 tmp
=.
/conf$$
-$RANDOM
19368 (umask 077 && mkdir
"$tmp")
19369 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19372 # Set up the scripts for CONFIG_FILES section.
19373 # No need to generate them if there are no CONFIG_FILES.
19374 # This happens for instance with `./config.status config.h'.
19375 if test -n "$CONFIG_FILES"; then
19377 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19378 ac_cs_awk_getline
=:
19379 ac_cs_awk_pipe_init
=
19380 ac_cs_awk_read_file
='
19381 while ((getline aline < (F[key])) > 0)
19384 ac_cs_awk_pipe_fini
=
19386 ac_cs_awk_getline
=false
19387 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19388 ac_cs_awk_read_file
='
19390 print "cat " F[key] " &&"
19391 '$ac_cs_awk_pipe_init
19392 # The final `:' finishes the AND list.
19393 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19395 ac_cr
=`echo X | tr X '\015'`
19396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19397 # But we know of no other shell where ac_cr would be empty at this
19398 # point, so we can use a bashism as a fallback.
19399 if test "x$ac_cr" = x
; then
19400 eval ac_cr
=\$
\'\\r
\'
19402 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19406 ac_cs_awk_cr
=$ac_cr
19409 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19412 # Create commands to substitute file output variables.
19414 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19415 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19416 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19419 } >conf$
$files.sh
&&
19420 . .
/conf$
$files.sh ||
19421 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19422 rm -f conf$
$files.sh
19425 echo "cat >conf$$subs.awk <<_ACEOF" &&
19426 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19428 } >conf$$subs.sh ||
19429 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19430 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19432 for ac_last_try in false false false false false :; do
19433 . ./conf$$subs.sh ||
19434 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19436 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19437 if test $ac_delim_n = $ac_delim_num; then
19439 elif $ac_last_try; then
19440 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19442 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19445 rm -f conf$$subs.sh
19447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19448 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19452 s/^/S["/; s
/!.
*/"]=/
19462 s/\(.\{148\}\)..*/\1/
19464 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19469 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19476 s/\(.\{148\}\)..*/\1/
19478 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19482 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19487 ' <conf$$subs.awk | sed '
19492 ' >>$CONFIG_STATUS || ac_write_fail=1
19493 rm -f conf$$subs.awk
19494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19497 for (key in S) S_is_set[key] = 1
19499 \$ac_cs_awk_pipe_init
19503 nfields = split(line, field, "@
")
19505 len = length(field[1])
19506 for (i = 2; i < nfields; i++) {
19508 keylen = length(key)
19509 if (S_is_set[key]) {
19511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19512 len += length(value) + length(field[++i])
19517 if (nfields == 3 && !substed) {
19519 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19520 \$ac_cs_awk_read_file
19526 \$ac_cs_awk_pipe_fini
19529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19530 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19531 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19534 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19535 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19540 # trailing colons and then remove the whole line if VPATH becomes empty
19541 # (actually we leave an empty line to preserve line numbers).
19542 if test "x
$srcdir" = x.; then
19543 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562 fi # test -n "$CONFIG_FILES"
19565 eval set X " :F
$CONFIG_FILES "
19570 :[FHLC]) ac_mode=$ac_tag; continue;;
19572 case $ac_mode$ac_tag in
19574 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19575 :[FH]-) ac_tag=-:-;;
19576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19593 -) ac_f="$ac_tmp/stdin";;
19594 *) # Look for the file first in the build tree, then in the source tree
19595 # (if the path is not absolute). The absolute path cannot be DOS-style,
19596 # because $ac_f cannot contain `:'.
19600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19602 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19605 as_fn_append ac_file_inputs " '$ac_f'"
19608 # Let's still pretend it is `configure' which instantiates (i.e., don't
19609 # use $as_me), people would be surprised to read:
19610 # /* config.h. Generated by config.status. */
19611 configure_input='Generated from '`
19612 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19614 if test x"$ac_file" != x-; then
19615 configure_input="$ac_file.
$configure_input"
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19617 $as_echo "$as_me: creating
$ac_file" >&6;}
19619 # Neutralize special characters interpreted by sed in replacement strings.
19620 case $configure_input in #(
19621 *\&* | *\|* | *\\* )
19622 ac_sed_conf_input=`$as_echo "$configure_input" |
19623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19624 *) ac_sed_conf_input=$configure_input;;
19628 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19629 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19634 ac_dir=`$as_dirname -- "$ac_file" ||
19635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19636 X"$ac_file" : 'X\(//\)[^/]' \| \
19637 X"$ac_file" : 'X\(//\)$' \| \
19638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19639 $as_echo X"$ac_file" |
19640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19644 /^X\(\/\/\)[^/].*/{
19657 as_dir="$ac_dir"; as_fn_mkdir_p
19661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19664 # A "..
" for each directory in $ac_dir_suffix.
19665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19666 case $ac_top_builddir_sub in
19667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19671 ac_abs_top_builddir=$ac_pwd
19672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19673 # for backward compatibility:
19674 ac_top_builddir=$ac_top_build_prefix
19677 .) # We are building in place.
19679 ac_top_srcdir=$ac_top_builddir_sub
19680 ac_abs_top_srcdir=$ac_pwd ;;
19681 [\\/]* | ?:[\\/]* ) # Absolute name.
19682 ac_srcdir=$srcdir$ac_dir_suffix;
19683 ac_top_srcdir=$srcdir
19684 ac_abs_top_srcdir=$srcdir ;;
19685 *) # Relative name.
19686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19687 ac_top_srcdir=$ac_top_build_prefix$srcdir
19688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19701 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706 # If the template does not know about datarootdir, expand it.
19707 # FIXME: This hack should be removed a few years after 2.60.
19708 ac_datarootdir_hack=; ac_datarootdir_seen=
19719 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19720 *datarootdir*) ac_datarootdir_seen=yes;;
19721 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19723 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19726 ac_datarootdir_hack='
19727 s&@datadir@&$datadir&g
19728 s&@docdir@&$docdir&g
19729 s&@infodir@&$infodir&g
19730 s&@localedir@&$localedir&g
19731 s&@mandir@&$mandir&g
19732 s&\\\${datarootdir}&$datarootdir&g' ;;
19736 # Neutralize VPATH when `$srcdir' = `.'.
19737 # Shell code in configure.ac might set extrasub.
19738 # FIXME: do we really want to maintain this feature?
19739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19740 ac_sed_extra="$ac_vpsub
19743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19745 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19746 s|@configure_input@|
$ac_sed_conf_input|
;t t
19747 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19748 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19749 s
&@srcdir@
&$ac_srcdir&;t t
19750 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19751 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19752 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19753 s
&@builddir@
&$ac_builddir&;t t
19754 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19755 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19756 s
&@INSTALL@
&$ac_INSTALL&;t t
19757 $ac_datarootdir_hack
19759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19760 if $ac_cs_awk_getline; then
19761 $AWK -f "$ac_tmp/subs.
awk"
19763 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19765 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19770 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19772 which seems to be undefined. Please make sure it is defined" >&5
19773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19774 which seems to be undefined. Please make sure it is defined" >&2;}
19776 rm -f "$ac_tmp/stdin"
19778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19789 case $ac_file$ac_mode in
19790 "Makefile":F) sed "$extrasub_build" Makefile |
19791 sed "$extrasub_host" |
19792 sed "$extrasub_target" > mf$$
19793 mv -f mf$$ Makefile ;;
19801 ac_clean_files=$ac_clean_files_save
19803 test $ac_write_fail = 0 ||
19804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19807 # configure is writing to config.log, and then calls config.status.
19808 # config.status does its own redirection, appending to config.log.
19809 # Unfortunately, on DOS this fails, as config.log is still kept open
19810 # by configure, so config.status won't be able to
write to it
; its
19811 # output is simply discarded. So we exec the FD to /dev/null,
19812 # effectively closing config.log, so it can be properly (re)opened and
19813 # appended to by config.status. When coming back to configure, we
19814 # need to make the FD available again.
19815 if test "$no_create" != yes; then
19817 ac_config_status_args
=
19818 test "$silent" = yes &&
19819 ac_config_status_args
="$ac_config_status_args --quiet"
19821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19824 # would make configure fail if this is the last instruction.
19825 $ac_cs_success || as_fn_exit
1
19827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}