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"
4152 host_makefile_frag
="config/mh-pa"
4154 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4155 host_makefile_frag
="config/mh-darwin"
4158 host_makefile_frag
="config/mh-ppc-aix"
4161 host_makefile_frag
="config/mh-ppc-aix"
4166 if test "${build}" != "${host}" ; then
4167 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4168 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4169 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4170 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4171 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4172 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4173 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4174 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4175 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4176 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4177 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4178 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4179 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4180 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4181 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4183 AR_FOR_BUILD
="\$(AR)"
4184 AS_FOR_BUILD
="\$(AS)"
4185 CC_FOR_BUILD
="\$(CC)"
4186 CXX_FOR_BUILD
="\$(CXX)"
4187 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4188 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4189 GOC_FOR_BUILD
="\$(GOC)"
4190 GDC_FOR_BUILD
="\$(GDC)"
4191 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4192 LD_FOR_BUILD
="\$(LD)"
4193 NM_FOR_BUILD
="\$(NM)"
4194 RANLIB_FOR_BUILD
="\$(RANLIB)"
4195 WINDRES_FOR_BUILD
="\$(WINDRES)"
4196 WINDMC_FOR_BUILD
="\$(WINDMC)"
4200 ac_cpp
='$CPP $CPPFLAGS'
4201 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4206 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_CC+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC
="$CC" # Let the user override the test.
4215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir
=.
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 if test -n "$CC"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 $as_echo "$CC" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4243 if test -z "$ac_cv_prog_CC"; then
4245 # Extract the first word of "gcc", so it can be a program name with args.
4246 set dummy gcc
; ac_word
=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -n "$ac_ct_CC"; then
4253 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir
=.
4260 for ac_exec_ext
in '' $ac_executable_extensions; do
4261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_ac_ct_CC
="gcc"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4273 if test -n "$ac_ct_CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4275 $as_echo "$ac_ct_CC" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4281 if test "x$ac_ct_CC" = x
; then
4284 case $cross_compiling:$ac_tool_warned in
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned
=yes ;;
4296 if test -z "$CC"; then
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4299 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false
; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC
="$CC" # Let the user override the test.
4308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir
=.
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4315 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328 $as_echo "$CC" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4337 if test -z "$CC"; then
4338 # Extract the first word of "cc", so it can be a program name with args.
4339 set dummy cc
; ac_word
=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_CC+:} false
; then :
4343 $as_echo_n "(cached) " >&6
4345 if test -n "$CC"; then
4346 ac_cv_prog_CC
="$CC" # Let the user override the test.
4349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir
=.
4354 for ac_exec_ext
in '' $ac_executable_extensions; do
4355 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4357 ac_prog_rejected
=yes
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 if test $ac_prog_rejected = yes; then
4369 # We found a bogon in the path, so make sure we never use it.
4370 set dummy
$ac_cv_prog_CC
4372 if test $# != 0; then
4373 # We chose a different compiler from the bogus one.
4374 # However, it has the same basename, so the bogon will be chosen
4375 # first if we set CC to just the basename; use the full file name.
4377 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4383 if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385 $as_echo "$CC" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4393 if test -z "$CC"; then
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog
in cl.exe
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_prog_CC+:} false
; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC
="$CC" # Let the user override the test.
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 if test -n "$CC"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 $as_echo "$CC" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 test -n "$CC" && break
4437 if test -z "$CC"; then
4439 for ac_prog
in cl.exe
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy
$ac_prog; ac_word
=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4446 $as_echo_n "(cached) " >&6
4448 if test -n "$ac_ct_CC"; then
4449 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir
=.
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_CC
="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4469 if test -n "$ac_ct_CC"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4471 $as_echo "$ac_ct_CC" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 test -n "$ac_ct_CC" && break
4481 if test "x$ac_ct_CC" = x
; then
4484 case $cross_compiling:$ac_tool_warned in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned
=yes ;;
4497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error $?
"no acceptable C compiler found in \$PATH
4500 See \`config.log' for more details" "$LINENO" 5; }
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4506 for ac_option
in --version -v -V -qversion; do
4507 { { ac_try
="$ac_compiler $ac_option >&5"
4509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 if test -s conftest.err; then
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4522 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4538 ac_clean_files_save=$ac_clean_files
4539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4540 # Try to create an executable without -o first, disregard a.out.
4541 # It will help us diagnose broken compilers, and finding out an intuition
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4544 $as_echo_n "checking whether the C compiler works... " >&6; }
4545 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4547 # The possible output files:
4548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4551 for ac_file in $ac_files
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4560 if { { ac_try="$ac_link_default"
4562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4563 *) ac_try_echo
=$ac_try;;
4565 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_link_default") 2>&5
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }; then :
4571 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4572 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4573 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4574 # so that the user can short-circuit this test for compilers unknown to
4576 for ac_file
in $ac_files ''
4578 test -f "$ac_file" ||
continue
4580 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4583 # We found the default executable, but exeext='' is most
4587 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4589 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591 # We set ac_cv_exeext here because the later test for it is not
4592 # safe: cross compilers may not add the suffix if given an `-o'
4593 # argument, so we may need to know it at that point already.
4594 # Even if this section looks crufty: it has the advantage of
4601 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4606 if test -z "$ac_file"; then :
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614 as_fn_error
77 "C compiler cannot create executables
4615 See \`config.log' for more details" "$LINENO" 5; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4618 $as_echo "yes" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4621 $as_echo_n "checking for C compiler default output file name... " >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4623 $as_echo "$ac_file" >&6; }
4624 ac_exeext
=$ac_cv_exeext
4626 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4627 ac_clean_files
=$ac_clean_files_save
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4629 $as_echo_n "checking for suffix of executables... " >&6; }
4630 if { { ac_try
="$ac_link"
4632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_link") 2>&5
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; then :
4641 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4642 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4643 # work properly (i.e., refer to `conftest.exe'), while it won't with
4645 for ac_file
in conftest.exe conftest conftest.
*; do
4646 test -f "$ac_file" ||
continue
4648 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4649 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4658 See \`config.log' for more details" "$LINENO" 5; }
4660 rm -f conftest conftest
$ac_cv_exeext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4662 $as_echo "$ac_cv_exeext" >&6; }
4664 rm -f conftest.
$ac_ext
4665 EXEEXT
=$ac_cv_exeext
4667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4673 FILE *f = fopen ("conftest.out", "w");
4674 return ferror (f) || fclose (f) != 0;
4680 ac_clean_files
="$ac_clean_files conftest.out"
4681 # Check that the compiler produces executables we can run. If not, either
4682 # the compiler is broken, or we cross compile.
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4684 $as_echo_n "checking whether we are cross compiling... " >&6; }
4685 if test "$cross_compiling" != yes; then
4686 { { ac_try
="$ac_link"
4688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_link") 2>&5
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }
4697 if { ac_try='./conftest$ac_cv_exeext'
4698 { { case "(($ac_try" in
4699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4700 *) ac_try_echo
=$ac_try;;
4702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_try") 2>&5
4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4707 test $ac_status = 0; }; }; then
4710 if test "$cross_compiling" = maybe
; then
4713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4715 as_fn_error $?
"cannot run C compiled programs.
4716 If you meant to cross compile, use \`--host'.
4717 See \`config.log' for more details" "$LINENO" 5; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4722 $as_echo "$cross_compiling" >&6; }
4724 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4725 ac_clean_files
=$ac_clean_files_save
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4727 $as_echo_n "checking for suffix of object files... " >&6; }
4728 if ${ac_cv_objext+:} false
; then :
4729 $as_echo_n "(cached) " >&6
4731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 rm -f conftest.o conftest.obj
4743 if { { ac_try
="$ac_compile"
4745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750 (eval "$ac_compile") 2>&5
4752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753 test $ac_status = 0; }; then :
4754 for ac_file in conftest.o conftest.obj conftest.*; do
4755 test -f "$ac_file" || continue;
4757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4769 See \
`config.log' for more details" "$LINENO" 5; }
4771 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4774 $as_echo "$ac_cv_objext" >&6; }
4775 OBJEXT=$ac_cv_objext
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4778 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4779 if ${ac_cv_c_compiler_gnu+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4806 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4807 if test $ac_compiler_gnu = yes; then
4812 ac_test_CFLAGS=${CFLAGS+set}
4813 ac_save_CFLAGS=$CFLAGS
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4815 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4816 if ${ac_cv_prog_cc_g+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 ac_save_c_werror_flag=$ac_c_werror_flag
4820 ac_c_werror_flag=yes
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4834 if ac_fn_c_try_compile "$LINENO"; then :
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4849 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_c_werror_flag=$ac_save_c_werror_flag
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_c_try_compile "$LINENO"; then :
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 ac_c_werror_flag=$ac_save_c_werror_flag
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4876 $as_echo "$ac_cv_prog_cc_g" >&6; }
4877 if test "$ac_test_CFLAGS" = set; then
4878 CFLAGS=$ac_save_CFLAGS
4879 elif test $ac_cv_prog_cc_g = yes; then
4880 if test "$GCC" = yes; then
4886 if test "$GCC" = yes; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4893 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4894 if ${ac_cv_prog_cc_c89+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 ac_cv_prog_cc_c89=no
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4905 struct buf { int x; };
4906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4907 static char *e (p, i)
4913 static char *f (char * (*g) (char **, int), char **p, ...)
4918 s = g (p, va_arg (v,int));
4923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4924 function prototypes and stuff, but not '\xHH' hex character constants.
4925 These don't provoke an error unfortunately, instead are silently treated
4926 as 'x'. The following induces an error, until -std is added to get
4927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4928 array size at least. It's necessary to write '\x00'==0 to get something
4929 that's true only with -std. */
4930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4933 inside strings and character constants. */
4935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4937 int test (int i, double x);
4938 struct s1 {int (*f) (int a);};
4939 struct s2 {int (*f) (double a);};
4940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4954 CC="$ac_save_CC $ac_arg"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_c89=$ac_arg
4958 rm -f core conftest.err conftest.$ac_objext
4959 test "x$ac_cv_prog_cc_c89" != "xno" && break
4961 rm -f conftest.$ac_ext
4966 case "x$ac_cv_prog_cc_c89" in
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4969 $as_echo "none needed" >&6; } ;;
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4972 $as_echo "unsupported" >&6; } ;;
4974 CC="$CC $ac_cv_prog_cc_c89"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4976 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4978 if test "x$ac_cv_prog_cc_c89" != xno; then :
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4989 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4990 if ${ac_cv_prog_cc_c99+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 ac_cv_prog_cc_c99=no
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4998 #include <stdbool.h>
5003 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5004 #define debug(...) fprintf (stderr, __VA_ARGS__)
5005 #define showlist(...) puts (#__VA_ARGS__)
5006 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5008 test_varargs_macros (void)
5013 debug ("X = %d\n", x);
5014 showlist (The first, second, and third items.);
5015 report (x>y, "x is %d but y is %d", x, y);
5018 // Check long long types.
5019 #define BIG64 18446744073709551615ull
5020 #define BIG32 4294967295ul
5021 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5023 your preprocessor is broken;
5027 your preprocessor is broken;
5029 static long long int bignum = -9223372036854775807LL;
5030 static unsigned long long int ubignum = BIG64;
5032 struct incomplete_array
5040 const wchar_t *name;
5044 typedef const char *ccp;
5047 test_restrict (ccp restrict text)
5049 // See if C++-style comments work.
5050 // Iterate through items via the restricted pointer.
5051 // Also check for declarations in for loops.
5052 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5057 // Check varargs and va_copy.
5059 test_varargs (const char *format, ...)
5062 va_start (args, format);
5064 va_copy (args_copy, args);
5075 str = va_arg (args_copy, const char *);
5078 number = va_arg (args_copy, int);
5081 fnumber = va_arg (args_copy, double);
5096 _Bool success = false;
5099 if (test_restrict ("String literal") == 0)
5101 char *restrict newvar = "Another string";
5104 test_varargs ("s, d' f .", "string", 65, 34.234);
5105 test_varargs_macros ();
5107 // Check flexible array members.
5108 struct incomplete_array *ia =
5109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5111 for (int i = 0; i < ia->datasize; ++i)
5112 ia->data[i] = i * 1.234;
5114 // Check named initializers.
5115 struct named_init ni = {
5117 .name = L"Test wide string",
5118 .average = 543.34343,
5123 int dynamic_array[ni.number];
5124 dynamic_array[ni.number - 1] = 543;
5126 // work around unused variable warnings
5127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5128 || dynamic_array[ni.number - 1] != 543);
5134 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5136 CC="$ac_save_CC $ac_arg"
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 ac_cv_prog_cc_c99=$ac_arg
5140 rm -f core conftest.err conftest.$ac_objext
5141 test "x$ac_cv_prog_cc_c99" != "xno" && break
5143 rm -f conftest.$ac_ext
5148 case "x$ac_cv_prog_cc_c99" in
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5151 $as_echo "none needed" >&6; } ;;
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5154 $as_echo "unsupported" >&6; } ;;
5156 CC="$CC $ac_cv_prog_cc_c99"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5158 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5160 if test "x$ac_cv_prog_cc_c99" != xno; then :
5166 ac_cpp='$CXXCPP $CPPFLAGS'
5167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170 if test -z "$CXX"; then
5171 if test -n "$CCC"; then
5174 if test -n "$ac_tool_prefix"; then
5175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_CXX+:} false; then :
5182 $as_echo_n "(cached) " >&6
5184 if test -n "$CXX"; then
5185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 if test -n "$CXX"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5207 $as_echo "$CXX" >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 test -n "$CXX" && break
5217 if test -z "$CXX"; then
5219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$ac_ct_CXX"; then
5229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_CXX="$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5249 if test -n "$ac_ct_CXX"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5251 $as_echo "$ac_ct_CXX" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5258 test -n "$ac_ct_CXX" && break
5261 if test "x$ac_ct_CXX" = x; then
5264 case $cross_compiling:$ac_tool_warned in
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5276 # Provide some information about the compiler.
5277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5280 for ac_option in --version -v -V -qversion; do
5281 { { ac_try="$ac_compiler $ac_option >&5"
5283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5284 *) ac_try_echo
=$ac_try;;
5286 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5287 $as_echo "$ac_try_echo"; } >&5
5288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5290 if test -s conftest.err
; then
5292 ... rest of stderr output deleted ...
5293 10q' conftest.err
>conftest.er1
5294 cat conftest.er1
>&5
5296 rm -f conftest.er1 conftest.err
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5303 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5304 $as_echo_n "(cached) " >&6
5306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5320 if ac_fn_cxx_try_compile
"$LINENO"; then :
5325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5326 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5331 if test $ac_compiler_gnu = yes; then
5336 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5337 ac_save_CXXFLAGS
=$CXXFLAGS
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5340 if ${ac_cv_prog_cxx_g+:} false
; then :
5341 $as_echo_n "(cached) " >&6
5343 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5344 ac_cxx_werror_flag
=yes
5347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5358 if ac_fn_cxx_try_compile
"$LINENO"; then :
5359 ac_cv_prog_cxx_g
=yes
5362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5373 if ac_fn_cxx_try_compile
"$LINENO"; then :
5376 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5389 if ac_fn_cxx_try_compile
"$LINENO"; then :
5390 ac_cv_prog_cxx_g
=yes
5392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5397 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5401 if test "$ac_test_CXXFLAGS" = set; then
5402 CXXFLAGS
=$ac_save_CXXFLAGS
5403 elif test $ac_cv_prog_cxx_g = yes; then
5404 if test "$GXX" = yes; then
5410 if test "$GXX" = yes; then
5417 ac_cpp
='$CPP $CPPFLAGS'
5418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5423 # We must set the default linker to the linker used by gcc for the correct
5424 # operation of libtool. If LD is not defined and we are using gcc, try to
5425 # set the LD default to the ld used by gcc.
5426 if test -z "$LD"; then
5427 if test "$GCC" = yes; then
5430 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5432 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5434 case $gcc_prog_ld in
5435 # Accept absolute paths.
5436 [\\/]* |
[A-Za-z
]:[\\/]*)
5437 LD
="$gcc_prog_ld" ;;
5442 # Check whether -static-libstdc++ -static-libgcc is supported.
5444 if test "$GCC" = yes; then
5445 saved_LDFLAGS
="$LDFLAGS"
5447 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5449 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5451 ac_cpp
='$CXXCPP $CPPFLAGS'
5452 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5461 #error -static-libstdc++ not implemented
5465 if ac_fn_cxx_try_link
"$LINENO"; then :
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }; have_static_libs
=yes
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5472 rm -f core conftest.err conftest.
$ac_objext \
5473 conftest
$ac_exeext conftest.
$ac_ext
5475 ac_cpp
='$CPP $CPPFLAGS'
5476 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5481 LDFLAGS
="$saved_LDFLAGS"
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5489 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_GNATBIND+:} false
; then :
5493 $as_echo_n "(cached) " >&6
5495 if test -n "$GNATBIND"; then
5496 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir
=.
5503 for ac_exec_ext
in '' $ac_executable_extensions; do
5504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 GNATBIND
=$ac_cv_prog_GNATBIND
5516 if test -n "$GNATBIND"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5518 $as_echo "$GNATBIND" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5526 if test -z "$ac_cv_prog_GNATBIND"; then
5527 ac_ct_GNATBIND
=$GNATBIND
5528 # Extract the first word of "gnatbind", so it can be a program name with args.
5529 set dummy gnatbind
; ac_word
=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5533 $as_echo_n "(cached) " >&6
5535 if test -n "$ac_ct_GNATBIND"; then
5536 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir
=.
5543 for ac_exec_ext
in '' $ac_executable_extensions; do
5544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5556 if test -n "$ac_ct_GNATBIND"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5558 $as_echo "$ac_ct_GNATBIND" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5564 if test "x$ac_ct_GNATBIND" = x
; then
5567 case $cross_compiling:$ac_tool_warned in
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571 ac_tool_warned
=yes ;;
5573 GNATBIND
=$ac_ct_GNATBIND
5576 GNATBIND
="$ac_cv_prog_GNATBIND"
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5581 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$GNATMAKE"; then
5588 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 GNATMAKE
=$ac_cv_prog_GNATMAKE
5608 if test -n "$GNATMAKE"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5610 $as_echo "$GNATMAKE" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5618 if test -z "$ac_cv_prog_GNATMAKE"; then
5619 ac_ct_GNATMAKE
=$GNATMAKE
5620 # Extract the first word of "gnatmake", so it can be a program name with args.
5621 set dummy gnatmake
; ac_word
=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$ac_ct_GNATMAKE"; then
5628 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir
=.
5635 for ac_exec_ext
in '' $ac_executable_extensions; do
5636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5648 if test -n "$ac_ct_GNATMAKE"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5650 $as_echo "$ac_ct_GNATMAKE" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5656 if test "x$ac_ct_GNATMAKE" = x
; then
5659 case $cross_compiling:$ac_tool_warned in
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned
=yes ;;
5665 GNATMAKE
=$ac_ct_GNATMAKE
5668 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5672 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5673 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5674 $as_echo_n "(cached) " >&6
5676 cat >conftest.adb
<<EOF
5677 pragma Warnings (Off);
5679 pragma Warnings (On);
5680 use type System.CRTL.int64;
5681 procedure conftest is begin null; end conftest;
5683 acx_cv_cc_gcc_supports_ada
=no
5684 # There is a bug in old released versions of GCC which causes the
5685 # driver to exit successfully when the appropriate language module
5686 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5687 # Therefore we must check for the error message as well as an
5688 # unsuccessful exit.
5689 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5690 # given a .adb file, but produce no object file. So we must check
5691 # if an object file was really produced to guard against this.
5692 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5693 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5694 acx_cv_cc_gcc_supports_ada
=yes
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5699 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5701 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5711 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_GDC+:} false
; then :
5715 $as_echo_n "(cached) " >&6
5717 if test -n "$GDC"; then
5718 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir
=.
5725 for ac_exec_ext
in '' $ac_executable_extensions; do
5726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 if test -n "$GDC"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5740 $as_echo "$GDC" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5748 if test -z "$ac_cv_prog_GDC"; then
5750 # Extract the first word of "gdc", so it can be a program name with args.
5751 set dummy gdc
; ac_word
=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5757 if test -n "$ac_ct_GDC"; then
5758 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir
=.
5765 for ac_exec_ext
in '' $ac_executable_extensions; do
5766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_GDC
="gdc"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5778 if test -n "$ac_ct_GDC"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5780 $as_echo "$ac_ct_GDC" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5786 if test "x$ac_ct_GDC" = x
; then
5789 case $cross_compiling:$ac_tool_warned in
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned
=yes ;;
5798 GDC
="$ac_cv_prog_GDC"
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5802 $as_echo_n "checking whether the D compiler works... " >&6; }
5803 if ${acx_cv_d_compiler_works+:} false
; then :
5804 $as_echo_n "(cached) " >&6
5806 cat >conftest.d
<<EOF
5807 module conftest; int main() { return 0; }
5809 acx_cv_d_compiler_works
=no
5810 if test "x$GDC" != xno
; then
5811 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5812 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5813 acx_cv_d_compiler_works
=yes
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5819 $as_echo "$acx_cv_d_compiler_works" >&6; }
5820 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5827 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5828 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5829 $as_echo_n "(cached) " >&6
5833 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5834 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5835 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5838 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5841 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5842 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5845 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5852 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5853 do_compare
="$gcc_cv_prog_cmp_skip"
5857 # Check whether --enable-bootstrap was given.
5858 if test "${enable_bootstrap+set}" = set; then :
5859 enableval
=$enable_bootstrap;
5861 enable_bootstrap
=default
5865 # Issue errors and warnings for invalid/strange bootstrap combinations.
5866 if test -r $srcdir/gcc
/configure
; then
5872 case "$have_compiler:$host:$target:$enable_bootstrap" in
5875 # Default behavior. Enable bootstrap if we have a compiler
5876 # and we are in a native configuration.
5877 yes:$build:$build:default
)
5878 enable_bootstrap
=yes ;;
5881 enable_bootstrap
=no
;;
5883 # We have a compiler and we are in a native configuration, bootstrap is ok
5884 yes:$build:$build:yes)
5887 # Other configurations, but we have a compiler. Assume the user knows
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5891 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5894 # No compiler: if they passed --enable-bootstrap explicitly, fail
5896 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5898 # Fail if wrong command line
5900 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5904 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5905 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5906 # require C++11 (or higher).
5907 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5908 CXX
="$CXX -std=c++11"
5909 elif test "$have_compiler" = yes; then
5910 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5912 ac_cpp
='$CXXCPP $CPPFLAGS'
5913 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5919 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5920 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5927 // If the compiler admits that it is not ready for C++11, why torture it?
5928 // Hopefully, this will speed up the test.
5932 #error "This is not a C++ compiler"
5934 #elif __cplusplus < 201103L
5936 #error "This is not a C++11 compiler"
5943 namespace test_static_assert
5946 template <typename T>
5949 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5954 namespace test_final_override
5963 struct Derived : public Base
5965 virtual ~Derived() override {}
5966 virtual void f() override {}
5971 namespace test_double_right_angle_brackets
5974 template < typename T >
5977 typedef check<void> single_type;
5978 typedef check<check<void>> double_type;
5979 typedef check<check<check<void>>> triple_type;
5980 typedef check<check<check<check<void>>>> quadruple_type;
5984 namespace test_decltype
5997 namespace test_type_deduction
6000 template < typename T1, typename T2 >
6003 static const bool value = false;
6006 template < typename T >
6007 struct is_same<T, T>
6009 static const bool value = true;
6012 template < typename T1, typename T2 >
6014 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6020 test(const int c, volatile int v)
6022 static_assert(is_same<int, decltype(0)>::value == true, "");
6023 static_assert(is_same<int, decltype(c)>::value == false, "");
6024 static_assert(is_same<int, decltype(v)>::value == false, "");
6027 auto sumi = ac + av + 'x';
6028 auto sumf = ac + av + 1.0;
6029 static_assert(is_same<int, decltype(ac)>::value == true, "");
6030 static_assert(is_same<int, decltype(av)>::value == true, "");
6031 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6032 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6033 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6034 return (sumf > 0.0) ? sumi : add(c, v);
6039 namespace test_noexcept
6042 int f() { return 0; }
6043 int g() noexcept { return 0; }
6045 static_assert(noexcept(f()) == false, "");
6046 static_assert(noexcept(g()) == true, "");
6050 namespace test_constexpr
6053 template < typename CharT >
6054 unsigned long constexpr
6055 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6057 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6060 template < typename CharT >
6061 unsigned long constexpr
6062 strlen_c(const CharT *const s) noexcept
6064 return strlen_c_r(s, 0UL);
6067 static_assert(strlen_c("") == 0UL, "");
6068 static_assert(strlen_c("1") == 1UL, "");
6069 static_assert(strlen_c("example") == 7UL, "");
6070 static_assert(strlen_c("another\0example") == 7UL, "");
6074 namespace test_rvalue_references
6080 static constexpr int value = N;
6083 answer<1> f(int&) { return answer<1>(); }
6084 answer<2> f(const int&) { return answer<2>(); }
6085 answer<3> f(int&&) { return answer<3>(); }
6092 static_assert(decltype(f(i))::value == 1, "");
6093 static_assert(decltype(f(c))::value == 2, "");
6094 static_assert(decltype(f(0))::value == 3, "");
6099 namespace test_uniform_initialization
6104 static const int zero {};
6105 static const int one {1};
6108 static_assert(test::zero == 0, "");
6109 static_assert(test::one == 1, "");
6113 namespace test_lambdas
6119 auto lambda1 = [](){};
6120 auto lambda2 = lambda1;
6128 auto a = [](int i, int j){ return i + j; }(1, 2);
6129 auto b = []() -> int { return '0'; }();
6130 auto c = [=](){ return a + b; }();
6131 auto d = [&](){ return c; }();
6132 auto e = [a, &b](int x) mutable {
6133 const auto identity = [](int y){ return y; };
6134 for (auto i = 0; i < a; ++i)
6136 return x + identity(a + b);
6138 return a + b + c + d + e;
6144 const auto nullary = [](){ return 0; };
6145 const auto unary = [](int x){ return x; };
6146 using nullary_t = decltype(nullary);
6147 using unary_t = decltype(unary);
6148 const auto higher1st = [](nullary_t f){ return f(); };
6149 const auto higher2nd = [unary](nullary_t f1){
6150 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6152 return higher1st(nullary) + higher2nd(nullary)(unary);
6157 namespace test_variadic_templates
6163 template <int N0, int... N1toN>
6164 struct sum<N0, N1toN...>
6166 static constexpr auto value = N0 + sum<N1toN...>::value;
6172 static constexpr auto value = 0;
6175 static_assert(sum<>::value == 0, "");
6176 static_assert(sum<1>::value == 1, "");
6177 static_assert(sum<23>::value == 23, "");
6178 static_assert(sum<1, 2>::value == 3, "");
6179 static_assert(sum<5, 5, 11>::value == 21, "");
6180 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6184 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6185 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6187 namespace test_template_alias_sfinae
6192 template<typename T>
6193 using member = typename T::member_type;
6195 template<typename T>
6198 template<typename T>
6199 void func(member<T>*) {}
6203 void test() { func<foo>(0); }
6207 } // namespace cxx11
6209 #endif // __cplusplus >= 201103L
6214 if ac_fn_cxx_try_compile
"$LINENO"; then :
6215 ax_cv_cxx_compile_cxx11
=yes
6217 ax_cv_cxx_compile_cxx11
=no
6219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6222 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6223 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6227 if test x
$ac_success = xno
; then
6228 for alternative
in ${ax_cxx_compile_alternatives}; do
6229 switch
="-std=gnu++${alternative}"
6230 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6232 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6233 if eval \
${$cachevar+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6242 // If the compiler admits that it is not ready for C++11, why torture it?
6243 // Hopefully, this will speed up the test.
6247 #error "This is not a C++ compiler"
6249 #elif __cplusplus < 201103L
6251 #error "This is not a C++11 compiler"
6258 namespace test_static_assert
6261 template <typename T>
6264 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6269 namespace test_final_override
6278 struct Derived : public Base
6280 virtual ~Derived() override {}
6281 virtual void f() override {}
6286 namespace test_double_right_angle_brackets
6289 template < typename T >
6292 typedef check<void> single_type;
6293 typedef check<check<void>> double_type;
6294 typedef check<check<check<void>>> triple_type;
6295 typedef check<check<check<check<void>>>> quadruple_type;
6299 namespace test_decltype
6312 namespace test_type_deduction
6315 template < typename T1, typename T2 >
6318 static const bool value = false;
6321 template < typename T >
6322 struct is_same<T, T>
6324 static const bool value = true;
6327 template < typename T1, typename T2 >
6329 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6335 test(const int c, volatile int v)
6337 static_assert(is_same<int, decltype(0)>::value == true, "");
6338 static_assert(is_same<int, decltype(c)>::value == false, "");
6339 static_assert(is_same<int, decltype(v)>::value == false, "");
6342 auto sumi = ac + av + 'x';
6343 auto sumf = ac + av + 1.0;
6344 static_assert(is_same<int, decltype(ac)>::value == true, "");
6345 static_assert(is_same<int, decltype(av)>::value == true, "");
6346 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6347 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6348 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6349 return (sumf > 0.0) ? sumi : add(c, v);
6354 namespace test_noexcept
6357 int f() { return 0; }
6358 int g() noexcept { return 0; }
6360 static_assert(noexcept(f()) == false, "");
6361 static_assert(noexcept(g()) == true, "");
6365 namespace test_constexpr
6368 template < typename CharT >
6369 unsigned long constexpr
6370 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6372 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6375 template < typename CharT >
6376 unsigned long constexpr
6377 strlen_c(const CharT *const s) noexcept
6379 return strlen_c_r(s, 0UL);
6382 static_assert(strlen_c("") == 0UL, "");
6383 static_assert(strlen_c("1") == 1UL, "");
6384 static_assert(strlen_c("example") == 7UL, "");
6385 static_assert(strlen_c("another\0example") == 7UL, "");
6389 namespace test_rvalue_references
6395 static constexpr int value = N;
6398 answer<1> f(int&) { return answer<1>(); }
6399 answer<2> f(const int&) { return answer<2>(); }
6400 answer<3> f(int&&) { return answer<3>(); }
6407 static_assert(decltype(f(i))::value == 1, "");
6408 static_assert(decltype(f(c))::value == 2, "");
6409 static_assert(decltype(f(0))::value == 3, "");
6414 namespace test_uniform_initialization
6419 static const int zero {};
6420 static const int one {1};
6423 static_assert(test::zero == 0, "");
6424 static_assert(test::one == 1, "");
6428 namespace test_lambdas
6434 auto lambda1 = [](){};
6435 auto lambda2 = lambda1;
6443 auto a = [](int i, int j){ return i + j; }(1, 2);
6444 auto b = []() -> int { return '0'; }();
6445 auto c = [=](){ return a + b; }();
6446 auto d = [&](){ return c; }();
6447 auto e = [a, &b](int x) mutable {
6448 const auto identity = [](int y){ return y; };
6449 for (auto i = 0; i < a; ++i)
6451 return x + identity(a + b);
6453 return a + b + c + d + e;
6459 const auto nullary = [](){ return 0; };
6460 const auto unary = [](int x){ return x; };
6461 using nullary_t = decltype(nullary);
6462 using unary_t = decltype(unary);
6463 const auto higher1st = [](nullary_t f){ return f(); };
6464 const auto higher2nd = [unary](nullary_t f1){
6465 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6467 return higher1st(nullary) + higher2nd(nullary)(unary);
6472 namespace test_variadic_templates
6478 template <int N0, int... N1toN>
6479 struct sum<N0, N1toN...>
6481 static constexpr auto value = N0 + sum<N1toN...>::value;
6487 static constexpr auto value = 0;
6490 static_assert(sum<>::value == 0, "");
6491 static_assert(sum<1>::value == 1, "");
6492 static_assert(sum<23>::value == 23, "");
6493 static_assert(sum<1, 2>::value == 3, "");
6494 static_assert(sum<5, 5, 11>::value == 21, "");
6495 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6499 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6500 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6502 namespace test_template_alias_sfinae
6507 template<typename T>
6508 using member = typename T::member_type;
6510 template<typename T>
6513 template<typename T>
6514 void func(member<T>*) {}
6518 void test() { func<foo>(0); }
6522 } // namespace cxx11
6524 #endif // __cplusplus >= 201103L
6529 if ac_fn_cxx_try_compile
"$LINENO"; then :
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 eval ac_res
=\$
$cachevar
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6539 $as_echo "$ac_res" >&6; }
6540 if eval test x\$
$cachevar = xyes
; then
6542 if test -n "$CXXCPP" ; then
6543 CXXCPP
="$CXXCPP $switch"
6551 if test x
$ac_success = xno
; then
6552 for alternative
in ${ax_cxx_compile_alternatives}; do
6553 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6554 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6556 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6557 if eval \${$cachevar+:} false; then :
6558 $as_echo_n "(cached
) " >&6
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6566 // If the compiler admits that it is not ready for C++11, why torture it?
6567 // Hopefully, this will speed up the test.
6571 #error "This is not a C
++ compiler
"
6573 #elif __cplusplus < 201103L
6575 #error "This is not a C
++11 compiler
"
6582 namespace test_static_assert
6585 template <typename T>
6588 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6593 namespace test_final_override
6602 struct Derived : public Base
6604 virtual ~Derived() override {}
6605 virtual void f() override {}
6610 namespace test_double_right_angle_brackets
6613 template < typename T >
6616 typedef check<void> single_type;
6617 typedef check<check<void>> double_type;
6618 typedef check<check<check<void>>> triple_type;
6619 typedef check<check<check<check<void>>>> quadruple_type;
6623 namespace test_decltype
6636 namespace test_type_deduction
6639 template < typename T1, typename T2 >
6642 static const bool value = false;
6645 template < typename T >
6646 struct is_same<T, T>
6648 static const bool value = true;
6651 template < typename T1, typename T2 >
6653 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6659 test(const int c, volatile int v)
6661 static_assert(is_same<int, decltype(0)>::value == true, "");
6662 static_assert(is_same<int, decltype(c)>::value == false, "");
6663 static_assert(is_same<int, decltype(v)>::value == false, "");
6666 auto sumi = ac + av + 'x';
6667 auto sumf = ac + av + 1.0;
6668 static_assert(is_same<int, decltype(ac)>::value == true, "");
6669 static_assert(is_same<int, decltype(av)>::value == true, "");
6670 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6671 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6672 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6673 return (sumf > 0.0) ? sumi : add(c, v);
6678 namespace test_noexcept
6681 int f() { return 0; }
6682 int g() noexcept { return 0; }
6684 static_assert(noexcept(f()) == false, "");
6685 static_assert(noexcept(g()) == true, "");
6689 namespace test_constexpr
6692 template < typename CharT >
6693 unsigned long constexpr
6694 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6696 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6699 template < typename CharT >
6700 unsigned long constexpr
6701 strlen_c(const CharT *const s) noexcept
6703 return strlen_c_r(s, 0UL);
6706 static_assert(strlen_c("") == 0UL, "");
6707 static_assert(strlen_c("1") == 1UL, "");
6708 static_assert(strlen_c("example
") == 7UL, "");
6709 static_assert(strlen_c("another\
0example
") == 7UL, "");
6713 namespace test_rvalue_references
6719 static constexpr int value = N;
6722 answer<1> f(int&) { return answer<1>(); }
6723 answer<2> f(const int&) { return answer<2>(); }
6724 answer<3> f(int&&) { return answer<3>(); }
6731 static_assert(decltype(f(i))::value == 1, "");
6732 static_assert(decltype(f(c))::value == 2, "");
6733 static_assert(decltype(f(0))::value == 3, "");
6738 namespace test_uniform_initialization
6743 static const int zero {};
6744 static const int one {1};
6747 static_assert(test::zero == 0, "");
6748 static_assert(test::one == 1, "");
6752 namespace test_lambdas
6758 auto lambda1 = [](){};
6759 auto lambda2 = lambda1;
6767 auto a = [](int i, int j){ return i + j; }(1, 2);
6768 auto b = []() -> int { return '0'; }();
6769 auto c = [=](){ return a + b; }();
6770 auto d = [&](){ return c; }();
6771 auto e = [a, &b](int x) mutable {
6772 const auto identity = [](int y){ return y; };
6773 for (auto i = 0; i < a; ++i)
6775 return x + identity(a + b);
6777 return a + b + c + d + e;
6783 const auto nullary = [](){ return 0; };
6784 const auto unary = [](int x){ return x; };
6785 using nullary_t = decltype(nullary);
6786 using unary_t = decltype(unary);
6787 const auto higher1st = [](nullary_t f){ return f(); };
6788 const auto higher2nd = [unary](nullary_t f1){
6789 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6791 return higher1st(nullary) + higher2nd(nullary)(unary);
6796 namespace test_variadic_templates
6802 template <int N0, int... N1toN>
6803 struct sum<N0, N1toN...>
6805 static constexpr auto value = N0 + sum<N1toN...>::value;
6811 static constexpr auto value = 0;
6814 static_assert(sum<>::value == 0, "");
6815 static_assert(sum<1>::value == 1, "");
6816 static_assert(sum<23>::value == 23, "");
6817 static_assert(sum<1, 2>::value == 3, "");
6818 static_assert(sum<5, 5, 11>::value == 21, "");
6819 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6823 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6824 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6826 namespace test_template_alias_sfinae
6831 template<typename T>
6832 using member = typename T::member_type;
6834 template<typename T>
6837 template<typename T>
6838 void func(member<T>*) {}
6842 void test() { func<foo>(0); }
6846 } // namespace cxx11
6848 #endif // __cplusplus >= 201103L
6853 if ac_fn_cxx_try_compile "$LINENO"; then :
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 eval ac_res=\$$cachevar
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if eval test x\$$cachevar = xyes; then
6866 if test -n "$CXXCPP" ; then
6867 CXXCPP="$CXXCPP $switch"
6873 if test x$ac_success = xyes; then
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6885 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6886 if test x$ac_success = xno; then
6887 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6890 if test x$ac_success = xno; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6893 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6897 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6903 if test "${build}" != "${host}"; then
6904 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6906 ac_cpp
='$CXXCPP $CPPFLAGS'
6907 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6911 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6912 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6913 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6914 CXX
="$CXX_FOR_BUILD"
6915 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6916 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6918 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6919 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6920 $as_echo_n "(cached) " >&6
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6926 // If the compiler admits that it is not ready for C++11, why torture it?
6927 // Hopefully, this will speed up the test.
6931 #error "This is not a C++ compiler"
6933 #elif __cplusplus < 201103L
6935 #error "This is not a C++11 compiler"
6942 namespace test_static_assert
6945 template <typename T>
6948 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6953 namespace test_final_override
6962 struct Derived : public Base
6964 virtual ~Derived() override {}
6965 virtual void f() override {}
6970 namespace test_double_right_angle_brackets
6973 template < typename T >
6976 typedef check<void> single_type;
6977 typedef check<check<void>> double_type;
6978 typedef check<check<check<void>>> triple_type;
6979 typedef check<check<check<check<void>>>> quadruple_type;
6983 namespace test_decltype
6996 namespace test_type_deduction
6999 template < typename T1, typename T2 >
7002 static const bool value = false;
7005 template < typename T >
7006 struct is_same<T, T>
7008 static const bool value = true;
7011 template < typename T1, typename T2 >
7013 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7019 test(const int c, volatile int v)
7021 static_assert(is_same<int, decltype(0)>::value == true, "");
7022 static_assert(is_same<int, decltype(c)>::value == false, "");
7023 static_assert(is_same<int, decltype(v)>::value == false, "");
7026 auto sumi = ac + av + 'x';
7027 auto sumf = ac + av + 1.0;
7028 static_assert(is_same<int, decltype(ac)>::value == true, "");
7029 static_assert(is_same<int, decltype(av)>::value == true, "");
7030 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7031 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7032 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7033 return (sumf > 0.0) ? sumi : add(c, v);
7038 namespace test_noexcept
7041 int f() { return 0; }
7042 int g() noexcept { return 0; }
7044 static_assert(noexcept(f()) == false, "");
7045 static_assert(noexcept(g()) == true, "");
7049 namespace test_constexpr
7052 template < typename CharT >
7053 unsigned long constexpr
7054 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7056 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7059 template < typename CharT >
7060 unsigned long constexpr
7061 strlen_c(const CharT *const s) noexcept
7063 return strlen_c_r(s, 0UL);
7066 static_assert(strlen_c("") == 0UL, "");
7067 static_assert(strlen_c("1") == 1UL, "");
7068 static_assert(strlen_c("example") == 7UL, "");
7069 static_assert(strlen_c("another\0example") == 7UL, "");
7073 namespace test_rvalue_references
7079 static constexpr int value = N;
7082 answer<1> f(int&) { return answer<1>(); }
7083 answer<2> f(const int&) { return answer<2>(); }
7084 answer<3> f(int&&) { return answer<3>(); }
7091 static_assert(decltype(f(i))::value == 1, "");
7092 static_assert(decltype(f(c))::value == 2, "");
7093 static_assert(decltype(f(0))::value == 3, "");
7098 namespace test_uniform_initialization
7103 static const int zero {};
7104 static const int one {1};
7107 static_assert(test::zero == 0, "");
7108 static_assert(test::one == 1, "");
7112 namespace test_lambdas
7118 auto lambda1 = [](){};
7119 auto lambda2 = lambda1;
7127 auto a = [](int i, int j){ return i + j; }(1, 2);
7128 auto b = []() -> int { return '0'; }();
7129 auto c = [=](){ return a + b; }();
7130 auto d = [&](){ return c; }();
7131 auto e = [a, &b](int x) mutable {
7132 const auto identity = [](int y){ return y; };
7133 for (auto i = 0; i < a; ++i)
7135 return x + identity(a + b);
7137 return a + b + c + d + e;
7143 const auto nullary = [](){ return 0; };
7144 const auto unary = [](int x){ return x; };
7145 using nullary_t = decltype(nullary);
7146 using unary_t = decltype(unary);
7147 const auto higher1st = [](nullary_t f){ return f(); };
7148 const auto higher2nd = [unary](nullary_t f1){
7149 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7151 return higher1st(nullary) + higher2nd(nullary)(unary);
7156 namespace test_variadic_templates
7162 template <int N0, int... N1toN>
7163 struct sum<N0, N1toN...>
7165 static constexpr auto value = N0 + sum<N1toN...>::value;
7171 static constexpr auto value = 0;
7174 static_assert(sum<>::value == 0, "");
7175 static_assert(sum<1>::value == 1, "");
7176 static_assert(sum<23>::value == 23, "");
7177 static_assert(sum<1, 2>::value == 3, "");
7178 static_assert(sum<5, 5, 11>::value == 21, "");
7179 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7183 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7184 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7186 namespace test_template_alias_sfinae
7191 template<typename T>
7192 using member = typename T::member_type;
7194 template<typename T>
7197 template<typename T>
7198 void func(member<T>*) {}
7202 void test() { func<foo>(0); }
7206 } // namespace cxx11
7208 #endif // __cplusplus >= 201103L
7213 if ac_fn_cxx_try_compile
"$LINENO"; then :
7214 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7216 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7221 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7222 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7226 if test x
$ac_success = xno
; then
7227 for alternative
in ${ax_cxx_compile_alternatives}; do
7228 switch
="-std=gnu++${alternative}"
7229 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7231 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7232 if eval \
${$cachevar+:} false
; then :
7233 $as_echo_n "(cached) " >&6
7237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 // If the compiler admits that it is not ready for C++11, why torture it?
7242 // Hopefully, this will speed up the test.
7246 #error "This is not a C++ compiler"
7248 #elif __cplusplus < 201103L
7250 #error "This is not a C++11 compiler"
7257 namespace test_static_assert
7260 template <typename T>
7263 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7268 namespace test_final_override
7277 struct Derived : public Base
7279 virtual ~Derived() override {}
7280 virtual void f() override {}
7285 namespace test_double_right_angle_brackets
7288 template < typename T >
7291 typedef check<void> single_type;
7292 typedef check<check<void>> double_type;
7293 typedef check<check<check<void>>> triple_type;
7294 typedef check<check<check<check<void>>>> quadruple_type;
7298 namespace test_decltype
7311 namespace test_type_deduction
7314 template < typename T1, typename T2 >
7317 static const bool value = false;
7320 template < typename T >
7321 struct is_same<T, T>
7323 static const bool value = true;
7326 template < typename T1, typename T2 >
7328 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7334 test(const int c, volatile int v)
7336 static_assert(is_same<int, decltype(0)>::value == true, "");
7337 static_assert(is_same<int, decltype(c)>::value == false, "");
7338 static_assert(is_same<int, decltype(v)>::value == false, "");
7341 auto sumi = ac + av + 'x';
7342 auto sumf = ac + av + 1.0;
7343 static_assert(is_same<int, decltype(ac)>::value == true, "");
7344 static_assert(is_same<int, decltype(av)>::value == true, "");
7345 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7346 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7347 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7348 return (sumf > 0.0) ? sumi : add(c, v);
7353 namespace test_noexcept
7356 int f() { return 0; }
7357 int g() noexcept { return 0; }
7359 static_assert(noexcept(f()) == false, "");
7360 static_assert(noexcept(g()) == true, "");
7364 namespace test_constexpr
7367 template < typename CharT >
7368 unsigned long constexpr
7369 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7371 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7374 template < typename CharT >
7375 unsigned long constexpr
7376 strlen_c(const CharT *const s) noexcept
7378 return strlen_c_r(s, 0UL);
7381 static_assert(strlen_c("") == 0UL, "");
7382 static_assert(strlen_c("1") == 1UL, "");
7383 static_assert(strlen_c("example") == 7UL, "");
7384 static_assert(strlen_c("another\0example") == 7UL, "");
7388 namespace test_rvalue_references
7394 static constexpr int value = N;
7397 answer<1> f(int&) { return answer<1>(); }
7398 answer<2> f(const int&) { return answer<2>(); }
7399 answer<3> f(int&&) { return answer<3>(); }
7406 static_assert(decltype(f(i))::value == 1, "");
7407 static_assert(decltype(f(c))::value == 2, "");
7408 static_assert(decltype(f(0))::value == 3, "");
7413 namespace test_uniform_initialization
7418 static const int zero {};
7419 static const int one {1};
7422 static_assert(test::zero == 0, "");
7423 static_assert(test::one == 1, "");
7427 namespace test_lambdas
7433 auto lambda1 = [](){};
7434 auto lambda2 = lambda1;
7442 auto a = [](int i, int j){ return i + j; }(1, 2);
7443 auto b = []() -> int { return '0'; }();
7444 auto c = [=](){ return a + b; }();
7445 auto d = [&](){ return c; }();
7446 auto e = [a, &b](int x) mutable {
7447 const auto identity = [](int y){ return y; };
7448 for (auto i = 0; i < a; ++i)
7450 return x + identity(a + b);
7452 return a + b + c + d + e;
7458 const auto nullary = [](){ return 0; };
7459 const auto unary = [](int x){ return x; };
7460 using nullary_t = decltype(nullary);
7461 using unary_t = decltype(unary);
7462 const auto higher1st = [](nullary_t f){ return f(); };
7463 const auto higher2nd = [unary](nullary_t f1){
7464 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7466 return higher1st(nullary) + higher2nd(nullary)(unary);
7471 namespace test_variadic_templates
7477 template <int N0, int... N1toN>
7478 struct sum<N0, N1toN...>
7480 static constexpr auto value = N0 + sum<N1toN...>::value;
7486 static constexpr auto value = 0;
7489 static_assert(sum<>::value == 0, "");
7490 static_assert(sum<1>::value == 1, "");
7491 static_assert(sum<23>::value == 23, "");
7492 static_assert(sum<1, 2>::value == 3, "");
7493 static_assert(sum<5, 5, 11>::value == 21, "");
7494 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7498 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7499 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7501 namespace test_template_alias_sfinae
7506 template<typename T>
7507 using member = typename T::member_type;
7509 template<typename T>
7512 template<typename T>
7513 void func(member<T>*) {}
7517 void test() { func<foo>(0); }
7521 } // namespace cxx11
7523 #endif // __cplusplus >= 201103L
7528 if ac_fn_cxx_try_compile
"$LINENO"; then :
7533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7536 eval ac_res
=\$
$cachevar
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7538 $as_echo "$ac_res" >&6; }
7539 if eval test x\$
$cachevar = xyes
; then
7541 if test -n "$CXXCPP" ; then
7542 CXXCPP
="$CXXCPP $switch"
7550 if test x
$ac_success = xno
; then
7551 for alternative
in ${ax_cxx_compile_alternatives}; do
7552 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7553 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7555 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7556 if eval \${$cachevar+:} false; then :
7557 $as_echo_n "(cached
) " >&6
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 // If the compiler admits that it is not ready for C++11, why torture it?
7566 // Hopefully, this will speed up the test.
7570 #error "This is not a C
++ compiler
"
7572 #elif __cplusplus < 201103L
7574 #error "This is not a C
++11 compiler
"
7581 namespace test_static_assert
7584 template <typename T>
7587 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7592 namespace test_final_override
7601 struct Derived : public Base
7603 virtual ~Derived() override {}
7604 virtual void f() override {}
7609 namespace test_double_right_angle_brackets
7612 template < typename T >
7615 typedef check<void> single_type;
7616 typedef check<check<void>> double_type;
7617 typedef check<check<check<void>>> triple_type;
7618 typedef check<check<check<check<void>>>> quadruple_type;
7622 namespace test_decltype
7635 namespace test_type_deduction
7638 template < typename T1, typename T2 >
7641 static const bool value = false;
7644 template < typename T >
7645 struct is_same<T, T>
7647 static const bool value = true;
7650 template < typename T1, typename T2 >
7652 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7658 test(const int c, volatile int v)
7660 static_assert(is_same<int, decltype(0)>::value == true, "");
7661 static_assert(is_same<int, decltype(c)>::value == false, "");
7662 static_assert(is_same<int, decltype(v)>::value == false, "");
7665 auto sumi = ac + av + 'x';
7666 auto sumf = ac + av + 1.0;
7667 static_assert(is_same<int, decltype(ac)>::value == true, "");
7668 static_assert(is_same<int, decltype(av)>::value == true, "");
7669 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7670 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7671 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7672 return (sumf > 0.0) ? sumi : add(c, v);
7677 namespace test_noexcept
7680 int f() { return 0; }
7681 int g() noexcept { return 0; }
7683 static_assert(noexcept(f()) == false, "");
7684 static_assert(noexcept(g()) == true, "");
7688 namespace test_constexpr
7691 template < typename CharT >
7692 unsigned long constexpr
7693 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7695 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7698 template < typename CharT >
7699 unsigned long constexpr
7700 strlen_c(const CharT *const s) noexcept
7702 return strlen_c_r(s, 0UL);
7705 static_assert(strlen_c("") == 0UL, "");
7706 static_assert(strlen_c("1") == 1UL, "");
7707 static_assert(strlen_c("example
") == 7UL, "");
7708 static_assert(strlen_c("another\
0example
") == 7UL, "");
7712 namespace test_rvalue_references
7718 static constexpr int value = N;
7721 answer<1> f(int&) { return answer<1>(); }
7722 answer<2> f(const int&) { return answer<2>(); }
7723 answer<3> f(int&&) { return answer<3>(); }
7730 static_assert(decltype(f(i))::value == 1, "");
7731 static_assert(decltype(f(c))::value == 2, "");
7732 static_assert(decltype(f(0))::value == 3, "");
7737 namespace test_uniform_initialization
7742 static const int zero {};
7743 static const int one {1};
7746 static_assert(test::zero == 0, "");
7747 static_assert(test::one == 1, "");
7751 namespace test_lambdas
7757 auto lambda1 = [](){};
7758 auto lambda2 = lambda1;
7766 auto a = [](int i, int j){ return i + j; }(1, 2);
7767 auto b = []() -> int { return '0'; }();
7768 auto c = [=](){ return a + b; }();
7769 auto d = [&](){ return c; }();
7770 auto e = [a, &b](int x) mutable {
7771 const auto identity = [](int y){ return y; };
7772 for (auto i = 0; i < a; ++i)
7774 return x + identity(a + b);
7776 return a + b + c + d + e;
7782 const auto nullary = [](){ return 0; };
7783 const auto unary = [](int x){ return x; };
7784 using nullary_t = decltype(nullary);
7785 using unary_t = decltype(unary);
7786 const auto higher1st = [](nullary_t f){ return f(); };
7787 const auto higher2nd = [unary](nullary_t f1){
7788 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7790 return higher1st(nullary) + higher2nd(nullary)(unary);
7795 namespace test_variadic_templates
7801 template <int N0, int... N1toN>
7802 struct sum<N0, N1toN...>
7804 static constexpr auto value = N0 + sum<N1toN...>::value;
7810 static constexpr auto value = 0;
7813 static_assert(sum<>::value == 0, "");
7814 static_assert(sum<1>::value == 1, "");
7815 static_assert(sum<23>::value == 23, "");
7816 static_assert(sum<1, 2>::value == 3, "");
7817 static_assert(sum<5, 5, 11>::value == 21, "");
7818 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7822 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7823 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7825 namespace test_template_alias_sfinae
7830 template<typename T>
7831 using member = typename T::member_type;
7833 template<typename T>
7836 template<typename T>
7837 void func(member<T>*) {}
7841 void test() { func<foo>(0); }
7845 } // namespace cxx11
7847 #endif // __cplusplus >= 201103L
7852 if ac_fn_cxx_try_compile "$LINENO"; then :
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 eval ac_res=\$$cachevar
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7862 $as_echo "$ac_res" >&6; }
7863 if eval test x\$$cachevar = xyes; then
7865 if test -n "$CXXCPP" ; then
7866 CXXCPP="$CXXCPP $switch"
7872 if test x$ac_success = xyes; then
7877 CXX_FOR_BUILD="$CXX"
7878 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7879 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7880 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7881 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7882 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7890 if test x$ac_success = xno; then
7891 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7894 if test x$ac_success = xno; then
7895 HAVE_CXX11_FOR_BUILD=0
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7897 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7899 HAVE_CXX11_FOR_BUILD=1
7901 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7909 # Check whether --enable-pgo-build was given.
7910 if test "${enable_pgo_build+set}" = set; then :
7911 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7917 # Issue errors and warnings for invalid/strange PGO build combinations.
7918 case "$have_compiler:$host:$target:$enable_pgo_build" in
7921 # Allow the PGO build only if we aren't building a compiler and
7922 # we are in a native configuration.
7923 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7925 # Disallow the PGO bootstrap if we are building a compiler.
7926 yes:*:*:yes |
yes:*:*:lto
)
7927 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7930 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7934 if test "$enable_pgo_build" != "no"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7936 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7937 old_CFLAGS
="$CFLAGS"
7938 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7939 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7948 PGO_BUILD_GEN_CFLAGS
=
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7951 CFLAGS
="$old_CFLAGS"
7952 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7954 $as_echo "yes" >&6; }
7955 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7962 if test "$enable_pgo_build" = "lto"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7964 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7965 old_CFLAGS
="$CFLAGS"
7966 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7967 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7972 if ac_fn_c_try_compile
"$LINENO"; then :
7975 PGO_BUILD_LTO_CFLAGS
=
7977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 CFLAGS
="$old_CFLAGS"
7979 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7981 $as_echo "yes" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7986 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7994 # Used for setting $lt_cv_objdir
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996 $as_echo_n "checking for objdir... " >&6; }
7997 if ${lt_cv_objdir+:} false
; then :
7998 $as_echo_n "(cached) " >&6
8000 rm -f .libs
2>/dev
/null
8001 mkdir .libs
2>/dev
/null
8002 if test -d .libs
; then
8005 # MS-DOS does not allow filenames that begin with a dot.
8008 rmdir .libs
2>/dev
/null
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011 $as_echo "$lt_cv_objdir" >&6; }
8012 objdir
=$lt_cv_objdir
8018 cat >>confdefs.h
<<_ACEOF
8019 #define LT_OBJDIR "$lt_cv_objdir/"
8024 # Check for GMP, MPFR and MPC
8027 if test -d ${srcdir}/gcc
; then
8031 if test -d ${srcdir}/gdb
; then
8032 if test "x$enable_gdb" != xno
; then
8037 gmplibs
="-lmpfr -lgmp"
8038 if test x
"$require_mpc" = "xyes" ; then
8039 gmplibs
="-lmpc $gmplibs"
8044 # Specify a location for mpc
8045 # check for this first so it ends up on the link line before mpfr.
8047 # Check whether --with-mpc was given.
8048 if test "${with_mpc+set}" = set; then :
8053 # Check whether --with-mpc-include was given.
8054 if test "${with_mpc_include+set}" = set; then :
8055 withval
=$with_mpc_include;
8059 # Check whether --with-mpc-lib was given.
8060 if test "${with_mpc_lib+set}" = set; then :
8061 withval
=$with_mpc_lib;
8065 if test "x$with_mpc" != x
; then
8066 gmplibs
="-L$with_mpc/lib $gmplibs"
8067 gmpinc
="-I$with_mpc/include $gmpinc"
8069 if test "x$with_mpc_include" != x
; then
8070 gmpinc
="-I$with_mpc_include $gmpinc"
8072 if test "x$with_mpc_lib" != x
; then
8073 gmplibs
="-L$with_mpc_lib $gmplibs"
8075 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8076 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8077 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8078 # Do not test the mpc version. Assume that it is sufficient, since
8079 # it is in the source tree, and the library has not been built yet
8080 # but it would be included on the link line in the version check below
8081 # hence making the test fail.
8085 # Specify a location for mpfr
8086 # check for this first so it ends up on the link line before gmp.
8088 # Check whether --with-mpfr was given.
8089 if test "${with_mpfr+set}" = set; then :
8094 # Check whether --with-mpfr-include was given.
8095 if test "${with_mpfr_include+set}" = set; then :
8096 withval
=$with_mpfr_include;
8100 # Check whether --with-mpfr-lib was given.
8101 if test "${with_mpfr_lib+set}" = set; then :
8102 withval
=$with_mpfr_lib;
8106 if test "x$with_mpfr" != x
; then
8107 gmplibs
="-L$with_mpfr/lib $gmplibs"
8108 gmpinc
="-I$with_mpfr/include $gmpinc"
8110 if test "x$with_mpfr_include" != x
; then
8111 gmpinc
="-I$with_mpfr_include $gmpinc"
8113 if test "x$with_mpfr_lib" != x
; then
8114 gmplibs
="-L$with_mpfr_lib $gmplibs"
8116 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8117 # MPFR v3.1.0 moved the sources into a src sub-directory.
8118 if ! test -d ${srcdir}/mpfr
/src
; then
8119 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8121 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8122 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8123 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8124 # Do not test the mpfr version. Assume that it is sufficient, since
8125 # it is in the source tree, and the library has not been built yet
8126 # but it would be included on the link line in the version check below
8127 # hence making the test fail.
8131 # Specify a location for gmp
8133 # Check whether --with-gmp was given.
8134 if test "${with_gmp+set}" = set; then :
8139 # Check whether --with-gmp-include was given.
8140 if test "${with_gmp_include+set}" = set; then :
8141 withval
=$with_gmp_include;
8145 # Check whether --with-gmp-lib was given.
8146 if test "${with_gmp_lib+set}" = set; then :
8147 withval
=$with_gmp_lib;
8152 if test "x$with_gmp" != x
; then
8153 gmplibs
="-L$with_gmp/lib $gmplibs"
8154 gmpinc
="-I$with_gmp/include $gmpinc"
8156 if test "x$with_gmp_include" != x
; then
8157 gmpinc
="-I$with_gmp_include $gmpinc"
8159 if test "x$with_gmp_lib" != x
; then
8160 gmplibs
="-L$with_gmp_lib $gmplibs"
8162 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8163 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8164 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8165 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8166 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8167 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8168 # Do not test the gmp version. Assume that it is sufficient, since
8169 # it is in the source tree, and the library has not been built yet
8170 # but it would be included on the link line in the version check below
8171 # hence making the test fail.
8175 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8177 saved_CFLAGS
="$CFLAGS"
8178 CFLAGS
="$CFLAGS $gmpinc"
8179 # Check for the recommended and required versions of GMP.
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8181 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8189 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8190 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8191 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8207 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8208 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8209 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8217 if ac_fn_c_try_compile
"$LINENO"; then :
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8219 $as_echo "yes" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8222 $as_echo "buggy but acceptable" >&6; }
8224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }; have_gmp
=no
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8231 # If we have GMP, check the MPFR version.
8232 if test x
"$have_gmp" = xyes
; then
8233 # Check for the recommended and required versions of MPFR.
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8235 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8244 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8252 if ac_fn_c_try_compile
"$LINENO"; then :
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8261 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8269 if ac_fn_c_try_compile
"$LINENO"; then :
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271 $as_echo "yes" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8274 $as_echo "buggy but acceptable" >&6; }
8276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }; have_gmp
=no
8281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8284 # Check for the MPC header version.
8285 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8286 # Check for the recommended and required versions of MPC.
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8288 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8296 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8304 if ac_fn_c_try_compile
"$LINENO"; then :
8305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8312 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8320 if ac_fn_c_try_compile
"$LINENO"; then :
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8325 $as_echo "buggy but acceptable" >&6; }
8327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }; have_gmp
=no
8332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 # Now check the MPFR library.
8336 if test x
"$have_gmp" = xyes
; then
8338 LIBS
="$LIBS $gmplibs"
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8340 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8353 mpfr_atan2 (n, n, x, MPFR_RNDN);
8354 mpfr_erfc (n, x, MPFR_RNDN);
8355 mpfr_subnormalize (x, t, MPFR_RNDN);
8363 if ac_fn_c_try_link
"$LINENO"; then :
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }; have_gmp
=no
8370 rm -f core conftest.err conftest.
$ac_objext \
8371 conftest
$ac_exeext conftest.
$ac_ext
8375 # Now check the MPC library
8376 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8378 LIBS
="$LIBS $gmplibs"
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8380 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8390 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8391 mpc_cosh (c, c, MPC_RNDNN);
8392 mpc_pow (c, c, c, MPC_RNDNN);
8393 mpc_acosh (c, c, MPC_RNDNN);
8400 if ac_fn_c_try_link
"$LINENO"; then :
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8402 $as_echo "yes" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }; have_gmp
=no
8407 rm -f core conftest.err conftest.
$ac_objext \
8408 conftest
$ac_exeext conftest.
$ac_ext
8412 CFLAGS
="$saved_CFLAGS"
8414 # The library versions listed in the error message below should match
8415 # the HARD-minimums enforced above.
8416 if test x
$have_gmp != xyes
; then
8417 if test -d ${srcdir}/gcc
; then
8418 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8419 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8420 their locations. Source code for these libraries can be found at
8421 their respective hosting sites as well as at
8422 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8423 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8424 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8425 make sure that you have installed both the libraries and the header
8426 files. They may be located in separate packages." "$LINENO" 5
8428 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8429 Try the --with-gmp and/or --with-mpfr options to specify
8430 their locations. If you obtained GMP and/or MPFR from a vendor
8431 distribution package, make sure that you have installed both the libraries
8432 and the header files. They may be located in separate packages." "$LINENO" 5
8437 # Flags needed for both GMP, MPFR and/or MPC.
8445 # Libraries to use for stage1 or when not bootstrapping.
8447 # Check whether --with-stage1-libs was given.
8448 if test "${with_stage1_libs+set}" = set; then :
8449 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8452 stage1_libs
=$withval
8460 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8461 # default is yes if gcc is being built; no otherwise. The reason for
8462 # this default is that gdb is sometimes linked against GNU Source
8463 # Highlight, which is a shared library that uses C++ exceptions. In
8464 # this case, -static-libstdc++ will cause crashes.
8466 # Check whether --with-static-standard-libraries was given.
8467 if test "${with_static_standard_libraries+set}" = set; then :
8468 withval
=$with_static_standard_libraries;
8470 with_static_standard_libraries
=auto
8473 if test "$with_static_standard_libraries" = auto
; then
8474 with_static_standard_libraries
=$have_compiler
8477 # Linker flags to use for stage1 or when not bootstrapping.
8479 # Check whether --with-stage1-ldflags was given.
8480 if test "${with_stage1_ldflags+set}" = set; then :
8481 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8484 stage1_ldflags
=$withval
8488 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8489 # if supported. But if the user explicitly specified the libraries to use,
8490 # trust that they are doing what they want.
8491 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8492 -a "$have_static_libs" = yes; then
8493 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8499 # Libraries to use for stage2 and later builds.
8501 # Check whether --with-boot-libs was given.
8502 if test "${with_boot_libs+set}" = set; then :
8503 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8506 poststage1_libs
=$withval
8514 # Linker flags to use for stage2 and later builds.
8516 # Check whether --with-boot-ldflags was given.
8517 if test "${with_boot_ldflags+set}" = set; then :
8518 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8521 poststage1_ldflags
=$withval
8525 # In stages 2 and 3, default to linking libstdc++ and libgcc
8526 # statically. But if the user explicitly specified the libraries to
8527 # use, trust that they are doing what they want.
8528 if test "$poststage1_libs" = ""; then
8529 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8535 # GCC GRAPHITE dependency isl.
8536 # Basic setup is inlined here, actual checks are in config/isl.m4
8539 # Check whether --with-isl was given.
8540 if test "${with_isl+set}" = set; then :
8545 # Treat --without-isl as a request to disable
8546 # GRAPHITE support and skip all following checks.
8547 if test "x$with_isl" != "xno"; then
8551 # Check whether --with-isl-include was given.
8552 if test "${with_isl_include+set}" = set; then :
8553 withval
=$with_isl_include;
8557 # Check whether --with-isl-lib was given.
8558 if test "${with_isl_lib+set}" = set; then :
8559 withval
=$with_isl_lib;
8563 # Check whether --enable-isl-version-check was given.
8564 if test "${enable_isl_version_check+set}" = set; then :
8565 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8567 ENABLE_ISL_CHECK
=yes
8571 # Initialize isllibs and islinc.
8580 isllibs
="-L$with_isl/lib"
8581 islinc
="-I$with_isl/include"
8584 if test "x${with_isl_include}" != x
; then
8585 islinc
="-I$with_isl_include"
8587 if test "x${with_isl_lib}" != x
; then
8588 isllibs
="-L$with_isl_lib"
8590 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8591 && test -d ${srcdir}/isl
; then
8592 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8593 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8596 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8599 isllibs
="${isllibs} -lisl"
8603 if test "${ENABLE_ISL_CHECK}" = yes ; then
8604 _isl_saved_CFLAGS
=$CFLAGS
8605 _isl_saved_LDFLAGS
=$LDFLAGS
8606 _isl_saved_LIBS
=$LIBS
8608 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8609 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8610 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8613 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <isl/schedule.h>
8620 isl_options_set_schedule_serialize_sccs (NULL, 0);
8625 if ac_fn_c_try_link
"$LINENO"; then :
8630 rm -f core conftest.err conftest.
$ac_objext \
8631 conftest
$ac_exeext conftest.
$ac_ext
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8633 $as_echo "$gcc_cv_isl" >&6; }
8635 if test "${gcc_cv_isl}" = no
; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8637 $as_echo "required isl version is 0.15 or later" >&6; }
8640 CFLAGS
=$_isl_saved_CFLAGS
8641 LDFLAGS
=$_isl_saved_LDFLAGS
8642 LIBS
=$_isl_saved_LIBS
8650 if test "x${with_isl}" = xno
; then
8651 graphite_requested
=no
8652 elif test "x${with_isl}" != x \
8653 ||
test "x${with_isl_include}" != x \
8654 ||
test "x${with_isl_lib}" != x
; then
8655 graphite_requested
=yes
8657 graphite_requested
=no
8662 if test "${gcc_cv_isl}" = no
; then
8667 if test "${graphite_requested}" = yes \
8668 && test "x${isllibs}" = x \
8669 && test "x${islinc}" = x
; then
8671 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8677 # If the isl check failed, disable builds of in-tree variant of isl
8678 if test "x$with_isl" = xno ||
8679 test "x$gcc_cv_isl" = xno
; then
8680 noconfigdirs
="$noconfigdirs isl"
8687 # Check for LTO support.
8688 # Check whether --enable-lto was given.
8689 if test "${enable_lto+set}" = set; then :
8690 enableval
=$enable_lto; enable_lto
=$enableval
8692 enable_lto
=yes; default_enable_lto
=yes
8701 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8702 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8703 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8712 if test $target_elf = yes; then :
8713 # ELF platforms build the lto-plugin always.
8714 build_lto_plugin
=yes
8717 if test x
"$default_enable_lto" = x
"yes" ; then
8719 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8720 # On other non-ELF platforms, LTO has yet to be validated.
8724 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8725 # It would also be nice to check the binutils support, but we don't
8726 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8727 # warn during gcc/ subconfigure; unless you're bootstrapping with
8728 # -flto it won't be needed until after installation anyway.
8730 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8731 *) if test x
"$enable_lto" = x
"yes"; then
8732 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8737 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8738 # Build it unless LTO was explicitly disabled.
8740 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8747 # Check whether --enable-linker-plugin-configure-flags was given.
8748 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8749 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8751 extra_linker_plugin_configure_flags
=
8755 # Check whether --enable-linker-plugin-flags was given.
8756 if test "${enable_linker_plugin_flags+set}" = set; then :
8757 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8759 extra_linker_plugin_flags
=
8764 # Enable --enable-host-shared.
8765 # Checked early to determine whether jit is an 'all' language
8766 # Check whether --enable-host-shared was given.
8767 if test "${enable_host_shared+set}" = set; then :
8768 enableval
=$enable_host_shared; host_shared
=$enableval
8770 x86_64-
*-darwin* | aarch64-
*-darwin*)
8771 if test x
$host_shared != xyes
; then
8772 # PIC is the default, and actually cannot be switched off.
8773 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8780 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8781 *) host_shared
=no
;;
8787 # By default, C and C++ are the only stage 1 languages.
8788 stage1_languages
=,c
,
8790 # Target libraries that we bootstrap.
8791 bootstrap_target_libs
=,target-libgcc
,
8793 # Figure out what language subdirectories are present.
8794 # Look if the user specified --enable-languages="..."; if not, use
8795 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8797 # NB: embedded tabs in this IF block -- do not untabify
8798 if test -d ${srcdir}/gcc
; then
8799 if test x
"${enable_languages+set}" != xset
; then
8800 if test x
"${LANGUAGES+set}" = xset
; then
8801 enable_languages
="${LANGUAGES}"
8802 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8804 enable_languages
=default
8807 if test x
"${enable_languages}" = x ||
8808 test x
"${enable_languages}" = xyes
;
8810 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8814 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8816 # 'f95' is the old name for the 'fortran' language. We issue a warning
8817 # and make the substitution.
8818 case ,${enable_languages}, in
8820 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8821 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8825 # If bootstrapping, C++ must be enabled.
8826 case ",$enable_languages,:$enable_bootstrap" in
8829 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8830 enable_languages
="${enable_languages},c++"
8832 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8837 # First scan to see if an enabled language requires some other language.
8838 # We assume that a given config-lang.in will list all the language
8839 # front ends it requires, even if some are required indirectly.
8840 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8841 case ${lang_frag} in
8843 # The odd quoting in the next line works around
8844 # an apparent bug in bash 1.12 on linux.
8845 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8847 # From the config-lang.in, get $language, $lang_requires, and
8848 # $lang_requires_boot_languages.
8851 lang_requires_boot_languages
=
8852 # set srcdir during sourcing lang_frag to the gcc dir.
8853 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8854 # polutes this shell
8855 saved_srcdir
=${srcdir}
8856 srcdir
=${srcdir}/gcc .
${lang_frag}
8857 srcdir
=${saved_srcdir}
8858 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8859 case ,${enable_languages}, in
8864 echo " \`$other' language required by \`$language'; enabling" 1>&2
8865 enable_languages
="${enable_languages},${other}"
8869 for other
in ${lang_requires_boot_languages} ; do
8870 if test "$other" != "c"; then
8871 case ,${enable_stage1_languages}, in
8876 case ,${enable_languages}, in
8878 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8879 enable_stage1_languages
="$enable_stage1_languages,${other}"
8890 new_enable_languages
=,c
,
8892 # If LTO is enabled, add the LTO front end.
8893 if test "$enable_lto" = "yes" ; then
8894 case ,${enable_languages}, in
8896 *) enable_languages
="${enable_languages},lto" ;;
8898 if test "${build_lto_plugin}" = "yes" ; then
8899 configdirs
="$configdirs lto-plugin"
8903 # If we're building an offloading compiler, add the LTO front end.
8904 if test x
"$enable_as_accelerator_for" != x
; then
8905 case ,${enable_languages}, in
8907 *) enable_languages
="${enable_languages},lto" ;;
8911 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8912 potential_languages
=,c
,
8914 enabled_target_libs
=
8915 disabled_target_libs
=
8917 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8918 case ${lang_frag} in
8920 # The odd quoting in the next line works around
8921 # an apparent bug in bash 1.12 on linux.
8922 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8924 # From the config-lang.in, get $language, $target_libs,
8925 # $lang_dirs, $boot_language, and $build_by_default
8931 build_by_default
=yes
8932 # set srcdir during sourcing. See above about save & restore
8933 saved_srcdir
=${srcdir}
8934 srcdir
=${srcdir}/gcc .
${lang_frag}
8935 srcdir
=${saved_srcdir}
8936 if test x
${language} = x
; then
8937 echo "${lang_frag} doesn't set \$language." 1>&2
8941 if test "$language" = "c++"; then
8946 # C is always enabled, so no need to add it again
8947 if test "$language" != "c"; then
8948 case ,${enable_languages}, in
8950 # Language was explicitly selected; include it
8954 # All languages are enabled
8958 # 'default' was selected, select it if it is a default language
8959 add_this_lang
=${build_by_default}
8964 # Disable languages that need other directories if these aren't available.
8965 for i
in $subdir_requires; do
8966 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8967 case ${add_this_lang} in
8969 # Specifically requested language; tell them.
8970 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8974 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8975 add_this_lang
=unsupported
8979 add_this_lang
=unsupported
8984 # Disable Ada if no preexisting GNAT is available.
8985 case ${add_this_lang}:${language}:${have_gnat} in
8987 # Specifically requested language; tell them.
8988 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8992 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8993 add_this_lang
=unsupported
8997 add_this_lang
=unsupported
9001 # Disable D if no preexisting GDC is available.
9002 case ${add_this_lang}:${language}:${have_gdc} in
9004 # Specifically requested language; tell them.
9005 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9009 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9010 add_this_lang
=unsupported
9014 add_this_lang
=unsupported
9018 # Disable jit if -enable-host-shared not specified
9019 # but not if building for Mingw. All code in Windows
9020 # is position independent code (PIC).
9024 case ${add_this_lang}:${language}:${host_shared} in
9026 # PR jit/64780: explicitly specify --enable-host-shared
9028 Enabling language \"jit\" requires --enable-host-shared.
9030 --enable-host-shared typically slows the rest of the compiler down by
9031 a few %, so you must explicitly enable it.
9033 If you want to build both the jit and the regular compiler, it is often
9034 best to do this via two separate configure/builds, in separate
9035 directories, to avoid imposing the performance cost of
9036 --enable-host-shared on the regular compiler." "$LINENO" 5
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9040 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9041 add_this_lang
=unsupported
9045 add_this_lang
=unsupported
9051 # Disable a language that is unsupported by the target.
9052 case "${add_this_lang}: $unsupported_languages " in
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9057 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9058 add_this_lang
=unsupported
9062 case $add_this_lang in
9064 # Remove language-dependent dirs.
9065 disabled_target_libs
="$disabled_target_libs $target_libs"
9066 noconfigdirs
="$noconfigdirs $lang_dirs"
9069 # Remove language-dependent dirs; still show language as supported.
9070 disabled_target_libs
="$disabled_target_libs $target_libs"
9071 noconfigdirs
="$noconfigdirs $lang_dirs"
9072 potential_languages
="${potential_languages}${language},"
9075 new_enable_languages
="${new_enable_languages}${language},"
9076 potential_languages
="${potential_languages}${language},"
9077 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9078 enabled_target_libs
="$enabled_target_libs $target_libs"
9079 case "${boot_language}:,$enable_stage1_languages," in
9080 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9081 # Add to (comma-separated) list of stage 1 languages.
9082 case ",$stage1_languages," in
9083 *,$language,* |
,yes, |
,all
,) ;;
9084 *) stage1_languages
="${stage1_languages}${language}," ;;
9086 # We need to bootstrap any supporting libraries.
9087 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9096 # Add target libraries which are only needed for disabled languages
9098 if test -n "$disabled_target_libs"; then
9099 for dir
in $disabled_target_libs; do
9100 case " $enabled_target_libs " in
9102 *) noconfigdirs
="$noconfigdirs $dir" ;;
9107 # Check whether --enable-stage1-languages was given.
9108 if test "${enable_stage1_languages+set}" = set; then :
9109 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9111 # Set it to something that will have no effect in the loop below
9112 enable_stage1_languages
=c
;;
9114 enable_stage1_languages
=`echo $new_enable_languages | \
9115 sed -e "s/^,//" -e "s/,$//" ` ;;
9117 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9118 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9121 # Add "good" languages from enable_stage1_languages to stage1_languages,
9122 # while "bad" languages go in missing_languages. Leave no duplicates.
9123 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9124 case $potential_languages in
9126 case $stage1_languages in
9128 *) stage1_languages
="$stage1_languages$i," ;;
9131 case $missing_languages in
9133 *) missing_languages
="$missing_languages$i," ;;
9140 # Remove leading/trailing commas that were added for simplicity
9141 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9142 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9143 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9144 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9146 if test "x$missing_languages" != x
; then
9148 The following requested languages could not be built: ${missing_languages}
9149 Supported languages are: ${potential_languages}" "$LINENO" 5
9151 if test "x$new_enable_languages" != "x$enable_languages"; then
9152 echo The following languages will be built
: ${new_enable_languages}
9153 enable_languages
="$new_enable_languages"
9157 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9160 # Handle --disable-<component> generically.
9161 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9162 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9163 varname
=`echo $dirname | sed -e s/+/_/g`
9164 if eval test x\
${enable_${varname}} "=" xno
; then
9165 noconfigdirs
="$noconfigdirs $dir"
9169 # Check for Boehm's garbage collector
9170 # Check whether --enable-objc-gc was given.
9171 if test "${enable_objc_gc+set}" = set; then :
9172 enableval
=$enable_objc_gc;
9176 # Check whether --with-target-bdw-gc was given.
9177 if test "${with_target_bdw_gc+set}" = set; then :
9178 withval
=$with_target_bdw_gc;
9182 # Check whether --with-target-bdw-gc-include was given.
9183 if test "${with_target_bdw_gc_include+set}" = set; then :
9184 withval
=$with_target_bdw_gc_include;
9188 # Check whether --with-target-bdw-gc-lib was given.
9189 if test "${with_target_bdw_gc_lib+set}" = set; then :
9190 withval
=$with_target_bdw_gc_lib;
9194 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9196 $as_echo_n "checking for bdw garbage collector... " >&6; }
9197 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9199 $as_echo "using bdw-gc in default locations" >&6; }
9201 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9202 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9203 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9204 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9207 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9212 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9213 case ,${enable_languages}, in
9215 # Disable libitm, libsanitizer if we're not building libstdc++
9216 case "${noconfigdirs}" in
9217 *target-libstdc
++-v3*)
9218 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9224 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9228 # If gcc/ is not in the source tree then we'll not be building a
9229 # target compiler, assume in that case we don't want to build any
9230 # target libraries or tools.
9232 # This was added primarily for the benefit for binutils-gdb who reuse
9233 # this configure script, but don't always have target tools available.
9234 if test ! -d ${srcdir}/gcc
; then
9235 skipdirs
="${skipdirs} ${target_configdirs}"
9238 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9239 # $build_configdirs and $target_configdirs.
9240 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9243 for dir
in .
$skipdirs $noconfigdirs ; do
9244 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9245 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9246 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9247 if test -r $srcdir/$dirname/configure
; then
9248 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9251 notsupp
="$notsupp $dir"
9255 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9256 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9257 if test -r $srcdir/$dirname/configure
; then
9258 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9261 notsupp
="$notsupp $dir"
9265 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9266 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9267 if test -r $srcdir/$dirname/configure
; then
9268 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9271 notsupp
="$notsupp $dir"
9277 # Quietly strip out all directories which aren't configurable in this tree.
9278 # This relies on all configurable subdirectories being autoconfiscated, which
9280 build_configdirs_all
="$build_configdirs"
9282 for i
in ${build_configdirs_all} ; do
9283 j
=`echo $i | sed -e s/build-//g`
9284 if test -f ${srcdir}/$j/configure
; then
9285 build_configdirs
="${build_configdirs} $i"
9289 configdirs_all
="$configdirs"
9291 for i
in ${configdirs_all} ; do
9292 if test -f ${srcdir}/$i/configure
; then
9293 configdirs
="${configdirs} $i"
9297 target_configdirs_all
="$target_configdirs"
9299 for i
in ${target_configdirs_all} ; do
9300 j
=`echo $i | sed -e s/target-//g`
9301 if test -f ${srcdir}/$j/configure
; then
9302 target_configdirs
="${target_configdirs} $i"
9306 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9307 # so we have to add it after the preceding checks.
9308 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9310 case " $configdirs " in
9312 # If we can build libiberty, we can also build libiberty-linker-plugin.
9313 configdirs
="$configdirs libiberty-linker-plugin"
9314 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9315 --with-libiberty=../libiberty-linker-plugin";;
9317 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9321 # Sometimes we have special requirements for the host libiberty.
9322 extra_host_libiberty_configure_flags
=
9323 case " $configdirs " in
9324 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9325 # When these are to be built as shared libraries, the same applies to
9327 extra_host_libiberty_configure_flags
=--enable-shared
9332 # Sometimes we have special requirements for the host zlib.
9333 extra_host_zlib_configure_flags
=
9334 case " $configdirs " in
9336 # When bfd is to be built as a shared library, the same applies to
9338 if test "$enable_shared" = "yes"; then
9339 extra_host_zlib_configure_flags
=--enable-host-shared
9345 # Produce a warning message for the subdirs we can't configure.
9346 # This isn't especially interesting in the Cygnus tree, but in the individual
9347 # FSF releases, it's important to let people know when their machine isn't
9348 # supported by the one or two programs in a package.
9350 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9351 # If $appdirs is non-empty, at least one of those directories must still
9352 # be configured, or we error out. (E.g., if the gas release supports a
9353 # specified target in some subdirs but not the gas subdir, we shouldn't
9354 # pretend that all is well.)
9355 if test -n "$appdirs" ; then
9356 for dir
in $appdirs ; do
9357 if test -r $dir/Makefile.
in ; then
9358 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9362 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9368 if test -n "$appdirs" ; then
9369 echo "*** This configuration is not supported by this package." 1>&2
9373 # Okay, some application will build, or we don't care to check. Still
9374 # notify of subdirs not getting built.
9375 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9376 echo " ${notsupp}" 1>&2
9377 echo " (Any other directories should still work fine.)" 1>&2
9385 # To find our prefix, in gcc_cv_tool_prefix.
9387 # The user is always right.
9388 if test "${PATH_SEPARATOR+set}" != set; then
9389 echo "#! /bin/sh" >conf$$.sh
9390 echo "exit 0" >>conf$$.sh
9392 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9401 get_gcc_base_ver
="cat"
9403 # Check whether --with-gcc-major-version-only was given.
9404 if test "${with_gcc_major_version_only+set}" = set; then :
9405 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9406 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9416 if test "x$exec_prefix" = xNONE
; then
9417 if test "x$prefix" = xNONE
; then
9418 gcc_cv_tool_prefix
=$ac_default_prefix
9420 gcc_cv_tool_prefix
=$prefix
9423 gcc_cv_tool_prefix
=$exec_prefix
9426 # If there is no compiler in the tree, use the PATH only. In any
9427 # case, if there is no compiler in the tree nobody should use
9428 # AS_FOR_TARGET and LD_FOR_TARGET.
9429 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9430 if test x
$with_gcc_major_version_only = xyes
; then
9431 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9433 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9435 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9436 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9437 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9438 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9439 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9440 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9445 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9446 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9454 # Check whether --with-build-sysroot was given.
9455 if test "${with_build_sysroot+set}" = set; then :
9456 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9457 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9460 SYSROOT_CFLAGS_FOR_TARGET
=
9466 # Check whether --with-debug-prefix-map was given.
9467 if test "${with_debug_prefix_map+set}" = set; then :
9468 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9469 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9470 for debug_map
in $withval; do
9471 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9475 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9480 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9481 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9482 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9483 # We want to ensure that TARGET libraries (which we know are built with
9484 # gcc) are built with "-O2 -g", so include those options when setting
9485 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9486 if test "x$CFLAGS_FOR_TARGET" = x
; then
9487 if test "x${is_cross_compiler}" = xyes
; then
9488 CFLAGS_FOR_TARGET
="-g -O2"
9490 CFLAGS_FOR_TARGET
=$CFLAGS
9493 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9496 *" -g "* |
*" -g3 "*) ;;
9497 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9503 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9504 if test "x${is_cross_compiler}" = xyes
; then
9505 CXXFLAGS_FOR_TARGET
="-g -O2"
9507 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9508 case " $CXXFLAGS " in
9510 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9512 case " $CXXFLAGS " in
9513 *" -g "* |
*" -g3 "*) ;;
9514 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9522 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9523 # the named directory are copied to $(tooldir)/sys-include.
9524 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9525 if test x
${is_cross_compiler} = xno
; then
9526 echo 1>&2 '***' --with-headers is only supported when cross compiling
9529 if test x
"${with_headers}" != xyes
; then
9530 x
=${gcc_cv_tool_prefix}
9531 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9535 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9536 # the name directories are copied to $(tooldir)/lib. Multiple directories
9538 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9539 if test x
${is_cross_compiler} = xno
; then
9540 echo 1>&2 '***' --with-libs is only supported when cross compiling
9543 if test x
"${with_libs}" != xyes
; then
9544 # Copy the libraries in reverse order, so that files in the first named
9545 # library override files in subsequent libraries.
9546 x
=${gcc_cv_tool_prefix}
9547 for l
in ${with_libs}; do
9548 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9553 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9555 # This is done by determining whether or not the appropriate directory
9556 # is available, and by checking whether or not specific configurations
9557 # have requested that this magic not happen.
9559 # The command line options always override the explicit settings in
9560 # configure.ac, and the settings in configure.ac override this magic.
9562 # If the default for a toolchain is to use GNU as and ld, and you don't
9563 # want to do that, then you should use the --without-gnu-as and
9564 # --without-gnu-ld options for the configure script. Similarly, if
9565 # the default is to use the included zlib and you don't want to do that,
9566 # you should use the --with-system-zlib option for the configure script.
9568 if test x
${use_gnu_as} = x
&&
9569 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9571 extra_host_args
="$extra_host_args --with-gnu-as"
9574 if test x
${use_gnu_ld} = x
&&
9575 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9577 extra_host_args
="$extra_host_args --with-gnu-ld"
9580 if test x
${use_included_zlib} = x
&&
9581 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9584 with_system_zlib
=yes
9585 extra_host_args
="$extra_host_args --with-system-zlib"
9588 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9589 # can detect this case.
9591 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9593 extra_host_args
="$extra_host_args --with-newlib"
9596 # Handle ${copy_dirs}
9597 set fnord
${copy_dirs}
9599 while test $# != 0 ; do
9600 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9603 echo Copying
$1 to
$2
9605 # Use the install script to create the directory and all required
9606 # parent directories.
9607 if test -d $2 ; then
9611 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9614 # Copy the directory, assuming we have tar.
9615 # FIXME: Should we use B in the second tar? Not all systems support it.
9616 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9618 # It is the responsibility of the user to correctly adjust all
9619 # symlinks. If somebody can figure out how to handle them correctly
9620 # here, feel free to add the code.
9627 # Determine a target-dependent exec_prefix that the installed
9628 # gcc will search in. Keep this list sorted by triplet, with
9629 # the *-*-osname triplets last.
9632 i
[34567]86-pc-msdosdjgpp*)
9633 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9638 md_exec_prefix
=/usr
/ccs
/bin
9642 extra_arflags_for_target
=
9643 extra_nmflags_for_target
=
9644 extra_ranlibflags_for_target
=
9645 target_makefile_frag
=/dev
/null
9648 target_makefile_frag
="config/mt-spu"
9650 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9651 target_makefile_frag
="config/mt-sde"
9653 mipsisa
*-*-elfoabi*)
9654 target_makefile_frag
="config/mt-mips-elfoabi"
9656 mips
*-*-*linux
* | mips
*-*-gnu*)
9657 target_makefile_frag
="config/mt-mips-gnu"
9660 target_makefile_frag
="config/mt-nios2-elf"
9663 target_makefile_frag
="config/mt-android"
9665 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9666 target_makefile_frag
="config/mt-gnu"
9668 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9669 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9670 # commands to handle both 32-bit and 64-bit objects. These flags are
9671 # harmless if we're using GNU nm or ar.
9672 extra_arflags_for_target
=" -X32_64"
9673 extra_nmflags_for_target
=" -B -X32_64"
9677 alphaieee_frag
=/dev
/null
9680 # This just makes sure to use the -mieee option to build target libs.
9681 # This should probably be set individually by each library.
9682 alphaieee_frag
="config/mt-alphaieee"
9686 # If --enable-target-optspace always use -Os instead of -O2 to build
9687 # the target libraries, similarly if it is not specified, use -Os
9688 # on selected platforms.
9689 ospace_frag
=/dev
/null
9690 case "${enable_target_optspace}:${target}" in
9692 ospace_frag
="config/mt-ospace"
9695 ospace_frag
="config/mt-d30v"
9697 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9698 ospace_frag
="config/mt-ospace"
9703 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9707 # Some systems (e.g., one of the i386-aix systems the gas testers are
9708 # using) don't handle "\$" correctly, so don't use it here.
9709 tooldir
='${exec_prefix}'/${target_noncanonical}
9710 build_tooldir
=${tooldir}
9712 # Create a .gdbinit file which runs the one in srcdir
9713 # and tells GDB to look there for source files.
9715 if test -r ${srcdir}/.gdbinit
; then
9718 *) cat > .
/.gdbinit
<<EOF
9722 source ${srcdir}/.gdbinit
9728 # Make sure that the compiler is able to generate an executable. If it
9729 # can't, we are probably in trouble. We don't care whether we can run the
9730 # executable--we might be using a cross compiler--we only care whether it
9731 # can be created. At this point the main configure script has set CC.
9733 echo "int main () { return 0; }" > conftest.c
9734 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9735 if test $?
= 0 ; then
9736 if test -s conftest ||
test -s conftest.exe
; then
9742 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9743 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9750 # Decide which environment variable is used to find dynamic libraries.
9752 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9753 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9754 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9755 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9758 # On systems where the dynamic library environment variable is PATH,
9759 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9760 # built executables to PATH.
9761 if test "$RPATH_ENVVAR" = PATH
; then
9762 GCC_SHLIB_SUBDIR
=/shlib
9767 # Adjust the toplevel makefile according to whether bootstrap was selected.
9768 case $enable_bootstrap in
9770 bootstrap_suffix
=bootstrap
9771 BUILD_CONFIG
=bootstrap-debug
9774 bootstrap_suffix
=no-bootstrap
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9780 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9783 # Check whether --with-build-config was given.
9784 if test "${with_build_config+set}" = set; then :
9785 withval
=$with_build_config; case $with_build_config in
9786 yes) with_build_config
= ;;
9787 no
) with_build_config
= BUILD_CONFIG
= ;;
9792 if test "x${with_build_config}" != x
; then
9793 BUILD_CONFIG
=$with_build_config
9795 case $BUILD_CONFIG in
9797 if echo "int f (void) { return 0; }" > conftest.c
&&
9798 ${CC} -c conftest.c
&&
9799 mv conftest.o conftest.o.g0
&&
9800 ${CC} -c -g conftest.c
&&
9801 mv conftest.o conftest.o.g
&&
9802 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9807 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9812 $as_echo "$BUILD_CONFIG" >&6; }
9815 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9817 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9818 # Check whether --enable-vtable-verify was given.
9819 if test "${enable_vtable_verify+set}" = set; then :
9820 enableval
=$enable_vtable_verify; case "$enableval" in
9821 yes) enable_vtable_verify
=yes ;;
9822 no
) enable_vtable_verify
=no
;;
9823 *) enable_vtable_verify
=no
;;
9826 enable_vtable_verify
=no
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9830 $as_echo "$enable_vtable_verify" >&6; }
9832 # Record target_configdirs and the configure arguments for target and
9833 # build configuration in Makefile.
9834 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9835 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9836 bootstrap_fixincludes
=no
9838 # If we are building libgomp, bootstrap it.
9839 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9840 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9843 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9844 # or bootstrap-ubsan, bootstrap it.
9845 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9846 case "$BUILD_CONFIG" in
9847 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9848 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9849 bootstrap_fixincludes
=yes
9854 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9855 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9856 test "$enable_vtable_verify" != no
; then
9857 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9860 # If we are building libatomic and the list of enabled languages includes the
9861 # D frontend, bootstrap it.
9862 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9863 case ,${enable_languages}, in
9865 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9870 # Determine whether gdb needs tk/tcl or not.
9871 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9872 # and in that case we want gdb to be built without tk. Ugh!
9873 # In fact I believe gdb is the *only* package directly dependent on tk,
9874 # so we should be able to put the 'maybe's in unconditionally and
9875 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9876 # 100% sure that that's safe though.
9878 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9879 case "$enable_gdbtk" in
9883 GDB_TK
="${gdb_tk}" ;;
9885 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9886 # distro. Eventually someone will fix this and move Insight, nee
9887 # gdbtk to a separate directory.
9888 if test -d ${srcdir}/gdb
/gdbtk
; then
9895 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9896 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9898 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9899 # else does, only include them if one of these is built. The Makefile
9900 # provides the ordering, so it's enough here to add to the list.
9901 case " ${configdirs} " in
9903 configdirs
="${configdirs} gnulib gdbsupport"
9906 configdirs
="${configdirs} gnulib gdbsupport"
9909 configdirs
="${configdirs} gnulib"
9913 # Strip out unwanted targets.
9915 # While at that, we remove Makefiles if we were started for recursive
9916 # configuration, so that the top-level Makefile reconfigures them,
9917 # like we used to do when configure itself was recursive.
9919 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9920 # but now we're fixing up the Makefile ourselves with the additional
9921 # commands passed to AC_CONFIG_FILES. Use separate variables
9922 # extrasub-{build,host,target} not because there is any reason to split
9923 # the substitutions up that way, but only to remain below the limit of
9924 # 99 commands in a script, for HP-UX sed.
9926 # Do not nest @if/@endif or @unless/@endunless pairs, because
9927 # configure will not warn you at all.
9929 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9930 yes:yes:*\ gold\
*:*,c
++,*) ;;
9931 yes:yes:*\ gold\
*:*)
9932 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9937 for module
in ${build_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${build_subdir}/${module}/Makefile
; then
9940 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${build_subdir}/${module}/Makefile
9943 extrasub_build
="$extrasub_build
9944 /^@if build-$module\$/d
9945 /^@endif build-$module\$/d
9946 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9947 /^@if build-$module-$bootstrap_suffix\$/d
9948 /^@endif build-$module-$bootstrap_suffix\$/d
9949 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9952 for module
in ${configdirs} ; do
9953 if test -z "${no_recursion}"; then
9954 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9955 if test -f ${file}; then
9956 echo 1>&2 "*** removing ${file} to force reconfigure"
9961 case ${module},${bootstrap_fixincludes} in
9962 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9963 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9965 extrasub_host
="$extrasub_host
9967 /^@endif $module\$/d
9968 /^@unless $module\$/,/^@endunless $module\$/d
9969 /^@if $module-$host_bootstrap_suffix\$/d
9970 /^@endif $module-$host_bootstrap_suffix\$/d
9971 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9974 for module
in ${target_configdirs} ; do
9975 if test -z "${no_recursion}" \
9976 && test -f ${target_subdir}/${module}/Makefile
; then
9977 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9978 rm -f ${target_subdir}/${module}/Makefile
9981 # We only bootstrap target libraries listed in bootstrap_target_libs.
9982 case $bootstrap_target_libs in
9983 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9984 *) target_bootstrap_suffix
=no-bootstrap
;;
9987 extrasub_target
="$extrasub_target
9988 /^@if target-$module\$/d
9989 /^@endif target-$module\$/d
9990 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9991 /^@if target-$module-$target_bootstrap_suffix\$/d
9992 /^@endif target-$module-$target_bootstrap_suffix\$/d
9993 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9996 # Do the final fixup along with target modules.
9997 extrasub_target
="$extrasub_target
10002 if test "$enable_pgo_build" != "no"; then
10003 extrasub_build
="$extrasub_build
10004 /^@if pgo-build\$/d
10005 /^@endif pgo-build\$/d"
10008 # Create the serialization dependencies. This uses a temporary file.
10010 # Check whether --enable-serial-configure was given.
10011 if test "${enable_serial_configure+set}" = set; then :
10012 enableval
=$enable_serial_configure;
10016 case ${enable_serial_configure} in
10018 enable_serial_build_configure
=yes
10019 enable_serial_host_configure
=yes
10020 enable_serial_target_configure
=yes
10024 # These force 'configure's to be done one at a time, to avoid problems
10025 # with contention over a shared config.cache.
10027 echo '# serdep.tmp' > serdep.tmp
10029 test "x${enable_serial_build_configure}" = xyes
&&
10030 for item
in ${build_configdirs} ; do
10033 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10038 test "x${enable_serial_host_configure}" = xyes
&&
10039 for item
in ${configdirs} ; do
10042 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10047 test "x${enable_serial_target_configure}" = xyes
&&
10048 for item
in ${target_configdirs} ; do
10051 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10055 serialization_dependencies
=serdep.tmp
10058 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10059 # target, nonopt, and variable assignments. These are the ones we
10060 # might not want to pass down to subconfigures. The exception being
10061 # --cache-file=/dev/null, which is used to turn off the use of cache
10062 # files altogether, and which should be passed on to subconfigures.
10063 # Also strip program-prefix, program-suffix, and program-transform-name,
10064 # so that we can pass down a consistent program-transform-name.
10069 eval "set -- $ac_configure_args"
10072 if test X
"$skip_next" = X
"yes"; then
10076 if test X
"$keep_next" = X
"yes"; then
10079 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10081 baseargs
="$baseargs '$ac_arg'"
10082 tbaseargs
="$tbaseargs '$ac_arg'"
10087 # Handle separated arguments. Based on the logic generated by
10090 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10091 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10092 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10093 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10107 --with-* |
--without-*)
10108 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10112 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10115 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10124 mpc | mpfr | gmp | isl
)
10125 # If we're processing --with-$lib, --with-$lib-include or
10126 # --with-$lib-lib, for one of the libs above, and target is
10127 # different from host, don't pass the current argument to any
10128 # target library's configure.
10129 if test x
$is_cross_compiler = xyes
; then
10138 --cache-file=/dev
/null | \
10139 -cache-file=/dev
/null
)
10140 # Handled here to avoid the test to skip args below.
10141 baseargs
="$baseargs '$ac_arg'"
10142 tbaseargs
="$tbaseargs '$ac_arg'"
10143 # Assert: $separate_arg should always be no.
10144 keep_next
=$separate_arg
10160 -program-prefix* | \
10161 -program-suffix* | \
10162 -program-transform-name* )
10163 skip_next
=$separate_arg
10167 # An option. Add it.
10170 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10172 baseargs
="$baseargs '$ac_arg'"
10173 if test X
"$skip_targ" = Xno
; then
10174 tbaseargs
="$tbaseargs '$ac_arg'"
10176 keep_next
=$separate_arg
10179 # Either a variable assignment, or a nonopt (triplet). Don't
10180 # pass it down; let the Makefile handle this.
10185 # Remove the initial space we just introduced and, as these will be
10186 # expanded by make, quote '$'.
10187 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10189 # Add in --program-transform-name, after --program-prefix and
10190 # --program-suffix have been applied to it. Autoconf has already
10191 # doubled dollar signs and backslashes in program_transform_name; we want
10192 # the backslashes un-doubled, and then the entire thing wrapped in single
10193 # quotes, because this will be expanded first by make and then by the shell.
10194 # Also, because we want to override the logic in subdir configure scripts to
10195 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10196 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10197 ${program_transform_name}
10199 gcc_transform_name
=`cat conftestsed.out`
10200 rm -f conftestsed.out
10201 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10202 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10203 if test "$silent" = yes; then
10204 baseargs
="$baseargs --silent"
10205 tbaseargs
="$tbaseargs --silent"
10208 baseargs
="$baseargs --disable-option-checking"
10209 tbaseargs
="$tbaseargs --disable-option-checking"
10211 if test "$enable_year2038" = no
; then
10212 baseargs
="$baseargs --disable-year2038"
10213 tbaseargs
="$tbaseargs --disable-year2038"
10216 # Record and document user additions to sub configure arguments.
10221 # For the build-side libraries, we just need to pretend we're native,
10222 # and not use the same cache file. Multilibs are neither needed nor
10223 # desired. We can't even use the same cache file for all build-side
10224 # libraries, as they're compiled differently; some with C, some with
10225 # C++ or with different feature-enabling options.
10226 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10228 # For host modules, accept cache file option, or specification as blank.
10229 case "${cache_file}" in
10231 cache_file_option
="" ;;
10232 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10233 cache_file_option
="--cache-file=${cache_file}" ;;
10235 cache_file_option
="--cache-file=../${cache_file}" ;;
10238 # Host dirs don't like to share a cache file either, horribly enough.
10239 # This seems to be due to autoconf 2.5x stupidity.
10240 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10242 target_configargs
="$target_configargs ${tbaseargs}"
10244 # Passing a --with-cross-host argument lets the target libraries know
10245 # whether they are being built with a cross-compiler or being built
10246 # native. However, it would be better to use other mechanisms to make the
10247 # sorts of decisions they want to make on this basis. Please consider
10248 # this option to be deprecated. FIXME.
10249 if test x
${is_cross_compiler} = xyes
; then
10250 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10253 # Special user-friendly check for native x86_64-linux build, if
10254 # multilib is not explicitly enabled.
10255 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10256 x86_64-
*linux
*:yes:$build:$build:)
10257 # Make sure we have a development environment that handles 32-bit
10259 echo "int main () { return 0; }" > conftest.c
10260 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10261 if test $?
= 0 ; then
10262 if test -s conftest ||
test -s conftest.exe
; then
10267 if test x
${dev64} != xyes
; then
10268 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
10273 # Default to --enable-multilib.
10274 if test x
${enable_multilib} = x
; then
10275 target_configargs
="--enable-multilib ${target_configargs}"
10278 # Pass --with-newlib if appropriate. Note that target_configdirs has
10279 # changed from the earlier setting of with_newlib.
10280 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10281 target_configargs
="--with-newlib ${target_configargs}"
10284 # Different target subdirs use different values of certain variables
10285 # (notably CXX). Worse, multilibs use *lots* of different values.
10286 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10287 # it doesn't automatically accept command-line overrides of them.
10288 # This means it's not safe for target subdirs to share a cache file,
10289 # which is disgusting, but there you have it. Hopefully this can be
10290 # fixed in future. It's still worthwhile to use a cache file for each
10291 # directory. I think.
10293 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10294 # We need to pass --target, as newer autoconf's requires consistency
10295 # for target_alias and gcc doesn't manage it consistently.
10296 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10299 case " $target_configdirs " in
10301 case " $target_configargs " in
10302 *" --with-newlib "*)
10305 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10309 # If we're not building GCC, don't discard standard headers.
10310 if test -d ${srcdir}/gcc
; then
10311 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10313 if test "${build}" != "${host}"; then
10314 # On Canadian crosses, CC_FOR_TARGET will have already been set
10315 # by `configure', so we won't have an opportunity to add -Bgcc/
10316 # to it. This is right: we don't want to search that directory
10317 # for binaries, but we want the header files in there, so add
10319 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10321 # Someone might think of using the pre-installed headers on
10322 # Canadian crosses, in case the installed compiler is not fully
10323 # compatible with the compiler being built. In this case, it
10324 # would be better to flag an error than risking having
10325 # incompatible object files being constructed. We can't
10326 # guarantee that an error will be flagged, but let's hope the
10327 # compiler will do it, when presented with incompatible header
10332 case "${target}-${is_cross_compiler}" in
10333 i
[3456789]86-*-linux*-no)
10334 # Here host == target, so we don't need to build gcc,
10335 # so we don't want to discard standard headers.
10336 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10339 # If we're building newlib, use its generic headers last, but search
10340 # for any libc-related directories first (so make it the last -B
10342 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10344 # If we're building libgloss, find the startup file, simulator library
10345 # and linker script.
10346 case " $target_configdirs " in
10348 # Look for startup file, simulator library and maybe linker script.
10349 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10350 # Look for libnosys.a in case the target needs it.
10351 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10352 # Most targets have the linker script in the source directory.
10353 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10364 x86_64-
*mingw
* |
*-w64-mingw*)
10365 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10366 # however, use a symlink named 'mingw' in ${prefix} .
10367 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10370 # MinGW can't be handled as Cygwin above since it does not use newlib.
10371 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'
10375 # Allow the user to override the flags for
10376 # our build compiler if desired.
10377 if test x
"${build}" = x
"${host}" ; then
10378 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10379 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10380 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10381 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10384 # On Canadian crosses, we'll be searching the right directories for
10385 # the previously-installed cross compiler, so don't bother to add
10386 # flags for directories within the install tree of the compiler
10387 # being built; programs in there won't even run.
10388 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10389 # Search for pre-installed headers if nothing else fits.
10390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10393 if test "x
${use_gnu_ld}" = x &&
10394 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10395 # Arrange for us to find uninstalled linker scripts.
10396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10399 # Search for other target-specific linker scripts and such.
10400 case "${target}" in
10402 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10404 # The VxWorks support for shared libraries is getting in
10405 # incrementally. Make sure it doesn't get activated implicitly:
10407 if test "${enable_shared-unset}" = unset ; then
10409 # So the build of libraries knows ...
10410 target_configargs="${target_configargs} --disable-shared"
10412 host_configargs="${host_configargs} --disable-shared"
10417 # Makefile fragments.
10418 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10420 eval fragval=\$$frag
10421 if test $fragval != /dev/null; then
10422 eval $frag=${srcdir}/$fragval
10430 # Miscellanea: directories, flags, etc.
10439 # Build module lists & subconfigure args.
10443 # Host module lists & subconfigure args.
10448 # Target module lists & subconfigure args.
10473 # Generate default definitions for YACC, M4, LEX and other programs that run
10474 # on the build machine. These are used if the Makefile can't locate these
10475 # programs in objdir.
10476 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10478 for ac_prog in 'bison -y' byacc yacc
10480 # Extract the first word of "$ac_prog", so it can be a program name with args.
10481 set dummy $ac_prog; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10483 $as_echo_n "checking
for $ac_word...
" >&6; }
10484 if ${ac_cv_prog_YACC+:} false; then :
10485 $as_echo_n "(cached
) " >&6
10487 if test -n "$YACC"; then
10488 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10497 ac_cv_prog_YACC="$ac_prog"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10507 YACC=$ac_cv_prog_YACC
10508 if test -n "$YACC"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10510 $as_echo "$YACC" >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10513 $as_echo "no
" >&6; }
10517 test -n "$YACC" && break
10519 test -n "$YACC" || YACC="$MISSING bison
-y"
10521 case " $build_configdirs " in
10522 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10525 for ac_prog in bison
10527 # Extract the first word of "$ac_prog", so it can be a program name with args.
10528 set dummy $ac_prog; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10530 $as_echo_n "checking
for $ac_word...
" >&6; }
10531 if ${ac_cv_prog_BISON+:} false; then :
10532 $as_echo_n "(cached
) " >&6
10534 if test -n "$BISON"; then
10535 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_BISON="$ac_prog"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10554 BISON=$ac_cv_prog_BISON
10555 if test -n "$BISON"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10557 $as_echo "$BISON" >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10560 $as_echo "no
" >&6; }
10564 test -n "$BISON" && break
10566 test -n "$BISON" || BISON="$MISSING bison
"
10568 case " $build_configdirs " in
10569 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10572 for ac_prog in gm4 gnum4 m4
10574 # Extract the first word of "$ac_prog", so it can be a program name with args.
10575 set dummy $ac_prog; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10577 $as_echo_n "checking
for $ac_word...
" >&6; }
10578 if ${ac_cv_prog_M4+:} false; then :
10579 $as_echo_n "(cached
) " >&6
10581 if test -n "$M4"; then
10582 ac_cv_prog_M4="$M4" # Let the user override the test.
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_prog_M4="$ac_prog"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10602 if test -n "$M4"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10604 $as_echo "$M4" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10607 $as_echo "no
" >&6; }
10611 test -n "$M4" && break
10613 test -n "$M4" || M4="$MISSING m4"
10615 case " $build_configdirs " in
10616 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10619 for ac_prog in flex lex
10621 # Extract the first word of "$ac_prog", so it can be a program name with args.
10622 set dummy $ac_prog; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10624 $as_echo_n "checking
for $ac_word...
" >&6; }
10625 if ${ac_cv_prog_LEX+:} false; then :
10626 $as_echo_n "(cached
) " >&6
10628 if test -n "$LEX"; then
10629 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_LEX="$ac_prog"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10648 LEX=$ac_cv_prog_LEX
10649 if test -n "$LEX"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10651 $as_echo "$LEX" >&6; }
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10654 $as_echo "no
" >&6; }
10658 test -n "$LEX" && break
10660 test -n "$LEX" || LEX="$MISSING flex
"
10662 case " $build_configdirs " in
10663 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10664 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10667 for ac_prog in flex
10669 # Extract the first word of "$ac_prog", so it can be a program name with args.
10670 set dummy $ac_prog; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10672 $as_echo_n "checking
for $ac_word...
" >&6; }
10673 if ${ac_cv_prog_FLEX+:} false; then :
10674 $as_echo_n "(cached
) " >&6
10676 if test -n "$FLEX"; then
10677 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_prog_FLEX="$ac_prog"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10696 FLEX=$ac_cv_prog_FLEX
10697 if test -n "$FLEX"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10699 $as_echo "$FLEX" >&6; }
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10702 $as_echo "no
" >&6; }
10706 test -n "$FLEX" && break
10708 test -n "$FLEX" || FLEX="$MISSING flex
"
10710 case " $build_configdirs " in
10711 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10714 for ac_prog in makeinfo
10716 # Extract the first word of "$ac_prog", so it can be a program name with args.
10717 set dummy $ac_prog; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10719 $as_echo_n "checking
for $ac_word...
" >&6; }
10720 if ${ac_cv_prog_MAKEINFO+:} false; then :
10721 $as_echo_n "(cached
) " >&6
10723 if test -n "$MAKEINFO"; then
10724 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_MAKEINFO="$ac_prog"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10743 MAKEINFO=$ac_cv_prog_MAKEINFO
10744 if test -n "$MAKEINFO"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10746 $as_echo "$MAKEINFO" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10749 $as_echo "no
" >&6; }
10753 test -n "$MAKEINFO" && break
10755 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10757 case " $build_configdirs " in
10758 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10761 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10762 # higher, else we use the "missing
" dummy.
10763 if ${MAKEINFO} --version \
10764 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10767 MAKEINFO="$MISSING makeinfo
"
10773 # FIXME: expect and dejagnu may become build tools?
10775 for ac_prog in expect
10777 # Extract the first word of "$ac_prog", so it can be a program name with args.
10778 set dummy $ac_prog; ac_word=$2
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10780 $as_echo_n "checking
for $ac_word...
" >&6; }
10781 if ${ac_cv_prog_EXPECT+:} false; then :
10782 $as_echo_n "(cached
) " >&6
10784 if test -n "$EXPECT"; then
10785 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788 for as_dir in $PATH
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794 ac_cv_prog_EXPECT="$ac_prog"
10795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10804 EXPECT=$ac_cv_prog_EXPECT
10805 if test -n "$EXPECT"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10807 $as_echo "$EXPECT" >&6; }
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10810 $as_echo "no
" >&6; }
10814 test -n "$EXPECT" && break
10816 test -n "$EXPECT" || EXPECT="expect
"
10818 case " $configdirs " in
10820 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10824 for ac_prog in runtest
10826 # Extract the first word of "$ac_prog", so it can be a program name with args.
10827 set dummy $ac_prog; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10829 $as_echo_n "checking
for $ac_word...
" >&6; }
10830 if ${ac_cv_prog_RUNTEST+:} false; then :
10831 $as_echo_n "(cached
) " >&6
10833 if test -n "$RUNTEST"; then
10834 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_RUNTEST="$ac_prog"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10853 RUNTEST=$ac_cv_prog_RUNTEST
10854 if test -n "$RUNTEST"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10856 $as_echo "$RUNTEST" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10859 $as_echo "no
" >&6; }
10863 test -n "$RUNTEST" && break
10865 test -n "$RUNTEST" || RUNTEST="runtest
"
10867 case " $configdirs " in
10869 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10876 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10877 ncn_target_tool_prefix=
10878 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10882 if test -n "$AR"; then
10884 elif test -n "$ac_cv_prog_AR"; then
10888 if test -n "$ac_cv_prog_AR"; then
10889 for ncn_progname in ar; do
10890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10893 $as_echo_n "checking
for $ac_word...
" >&6; }
10894 if ${ac_cv_prog_AR+:} false; then :
10895 $as_echo_n "(cached
) " >&6
10897 if test -n "$AR"; then
10898 ac_cv_prog_AR="$AR" # Let the user override the test.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_AR="${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10918 if test -n "$AR"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10920 $as_echo "$AR" >&6; }
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10923 $as_echo "no
" >&6; }
10930 for ncn_progname in ar; do
10931 if test -n "$ncn_tool_prefix"; then
10932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10935 $as_echo_n "checking
for $ac_word...
" >&6; }
10936 if ${ac_cv_prog_AR+:} false; then :
10937 $as_echo_n "(cached
) " >&6
10939 if test -n "$AR"; then
10940 ac_cv_prog_AR="$AR" # Let the user override the test.
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10960 if test -n "$AR"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10962 $as_echo "$AR" >&6; }
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10965 $as_echo "no
" >&6; }
10970 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10974 $as_echo_n "checking
for $ac_word...
" >&6; }
10975 if ${ac_cv_prog_AR+:} false; then :
10976 $as_echo_n "(cached
) " >&6
10978 if test -n "$AR"; then
10979 ac_cv_prog_AR="$AR" # Let the user override the test.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_prog_AR="${ncn_progname}"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10999 if test -n "$AR"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11001 $as_echo "$AR" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11004 $as_echo "no
" >&6; }
11009 test -n "$ac_cv_prog_AR" && break
11012 if test -z "$ac_cv_prog_AR" ; then
11014 if test $build = $host ; then
11017 AR="${ncn_tool_prefix}$2"
11023 if test -n "$AS"; then
11025 elif test -n "$ac_cv_prog_AS"; then
11029 if test -n "$ac_cv_prog_AS"; then
11030 for ncn_progname in as; do
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11034 $as_echo_n "checking
for $ac_word...
" >&6; }
11035 if ${ac_cv_prog_AS+:} false; then :
11036 $as_echo_n "(cached
) " >&6
11038 if test -n "$AS"; then
11039 ac_cv_prog_AS="$AS" # Let the user override the test.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_AS="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11059 if test -n "$AS"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11061 $as_echo "$AS" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11064 $as_echo "no
" >&6; }
11071 for ncn_progname in as; do
11072 if test -n "$ncn_tool_prefix"; then
11073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11076 $as_echo_n "checking
for $ac_word...
" >&6; }
11077 if ${ac_cv_prog_AS+:} false; then :
11078 $as_echo_n "(cached
) " >&6
11080 if test -n "$AS"; then
11081 ac_cv_prog_AS="$AS" # Let the user override the test.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11101 if test -n "$AS"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11103 $as_echo "$AS" >&6; }
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11106 $as_echo "no
" >&6; }
11111 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11115 $as_echo_n "checking
for $ac_word...
" >&6; }
11116 if ${ac_cv_prog_AS+:} false; then :
11117 $as_echo_n "(cached
) " >&6
11119 if test -n "$AS"; then
11120 ac_cv_prog_AS="$AS" # Let the user override the test.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11129 ac_cv_prog_AS="${ncn_progname}"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11140 if test -n "$AS"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11142 $as_echo "$AS" >&6; }
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11145 $as_echo "no
" >&6; }
11150 test -n "$ac_cv_prog_AS" && break
11153 if test -z "$ac_cv_prog_AS" ; then
11155 if test $build = $host ; then
11158 AS="${ncn_tool_prefix}$2"
11164 if test -n "$DLLTOOL"; then
11165 ac_cv_prog_DLLTOOL=$DLLTOOL
11166 elif test -n "$ac_cv_prog_DLLTOOL"; then
11167 DLLTOOL=$ac_cv_prog_DLLTOOL
11170 if test -n "$ac_cv_prog_DLLTOOL"; then
11171 for ncn_progname in dlltool; do
11172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11175 $as_echo_n "checking
for $ac_word...
" >&6; }
11176 if ${ac_cv_prog_DLLTOOL+:} false; then :
11177 $as_echo_n "(cached
) " >&6
11179 if test -n "$DLLTOOL"; then
11180 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DLLTOOL="${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11199 DLLTOOL=$ac_cv_prog_DLLTOOL
11200 if test -n "$DLLTOOL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11202 $as_echo "$DLLTOOL" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11205 $as_echo "no
" >&6; }
11212 for ncn_progname in dlltool; do
11213 if test -n "$ncn_tool_prefix"; then
11214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11217 $as_echo_n "checking
for $ac_word...
" >&6; }
11218 if ${ac_cv_prog_DLLTOOL+:} false; then :
11219 $as_echo_n "(cached
) " >&6
11221 if test -n "$DLLTOOL"; then
11222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11241 DLLTOOL=$ac_cv_prog_DLLTOOL
11242 if test -n "$DLLTOOL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11244 $as_echo "$DLLTOOL" >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11247 $as_echo "no
" >&6; }
11252 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254 set dummy ${ncn_progname}; ac_word=$2
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11256 $as_echo_n "checking
for $ac_word...
" >&6; }
11257 if ${ac_cv_prog_DLLTOOL+:} false; then :
11258 $as_echo_n "(cached
) " >&6
11260 if test -n "$DLLTOOL"; then
11261 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_DLLTOOL="${ncn_progname}"
11271 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11280 DLLTOOL=$ac_cv_prog_DLLTOOL
11281 if test -n "$DLLTOOL"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11283 $as_echo "$DLLTOOL" >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11286 $as_echo "no
" >&6; }
11291 test -n "$ac_cv_prog_DLLTOOL" && break
11294 if test -z "$ac_cv_prog_DLLTOOL" ; then
11296 if test $build = $host ; then
11299 DLLTOOL="${ncn_tool_prefix}$2"
11305 if test -n "$DSYMUTIL"; then
11306 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11307 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11308 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11311 if test -n "$ac_cv_prog_DSYMUTIL"; then
11312 for ncn_progname in dsymutil; do
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11316 $as_echo_n "checking
for $ac_word...
" >&6; }
11317 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11318 $as_echo_n "(cached
) " >&6
11320 if test -n "$DSYMUTIL"; then
11321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11340 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11341 if test -n "$DSYMUTIL"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11343 $as_echo "$DSYMUTIL" >&6; }
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11346 $as_echo "no
" >&6; }
11353 for ncn_progname in dsymutil; do
11354 if test -n "$ncn_tool_prefix"; then
11355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11358 $as_echo_n "checking
for $ac_word...
" >&6; }
11359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11360 $as_echo_n "(cached
) " >&6
11362 if test -n "$DSYMUTIL"; then
11363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11383 if test -n "$DSYMUTIL"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11385 $as_echo "$DSYMUTIL" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11388 $as_echo "no
" >&6; }
11393 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11397 $as_echo_n "checking
for $ac_word...
" >&6; }
11398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11399 $as_echo_n "(cached
) " >&6
11401 if test -n "$DSYMUTIL"; then
11402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11422 if test -n "$DSYMUTIL"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11424 $as_echo "$DSYMUTIL" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11427 $as_echo "no
" >&6; }
11432 test -n "$ac_cv_prog_DSYMUTIL" && break
11435 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11437 if test $build = $host ; then
11440 DSYMUTIL="${ncn_tool_prefix}$2"
11446 if test -n "$LD"; then
11448 elif test -n "$ac_cv_prog_LD"; then
11452 if test -n "$ac_cv_prog_LD"; then
11453 for ncn_progname in ld; do
11454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11457 $as_echo_n "checking
for $ac_word...
" >&6; }
11458 if ${ac_cv_prog_LD+:} false; then :
11459 $as_echo_n "(cached
) " >&6
11461 if test -n "$LD"; then
11462 ac_cv_prog_LD="$LD" # Let the user override the test.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_LD="${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11482 if test -n "$LD"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11484 $as_echo "$LD" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11487 $as_echo "no
" >&6; }
11494 for ncn_progname in ld; do
11495 if test -n "$ncn_tool_prefix"; then
11496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11499 $as_echo_n "checking
for $ac_word...
" >&6; }
11500 if ${ac_cv_prog_LD+:} false; then :
11501 $as_echo_n "(cached
) " >&6
11503 if test -n "$LD"; then
11504 ac_cv_prog_LD="$LD" # Let the user override the test.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11524 if test -n "$LD"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11526 $as_echo "$LD" >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11529 $as_echo "no
" >&6; }
11534 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11536 set dummy ${ncn_progname}; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11538 $as_echo_n "checking
for $ac_word...
" >&6; }
11539 if ${ac_cv_prog_LD+:} false; then :
11540 $as_echo_n "(cached
) " >&6
11542 if test -n "$LD"; then
11543 ac_cv_prog_LD="$LD" # Let the user override the test.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_LD="${ncn_progname}"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11563 if test -n "$LD"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11565 $as_echo "$LD" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11568 $as_echo "no
" >&6; }
11573 test -n "$ac_cv_prog_LD" && break
11576 if test -z "$ac_cv_prog_LD" ; then
11578 if test $build = $host ; then
11581 LD="${ncn_tool_prefix}$2"
11587 if test -n "$LIPO"; then
11588 ac_cv_prog_LIPO=$LIPO
11589 elif test -n "$ac_cv_prog_LIPO"; then
11590 LIPO=$ac_cv_prog_LIPO
11593 if test -n "$ac_cv_prog_LIPO"; then
11594 for ncn_progname in lipo; do
11595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11598 $as_echo_n "checking
for $ac_word...
" >&6; }
11599 if ${ac_cv_prog_LIPO+:} false; then :
11600 $as_echo_n "(cached
) " >&6
11602 if test -n "$LIPO"; then
11603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_LIPO="${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11622 LIPO=$ac_cv_prog_LIPO
11623 if test -n "$LIPO"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11625 $as_echo "$LIPO" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11628 $as_echo "no
" >&6; }
11635 for ncn_progname in lipo; do
11636 if test -n "$ncn_tool_prefix"; then
11637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11638 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11640 $as_echo_n "checking
for $ac_word...
" >&6; }
11641 if ${ac_cv_prog_LIPO+:} false; then :
11642 $as_echo_n "(cached
) " >&6
11644 if test -n "$LIPO"; then
11645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11664 LIPO=$ac_cv_prog_LIPO
11665 if test -n "$LIPO"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11667 $as_echo "$LIPO" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11670 $as_echo "no
" >&6; }
11675 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11677 set dummy ${ncn_progname}; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11679 $as_echo_n "checking
for $ac_word...
" >&6; }
11680 if ${ac_cv_prog_LIPO+:} false; then :
11681 $as_echo_n "(cached
) " >&6
11683 if test -n "$LIPO"; then
11684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 ac_cv_prog_LIPO="${ncn_progname}"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11703 LIPO=$ac_cv_prog_LIPO
11704 if test -n "$LIPO"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11706 $as_echo "$LIPO" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11709 $as_echo "no
" >&6; }
11714 test -n "$ac_cv_prog_LIPO" && break
11717 if test -z "$ac_cv_prog_LIPO" ; then
11719 if test $build = $host ; then
11722 LIPO="${ncn_tool_prefix}$2"
11728 if test -n "$NM"; then
11730 elif test -n "$ac_cv_prog_NM"; then
11734 if test -n "$ac_cv_prog_NM"; then
11735 for ncn_progname in nm; do
11736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11739 $as_echo_n "checking
for $ac_word...
" >&6; }
11740 if ${ac_cv_prog_NM+:} false; then :
11741 $as_echo_n "(cached
) " >&6
11743 if test -n "$NM"; then
11744 ac_cv_prog_NM="$NM" # Let the user override the test.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_NM="${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11764 if test -n "$NM"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11766 $as_echo "$NM" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11769 $as_echo "no
" >&6; }
11776 for ncn_progname in nm; do
11777 if test -n "$ncn_tool_prefix"; then
11778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11781 $as_echo_n "checking
for $ac_word...
" >&6; }
11782 if ${ac_cv_prog_NM+:} false; then :
11783 $as_echo_n "(cached
) " >&6
11785 if test -n "$NM"; then
11786 ac_cv_prog_NM="$NM" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11806 if test -n "$NM"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11808 $as_echo "$NM" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11811 $as_echo "no
" >&6; }
11816 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11818 set dummy ${ncn_progname}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11820 $as_echo_n "checking
for $ac_word...
" >&6; }
11821 if ${ac_cv_prog_NM+:} false; then :
11822 $as_echo_n "(cached
) " >&6
11824 if test -n "$NM"; then
11825 ac_cv_prog_NM="$NM" # Let the user override the test.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_prog_NM="${ncn_progname}"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11845 if test -n "$NM"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11847 $as_echo "$NM" >&6; }
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11850 $as_echo "no
" >&6; }
11855 test -n "$ac_cv_prog_NM" && break
11858 if test -z "$ac_cv_prog_NM" ; then
11860 if test $build = $host ; then
11863 NM="${ncn_tool_prefix}$2"
11869 if test -n "$RANLIB"; then
11870 ac_cv_prog_RANLIB=$RANLIB
11871 elif test -n "$ac_cv_prog_RANLIB"; then
11872 RANLIB=$ac_cv_prog_RANLIB
11875 if test -n "$ac_cv_prog_RANLIB"; then
11876 for ncn_progname in ranlib; do
11877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11878 set dummy ${ncn_progname}; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11880 $as_echo_n "checking
for $ac_word...
" >&6; }
11881 if ${ac_cv_prog_RANLIB+:} false; then :
11882 $as_echo_n "(cached
) " >&6
11884 if test -n "$RANLIB"; then
11885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894 ac_cv_prog_RANLIB="${ncn_progname}"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11904 RANLIB=$ac_cv_prog_RANLIB
11905 if test -n "$RANLIB"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11907 $as_echo "$RANLIB" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11910 $as_echo "no
" >&6; }
11917 for ncn_progname in ranlib; do
11918 if test -n "$ncn_tool_prefix"; then
11919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11922 $as_echo_n "checking
for $ac_word...
" >&6; }
11923 if ${ac_cv_prog_RANLIB+:} false; then :
11924 $as_echo_n "(cached
) " >&6
11926 if test -n "$RANLIB"; then
11927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11946 RANLIB=$ac_cv_prog_RANLIB
11947 if test -n "$RANLIB"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11949 $as_echo "$RANLIB" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11952 $as_echo "no
" >&6; }
11957 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11959 set dummy ${ncn_progname}; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11961 $as_echo_n "checking
for $ac_word...
" >&6; }
11962 if ${ac_cv_prog_RANLIB+:} false; then :
11963 $as_echo_n "(cached
) " >&6
11965 if test -n "$RANLIB"; then
11966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_prog_RANLIB="${ncn_progname}"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11985 RANLIB=$ac_cv_prog_RANLIB
11986 if test -n "$RANLIB"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11988 $as_echo "$RANLIB" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11991 $as_echo "no
" >&6; }
11996 test -n "$ac_cv_prog_RANLIB" && break
11999 if test -z "$ac_cv_prog_RANLIB" ; then
12005 if test -n "$STRIP"; then
12006 ac_cv_prog_STRIP=$STRIP
12007 elif test -n "$ac_cv_prog_STRIP"; then
12008 STRIP=$ac_cv_prog_STRIP
12011 if test -n "$ac_cv_prog_STRIP"; then
12012 for ncn_progname in strip; do
12013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12014 set dummy ${ncn_progname}; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12016 $as_echo_n "checking
for $ac_word...
" >&6; }
12017 if ${ac_cv_prog_STRIP+:} false; then :
12018 $as_echo_n "(cached
) " >&6
12020 if test -n "$STRIP"; then
12021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030 ac_cv_prog_STRIP="${ncn_progname}"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12040 STRIP=$ac_cv_prog_STRIP
12041 if test -n "$STRIP"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12043 $as_echo "$STRIP" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12046 $as_echo "no
" >&6; }
12053 for ncn_progname in strip; do
12054 if test -n "$ncn_tool_prefix"; then
12055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12058 $as_echo_n "checking
for $ac_word...
" >&6; }
12059 if ${ac_cv_prog_STRIP+:} false; then :
12060 $as_echo_n "(cached
) " >&6
12062 if test -n "$STRIP"; then
12063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12082 STRIP=$ac_cv_prog_STRIP
12083 if test -n "$STRIP"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12085 $as_echo "$STRIP" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12088 $as_echo "no
" >&6; }
12093 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095 set dummy ${ncn_progname}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12097 $as_echo_n "checking
for $ac_word...
" >&6; }
12098 if ${ac_cv_prog_STRIP+:} false; then :
12099 $as_echo_n "(cached
) " >&6
12101 if test -n "$STRIP"; then
12102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_STRIP="${ncn_progname}"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12121 STRIP=$ac_cv_prog_STRIP
12122 if test -n "$STRIP"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12124 $as_echo "$STRIP" >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12127 $as_echo "no
" >&6; }
12132 test -n "$ac_cv_prog_STRIP" && break
12135 if test -z "$ac_cv_prog_STRIP" ; then
12141 if test -n "$WINDRES"; then
12142 ac_cv_prog_WINDRES=$WINDRES
12143 elif test -n "$ac_cv_prog_WINDRES"; then
12144 WINDRES=$ac_cv_prog_WINDRES
12147 if test -n "$ac_cv_prog_WINDRES"; then
12148 for ncn_progname in windres; do
12149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12152 $as_echo_n "checking
for $ac_word...
" >&6; }
12153 if ${ac_cv_prog_WINDRES+:} false; then :
12154 $as_echo_n "(cached
) " >&6
12156 if test -n "$WINDRES"; then
12157 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_WINDRES="${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12176 WINDRES=$ac_cv_prog_WINDRES
12177 if test -n "$WINDRES"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12179 $as_echo "$WINDRES" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12182 $as_echo "no
" >&6; }
12189 for ncn_progname in windres; do
12190 if test -n "$ncn_tool_prefix"; then
12191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12194 $as_echo_n "checking
for $ac_word...
" >&6; }
12195 if ${ac_cv_prog_WINDRES+:} false; then :
12196 $as_echo_n "(cached
) " >&6
12198 if test -n "$WINDRES"; then
12199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12218 WINDRES=$ac_cv_prog_WINDRES
12219 if test -n "$WINDRES"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12221 $as_echo "$WINDRES" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12224 $as_echo "no
" >&6; }
12229 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12233 $as_echo_n "checking
for $ac_word...
" >&6; }
12234 if ${ac_cv_prog_WINDRES+:} false; then :
12235 $as_echo_n "(cached
) " >&6
12237 if test -n "$WINDRES"; then
12238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_WINDRES="${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12257 WINDRES=$ac_cv_prog_WINDRES
12258 if test -n "$WINDRES"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12260 $as_echo "$WINDRES" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12263 $as_echo "no
" >&6; }
12268 test -n "$ac_cv_prog_WINDRES" && break
12271 if test -z "$ac_cv_prog_WINDRES" ; then
12273 if test $build = $host ; then
12276 WINDRES="${ncn_tool_prefix}$2"
12282 if test -n "$WINDMC"; then
12283 ac_cv_prog_WINDMC=$WINDMC
12284 elif test -n "$ac_cv_prog_WINDMC"; then
12285 WINDMC=$ac_cv_prog_WINDMC
12288 if test -n "$ac_cv_prog_WINDMC"; then
12289 for ncn_progname in windmc; do
12290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12293 $as_echo_n "checking
for $ac_word...
" >&6; }
12294 if ${ac_cv_prog_WINDMC+:} false; then :
12295 $as_echo_n "(cached
) " >&6
12297 if test -n "$WINDMC"; then
12298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_WINDMC="${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12317 WINDMC=$ac_cv_prog_WINDMC
12318 if test -n "$WINDMC"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12320 $as_echo "$WINDMC" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12323 $as_echo "no
" >&6; }
12330 for ncn_progname in windmc; do
12331 if test -n "$ncn_tool_prefix"; then
12332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12335 $as_echo_n "checking
for $ac_word...
" >&6; }
12336 if ${ac_cv_prog_WINDMC+:} false; then :
12337 $as_echo_n "(cached
) " >&6
12339 if test -n "$WINDMC"; then
12340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12359 WINDMC=$ac_cv_prog_WINDMC
12360 if test -n "$WINDMC"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12362 $as_echo "$WINDMC" >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12365 $as_echo "no
" >&6; }
12370 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12374 $as_echo_n "checking
for $ac_word...
" >&6; }
12375 if ${ac_cv_prog_WINDMC+:} false; then :
12376 $as_echo_n "(cached
) " >&6
12378 if test -n "$WINDMC"; then
12379 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_WINDMC="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12398 WINDMC=$ac_cv_prog_WINDMC
12399 if test -n "$WINDMC"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12401 $as_echo "$WINDMC" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12404 $as_echo "no
" >&6; }
12409 test -n "$ac_cv_prog_WINDMC" && break
12412 if test -z "$ac_cv_prog_WINDMC" ; then
12414 if test $build = $host ; then
12417 WINDMC="${ncn_tool_prefix}$2"
12423 if test -n "$OBJCOPY"; then
12424 ac_cv_prog_OBJCOPY=$OBJCOPY
12425 elif test -n "$ac_cv_prog_OBJCOPY"; then
12426 OBJCOPY=$ac_cv_prog_OBJCOPY
12429 if test -n "$ac_cv_prog_OBJCOPY"; then
12430 for ncn_progname in objcopy; do
12431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12434 $as_echo_n "checking
for $ac_word...
" >&6; }
12435 if ${ac_cv_prog_OBJCOPY+:} false; then :
12436 $as_echo_n "(cached
) " >&6
12438 if test -n "$OBJCOPY"; then
12439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_OBJCOPY="${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12458 OBJCOPY=$ac_cv_prog_OBJCOPY
12459 if test -n "$OBJCOPY"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12461 $as_echo "$OBJCOPY" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12464 $as_echo "no
" >&6; }
12471 for ncn_progname in objcopy; do
12472 if test -n "$ncn_tool_prefix"; then
12473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12476 $as_echo_n "checking
for $ac_word...
" >&6; }
12477 if ${ac_cv_prog_OBJCOPY+:} false; then :
12478 $as_echo_n "(cached
) " >&6
12480 if test -n "$OBJCOPY"; then
12481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12500 OBJCOPY=$ac_cv_prog_OBJCOPY
12501 if test -n "$OBJCOPY"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12503 $as_echo "$OBJCOPY" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12506 $as_echo "no
" >&6; }
12511 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12515 $as_echo_n "checking
for $ac_word...
" >&6; }
12516 if ${ac_cv_prog_OBJCOPY+:} false; then :
12517 $as_echo_n "(cached
) " >&6
12519 if test -n "$OBJCOPY"; then
12520 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_OBJCOPY="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12539 OBJCOPY=$ac_cv_prog_OBJCOPY
12540 if test -n "$OBJCOPY"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12542 $as_echo "$OBJCOPY" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12545 $as_echo "no
" >&6; }
12550 test -n "$ac_cv_prog_OBJCOPY" && break
12553 if test -z "$ac_cv_prog_OBJCOPY" ; then
12555 if test $build = $host ; then
12558 OBJCOPY="${ncn_tool_prefix}$2"
12564 if test -n "$OBJDUMP"; then
12565 ac_cv_prog_OBJDUMP=$OBJDUMP
12566 elif test -n "$ac_cv_prog_OBJDUMP"; then
12567 OBJDUMP=$ac_cv_prog_OBJDUMP
12570 if test -n "$ac_cv_prog_OBJDUMP"; then
12571 for ncn_progname in objdump; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12575 $as_echo_n "checking
for $ac_word...
" >&6; }
12576 if ${ac_cv_prog_OBJDUMP+:} false; then :
12577 $as_echo_n "(cached
) " >&6
12579 if test -n "$OBJDUMP"; then
12580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OBJDUMP="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12599 OBJDUMP=$ac_cv_prog_OBJDUMP
12600 if test -n "$OBJDUMP"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12602 $as_echo "$OBJDUMP" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12605 $as_echo "no
" >&6; }
12612 for ncn_progname in objdump; do
12613 if test -n "$ncn_tool_prefix"; then
12614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12617 $as_echo_n "checking
for $ac_word...
" >&6; }
12618 if ${ac_cv_prog_OBJDUMP+:} false; then :
12619 $as_echo_n "(cached
) " >&6
12621 if test -n "$OBJDUMP"; then
12622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12641 OBJDUMP=$ac_cv_prog_OBJDUMP
12642 if test -n "$OBJDUMP"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12644 $as_echo "$OBJDUMP" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12647 $as_echo "no
" >&6; }
12652 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12656 $as_echo_n "checking
for $ac_word...
" >&6; }
12657 if ${ac_cv_prog_OBJDUMP+:} false; then :
12658 $as_echo_n "(cached
) " >&6
12660 if test -n "$OBJDUMP"; then
12661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_OBJDUMP="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12680 OBJDUMP=$ac_cv_prog_OBJDUMP
12681 if test -n "$OBJDUMP"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12683 $as_echo "$OBJDUMP" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12686 $as_echo "no
" >&6; }
12691 test -n "$ac_cv_prog_OBJDUMP" && break
12694 if test -z "$ac_cv_prog_OBJDUMP" ; then
12696 if test $build = $host ; then
12699 OBJDUMP="${ncn_tool_prefix}$2"
12705 if test -n "$OTOOL"; then
12706 ac_cv_prog_OTOOL=$OTOOL
12707 elif test -n "$ac_cv_prog_OTOOL"; then
12708 OTOOL=$ac_cv_prog_OTOOL
12711 if test -n "$ac_cv_prog_OTOOL"; then
12712 for ncn_progname in otool; do
12713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12716 $as_echo_n "checking
for $ac_word...
" >&6; }
12717 if ${ac_cv_prog_OTOOL+:} false; then :
12718 $as_echo_n "(cached
) " >&6
12720 if test -n "$OTOOL"; then
12721 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_OTOOL="${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12740 OTOOL=$ac_cv_prog_OTOOL
12741 if test -n "$OTOOL"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12743 $as_echo "$OTOOL" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12746 $as_echo "no
" >&6; }
12753 for ncn_progname in otool; do
12754 if test -n "$ncn_tool_prefix"; then
12755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12758 $as_echo_n "checking
for $ac_word...
" >&6; }
12759 if ${ac_cv_prog_OTOOL+:} false; then :
12760 $as_echo_n "(cached
) " >&6
12762 if test -n "$OTOOL"; then
12763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12782 OTOOL=$ac_cv_prog_OTOOL
12783 if test -n "$OTOOL"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12785 $as_echo "$OTOOL" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12788 $as_echo "no
" >&6; }
12793 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12797 $as_echo_n "checking
for $ac_word...
" >&6; }
12798 if ${ac_cv_prog_OTOOL+:} false; then :
12799 $as_echo_n "(cached
) " >&6
12801 if test -n "$OTOOL"; then
12802 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_OTOOL="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12821 OTOOL=$ac_cv_prog_OTOOL
12822 if test -n "$OTOOL"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12824 $as_echo "$OTOOL" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12827 $as_echo "no
" >&6; }
12832 test -n "$ac_cv_prog_OTOOL" && break
12835 if test -z "$ac_cv_prog_OTOOL" ; then
12837 if test $build = $host ; then
12840 OTOOL="${ncn_tool_prefix}$2"
12846 if test -n "$READELF"; then
12847 ac_cv_prog_READELF=$READELF
12848 elif test -n "$ac_cv_prog_READELF"; then
12849 READELF=$ac_cv_prog_READELF
12852 if test -n "$ac_cv_prog_READELF"; then
12853 for ncn_progname in readelf; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12857 $as_echo_n "checking
for $ac_word...
" >&6; }
12858 if ${ac_cv_prog_READELF+:} false; then :
12859 $as_echo_n "(cached
) " >&6
12861 if test -n "$READELF"; then
12862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12871 ac_cv_prog_READELF="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12881 READELF=$ac_cv_prog_READELF
12882 if test -n "$READELF"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12884 $as_echo "$READELF" >&6; }
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12887 $as_echo "no
" >&6; }
12894 for ncn_progname in readelf; do
12895 if test -n "$ncn_tool_prefix"; then
12896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12899 $as_echo_n "checking
for $ac_word...
" >&6; }
12900 if ${ac_cv_prog_READELF+:} false; then :
12901 $as_echo_n "(cached
) " >&6
12903 if test -n "$READELF"; then
12904 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12923 READELF=$ac_cv_prog_READELF
12924 if test -n "$READELF"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12926 $as_echo "$READELF" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12929 $as_echo "no
" >&6; }
12934 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12938 $as_echo_n "checking
for $ac_word...
" >&6; }
12939 if ${ac_cv_prog_READELF+:} false; then :
12940 $as_echo_n "(cached
) " >&6
12942 if test -n "$READELF"; then
12943 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_READELF="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12962 READELF=$ac_cv_prog_READELF
12963 if test -n "$READELF"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12965 $as_echo "$READELF" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12968 $as_echo "no
" >&6; }
12973 test -n "$ac_cv_prog_READELF" && break
12976 if test -z "$ac_cv_prog_READELF" ; then
12978 if test $build = $host ; then
12981 READELF="${ncn_tool_prefix}$2"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12994 $as_echo_n "checking
for -plugin option...
" >&6; }
12996 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12998 for plugin in $plugin_names; do
12999 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13000 if test x$plugin_so = x$plugin; then
13001 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13003 if test x$plugin_so != x$plugin; then
13004 plugin_option="--plugin $plugin_so"
13008 if test -n "$ac_tool_prefix"; then
13009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13010 set dummy ${ac_tool_prefix}ar; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13012 $as_echo_n "checking
for $ac_word...
" >&6; }
13013 if ${ac_cv_prog_AR+:} false; then :
13014 $as_echo_n "(cached
) " >&6
13016 if test -n "$AR"; then
13017 ac_cv_prog_AR="$AR" # Let the user override the test.
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026 ac_cv_prog_AR="${ac_tool_prefix}ar"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13037 if test -n "$AR"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13039 $as_echo "$AR" >&6; }
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13042 $as_echo "no
" >&6; }
13047 if test -z "$ac_cv_prog_AR"; then
13049 # Extract the first word of "ar", so it can be a program name with args.
13050 set dummy ar; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13052 $as_echo_n "checking
for $ac_word...
" >&6; }
13053 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13054 $as_echo_n "(cached
) " >&6
13056 if test -n "$ac_ct_AR"; then
13057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_prog_ac_ct_AR="ar"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13077 if test -n "$ac_ct_AR"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13079 $as_echo "$ac_ct_AR" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13082 $as_echo "no
" >&6; }
13085 if test "x
$ac_ct_AR" = x; then
13088 case $cross_compiling:$ac_tool_warned in
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13091 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13092 ac_tool_warned=yes ;;
13097 AR="$ac_cv_prog_AR"
13100 if test "${AR}" = "" ; then
13101 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13104 ${AR} $plugin_option rc conftest.a conftest.c
13105 if test "$?
" != 0; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13107 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13111 if test -n "$plugin_option"; then
13112 PLUGIN_OPTION="$plugin_option"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13114 $as_echo "$plugin_option" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13117 $as_echo "no
" >&6; }
13121 RANLIB_PLUGIN_OPTION=
13122 if test -n "$PLUGIN_OPTION"; then
13123 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13124 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13126 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13127 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13135 # Check whether --with-build-time-tools was given.
13136 if test "${with_build_time_tools+set}" = set; then :
13137 withval=$with_build_time_tools; case x"$withval" in
13140 with_build_time_tools=
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13142 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13146 with_build_time_tools=
13152 if test -n "$CC_FOR_TARGET"; then
13153 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13154 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13155 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13158 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13159 for ncn_progname in cc gcc; do
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13163 $as_echo_n "checking
for $ac_word...
" >&6; }
13164 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13165 $as_echo_n "(cached
) " >&6
13167 if test -n "$CC_FOR_TARGET"; then
13168 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13187 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13188 if test -n "$CC_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13190 $as_echo "$CC_FOR_TARGET" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13193 $as_echo "no
" >&6; }
13200 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13201 for ncn_progname in cc gcc; do
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13203 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13204 if test -x $with_build_time_tools/${ncn_progname}; then
13205 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13207 $as_echo "yes" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13211 $as_echo "no
" >&6; }
13216 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13217 for ncn_progname in cc gcc; do
13218 if test -n "$ncn_target_tool_prefix"; then
13219 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13220 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13222 $as_echo_n "checking
for $ac_word...
" >&6; }
13223 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13224 $as_echo_n "(cached
) " >&6
13226 if test -n "$CC_FOR_TARGET"; then
13227 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13246 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13247 if test -n "$CC_FOR_TARGET"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13249 $as_echo "$CC_FOR_TARGET" >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13252 $as_echo "no
" >&6; }
13257 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13259 set dummy ${ncn_progname}; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13261 $as_echo_n "checking
for $ac_word...
" >&6; }
13262 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13263 $as_echo_n "(cached
) " >&6
13265 if test -n "$CC_FOR_TARGET"; then
13266 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13285 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13286 if test -n "$CC_FOR_TARGET"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13288 $as_echo "$CC_FOR_TARGET" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13291 $as_echo "no
" >&6; }
13296 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13300 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13302 if test $build = $target ; then
13305 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13308 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13313 if test -n "$CXX_FOR_TARGET"; then
13314 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13315 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13316 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13319 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13320 for ncn_progname in c++ g++ cxx gxx; do
13321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13322 set dummy ${ncn_progname}; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13324 $as_echo_n "checking
for $ac_word...
" >&6; }
13325 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13326 $as_echo_n "(cached
) " >&6
13328 if test -n "$CXX_FOR_TARGET"; then
13329 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13348 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13349 if test -n "$CXX_FOR_TARGET"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13351 $as_echo "$CXX_FOR_TARGET" >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13354 $as_echo "no
" >&6; }
13361 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13362 for ncn_progname in c++ g++ cxx gxx; do
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13364 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13365 if test -x $with_build_time_tools/${ncn_progname}; then
13366 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13368 $as_echo "yes" >&6; }
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13372 $as_echo "no
" >&6; }
13377 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13378 for ncn_progname in c++ g++ cxx gxx; do
13379 if test -n "$ncn_target_tool_prefix"; then
13380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13383 $as_echo_n "checking
for $ac_word...
" >&6; }
13384 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13385 $as_echo_n "(cached
) " >&6
13387 if test -n "$CXX_FOR_TARGET"; then
13388 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13407 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13408 if test -n "$CXX_FOR_TARGET"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13410 $as_echo "$CXX_FOR_TARGET" >&6; }
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13413 $as_echo "no
" >&6; }
13418 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13420 set dummy ${ncn_progname}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13422 $as_echo_n "checking
for $ac_word...
" >&6; }
13423 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13424 $as_echo_n "(cached
) " >&6
13426 if test -n "$CXX_FOR_TARGET"; then
13427 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13446 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13447 if test -n "$CXX_FOR_TARGET"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13449 $as_echo "$CXX_FOR_TARGET" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13452 $as_echo "no
" >&6; }
13457 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13461 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13462 set dummy c++ g++ cxx gxx
13463 if test $build = $target ; then
13464 CXX_FOR_TARGET="$2"
13466 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13469 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13474 if test -n "$GCC_FOR_TARGET"; then
13475 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13476 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13477 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13480 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13481 for ncn_progname in gcc; do
13482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13483 set dummy ${ncn_progname}; ac_word=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13485 $as_echo_n "checking
for $ac_word...
" >&6; }
13486 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13487 $as_echo_n "(cached
) " >&6
13489 if test -n "$GCC_FOR_TARGET"; then
13490 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13499 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13500 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13509 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13510 if test -n "$GCC_FOR_TARGET"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13512 $as_echo "$GCC_FOR_TARGET" >&6; }
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13515 $as_echo "no
" >&6; }
13522 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13523 for ncn_progname in gcc; do
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13525 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13526 if test -x $with_build_time_tools/${ncn_progname}; then
13527 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13529 $as_echo "yes" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13533 $as_echo "no
" >&6; }
13538 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13539 for ncn_progname in gcc; do
13540 if test -n "$ncn_target_tool_prefix"; then
13541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13542 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13544 $as_echo_n "checking
for $ac_word...
" >&6; }
13545 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13546 $as_echo_n "(cached
) " >&6
13548 if test -n "$GCC_FOR_TARGET"; then
13549 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13568 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13569 if test -n "$GCC_FOR_TARGET"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13571 $as_echo "$GCC_FOR_TARGET" >&6; }
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13574 $as_echo "no
" >&6; }
13579 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13581 set dummy ${ncn_progname}; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13583 $as_echo_n "checking
for $ac_word...
" >&6; }
13584 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13585 $as_echo_n "(cached
) " >&6
13587 if test -n "$GCC_FOR_TARGET"; then
13588 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13607 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13608 if test -n "$GCC_FOR_TARGET"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13610 $as_echo "$GCC_FOR_TARGET" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13613 $as_echo "no
" >&6; }
13618 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13622 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13623 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13625 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13630 if test -n "$GFORTRAN_FOR_TARGET"; then
13631 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13632 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13633 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13636 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13637 for ncn_progname in gfortran; do
13638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13639 set dummy ${ncn_progname}; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13641 $as_echo_n "checking
for $ac_word...
" >&6; }
13642 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13643 $as_echo_n "(cached
) " >&6
13645 if test -n "$GFORTRAN_FOR_TARGET"; then
13646 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13655 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13665 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13666 if test -n "$GFORTRAN_FOR_TARGET"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13668 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13671 $as_echo "no
" >&6; }
13678 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13679 for ncn_progname in gfortran; do
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13681 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13682 if test -x $with_build_time_tools/${ncn_progname}; then
13683 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13685 $as_echo "yes" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13689 $as_echo "no
" >&6; }
13694 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13695 for ncn_progname in gfortran; do
13696 if test -n "$ncn_target_tool_prefix"; then
13697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13700 $as_echo_n "checking
for $ac_word...
" >&6; }
13701 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13702 $as_echo_n "(cached
) " >&6
13704 if test -n "$GFORTRAN_FOR_TARGET"; then
13705 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13714 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13724 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13725 if test -n "$GFORTRAN_FOR_TARGET"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13727 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13730 $as_echo "no
" >&6; }
13735 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13737 set dummy ${ncn_progname}; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13739 $as_echo_n "checking
for $ac_word...
" >&6; }
13740 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13741 $as_echo_n "(cached
) " >&6
13743 if test -n "$GFORTRAN_FOR_TARGET"; then
13744 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13763 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13764 if test -n "$GFORTRAN_FOR_TARGET"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13766 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13769 $as_echo "no
" >&6; }
13774 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13778 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13780 if test $build = $target ; then
13781 GFORTRAN_FOR_TARGET="$2"
13783 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13786 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13791 if test -n "$GOC_FOR_TARGET"; then
13792 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13793 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13794 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13797 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13798 for ncn_progname in gccgo; do
13799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13800 set dummy ${ncn_progname}; ac_word=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13802 $as_echo_n "checking
for $ac_word...
" >&6; }
13803 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13804 $as_echo_n "(cached
) " >&6
13806 if test -n "$GOC_FOR_TARGET"; then
13807 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13816 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13826 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13827 if test -n "$GOC_FOR_TARGET"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13829 $as_echo "$GOC_FOR_TARGET" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13832 $as_echo "no
" >&6; }
13839 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13840 for ncn_progname in gccgo; do
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13842 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13843 if test -x $with_build_time_tools/${ncn_progname}; then
13844 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13846 $as_echo "yes" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13850 $as_echo "no
" >&6; }
13855 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13856 for ncn_progname in gccgo; do
13857 if test -n "$ncn_target_tool_prefix"; then
13858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13861 $as_echo_n "checking
for $ac_word...
" >&6; }
13862 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached
) " >&6
13865 if test -n "$GOC_FOR_TARGET"; then
13866 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13885 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13886 if test -n "$GOC_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13888 $as_echo "$GOC_FOR_TARGET" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13891 $as_echo "no
" >&6; }
13896 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13898 set dummy ${ncn_progname}; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13900 $as_echo_n "checking
for $ac_word...
" >&6; }
13901 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13902 $as_echo_n "(cached
) " >&6
13904 if test -n "$GOC_FOR_TARGET"; then
13905 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13924 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13925 if test -n "$GOC_FOR_TARGET"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13927 $as_echo "$GOC_FOR_TARGET" >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13930 $as_echo "no
" >&6; }
13935 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13939 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13941 if test $build = $target ; then
13942 GOC_FOR_TARGET="$2"
13944 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13947 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13952 if test -n "$GDC_FOR_TARGET"; then
13953 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13954 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13955 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13958 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13959 for ncn_progname in gdc; do
13960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13961 set dummy ${ncn_progname}; ac_word=$2
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13963 $as_echo_n "checking
for $ac_word...
" >&6; }
13964 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13965 $as_echo_n "(cached
) " >&6
13967 if test -n "$GDC_FOR_TARGET"; then
13968 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971 for as_dir in $PATH
13974 test -z "$as_dir" && as_dir=.
13975 for ac_exec_ext in '' $ac_executable_extensions; do
13976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13977 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13978 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13987 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13988 if test -n "$GDC_FOR_TARGET"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13990 $as_echo "$GDC_FOR_TARGET" >&6; }
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13993 $as_echo "no
" >&6; }
14000 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14001 for ncn_progname in gdc; do
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14003 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14004 if test -x $with_build_time_tools/${ncn_progname}; then
14005 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14007 $as_echo "yes" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14011 $as_echo "no
" >&6; }
14016 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14017 for ncn_progname in gdc; do
14018 if test -n "$ncn_target_tool_prefix"; then
14019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14020 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14022 $as_echo_n "checking
for $ac_word...
" >&6; }
14023 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14024 $as_echo_n "(cached
) " >&6
14026 if test -n "$GDC_FOR_TARGET"; then
14027 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14036 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14046 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14047 if test -n "$GDC_FOR_TARGET"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14049 $as_echo "$GDC_FOR_TARGET" >&6; }
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14052 $as_echo "no
" >&6; }
14057 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14059 set dummy ${ncn_progname}; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14061 $as_echo_n "checking
for $ac_word...
" >&6; }
14062 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14063 $as_echo_n "(cached
) " >&6
14065 if test -n "$GDC_FOR_TARGET"; then
14066 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14085 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14086 if test -n "$GDC_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14088 $as_echo "$GDC_FOR_TARGET" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14091 $as_echo "no
" >&6; }
14096 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14100 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14102 if test $build = $target ; then
14103 GDC_FOR_TARGET="$2"
14105 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14108 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14113 cat > conftest.c << \EOF
14118 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14119 have_gcc_for_target=yes
14121 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14122 have_gcc_for_target=no
14129 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14130 if test -n "$with_build_time_tools"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14132 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14133 if test -x $with_build_time_tools/ar; then
14134 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14135 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14137 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14140 $as_echo "no
" >&6; }
14142 elif test $build != $host && test $have_gcc_for_target = yes; then
14143 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14144 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14145 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14148 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14149 # Extract the first word of "ar", so it can be a program name with args.
14150 set dummy ar; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14152 $as_echo_n "checking
for $ac_word...
" >&6; }
14153 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14154 $as_echo_n "(cached
) " >&6
14156 case $AR_FOR_TARGET in
14158 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162 for as_dir in $gcc_cv_tool_dirs
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
14167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14168 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14179 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14180 if test -n "$AR_FOR_TARGET"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14182 $as_echo "$AR_FOR_TARGET" >&6; }
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14185 $as_echo "no
" >&6; }
14190 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14193 if test -n "$AR_FOR_TARGET"; then
14194 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14195 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14196 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14199 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14200 for ncn_progname in ar; do
14201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14202 set dummy ${ncn_progname}; ac_word=$2
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14204 $as_echo_n "checking
for $ac_word...
" >&6; }
14205 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14206 $as_echo_n "(cached
) " >&6
14208 if test -n "$AR_FOR_TARGET"; then
14209 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14228 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14229 if test -n "$AR_FOR_TARGET"; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14231 $as_echo "$AR_FOR_TARGET" >&6; }
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14234 $as_echo "no
" >&6; }
14241 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14242 for ncn_progname in ar; do
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14244 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14245 if test -x $with_build_time_tools/${ncn_progname}; then
14246 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14248 $as_echo "yes" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14252 $as_echo "no
" >&6; }
14257 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14258 for ncn_progname in ar; do
14259 if test -n "$ncn_target_tool_prefix"; then
14260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14263 $as_echo_n "checking
for $ac_word...
" >&6; }
14264 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14265 $as_echo_n "(cached
) " >&6
14267 if test -n "$AR_FOR_TARGET"; then
14268 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14277 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14287 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14288 if test -n "$AR_FOR_TARGET"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14290 $as_echo "$AR_FOR_TARGET" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14293 $as_echo "no
" >&6; }
14298 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14300 set dummy ${ncn_progname}; ac_word=$2
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14302 $as_echo_n "checking
for $ac_word...
" >&6; }
14303 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14304 $as_echo_n "(cached
) " >&6
14306 if test -n "$AR_FOR_TARGET"; then
14307 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $PATH
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14326 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14327 if test -n "$AR_FOR_TARGET"; then
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14329 $as_echo "$AR_FOR_TARGET" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14332 $as_echo "no
" >&6; }
14337 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14341 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14343 if test $build = $target ; then
14346 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14349 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14353 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14359 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14360 if test -n "$with_build_time_tools"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14362 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14363 if test -x $with_build_time_tools/as; then
14364 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14365 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14367 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14370 $as_echo "no
" >&6; }
14372 elif test $build != $host && test $have_gcc_for_target = yes; then
14373 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14374 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14375 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14378 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14379 # Extract the first word of "as
", so it can be a program name with args.
14380 set dummy as; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14382 $as_echo_n "checking
for $ac_word...
" >&6; }
14383 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached
) " >&6
14386 case $AS_FOR_TARGET in
14388 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $gcc_cv_tool_dirs
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14409 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14410 if test -n "$AS_FOR_TARGET"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14412 $as_echo "$AS_FOR_TARGET" >&6; }
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14415 $as_echo "no
" >&6; }
14420 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14423 if test -n "$AS_FOR_TARGET"; then
14424 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14425 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14426 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14429 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14430 for ncn_progname in as; do
14431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14432 set dummy ${ncn_progname}; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14434 $as_echo_n "checking
for $ac_word...
" >&6; }
14435 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14436 $as_echo_n "(cached
) " >&6
14438 if test -n "$AS_FOR_TARGET"; then
14439 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14458 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14459 if test -n "$AS_FOR_TARGET"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14461 $as_echo "$AS_FOR_TARGET" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14464 $as_echo "no
" >&6; }
14471 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14472 for ncn_progname in as; do
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14474 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14475 if test -x $with_build_time_tools/${ncn_progname}; then
14476 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14478 $as_echo "yes" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14482 $as_echo "no
" >&6; }
14487 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14488 for ncn_progname in as; do
14489 if test -n "$ncn_target_tool_prefix"; then
14490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14493 $as_echo_n "checking
for $ac_word...
" >&6; }
14494 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14495 $as_echo_n "(cached
) " >&6
14497 if test -n "$AS_FOR_TARGET"; then
14498 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501 for as_dir in $PATH
14504 test -z "$as_dir" && as_dir=.
14505 for ac_exec_ext in '' $ac_executable_extensions; do
14506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14507 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14517 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14518 if test -n "$AS_FOR_TARGET"; then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14520 $as_echo "$AS_FOR_TARGET" >&6; }
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14523 $as_echo "no
" >&6; }
14528 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14530 set dummy ${ncn_progname}; ac_word=$2
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14532 $as_echo_n "checking
for $ac_word...
" >&6; }
14533 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14534 $as_echo_n "(cached
) " >&6
14536 if test -n "$AS_FOR_TARGET"; then
14537 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14556 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14557 if test -n "$AS_FOR_TARGET"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14559 $as_echo "$AS_FOR_TARGET" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14562 $as_echo "no
" >&6; }
14567 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14571 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14573 if test $build = $target ; then
14576 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14579 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14583 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14589 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14590 if test -n "$with_build_time_tools"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14592 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14593 if test -x $with_build_time_tools/dlltool; then
14594 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14595 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14597 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14600 $as_echo "no
" >&6; }
14602 elif test $build != $host && test $have_gcc_for_target = yes; then
14603 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14604 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14605 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14608 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14609 # Extract the first word of "dlltool
", so it can be a program name with args.
14610 set dummy dlltool; ac_word=$2
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14612 $as_echo_n "checking
for $ac_word...
" >&6; }
14613 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14614 $as_echo_n "(cached
) " >&6
14616 case $DLLTOOL_FOR_TARGET in
14618 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $gcc_cv_tool_dirs
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14639 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14640 if test -n "$DLLTOOL_FOR_TARGET"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14642 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14645 $as_echo "no
" >&6; }
14650 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14653 if test -n "$DLLTOOL_FOR_TARGET"; then
14654 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14655 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14656 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14659 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14660 for ncn_progname in dlltool; do
14661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14662 set dummy ${ncn_progname}; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14664 $as_echo_n "checking
for $ac_word...
" >&6; }
14665 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14666 $as_echo_n "(cached
) " >&6
14668 if test -n "$DLLTOOL_FOR_TARGET"; then
14669 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14688 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14689 if test -n "$DLLTOOL_FOR_TARGET"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14691 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14694 $as_echo "no
" >&6; }
14701 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14702 for ncn_progname in dlltool; do
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14704 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14705 if test -x $with_build_time_tools/${ncn_progname}; then
14706 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14708 $as_echo "yes" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14712 $as_echo "no
" >&6; }
14717 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14718 for ncn_progname in dlltool; do
14719 if test -n "$ncn_target_tool_prefix"; then
14720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14723 $as_echo_n "checking
for $ac_word...
" >&6; }
14724 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14725 $as_echo_n "(cached
) " >&6
14727 if test -n "$DLLTOOL_FOR_TARGET"; then
14728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14738 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14747 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14748 if test -n "$DLLTOOL_FOR_TARGET"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14750 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14753 $as_echo "no
" >&6; }
14758 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14760 set dummy ${ncn_progname}; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14762 $as_echo_n "checking
for $ac_word...
" >&6; }
14763 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14764 $as_echo_n "(cached
) " >&6
14766 if test -n "$DLLTOOL_FOR_TARGET"; then
14767 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14786 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14787 if test -n "$DLLTOOL_FOR_TARGET"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14789 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14792 $as_echo "no
" >&6; }
14797 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14801 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14803 if test $build = $target ; then
14804 DLLTOOL_FOR_TARGET="$2"
14806 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14809 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14813 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14819 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14820 if test -n "$with_build_time_tools"; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14822 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14823 if test -x $with_build_time_tools/dsymutil; then
14824 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14825 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14827 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14830 $as_echo "no
" >&6; }
14832 elif test $build != $host && test $have_gcc_for_target = yes; then
14833 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14834 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14835 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14838 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14839 # Extract the first word of "dsymutil
", so it can be a program name with args.
14840 set dummy dsymutil; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14842 $as_echo_n "checking
for $ac_word...
" >&6; }
14843 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14844 $as_echo_n "(cached
) " >&6
14846 case $DSYMUTIL_FOR_TARGET in
14848 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852 for as_dir in $gcc_cv_tool_dirs
14855 test -z "$as_dir" && as_dir=.
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14869 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14870 if test -n "$DSYMUTIL_FOR_TARGET"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14872 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14875 $as_echo "no
" >&6; }
14880 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14883 if test -n "$DSYMUTIL_FOR_TARGET"; then
14884 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14885 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14886 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14889 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14890 for ncn_progname in dsymutil; do
14891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14892 set dummy ${ncn_progname}; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14894 $as_echo_n "checking
for $ac_word...
" >&6; }
14895 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14896 $as_echo_n "(cached
) " >&6
14898 if test -n "$DSYMUTIL_FOR_TARGET"; then
14899 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $PATH
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14918 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14919 if test -n "$DSYMUTIL_FOR_TARGET"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14921 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14924 $as_echo "no
" >&6; }
14931 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14932 for ncn_progname in dsymutil; do
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14934 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14935 if test -x $with_build_time_tools/${ncn_progname}; then
14936 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14938 $as_echo "yes" >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14942 $as_echo "no
" >&6; }
14947 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14948 for ncn_progname in dsymutil; do
14949 if test -n "$ncn_target_tool_prefix"; then
14950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14953 $as_echo_n "checking
for $ac_word...
" >&6; }
14954 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14955 $as_echo_n "(cached
) " >&6
14957 if test -n "$DSYMUTIL_FOR_TARGET"; then
14958 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14977 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14978 if test -n "$DSYMUTIL_FOR_TARGET"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14980 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14983 $as_echo "no
" >&6; }
14988 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14990 set dummy ${ncn_progname}; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14992 $as_echo_n "checking
for $ac_word...
" >&6; }
14993 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14994 $as_echo_n "(cached
) " >&6
14996 if test -n "$DSYMUTIL_FOR_TARGET"; then
14997 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15016 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15017 if test -n "$DSYMUTIL_FOR_TARGET"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15019 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15022 $as_echo "no
" >&6; }
15027 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15031 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15033 if test $build = $target ; then
15034 DSYMUTIL_FOR_TARGET="$2"
15036 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15039 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15043 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15049 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15050 if test -n "$with_build_time_tools"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15052 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15053 if test -x $with_build_time_tools/ld; then
15054 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15055 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15057 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15060 $as_echo "no
" >&6; }
15062 elif test $build != $host && test $have_gcc_for_target = yes; then
15063 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15064 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15065 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15068 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15069 # Extract the first word of "ld
", so it can be a program name with args.
15070 set dummy ld; ac_word=$2
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15072 $as_echo_n "checking
for $ac_word...
" >&6; }
15073 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15074 $as_echo_n "(cached
) " >&6
15076 case $LD_FOR_TARGET in
15078 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15082 for as_dir in $gcc_cv_tool_dirs
15085 test -z "$as_dir" && as_dir=.
15086 for ac_exec_ext in '' $ac_executable_extensions; do
15087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15088 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15099 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15100 if test -n "$LD_FOR_TARGET"; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15102 $as_echo "$LD_FOR_TARGET" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15105 $as_echo "no
" >&6; }
15110 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15113 if test -n "$LD_FOR_TARGET"; then
15114 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15115 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15116 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15119 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15120 for ncn_progname in ld; do
15121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15122 set dummy ${ncn_progname}; ac_word=$2
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15124 $as_echo_n "checking
for $ac_word...
" >&6; }
15125 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15126 $as_echo_n "(cached
) " >&6
15128 if test -n "$LD_FOR_TARGET"; then
15129 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $PATH
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15148 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15149 if test -n "$LD_FOR_TARGET"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15151 $as_echo "$LD_FOR_TARGET" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15154 $as_echo "no
" >&6; }
15161 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15162 for ncn_progname in ld; do
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15164 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15165 if test -x $with_build_time_tools/${ncn_progname}; then
15166 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15168 $as_echo "yes" >&6; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15172 $as_echo "no
" >&6; }
15177 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15178 for ncn_progname in ld; do
15179 if test -n "$ncn_target_tool_prefix"; then
15180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15183 $as_echo_n "checking
for $ac_word...
" >&6; }
15184 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15185 $as_echo_n "(cached
) " >&6
15187 if test -n "$LD_FOR_TARGET"; then
15188 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191 for as_dir in $PATH
15194 test -z "$as_dir" && as_dir=.
15195 for ac_exec_ext in '' $ac_executable_extensions; do
15196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15207 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15208 if test -n "$LD_FOR_TARGET"; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15210 $as_echo "$LD_FOR_TARGET" >&6; }
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15213 $as_echo "no
" >&6; }
15218 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15220 set dummy ${ncn_progname}; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15222 $as_echo_n "checking
for $ac_word...
" >&6; }
15223 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15224 $as_echo_n "(cached
) " >&6
15226 if test -n "$LD_FOR_TARGET"; then
15227 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15246 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15247 if test -n "$LD_FOR_TARGET"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15249 $as_echo "$LD_FOR_TARGET" >&6; }
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15252 $as_echo "no
" >&6; }
15257 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15261 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15263 if test $build = $target ; then
15266 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15269 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15273 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15279 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15280 if test -n "$with_build_time_tools"; then
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15282 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15283 if test -x $with_build_time_tools/lipo; then
15284 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15285 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15287 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15290 $as_echo "no
" >&6; }
15292 elif test $build != $host && test $have_gcc_for_target = yes; then
15293 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15294 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15295 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15298 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15299 # Extract the first word of "lipo
", so it can be a program name with args.
15300 set dummy lipo; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15302 $as_echo_n "checking
for $ac_word...
" >&6; }
15303 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15304 $as_echo_n "(cached
) " >&6
15306 case $LIPO_FOR_TARGET in
15308 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $gcc_cv_tool_dirs
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15329 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15330 if test -n "$LIPO_FOR_TARGET"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15332 $as_echo "$LIPO_FOR_TARGET" >&6; }
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15335 $as_echo "no
" >&6; }
15340 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15343 if test -n "$LIPO_FOR_TARGET"; then
15344 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15345 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15346 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15349 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15350 for ncn_progname in lipo; do
15351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15352 set dummy ${ncn_progname}; ac_word=$2
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15354 $as_echo_n "checking
for $ac_word...
" >&6; }
15355 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15356 $as_echo_n "(cached
) " >&6
15358 if test -n "$LIPO_FOR_TARGET"; then
15359 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15378 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15379 if test -n "$LIPO_FOR_TARGET"; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15381 $as_echo "$LIPO_FOR_TARGET" >&6; }
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15384 $as_echo "no
" >&6; }
15391 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15392 for ncn_progname in lipo; do
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15394 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15395 if test -x $with_build_time_tools/${ncn_progname}; then
15396 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15398 $as_echo "yes" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15402 $as_echo "no
" >&6; }
15407 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15408 for ncn_progname in lipo; do
15409 if test -n "$ncn_target_tool_prefix"; then
15410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15413 $as_echo_n "checking
for $ac_word...
" >&6; }
15414 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15415 $as_echo_n "(cached
) " >&6
15417 if test -n "$LIPO_FOR_TARGET"; then
15418 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15424 test -z "$as_dir" && as_dir=.
15425 for ac_exec_ext in '' $ac_executable_extensions; do
15426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15427 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15437 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15438 if test -n "$LIPO_FOR_TARGET"; then
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15440 $as_echo "$LIPO_FOR_TARGET" >&6; }
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15443 $as_echo "no
" >&6; }
15448 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15450 set dummy ${ncn_progname}; ac_word=$2
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15452 $as_echo_n "checking
for $ac_word...
" >&6; }
15453 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15454 $as_echo_n "(cached
) " >&6
15456 if test -n "$LIPO_FOR_TARGET"; then
15457 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15460 for as_dir in $PATH
15463 test -z "$as_dir" && as_dir=.
15464 for ac_exec_ext in '' $ac_executable_extensions; do
15465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15466 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15476 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15477 if test -n "$LIPO_FOR_TARGET"; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15479 $as_echo "$LIPO_FOR_TARGET" >&6; }
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15482 $as_echo "no
" >&6; }
15487 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15491 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15493 if test $build = $target ; then
15494 LIPO_FOR_TARGET="$2"
15496 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15499 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15503 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15509 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15510 if test -n "$with_build_time_tools"; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15512 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15513 if test -x $with_build_time_tools/nm; then
15514 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15515 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15517 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15520 $as_echo "no
" >&6; }
15522 elif test $build != $host && test $have_gcc_for_target = yes; then
15523 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15524 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15525 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15528 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15529 # Extract the first word of "nm
", so it can be a program name with args.
15530 set dummy nm; ac_word=$2
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15532 $as_echo_n "checking
for $ac_word...
" >&6; }
15533 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15534 $as_echo_n "(cached
) " >&6
15536 case $NM_FOR_TARGET in
15538 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15542 for as_dir in $gcc_cv_tool_dirs
15545 test -z "$as_dir" && as_dir=.
15546 for ac_exec_ext in '' $ac_executable_extensions; do
15547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15548 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15559 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15560 if test -n "$NM_FOR_TARGET"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15562 $as_echo "$NM_FOR_TARGET" >&6; }
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15565 $as_echo "no
" >&6; }
15570 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15573 if test -n "$NM_FOR_TARGET"; then
15574 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15575 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15576 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15579 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15580 for ncn_progname in nm; do
15581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15584 $as_echo_n "checking
for $ac_word...
" >&6; }
15585 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached
) " >&6
15588 if test -n "$NM_FOR_TARGET"; then
15589 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15608 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15609 if test -n "$NM_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15611 $as_echo "$NM_FOR_TARGET" >&6; }
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15614 $as_echo "no
" >&6; }
15621 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15622 for ncn_progname in nm; do
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15624 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15625 if test -x $with_build_time_tools/${ncn_progname}; then
15626 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15628 $as_echo "yes" >&6; }
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15632 $as_echo "no
" >&6; }
15637 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15638 for ncn_progname in nm; do
15639 if test -n "$ncn_target_tool_prefix"; then
15640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15643 $as_echo_n "checking
for $ac_word...
" >&6; }
15644 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15645 $as_echo_n "(cached
) " >&6
15647 if test -n "$NM_FOR_TARGET"; then
15648 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15651 for as_dir in $PATH
15654 test -z "$as_dir" && as_dir=.
15655 for ac_exec_ext in '' $ac_executable_extensions; do
15656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15657 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15667 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15668 if test -n "$NM_FOR_TARGET"; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15670 $as_echo "$NM_FOR_TARGET" >&6; }
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15673 $as_echo "no
" >&6; }
15678 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15680 set dummy ${ncn_progname}; ac_word=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15682 $as_echo_n "checking
for $ac_word...
" >&6; }
15683 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15684 $as_echo_n "(cached
) " >&6
15686 if test -n "$NM_FOR_TARGET"; then
15687 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15696 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15706 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15707 if test -n "$NM_FOR_TARGET"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15709 $as_echo "$NM_FOR_TARGET" >&6; }
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15712 $as_echo "no
" >&6; }
15717 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15721 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15723 if test $build = $target ; then
15726 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15729 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15733 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15739 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15740 if test -n "$with_build_time_tools"; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15742 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15743 if test -x $with_build_time_tools/objcopy; then
15744 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15745 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15747 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15750 $as_echo "no
" >&6; }
15752 elif test $build != $host && test $have_gcc_for_target = yes; then
15753 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15754 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15755 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15758 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15759 # Extract the first word of "objcopy
", so it can be a program name with args.
15760 set dummy objcopy; ac_word=$2
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15762 $as_echo_n "checking
for $ac_word...
" >&6; }
15763 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15764 $as_echo_n "(cached
) " >&6
15766 case $OBJCOPY_FOR_TARGET in
15768 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15772 for as_dir in $gcc_cv_tool_dirs
15775 test -z "$as_dir" && as_dir=.
15776 for ac_exec_ext in '' $ac_executable_extensions; do
15777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15778 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15789 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15790 if test -n "$OBJCOPY_FOR_TARGET"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15792 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15795 $as_echo "no
" >&6; }
15800 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15803 if test -n "$OBJCOPY_FOR_TARGET"; then
15804 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15805 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15806 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15809 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15810 for ncn_progname in objcopy; do
15811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15814 $as_echo_n "checking
for $ac_word...
" >&6; }
15815 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached
) " >&6
15818 if test -n "$OBJCOPY_FOR_TARGET"; then
15819 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15838 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15839 if test -n "$OBJCOPY_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15841 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15844 $as_echo "no
" >&6; }
15851 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15852 for ncn_progname in objcopy; do
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15854 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15855 if test -x $with_build_time_tools/${ncn_progname}; then
15856 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15858 $as_echo "yes" >&6; }
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15862 $as_echo "no
" >&6; }
15867 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15868 for ncn_progname in objcopy; do
15869 if test -n "$ncn_target_tool_prefix"; then
15870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15873 $as_echo_n "checking
for $ac_word...
" >&6; }
15874 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15875 $as_echo_n "(cached
) " >&6
15877 if test -n "$OBJCOPY_FOR_TARGET"; then
15878 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15897 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15898 if test -n "$OBJCOPY_FOR_TARGET"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15900 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15903 $as_echo "no
" >&6; }
15908 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15910 set dummy ${ncn_progname}; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15912 $as_echo_n "checking
for $ac_word...
" >&6; }
15913 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15914 $as_echo_n "(cached
) " >&6
15916 if test -n "$OBJCOPY_FOR_TARGET"; then
15917 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15936 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15937 if test -n "$OBJCOPY_FOR_TARGET"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15939 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15942 $as_echo "no
" >&6; }
15947 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15951 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15953 if test $build = $target ; then
15954 OBJCOPY_FOR_TARGET="$2"
15956 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15959 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15963 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15969 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15970 if test -n "$with_build_time_tools"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15972 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15973 if test -x $with_build_time_tools/objdump; then
15974 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15975 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15977 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15980 $as_echo "no
" >&6; }
15982 elif test $build != $host && test $have_gcc_for_target = yes; then
15983 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15984 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15985 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15988 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15989 # Extract the first word of "objdump
", so it can be a program name with args.
15990 set dummy objdump; ac_word=$2
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15992 $as_echo_n "checking
for $ac_word...
" >&6; }
15993 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15994 $as_echo_n "(cached
) " >&6
15996 case $OBJDUMP_FOR_TARGET in
15998 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002 for as_dir in $gcc_cv_tool_dirs
16005 test -z "$as_dir" && as_dir=.
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16008 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16019 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16020 if test -n "$OBJDUMP_FOR_TARGET"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16022 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16025 $as_echo "no
" >&6; }
16030 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16033 if test -n "$OBJDUMP_FOR_TARGET"; then
16034 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16035 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16036 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16039 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16040 for ncn_progname in objdump; do
16041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16044 $as_echo_n "checking
for $ac_word...
" >&6; }
16045 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached
) " >&6
16048 if test -n "$OBJDUMP_FOR_TARGET"; then
16049 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16069 if test -n "$OBJDUMP_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16071 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16074 $as_echo "no
" >&6; }
16081 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16082 for ncn_progname in objdump; do
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16084 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16085 if test -x $with_build_time_tools/${ncn_progname}; then
16086 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16088 $as_echo "yes" >&6; }
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16092 $as_echo "no
" >&6; }
16097 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16098 for ncn_progname in objdump; do
16099 if test -n "$ncn_target_tool_prefix"; then
16100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16103 $as_echo_n "checking
for $ac_word...
" >&6; }
16104 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16105 $as_echo_n "(cached
) " >&6
16107 if test -n "$OBJDUMP_FOR_TARGET"; then
16108 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16117 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16128 if test -n "$OBJDUMP_FOR_TARGET"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16130 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16133 $as_echo "no
" >&6; }
16138 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16140 set dummy ${ncn_progname}; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16142 $as_echo_n "checking
for $ac_word...
" >&6; }
16143 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16144 $as_echo_n "(cached
) " >&6
16146 if test -n "$OBJDUMP_FOR_TARGET"; then
16147 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16153 test -z "$as_dir" && as_dir=.
16154 for ac_exec_ext in '' $ac_executable_extensions; do
16155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16156 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16166 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16167 if test -n "$OBJDUMP_FOR_TARGET"; then
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16169 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16172 $as_echo "no
" >&6; }
16177 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16181 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16183 if test $build = $target ; then
16184 OBJDUMP_FOR_TARGET="$2"
16186 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16189 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16193 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16199 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16200 if test -n "$with_build_time_tools"; then
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16202 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16203 if test -x $with_build_time_tools/otool; then
16204 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16205 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16207 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16210 $as_echo "no
" >&6; }
16212 elif test $build != $host && test $have_gcc_for_target = yes; then
16213 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16214 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16215 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16218 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16219 # Extract the first word of "otool
", so it can be a program name with args.
16220 set dummy otool; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16222 $as_echo_n "checking
for $ac_word...
" >&6; }
16223 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16224 $as_echo_n "(cached
) " >&6
16226 case $OTOOL_FOR_TARGET in
16228 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $gcc_cv_tool_dirs
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16239 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16249 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16250 if test -n "$OTOOL_FOR_TARGET"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16252 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16255 $as_echo "no
" >&6; }
16260 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16263 if test -n "$OTOOL_FOR_TARGET"; then
16264 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16265 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16266 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16269 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16270 for ncn_progname in otool; do
16271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16274 $as_echo_n "checking
for $ac_word...
" >&6; }
16275 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached
) " >&6
16278 if test -n "$OTOOL_FOR_TARGET"; then
16279 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16298 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16299 if test -n "$OTOOL_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16301 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16304 $as_echo "no
" >&6; }
16311 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16312 for ncn_progname in otool; do
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16314 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16315 if test -x $with_build_time_tools/${ncn_progname}; then
16316 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16318 $as_echo "yes" >&6; }
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16322 $as_echo "no
" >&6; }
16327 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16328 for ncn_progname in otool; do
16329 if test -n "$ncn_target_tool_prefix"; then
16330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16333 $as_echo_n "checking
for $ac_word...
" >&6; }
16334 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16335 $as_echo_n "(cached
) " >&6
16337 if test -n "$OTOOL_FOR_TARGET"; then
16338 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341 for as_dir in $PATH
16344 test -z "$as_dir" && as_dir=.
16345 for ac_exec_ext in '' $ac_executable_extensions; do
16346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16347 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16357 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16358 if test -n "$OTOOL_FOR_TARGET"; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16360 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16363 $as_echo "no
" >&6; }
16368 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16370 set dummy ${ncn_progname}; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16372 $as_echo_n "checking
for $ac_word...
" >&6; }
16373 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16374 $as_echo_n "(cached
) " >&6
16376 if test -n "$OTOOL_FOR_TARGET"; then
16377 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16387 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16396 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16397 if test -n "$OTOOL_FOR_TARGET"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16399 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16402 $as_echo "no
" >&6; }
16407 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16411 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16413 if test $build = $target ; then
16414 OTOOL_FOR_TARGET="$2"
16416 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16419 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16423 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16429 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16430 if test -n "$with_build_time_tools"; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16432 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16433 if test -x $with_build_time_tools/ranlib; then
16434 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16435 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16437 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16440 $as_echo "no
" >&6; }
16442 elif test $build != $host && test $have_gcc_for_target = yes; then
16443 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16444 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16445 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16448 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16449 # Extract the first word of "ranlib
", so it can be a program name with args.
16450 set dummy ranlib; ac_word=$2
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16452 $as_echo_n "checking
for $ac_word...
" >&6; }
16453 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16454 $as_echo_n "(cached
) " >&6
16456 case $RANLIB_FOR_TARGET in
16458 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462 for as_dir in $gcc_cv_tool_dirs
16465 test -z "$as_dir" && as_dir=.
16466 for ac_exec_ext in '' $ac_executable_extensions; do
16467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16468 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16469 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16479 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16480 if test -n "$RANLIB_FOR_TARGET"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16482 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16485 $as_echo "no
" >&6; }
16490 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16493 if test -n "$RANLIB_FOR_TARGET"; then
16494 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16495 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16496 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16499 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16500 for ncn_progname in ranlib; do
16501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16504 $as_echo_n "checking
for $ac_word...
" >&6; }
16505 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached
) " >&6
16508 if test -n "$RANLIB_FOR_TARGET"; then
16509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16528 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16529 if test -n "$RANLIB_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16531 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16534 $as_echo "no
" >&6; }
16541 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16542 for ncn_progname in ranlib; do
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16544 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16545 if test -x $with_build_time_tools/${ncn_progname}; then
16546 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16548 $as_echo "yes" >&6; }
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16552 $as_echo "no
" >&6; }
16557 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16558 for ncn_progname in ranlib; do
16559 if test -n "$ncn_target_tool_prefix"; then
16560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16563 $as_echo_n "checking
for $ac_word...
" >&6; }
16564 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16565 $as_echo_n "(cached
) " >&6
16567 if test -n "$RANLIB_FOR_TARGET"; then
16568 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16577 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16587 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16588 if test -n "$RANLIB_FOR_TARGET"; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16590 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16593 $as_echo "no
" >&6; }
16598 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16600 set dummy ${ncn_progname}; ac_word=$2
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16602 $as_echo_n "checking
for $ac_word...
" >&6; }
16603 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16604 $as_echo_n "(cached
) " >&6
16606 if test -n "$RANLIB_FOR_TARGET"; then
16607 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16626 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16627 if test -n "$RANLIB_FOR_TARGET"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16629 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16632 $as_echo "no
" >&6; }
16637 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16641 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16643 if test $build = $target ; then
16644 RANLIB_FOR_TARGET="$2"
16646 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16649 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16653 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16659 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16660 if test -n "$with_build_time_tools"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16662 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16663 if test -x $with_build_time_tools/readelf; then
16664 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16665 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16667 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16670 $as_echo "no
" >&6; }
16672 elif test $build != $host && test $have_gcc_for_target = yes; then
16673 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16674 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16675 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16678 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16679 # Extract the first word of "readelf
", so it can be a program name with args.
16680 set dummy readelf; ac_word=$2
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16682 $as_echo_n "checking
for $ac_word...
" >&6; }
16683 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16684 $as_echo_n "(cached
) " >&6
16686 case $READELF_FOR_TARGET in
16688 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16692 for as_dir in $gcc_cv_tool_dirs
16695 test -z "$as_dir" && as_dir=.
16696 for ac_exec_ext in '' $ac_executable_extensions; do
16697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16698 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16699 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16709 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16710 if test -n "$READELF_FOR_TARGET"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16712 $as_echo "$READELF_FOR_TARGET" >&6; }
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16715 $as_echo "no
" >&6; }
16720 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16723 if test -n "$READELF_FOR_TARGET"; then
16724 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16725 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16726 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16729 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16730 for ncn_progname in readelf; do
16731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16734 $as_echo_n "checking
for $ac_word...
" >&6; }
16735 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached
) " >&6
16738 if test -n "$READELF_FOR_TARGET"; then
16739 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16758 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16759 if test -n "$READELF_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16761 $as_echo "$READELF_FOR_TARGET" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16764 $as_echo "no
" >&6; }
16771 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16772 for ncn_progname in readelf; do
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16774 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16775 if test -x $with_build_time_tools/${ncn_progname}; then
16776 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16778 $as_echo "yes" >&6; }
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16782 $as_echo "no
" >&6; }
16787 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16788 for ncn_progname in readelf; do
16789 if test -n "$ncn_target_tool_prefix"; then
16790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16793 $as_echo_n "checking
for $ac_word...
" >&6; }
16794 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16795 $as_echo_n "(cached
) " >&6
16797 if test -n "$READELF_FOR_TARGET"; then
16798 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16801 for as_dir in $PATH
16804 test -z "$as_dir" && as_dir=.
16805 for ac_exec_ext in '' $ac_executable_extensions; do
16806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16807 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16808 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16817 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16818 if test -n "$READELF_FOR_TARGET"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16820 $as_echo "$READELF_FOR_TARGET" >&6; }
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16823 $as_echo "no
" >&6; }
16828 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16830 set dummy ${ncn_progname}; ac_word=$2
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16832 $as_echo_n "checking
for $ac_word...
" >&6; }
16833 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16834 $as_echo_n "(cached
) " >&6
16836 if test -n "$READELF_FOR_TARGET"; then
16837 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16840 for as_dir in $PATH
16843 test -z "$as_dir" && as_dir=.
16844 for ac_exec_ext in '' $ac_executable_extensions; do
16845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16846 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16856 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16857 if test -n "$READELF_FOR_TARGET"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16859 $as_echo "$READELF_FOR_TARGET" >&6; }
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16862 $as_echo "no
" >&6; }
16867 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16871 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16873 if test $build = $target ; then
16874 READELF_FOR_TARGET="$2"
16876 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16879 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16883 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16889 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16890 if test -n "$with_build_time_tools"; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16892 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16893 if test -x $with_build_time_tools/strip; then
16894 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16895 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16897 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16900 $as_echo "no
" >&6; }
16902 elif test $build != $host && test $have_gcc_for_target = yes; then
16903 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16904 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16905 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16908 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16909 # Extract the first word of "strip
", so it can be a program name with args.
16910 set dummy strip; ac_word=$2
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16912 $as_echo_n "checking
for $ac_word...
" >&6; }
16913 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16914 $as_echo_n "(cached
) " >&6
16916 case $STRIP_FOR_TARGET in
16918 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16922 for as_dir in $gcc_cv_tool_dirs
16925 test -z "$as_dir" && as_dir=.
16926 for ac_exec_ext in '' $ac_executable_extensions; do
16927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16928 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16939 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16940 if test -n "$STRIP_FOR_TARGET"; then
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16942 $as_echo "$STRIP_FOR_TARGET" >&6; }
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16945 $as_echo "no
" >&6; }
16950 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16953 if test -n "$STRIP_FOR_TARGET"; then
16954 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16955 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16959 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16960 for ncn_progname in strip; do
16961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16964 $as_echo_n "checking
for $ac_word...
" >&6; }
16965 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached
) " >&6
16968 if test -n "$STRIP_FOR_TARGET"; then
16969 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16988 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16989 if test -n "$STRIP_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16991 $as_echo "$STRIP_FOR_TARGET" >&6; }
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16994 $as_echo "no
" >&6; }
17001 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17002 for ncn_progname in strip; do
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17004 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17005 if test -x $with_build_time_tools/${ncn_progname}; then
17006 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17008 $as_echo "yes" >&6; }
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17012 $as_echo "no
" >&6; }
17017 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17018 for ncn_progname in strip; do
17019 if test -n "$ncn_target_tool_prefix"; then
17020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17023 $as_echo_n "checking
for $ac_word...
" >&6; }
17024 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17025 $as_echo_n "(cached
) " >&6
17027 if test -n "$STRIP_FOR_TARGET"; then
17028 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17031 for as_dir in $PATH
17034 test -z "$as_dir" && as_dir=.
17035 for ac_exec_ext in '' $ac_executable_extensions; do
17036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17037 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17047 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17048 if test -n "$STRIP_FOR_TARGET"; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17050 $as_echo "$STRIP_FOR_TARGET" >&6; }
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17053 $as_echo "no
" >&6; }
17058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17060 set dummy ${ncn_progname}; ac_word=$2
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17062 $as_echo_n "checking
for $ac_word...
" >&6; }
17063 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17064 $as_echo_n "(cached
) " >&6
17066 if test -n "$STRIP_FOR_TARGET"; then
17067 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $PATH
17073 test -z "$as_dir" && as_dir=.
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17086 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17087 if test -n "$STRIP_FOR_TARGET"; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17089 $as_echo "$STRIP_FOR_TARGET" >&6; }
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17092 $as_echo "no
" >&6; }
17097 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17101 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17103 if test $build = $target ; then
17104 STRIP_FOR_TARGET="$2"
17106 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17109 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17113 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17119 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17120 if test -n "$with_build_time_tools"; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17122 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17123 if test -x $with_build_time_tools/windres; then
17124 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17125 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17127 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17130 $as_echo "no
" >&6; }
17132 elif test $build != $host && test $have_gcc_for_target = yes; then
17133 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17134 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17135 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17138 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17139 # Extract the first word of "windres
", so it can be a program name with args.
17140 set dummy windres; ac_word=$2
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17142 $as_echo_n "checking
for $ac_word...
" >&6; }
17143 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17144 $as_echo_n "(cached
) " >&6
17146 case $WINDRES_FOR_TARGET in
17148 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $gcc_cv_tool_dirs
17155 test -z "$as_dir" && as_dir=.
17156 for ac_exec_ext in '' $ac_executable_extensions; do
17157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17169 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17170 if test -n "$WINDRES_FOR_TARGET"; then
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17172 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17175 $as_echo "no
" >&6; }
17180 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17183 if test -n "$WINDRES_FOR_TARGET"; then
17184 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17185 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17189 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17190 for ncn_progname in windres; do
17191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17194 $as_echo_n "checking
for $ac_word...
" >&6; }
17195 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached
) " >&6
17198 if test -n "$WINDRES_FOR_TARGET"; then
17199 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17218 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17219 if test -n "$WINDRES_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17221 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17224 $as_echo "no
" >&6; }
17231 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17232 for ncn_progname in windres; do
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17234 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17235 if test -x $with_build_time_tools/${ncn_progname}; then
17236 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17238 $as_echo "yes" >&6; }
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17242 $as_echo "no
" >&6; }
17247 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17248 for ncn_progname in windres; do
17249 if test -n "$ncn_target_tool_prefix"; then
17250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17251 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17253 $as_echo_n "checking
for $ac_word...
" >&6; }
17254 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17255 $as_echo_n "(cached
) " >&6
17257 if test -n "$WINDRES_FOR_TARGET"; then
17258 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17264 test -z "$as_dir" && as_dir=.
17265 for ac_exec_ext in '' $ac_executable_extensions; do
17266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17267 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17268 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17277 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17278 if test -n "$WINDRES_FOR_TARGET"; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17280 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17283 $as_echo "no
" >&6; }
17288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17290 set dummy ${ncn_progname}; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17292 $as_echo_n "checking
for $ac_word...
" >&6; }
17293 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17294 $as_echo_n "(cached
) " >&6
17296 if test -n "$WINDRES_FOR_TARGET"; then
17297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $PATH
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17316 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17317 if test -n "$WINDRES_FOR_TARGET"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17319 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17322 $as_echo "no
" >&6; }
17327 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17331 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17333 if test $build = $target ; then
17334 WINDRES_FOR_TARGET="$2"
17336 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17339 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17343 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17349 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17350 if test -n "$with_build_time_tools"; then
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17352 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17353 if test -x $with_build_time_tools/windmc; then
17354 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17355 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17357 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17360 $as_echo "no
" >&6; }
17362 elif test $build != $host && test $have_gcc_for_target = yes; then
17363 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17364 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17365 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17368 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17369 # Extract the first word of "windmc
", so it can be a program name with args.
17370 set dummy windmc; ac_word=$2
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17372 $as_echo_n "checking
for $ac_word...
" >&6; }
17373 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17374 $as_echo_n "(cached
) " >&6
17376 case $WINDMC_FOR_TARGET in
17378 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17382 for as_dir in $gcc_cv_tool_dirs
17385 test -z "$as_dir" && as_dir=.
17386 for ac_exec_ext in '' $ac_executable_extensions; do
17387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17388 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17399 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17400 if test -n "$WINDMC_FOR_TARGET"; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17402 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17405 $as_echo "no
" >&6; }
17410 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17413 if test -n "$WINDMC_FOR_TARGET"; then
17414 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17415 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17419 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17420 for ncn_progname in windmc; do
17421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17422 set dummy ${ncn_progname}; ac_word=$2
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17424 $as_echo_n "checking
for $ac_word...
" >&6; }
17425 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17426 $as_echo_n "(cached
) " >&6
17428 if test -n "$WINDMC_FOR_TARGET"; then
17429 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17438 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17448 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17449 if test -n "$WINDMC_FOR_TARGET"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17451 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17454 $as_echo "no
" >&6; }
17461 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17462 for ncn_progname in windmc; do
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17464 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17465 if test -x $with_build_time_tools/${ncn_progname}; then
17466 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17468 $as_echo "yes" >&6; }
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17472 $as_echo "no
" >&6; }
17477 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17478 for ncn_progname in windmc; do
17479 if test -n "$ncn_target_tool_prefix"; then
17480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17483 $as_echo_n "checking
for $ac_word...
" >&6; }
17484 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17485 $as_echo_n "(cached
) " >&6
17487 if test -n "$WINDMC_FOR_TARGET"; then
17488 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17491 for as_dir in $PATH
17494 test -z "$as_dir" && as_dir=.
17495 for ac_exec_ext in '' $ac_executable_extensions; do
17496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17497 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17508 if test -n "$WINDMC_FOR_TARGET"; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17510 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17513 $as_echo "no
" >&6; }
17518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17520 set dummy ${ncn_progname}; ac_word=$2
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17522 $as_echo_n "checking
for $ac_word...
" >&6; }
17523 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17524 $as_echo_n "(cached
) " >&6
17526 if test -n "$WINDMC_FOR_TARGET"; then
17527 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17533 test -z "$as_dir" && as_dir=.
17534 for ac_exec_ext in '' $ac_executable_extensions; do
17535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17546 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17547 if test -n "$WINDMC_FOR_TARGET"; then
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17549 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17552 $as_echo "no
" >&6; }
17557 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17561 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17563 if test $build = $target ; then
17564 WINDMC_FOR_TARGET="$2"
17566 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17569 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17573 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17577 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17580 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17581 if test "x
${build}" != "x
${host}" ; then
17582 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17583 # We already found the complete path
17584 ac_dir=`dirname $AR_FOR_TARGET`
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17586 $as_echo "pre-installed
in $ac_dir" >&6; }
17588 # Canadian cross, just use what we found
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17590 $as_echo "pre-installed
" >&6; }
17594 case " ${configdirs} " in
17599 if test $ok = yes; then
17600 # An in-tree tool is available and we can use it
17601 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17603 $as_echo "just compiled
" >&6; }
17604 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $AR_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17608 $as_echo "pre-installed
in $ac_dir" >&6; }
17609 elif test "x
$target" = "x
$host"; then
17610 # We can use an host tool
17611 AR_FOR_TARGET='$(AR)'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17613 $as_echo "host tool
" >&6; }
17615 # We need a cross tool
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17617 $as_echo "pre-installed
" >&6; }
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17622 $as_echo_n "checking where to
find the target as...
" >&6; }
17623 if test "x
${build}" != "x
${host}" ; then
17624 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17625 # We already found the complete path
17626 ac_dir=`dirname $AS_FOR_TARGET`
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17628 $as_echo "pre-installed
in $ac_dir" >&6; }
17630 # Canadian cross, just use what we found
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17632 $as_echo "pre-installed
" >&6; }
17636 case " ${configdirs} " in
17641 if test $ok = yes; then
17642 # An in-tree tool is available and we can use it
17643 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17645 $as_echo "just compiled
" >&6; }
17646 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17647 # We already found the complete path
17648 ac_dir=`dirname $AS_FOR_TARGET`
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17650 $as_echo "pre-installed
in $ac_dir" >&6; }
17651 elif test "x
$target" = "x
$host"; then
17652 # We can use an host tool
17653 AS_FOR_TARGET='$(AS)'
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17655 $as_echo "host tool
" >&6; }
17657 # We need a cross tool
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17659 $as_echo "pre-installed
" >&6; }
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17664 $as_echo_n "checking where to
find the target cc...
" >&6; }
17665 if test "x
${build}" != "x
${host}" ; then
17666 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17667 # We already found the complete path
17668 ac_dir=`dirname $CC_FOR_TARGET`
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17670 $as_echo "pre-installed
in $ac_dir" >&6; }
17672 # Canadian cross, just use what we found
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17674 $as_echo "pre-installed
" >&6; }
17678 case " ${configdirs} " in
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
17685 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17687 $as_echo "just compiled
" >&6; }
17688 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $CC_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17692 $as_echo "pre-installed
in $ac_dir" >&6; }
17693 elif test "x
$target" = "x
$host"; then
17694 # We can use an host tool
17695 CC_FOR_TARGET='$(CC)'
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17697 $as_echo "host tool
" >&6; }
17699 # We need a cross tool
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17701 $as_echo "pre-installed
" >&6; }
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17706 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17707 if test "x
${build}" != "x
${host}" ; then
17708 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17709 # We already found the complete path
17710 ac_dir=`dirname $CXX_FOR_TARGET`
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17712 $as_echo "pre-installed
in $ac_dir" >&6; }
17714 # Canadian cross, just use what we found
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17716 $as_echo "pre-installed
" >&6; }
17720 case " ${configdirs} " in
17724 case ,${enable_languages}, in
17728 if test $ok = yes; then
17729 # An in-tree tool is available and we can use it
17730 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'
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17732 $as_echo "just compiled
" >&6; }
17733 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $CXX_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17737 $as_echo "pre-installed
in $ac_dir" >&6; }
17738 elif test "x
$target" = "x
$host"; then
17739 # We can use an host tool
17740 CXX_FOR_TARGET='$(CXX)'
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17742 $as_echo "host tool
" >&6; }
17744 # We need a cross tool
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17746 $as_echo "pre-installed
" >&6; }
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17751 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17752 if test "x
${build}" != "x
${host}" ; then
17753 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17754 # We already found the complete path
17755 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17757 $as_echo "pre-installed
in $ac_dir" >&6; }
17759 # Canadian cross, just use what we found
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17761 $as_echo "pre-installed
" >&6; }
17765 case " ${configdirs} " in
17769 case ,${enable_languages}, in
17773 if test $ok = yes; then
17774 # An in-tree tool is available and we can use it
17775 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'
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17777 $as_echo "just compiled
" >&6; }
17778 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17782 $as_echo "pre-installed
in $ac_dir" >&6; }
17783 elif test "x
$target" = "x
$host"; then
17784 # We can use an host tool
17785 RAW_CXX_FOR_TARGET='$(CXX)'
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17787 $as_echo "host tool
" >&6; }
17789 # We need a cross tool
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17791 $as_echo "pre-installed
" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17796 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17797 if test "x
${build}" != "x
${host}" ; then
17798 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17799 # We already found the complete path
17800 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17802 $as_echo "pre-installed
in $ac_dir" >&6; }
17804 # Canadian cross, just use what we found
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17806 $as_echo "pre-installed
" >&6; }
17810 case " ${configdirs} " in
17815 if test $ok = yes; then
17816 # An in-tree tool is available and we can use it
17817 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17819 $as_echo "just compiled
" >&6; }
17820 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17824 $as_echo "pre-installed
in $ac_dir" >&6; }
17825 elif test "x
$target" = "x
$host"; then
17826 # We can use an host tool
17827 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17829 $as_echo "host tool
" >&6; }
17831 # We need a cross tool
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17833 $as_echo "pre-installed
" >&6; }
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17838 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17839 if test "x
${build}" != "x
${host}" ; then
17840 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17841 # We already found the complete path
17842 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17844 $as_echo "pre-installed
in $ac_dir" >&6; }
17846 # Canadian cross, just use what we found
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17848 $as_echo "pre-installed
" >&6; }
17851 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17855 $as_echo "pre-installed
in $ac_dir" >&6; }
17856 elif test "x
$target" = "x
$host"; then
17857 # We can use an host tool
17858 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17860 $as_echo "host tool
" >&6; }
17862 # We need a cross tool
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17864 $as_echo "pre-installed
" >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17869 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17870 if test "x
${build}" != "x
${host}" ; then
17871 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17872 # We already found the complete path
17873 ac_dir=`dirname $GCC_FOR_TARGET`
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17875 $as_echo "pre-installed
in $ac_dir" >&6; }
17877 # Canadian cross, just use what we found
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17879 $as_echo "pre-installed
" >&6; }
17883 case " ${configdirs} " in
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17892 $as_echo "just compiled
" >&6; }
17893 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GCC_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17897 $as_echo "pre-installed
in $ac_dir" >&6; }
17898 elif test "x
$target" = "x
$host"; then
17899 # We can use an host tool
17900 GCC_FOR_TARGET='$()'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17902 $as_echo "host tool
" >&6; }
17904 # We need a cross tool
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17906 $as_echo "pre-installed
" >&6; }
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17911 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17912 if test "x
${build}" != "x
${host}" ; then
17913 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17917 $as_echo "pre-installed
in $ac_dir" >&6; }
17919 # Canadian cross, just use what we found
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17921 $as_echo "pre-installed
" >&6; }
17925 case " ${configdirs} " in
17929 case ,${enable_languages}, in
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17937 $as_echo "just compiled
" >&6; }
17938 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17942 $as_echo "pre-installed
in $ac_dir" >&6; }
17943 elif test "x
$target" = "x
$host"; then
17944 # We can use an host tool
17945 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17947 $as_echo "host tool
" >&6; }
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17951 $as_echo "pre-installed
" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17956 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17957 if test "x
${build}" != "x
${host}" ; then
17958 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GOC_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17962 $as_echo "pre-installed
in $ac_dir" >&6; }
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17966 $as_echo "pre-installed
" >&6; }
17970 case " ${configdirs} " in
17974 case ,${enable_languages}, in
17978 if test $ok = yes; then
17979 # An in-tree tool is available and we can use it
17980 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17982 $as_echo "just compiled
" >&6; }
17983 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GOC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17987 $as_echo "pre-installed
in $ac_dir" >&6; }
17988 elif test "x
$target" = "x
$host"; then
17989 # We can use an host tool
17990 GOC_FOR_TARGET='$(GOC)'
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17992 $as_echo "host tool
" >&6; }
17994 # We need a cross tool
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17996 $as_echo "pre-installed
" >&6; }
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18001 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18002 if test "x
${build}" != "x
${host}" ; then
18003 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18004 # We already found the complete path
18005 ac_dir=`dirname $GDC_FOR_TARGET`
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18007 $as_echo "pre-installed
in $ac_dir" >&6; }
18009 # Canadian cross, just use what we found
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18011 $as_echo "pre-installed
" >&6; }
18015 case " ${configdirs} " in
18019 case ,${enable_languages}, in
18023 if test $ok = yes; then
18024 # An in-tree tool is available and we can use it
18025 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18027 $as_echo "just compiled
" >&6; }
18028 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GDC_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18032 $as_echo "pre-installed
in $ac_dir" >&6; }
18033 elif test "x
$target" = "x
$host"; then
18034 # We can use an host tool
18035 GDC_FOR_TARGET='$(GDC)'
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18037 $as_echo "host tool
" >&6; }
18039 # We need a cross tool
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18041 $as_echo "pre-installed
" >&6; }
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18046 $as_echo_n "checking where to
find the target ld...
" >&6; }
18047 if test "x
${build}" != "x
${host}" ; then
18048 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18049 # We already found the complete path
18050 ac_dir=`dirname $LD_FOR_TARGET`
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18052 $as_echo "pre-installed
in $ac_dir" >&6; }
18054 # Canadian cross, just use what we found
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18056 $as_echo "pre-installed
" >&6; }
18060 case " ${configdirs} " in
18065 if test $ok = yes; then
18066 # An in-tree tool is available and we can use it
18067 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18069 $as_echo "just compiled
" >&6; }
18070 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18071 # We already found the complete path
18072 ac_dir=`dirname $LD_FOR_TARGET`
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18074 $as_echo "pre-installed
in $ac_dir" >&6; }
18075 elif test "x
$target" = "x
$host"; then
18076 # We can use an host tool
18077 LD_FOR_TARGET='$(LD)'
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18079 $as_echo "host tool
" >&6; }
18081 # We need a cross tool
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18083 $as_echo "pre-installed
" >&6; }
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18088 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18089 if test "x
${build}" != "x
${host}" ; then
18090 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18091 # We already found the complete path
18092 ac_dir=`dirname $LIPO_FOR_TARGET`
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18094 $as_echo "pre-installed
in $ac_dir" >&6; }
18096 # Canadian cross, just use what we found
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18098 $as_echo "pre-installed
" >&6; }
18101 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18102 # We already found the complete path
18103 ac_dir=`dirname $LIPO_FOR_TARGET`
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18105 $as_echo "pre-installed
in $ac_dir" >&6; }
18106 elif test "x
$target" = "x
$host"; then
18107 # We can use an host tool
18108 LIPO_FOR_TARGET='$(LIPO)'
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18110 $as_echo "host tool
" >&6; }
18112 # We need a cross tool
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18114 $as_echo "pre-installed
" >&6; }
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18119 $as_echo_n "checking where to
find the target nm...
" >&6; }
18120 if test "x
${build}" != "x
${host}" ; then
18121 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18122 # We already found the complete path
18123 ac_dir=`dirname $NM_FOR_TARGET`
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18125 $as_echo "pre-installed
in $ac_dir" >&6; }
18127 # Canadian cross, just use what we found
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18129 $as_echo "pre-installed
" >&6; }
18133 case " ${configdirs} " in
18138 if test $ok = yes; then
18139 # An in-tree tool is available and we can use it
18140 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18142 $as_echo "just compiled
" >&6; }
18143 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18144 # We already found the complete path
18145 ac_dir=`dirname $NM_FOR_TARGET`
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18147 $as_echo "pre-installed
in $ac_dir" >&6; }
18148 elif test "x
$target" = "x
$host"; then
18149 # We can use an host tool
18150 NM_FOR_TARGET='$(NM)'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18152 $as_echo "host tool
" >&6; }
18154 # We need a cross tool
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18156 $as_echo "pre-installed
" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18161 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18162 if test "x
${build}" != "x
${host}" ; then
18163 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18164 # We already found the complete path
18165 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18167 $as_echo "pre-installed
in $ac_dir" >&6; }
18169 # Canadian cross, just use what we found
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18171 $as_echo "pre-installed
" >&6; }
18175 case " ${configdirs} " in
18180 if test $ok = yes; then
18181 # An in-tree tool is available and we can use it
18182 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18184 $as_echo "just compiled
" >&6; }
18185 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18189 $as_echo "pre-installed
in $ac_dir" >&6; }
18190 elif test "x
$target" = "x
$host"; then
18191 # We can use an host tool
18192 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18194 $as_echo "host tool
" >&6; }
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18198 $as_echo "pre-installed
" >&6; }
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18203 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18204 if test "x
${build}" != "x
${host}" ; then
18205 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18206 # We already found the complete path
18207 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18209 $as_echo "pre-installed
in $ac_dir" >&6; }
18211 # Canadian cross, just use what we found
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18213 $as_echo "pre-installed
" >&6; }
18217 case " ${configdirs} " in
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18226 $as_echo "just compiled
" >&6; }
18227 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18231 $as_echo "pre-installed
in $ac_dir" >&6; }
18232 elif test "x
$target" = "x
$host"; then
18233 # We can use an host tool
18234 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18236 $as_echo "host tool
" >&6; }
18238 # We need a cross tool
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18240 $as_echo "pre-installed
" >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18245 $as_echo_n "checking where to
find the target otool...
" >&6; }
18246 if test "x
${build}" != "x
${host}" ; then
18247 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $OTOOL_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18251 $as_echo "pre-installed
in $ac_dir" >&6; }
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18255 $as_echo "pre-installed
" >&6; }
18258 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18259 # We already found the complete path
18260 ac_dir=`dirname $OTOOL_FOR_TARGET`
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18262 $as_echo "pre-installed
in $ac_dir" >&6; }
18263 elif test "x
$target" = "x
$host"; then
18264 # We can use an host tool
18265 OTOOL_FOR_TARGET='$(OTOOL)'
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18267 $as_echo "host tool
" >&6; }
18269 # We need a cross tool
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18271 $as_echo "pre-installed
" >&6; }
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18276 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18277 if test "x
${build}" != "x
${host}" ; then
18278 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18279 # We already found the complete path
18280 ac_dir=`dirname $RANLIB_FOR_TARGET`
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18282 $as_echo "pre-installed
in $ac_dir" >&6; }
18284 # Canadian cross, just use what we found
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18286 $as_echo "pre-installed
" >&6; }
18290 case " ${configdirs} " in
18295 if test $ok = yes; then
18296 # An in-tree tool is available and we can use it
18297 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18299 $as_echo "just compiled
" >&6; }
18300 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18301 # We already found the complete path
18302 ac_dir=`dirname $RANLIB_FOR_TARGET`
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18304 $as_echo "pre-installed
in $ac_dir" >&6; }
18305 elif test "x
$target" = "x
$host"; then
18306 # We can use an host tool
18307 RANLIB_FOR_TARGET='$(RANLIB)'
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18309 $as_echo "host tool
" >&6; }
18311 # We need a cross tool
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18313 $as_echo "pre-installed
" >&6; }
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18318 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18319 if test "x
${build}" != "x
${host}" ; then
18320 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18321 # We already found the complete path
18322 ac_dir=`dirname $READELF_FOR_TARGET`
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18324 $as_echo "pre-installed
in $ac_dir" >&6; }
18326 # Canadian cross, just use what we found
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18328 $as_echo "pre-installed
" >&6; }
18332 case " ${configdirs} " in
18337 if test $ok = yes; then
18338 # An in-tree tool is available and we can use it
18339 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18341 $as_echo "just compiled
" >&6; }
18342 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $READELF_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18346 $as_echo "pre-installed
in $ac_dir" >&6; }
18347 elif test "x
$target" = "x
$host"; then
18348 # We can use an host tool
18349 READELF_FOR_TARGET='$(READELF)'
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18351 $as_echo "host tool
" >&6; }
18353 # We need a cross tool
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18355 $as_echo "pre-installed
" >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18360 $as_echo_n "checking where to
find the target strip...
" >&6; }
18361 if test "x
${build}" != "x
${host}" ; then
18362 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18363 # We already found the complete path
18364 ac_dir=`dirname $STRIP_FOR_TARGET`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18366 $as_echo "pre-installed
in $ac_dir" >&6; }
18368 # Canadian cross, just use what we found
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18370 $as_echo "pre-installed
" >&6; }
18374 case " ${configdirs} " in
18379 if test $ok = yes; then
18380 # An in-tree tool is available and we can use it
18381 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18383 $as_echo "just compiled
" >&6; }
18384 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18385 # We already found the complete path
18386 ac_dir=`dirname $STRIP_FOR_TARGET`
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18388 $as_echo "pre-installed
in $ac_dir" >&6; }
18389 elif test "x
$target" = "x
$host"; then
18390 # We can use an host tool
18391 STRIP_FOR_TARGET='$(STRIP)'
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18393 $as_echo "host tool
" >&6; }
18395 # We need a cross tool
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18397 $as_echo "pre-installed
" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18402 $as_echo_n "checking where to
find the target windres...
" >&6; }
18403 if test "x
${build}" != "x
${host}" ; then
18404 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18405 # We already found the complete path
18406 ac_dir=`dirname $WINDRES_FOR_TARGET`
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18408 $as_echo "pre-installed
in $ac_dir" >&6; }
18410 # Canadian cross, just use what we found
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18412 $as_echo "pre-installed
" >&6; }
18416 case " ${configdirs} " in
18421 if test $ok = yes; then
18422 # An in-tree tool is available and we can use it
18423 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18425 $as_echo "just compiled
" >&6; }
18426 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $WINDRES_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18430 $as_echo "pre-installed
in $ac_dir" >&6; }
18431 elif test "x
$target" = "x
$host"; then
18432 # We can use an host tool
18433 WINDRES_FOR_TARGET='$(WINDRES)'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18435 $as_echo "host tool
" >&6; }
18437 # We need a cross tool
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18439 $as_echo "pre-installed
" >&6; }
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18444 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18445 if test "x
${build}" != "x
${host}" ; then
18446 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18447 # We already found the complete path
18448 ac_dir=`dirname $WINDMC_FOR_TARGET`
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18450 $as_echo "pre-installed
in $ac_dir" >&6; }
18452 # Canadian cross, just use what we found
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18454 $as_echo "pre-installed
" >&6; }
18458 case " ${configdirs} " in
18463 if test $ok = yes; then
18464 # An in-tree tool is available and we can use it
18465 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18467 $as_echo "just compiled
" >&6; }
18468 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDMC_FOR_TARGET`
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18472 $as_echo "pre-installed
in $ac_dir" >&6; }
18473 elif test "x
$target" = "x
$host"; then
18474 # We can use an host tool
18475 WINDMC_FOR_TARGET='$(WINDMC)'
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18477 $as_echo "host tool
" >&6; }
18479 # We need a cross tool
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18481 $as_echo "pre-installed
" >&6; }
18489 # Certain tools may need extra flags.
18490 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18491 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18492 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18494 # When building target libraries, except in a Canadian cross, we use
18495 # the same toolchain as the compiler we just built.
18496 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18497 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18498 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18499 if test $host = $build; then
18500 case " $configdirs " in
18502 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18503 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18504 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18514 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18515 # Check whether --enable-maintainer-mode was given.
18516 if test "${enable_maintainer_mode+set}" = set; then :
18517 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18519 USE_MAINTAINER_MODE=no
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18523 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18526 if test "$USE_MAINTAINER_MODE" = yes; then
18527 MAINTAINER_MODE_TRUE=
18528 MAINTAINER_MODE_FALSE='#'
18530 MAINTAINER_MODE_TRUE='#'
18531 MAINTAINER_MODE_FALSE=
18533 MAINT=$MAINTAINER_MODE_TRUE
18535 # ---------------------
18536 # GCC bootstrap support
18537 # ---------------------
18539 # Stage specific cflags for build.
18544 yes) stage1_cflags="-g -Wa,-J" ;;
18545 *) stage1_cflags="-g -J" ;;
18551 # Enable --enable-checking in stage1 of the compiler.
18552 # Check whether --enable-stage1-checking was given.
18553 if test "${enable_stage1_checking+set}" = set; then :
18554 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18556 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18557 # For --disable-checking or implicit --enable-checking=release, avoid
18558 # setting --enable-checking=gc in the default stage1 checking for LTO
18559 # bootstraps. See PR62077.
18560 case $BUILD_CONFIG in
18562 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18564 stage1_checking=--enable-checking=yes,types;;
18566 if test "x
$enable_checking" = x && \
18567 test -d ${srcdir}/gcc && \
18568 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18569 stage1_checking=--enable-checking=yes,types,extra
18572 stage1_checking=--enable-checking=$enable_checking,types
18578 # Enable -Werror in bootstrap stage2 and later.
18579 # Check whether --enable-werror was given.
18580 if test "${enable_werror+set}" = set; then :
18581 enableval=$enable_werror;
18582 case ${enable_werror} in
18583 yes) stage2_werror_flag="--enable-werror-always" ;;
18584 *) stage2_werror_flag="" ;;
18589 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18590 case $BUILD_CONFIG in
18592 stage2_werror_flag="--enable-werror-always" ;;
18594 stage2_werror_flag="--enable-werror-always" ;;
18603 # Specify what files to not compare during bootstrap.
18605 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18607 hppa*64*-*-hpux*) ;;
18608 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18612 ac_config_files="$ac_config_files Makefile
"
18614 cat >confcache <<\_ACEOF
18615 # This file is a shell script that caches the results of configure
18616 # tests run on this system so they can be shared between configure
18617 # scripts and configure runs, see configure's option --config-cache.
18618 # It is not useful on other systems. If it contains results you don't
18619 # want to keep, you may remove or edit it.
18621 # config.status only pays attention to the cache file if you give it
18622 # the --recheck option to rerun configure.
18624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18626 # following values.
18630 # The following way of writing the cache mishandles newlines in values,
18631 # but we know of no workaround that is simple, portable, and efficient.
18632 # So, we kill variables containing newlines.
18633 # Ultrix sh set writes to stderr and can't be redirected directly,
18634 # and sets the high bit in the cache file unless we assign to the vars.
18636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18637 eval ac_val=\$$ac_var
18641 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18642 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18645 _ | IFS | as_nl) ;; #(
18646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18647 *) { eval $ac_var=; unset $ac_var;} ;;
18653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18654 *${as_nl}ac_space=\ *)
18655 # `set' does not quote correctly, so add quotes: double-quote
18656 # substitution turns \\\\ into \\, and sed turns \\ into \.
18659 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18662 # `set' quotes correctly as required by POSIX, so do not add quotes.
18663 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18677 if test -w "$cache_file"; then
18678 if test "x
$cache_file" != "x
/dev
/null
"; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18680 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18681 if test ! -f "$cache_file" || test -h "$cache_file"; then
18682 cat confcache >"$cache_file"
18684 case $cache_file in #(
18686 mv -f confcache "$cache_file"$$ &&
18687 mv -f "$cache_file"$$ "$cache_file" ;; #(
18689 mv -f confcache "$cache_file" ;;
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18695 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18700 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18701 # Let make expand exec_prefix.
18702 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18704 # Transform confdefs.h into DEFS.
18705 # Protect against shell expansion while executing Makefile rules.
18706 # Protect against Makefile macro expansion.
18708 # If the first sed substitution is executed (which looks for macros that
18709 # take arguments), then branch to the quote section. Otherwise,
18710 # look for a macro that doesn't take arguments.
18720 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18722 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18726 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18739 DEFS=`sed -n "$ac_script" confdefs.h`
18745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18746 # 1. Remove the extension, and $U if already installed.
18747 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18750 # will be set to the directory where LIBOBJS objects are built.
18751 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18752 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18754 LIBOBJS=$ac_libobjs
18756 LTLIBOBJS=$ac_ltlibobjs
18760 : "${CONFIG_STATUS=./config.status}"
18762 ac_clean_files_save=$ac_clean_files
18763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18769 # Generated by $as_me.
18770 # Run this file to recreate the current configuration.
18771 # Compiler output produced by configure, useful for debugging
18772 # configure, is in config.log if it exists.
18775 ac_cs_recheck=false
18778 SHELL=\${CONFIG_SHELL-$SHELL}
18781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18782 ## -------------------- ##
18783 ## M4sh Initialization. ##
18784 ## -------------------- ##
18786 # Be more Bourne compatible
18787 DUALCASE=1; export DUALCASE # for MKS sh
18788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18792 # is contrary to our usage. Disable this feature.
18793 alias -g '${1+"$@"}'='"$@"'
18794 setopt NO_GLOB_SUBST
18796 case `(set -o) 2>/dev/null` in #(
18808 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18809 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18810 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18811 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18812 # Prefer a ksh shell builtin over an external printf program on Solaris,
18813 # but without wasting forks for bash or zsh.
18814 if test -z "$BASH_VERSION$ZSH_VERSION" \
18815 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18816 as_echo
='print -r --'
18817 as_echo_n
='print -rn --'
18818 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18819 as_echo
='printf %s\n'
18820 as_echo_n
='printf %s'
18822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18823 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18824 as_echo_n
='/usr/ucb/echo -n'
18826 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18827 as_echo_n_body
='eval
18831 expr "X$arg" : "X\\(.*\\)$as_nl";
18832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18836 export as_echo_n_body
18837 as_echo_n
='sh -c $as_echo_n_body as_echo'
18839 export as_echo_body
18840 as_echo
='sh -c $as_echo_body as_echo'
18843 # The user is always right.
18844 if test "${PATH_SEPARATOR+set}" != set; then
18846 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18847 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18854 # We need space, tab and new line, in precisely that order. Quoting is
18855 # there to prevent editors from complaining about space-tab.
18856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18857 # splitting by setting IFS to empty value.)
18860 # Find who we are. Look in the path if we contain no directory separator.
18863 *[\\/]* ) as_myself
=$0 ;;
18864 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18865 for as_dir
in $PATH
18868 test -z "$as_dir" && as_dir
=.
18869 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18875 # We did not find ourselves, most probably we were run as `sh COMMAND'
18876 # in which case we are not to be found in the path.
18877 if test "x$as_myself" = x
; then
18880 if test ! -f "$as_myself"; then
18881 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18885 # Unset variables that we do not need and which cause bugs (e.g. in
18886 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18887 # suppresses any "Segmentation fault" message there. '((' could
18888 # trigger a bug in pdksh 5.2.14.
18889 for as_var
in BASH_ENV ENV MAIL MAILPATH
18890 do eval test x\
${$as_var+set} = xset \
18891 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18904 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18907 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18908 # ----------------------------------------
18909 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18910 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18911 # script with STATUS, using 1 if that was 0.
18914 as_status
=$1; test $as_status -eq 0 && as_status
=1
18916 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18917 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18919 $as_echo "$as_me: error: $2" >&2
18920 as_fn_exit
$as_status
18924 # as_fn_set_status STATUS
18925 # -----------------------
18926 # Set $? to STATUS, without forking.
18927 as_fn_set_status
()
18930 } # as_fn_set_status
18932 # as_fn_exit STATUS
18933 # -----------------
18934 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18938 as_fn_set_status
$1
18944 # Portably unset VAR.
18947 { eval $1=; unset $1;}
18949 as_unset
=as_fn_unset
18950 # as_fn_append VAR VALUE
18951 # ----------------------
18952 # Append the text in VALUE to the end of the definition contained in VAR. Take
18953 # advantage of any shell optimizations that allow amortized linear growth over
18954 # repeated appends, instead of the typical quadratic growth present in naive
18956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18957 eval 'as_fn_append ()
18968 # as_fn_arith ARG...
18969 # ------------------
18970 # Perform arithmetic evaluation on the ARGs, and store the result in the
18971 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18972 # must be portable across $(()) and expr.
18973 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18974 eval 'as_fn_arith ()
18981 as_val
=`expr "$@" || test $? -eq 1`
18986 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18987 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18993 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18994 as_basename
=basename
18999 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19005 as_me
=`$as_basename -- "$0" ||
19006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19007 X"$0" : 'X\(//\)$' \| \
19008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19010 sed '/^.*\/\([^/][^/]*\)\/*$/{
19024 # Avoid depending upon Character Ranges.
19025 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19026 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19027 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19028 as_cr_digits
='0123456789'
19029 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19031 ECHO_C
= ECHO_N
= ECHO_T
=
19032 case `echo -n x` in #(((((
19034 case `echo 'xy\c'` in
19035 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19037 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19044 rm -f conf$$ conf$$.exe conf$$.
file
19045 if test -d conf$$.dir
; then
19046 rm -f conf$$.dir
/conf$$.
file
19049 mkdir conf$$.dir
2>/dev
/null
19051 if (echo >conf$$.
file) 2>/dev
/null
; then
19052 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19054 # ... but there are two gotchas:
19055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19057 # In both cases, we have to default to `cp -pR'.
19058 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19060 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19068 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19069 rmdir conf$$.dir
2>/dev
/null
19074 # Create "$as_dir" as a directory, including parents if necessary.
19079 -*) as_dir
=.
/$as_dir;;
19081 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19085 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19086 *) as_qdir
=$as_dir;;
19088 as_dirs
="'$as_qdir' $as_dirs"
19089 as_dir
=`$as_dirname -- "$as_dir" ||
19090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19091 X"$as_dir" : 'X\(//\)[^/]' \| \
19092 X"$as_dir" : 'X\(//\)$' \| \
19093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19094 $as_echo X"$as_dir" |
19095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19099 /^X\(\/\/\)[^/].*/{
19112 test -d "$as_dir" && break
19114 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19115 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19119 if mkdir
-p .
2>/dev
/null
; then
19120 as_mkdir_p
='mkdir -p "$as_dir"'
19122 test -d .
/-p && rmdir .
/-p
19127 # as_fn_executable_p FILE
19128 # -----------------------
19129 # Test if FILE is an executable regular file.
19130 as_fn_executable_p
()
19132 test -f "$1" && test -x "$1"
19133 } # as_fn_executable_p
19134 as_test_x
='test -x'
19135 as_executable_p
=as_fn_executable_p
19137 # Sed expression to map a string onto a valid CPP name.
19138 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19140 # Sed expression to map a string onto a valid variable name.
19141 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19145 ## ----------------------------------- ##
19146 ## Main body of $CONFIG_STATUS script. ##
19147 ## ----------------------------------- ##
19149 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19152 # Save the log message, to keep $0 and so on meaningful, and to
19153 # report actual input values of CONFIG_FILES etc. instead of their
19154 # values after options handling.
19156 This file was extended by $as_me, which was
19157 generated by GNU Autoconf 2.69. Invocation command line was
19159 CONFIG_FILES = $CONFIG_FILES
19160 CONFIG_HEADERS = $CONFIG_HEADERS
19161 CONFIG_LINKS = $CONFIG_LINKS
19162 CONFIG_COMMANDS = $CONFIG_COMMANDS
19165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19170 case $ac_config_files in *"
19171 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19177 # Files that config.status was made for.
19178 config_files="$ac_config_files"
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19184 \`$as_me' instantiates files and other configuration actions
19185 from templates according to the current configuration. Unless the files
19186 and actions are specified as TAGs, all are instantiated by default.
19188 Usage: $0 [OPTION]... [TAG]...
19190 -h, --help print this help, then exit
19191 -V, --version print version number and configuration settings, then exit
19192 --config print configuration, then exit
19193 -q, --quiet, --silent
19194 do not print progress messages
19195 -d, --debug don't remove temporary files
19196 --recheck update $as_me by reconfiguring in the same conditions
19197 --file=FILE[:TEMPLATE]
19198 instantiate the configuration file FILE
19200 Configuration files:
19203 Report bugs to the package provider."
19206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19210 configured by $0, generated by GNU Autoconf 2.69,
19211 with options \\"\$ac_cs_config\\"
19213 Copyright (C) 2012 Free Software Foundation, Inc.
19214 This config.status script is free software; the Free Software Foundation
19215 gives unlimited permission to copy, distribute and modify it."
19221 test -n "\$AWK" || AWK=awk
19224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19225 # The default lists apply if the user does not specify any file.
19231 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19232 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19236 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19248 # Handling of the options.
19249 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19251 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19252 $as_echo "$ac_cs_version"; exit ;;
19253 --config |
--confi |
--conf |
--con |
--co |
--c )
19254 $as_echo "$ac_cs_config"; exit ;;
19255 --debug |
--debu |
--deb |
--de |
--d |
-d )
19257 --file |
--fil |
--fi |
--f )
19260 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19261 '') as_fn_error $?
"missing file argument" ;;
19263 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19264 ac_need_defaults
=false
;;
19265 --he |
--h |
--help |
--hel |
-h )
19266 $as_echo "$ac_cs_usage"; exit ;;
19267 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19268 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19271 # This is an error.
19272 -*) as_fn_error $?
"unrecognized option: \`$1'
19273 Try \`$0 --help' for more information." ;;
19275 *) as_fn_append ac_config_targets
" $1"
19276 ac_need_defaults
=false
;;
19282 ac_configure_extra_args
=
19284 if $ac_cs_silent; then
19286 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19291 if \$ac_cs_recheck; then
19292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19295 CONFIG_SHELL='$SHELL'
19296 export CONFIG_SHELL
19301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19306 ## Running $as_me. ##
19312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19316 extrasub_build="$extrasub_build"
19317 extrasub_host="$extrasub_host"
19318 extrasub_target="$extrasub_target"
19322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19324 # Handling of arguments.
19325 for ac_config_target
in $ac_config_targets
19327 case $ac_config_target in
19328 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19330 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19335 # If the user did not use the arguments to specify the items to instantiate,
19336 # then the envvar interface is used. Set only those that are not.
19337 # We use the long form for the default assignment because of an extremely
19338 # bizarre bug on SunOS 4.1.3.
19339 if $ac_need_defaults; then
19340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19343 # Have a temporary directory for convenience. Make it in the build tree
19344 # simply because there is no reason against having it here, and in addition,
19345 # creating and moving files from /tmp can sometimes cause problems.
19346 # Hook for its removal unless debugging.
19347 # Note that there is a small window in which the directory will not be cleaned:
19348 # after its creation but before its name has been assigned to `$tmp'.
19352 trap 'exit_status=$?
19353 : "${ac_tmp:=$tmp}"
19354 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19356 trap 'as_fn_exit 1' 1 2 13 15
19358 # Create a (secure) tmp directory for tmp files.
19361 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19365 tmp
=.
/conf$$
-$RANDOM
19366 (umask 077 && mkdir
"$tmp")
19367 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19370 # Set up the scripts for CONFIG_FILES section.
19371 # No need to generate them if there are no CONFIG_FILES.
19372 # This happens for instance with `./config.status config.h'.
19373 if test -n "$CONFIG_FILES"; then
19375 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19376 ac_cs_awk_getline
=:
19377 ac_cs_awk_pipe_init
=
19378 ac_cs_awk_read_file
='
19379 while ((getline aline < (F[key])) > 0)
19382 ac_cs_awk_pipe_fini
=
19384 ac_cs_awk_getline
=false
19385 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19386 ac_cs_awk_read_file
='
19388 print "cat " F[key] " &&"
19389 '$ac_cs_awk_pipe_init
19390 # The final `:' finishes the AND list.
19391 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19393 ac_cr
=`echo X | tr X '\015'`
19394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19395 # But we know of no other shell where ac_cr would be empty at this
19396 # point, so we can use a bashism as a fallback.
19397 if test "x$ac_cr" = x
; then
19398 eval ac_cr
=\$
\'\\r
\'
19400 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19404 ac_cs_awk_cr
=$ac_cr
19407 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19410 # Create commands to substitute file output variables.
19412 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19413 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19414 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19417 } >conf$
$files.sh
&&
19418 . .
/conf$
$files.sh ||
19419 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19420 rm -f conf$
$files.sh
19423 echo "cat >conf$$subs.awk <<_ACEOF" &&
19424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19426 } >conf$$subs.sh ||
19427 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19430 for ac_last_try in false false false false false :; do
19431 . ./conf$$subs.sh ||
19432 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19434 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19435 if test $ac_delim_n = $ac_delim_num; then
19437 elif $ac_last_try; then
19438 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19440 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19443 rm -f conf$$subs.sh
19445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19450 s/^/S["/; s
/!.
*/"]=/
19460 s/\(.\{148\}\)..*/\1/
19462 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19467 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19474 s/\(.\{148\}\)..*/\1/
19476 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19480 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19485 ' <conf$$subs.awk | sed '
19490 ' >>$CONFIG_STATUS || ac_write_fail=1
19491 rm -f conf$$subs.awk
19492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19494 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19495 for (key in S) S_is_set[key] = 1
19497 \$ac_cs_awk_pipe_init
19501 nfields = split(line, field, "@
")
19503 len = length(field[1])
19504 for (i = 2; i < nfields; i++) {
19506 keylen = length(key)
19507 if (S_is_set[key]) {
19509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19510 len += length(value) + length(field[++i])
19515 if (nfields == 3 && !substed) {
19517 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19518 \$ac_cs_awk_read_file
19524 \$ac_cs_awk_pipe_fini
19527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19528 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19529 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19532 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19533 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19538 # trailing colons and then remove the whole line if VPATH becomes empty
19539 # (actually we leave an empty line to preserve line numbers).
19540 if test "x
$srcdir" = x.; then
19541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19560 fi # test -n "$CONFIG_FILES"
19563 eval set X " :F
$CONFIG_FILES "
19568 :[FHLC]) ac_mode=$ac_tag; continue;;
19570 case $ac_mode$ac_tag in
19572 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19573 :[FH]-) ac_tag=-:-;;
19574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19591 -) ac_f="$ac_tmp/stdin";;
19592 *) # Look for the file first in the build tree, then in the source tree
19593 # (if the path is not absolute). The absolute path cannot be DOS-style,
19594 # because $ac_f cannot contain `:'.
19598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19603 as_fn_append ac_file_inputs " '$ac_f'"
19606 # Let's still pretend it is `configure' which instantiates (i.e., don't
19607 # use $as_me), people would be surprised to read:
19608 # /* config.h. Generated by config.status. */
19609 configure_input='Generated from '`
19610 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19612 if test x"$ac_file" != x-; then
19613 configure_input="$ac_file.
$configure_input"
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19615 $as_echo "$as_me: creating
$ac_file" >&6;}
19617 # Neutralize special characters interpreted by sed in replacement strings.
19618 case $configure_input in #(
19619 *\&* | *\|* | *\\* )
19620 ac_sed_conf_input=`$as_echo "$configure_input" |
19621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19622 *) ac_sed_conf_input=$configure_input;;
19626 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19627 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19632 ac_dir=`$as_dirname -- "$ac_file" ||
19633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19634 X"$ac_file" : 'X\(//\)[^/]' \| \
19635 X"$ac_file" : 'X\(//\)$' \| \
19636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19637 $as_echo X"$ac_file" |
19638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642 /^X\(\/\/\)[^/].*/{
19655 as_dir="$ac_dir"; as_fn_mkdir_p
19659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19662 # A "..
" for each directory in $ac_dir_suffix.
19663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19664 case $ac_top_builddir_sub in
19665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19669 ac_abs_top_builddir=$ac_pwd
19670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19671 # for backward compatibility:
19672 ac_top_builddir=$ac_top_build_prefix
19675 .) # We are building in place.
19677 ac_top_srcdir=$ac_top_builddir_sub
19678 ac_abs_top_srcdir=$ac_pwd ;;
19679 [\\/]* | ?:[\\/]* ) # Absolute name.
19680 ac_srcdir=$srcdir$ac_dir_suffix;
19681 ac_top_srcdir=$srcdir
19682 ac_abs_top_srcdir=$srcdir ;;
19683 *) # Relative name.
19684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19685 ac_top_srcdir=$ac_top_build_prefix$srcdir
19686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19704 # If the template does not know about datarootdir, expand it.
19705 # FIXME: This hack should be removed a few years after 2.60.
19706 ac_datarootdir_hack=; ac_datarootdir_seen=
19717 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19718 *datarootdir*) ac_datarootdir_seen=yes;;
19719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19721 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19724 ac_datarootdir_hack='
19725 s&@datadir@&$datadir&g
19726 s&@docdir@&$docdir&g
19727 s&@infodir@&$infodir&g
19728 s&@localedir@&$localedir&g
19729 s&@mandir@&$mandir&g
19730 s&\\\${datarootdir}&$datarootdir&g' ;;
19734 # Neutralize VPATH when `$srcdir' = `.'.
19735 # Shell code in configure.ac might set extrasub.
19736 # FIXME: do we really want to maintain this feature?
19737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19738 ac_sed_extra="$ac_vpsub
19741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19743 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19744 s|@configure_input@|
$ac_sed_conf_input|
;t t
19745 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19746 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19747 s
&@srcdir@
&$ac_srcdir&;t t
19748 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19749 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19750 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19751 s
&@builddir@
&$ac_builddir&;t t
19752 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19753 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19754 s
&@INSTALL@
&$ac_INSTALL&;t t
19755 $ac_datarootdir_hack
19757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19758 if $ac_cs_awk_getline; then
19759 $AWK -f "$ac_tmp/subs.
awk"
19761 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19763 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19765 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19768 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19770 which seems to be undefined. Please make sure it is defined" >&5
19771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19772 which seems to be undefined. Please make sure it is defined" >&2;}
19774 rm -f "$ac_tmp/stdin"
19776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19787 case $ac_file$ac_mode in
19788 "Makefile":F) sed "$extrasub_build" Makefile |
19789 sed "$extrasub_host" |
19790 sed "$extrasub_target" > mf$$
19791 mv -f mf$$ Makefile ;;
19799 ac_clean_files=$ac_clean_files_save
19801 test $ac_write_fail = 0 ||
19802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19805 # configure is writing to config.log, and then calls config.status.
19806 # config.status does its own redirection, appending to config.log.
19807 # Unfortunately, on DOS this fails, as config.log is still kept open
19808 # by configure, so config.status won't be able to
write to it
; its
19809 # output is simply discarded. So we exec the FD to /dev/null,
19810 # effectively closing config.log, so it can be properly (re)opened and
19811 # appended to by config.status. When coming back to configure, we
19812 # need to make the FD available again.
19813 if test "$no_create" != yes; then
19815 ac_config_status_args
=
19816 test "$silent" = yes &&
19817 ac_config_status_args
="$ac_config_status_args --quiet"
19819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19822 # would make configure fail if this is the last instruction.
19823 $ac_cs_success || as_fn_exit
1
19825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}