2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
693 extra_linker_plugin_flags
694 extra_linker_plugin_configure_flags
701 extra_isl_gmp_configure_flags
702 extra_mpc_mpfr_configure_flags
703 extra_mpc_gmp_configure_flags
704 extra_mpfr_configure_flags
752 TOPLEVEL_CONFIGURE_ARGUMENTS
780 program_transform_name
791 ac_subst_files
='serialization_dependencies
797 enable_option_checking
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
805 enable_compressed_debug_sections
807 enable_libquadmath_support
824 with_static_standard_libraries
831 enable_isl_version_check
833 enable_linker_plugin_configure_flags
834 enable_linker_plugin_flags
837 enable_stage1_languages
840 with_target_bdw_gc_include
841 with_target_bdw_gc_lib
842 with_gcc_major_version_only
844 with_debug_prefix_map
847 enable_serial_configure
848 with_build_time_tools
849 enable_maintainer_mode
850 enable_stage1_checking
853 ac_precious_vars
='build_alias
906 # Initialize some variables set by options.
908 ac_init_version
=false
909 ac_unrecognized_opts
=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name
=s
,x
,x
,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir
='${exec_prefix}/bin'
935 sbindir
='${exec_prefix}/sbin'
936 libexecdir
='${exec_prefix}/libexec'
937 datarootdir
='${prefix}/share'
938 datadir
='${datarootdir}'
939 sysconfdir
='${prefix}/etc'
940 sharedstatedir
='${prefix}/com'
941 localstatedir
='${prefix}/var'
942 includedir
='${prefix}/include'
943 oldincludedir
='/usr/include'
944 docdir
='${datarootdir}/doc/${PACKAGE}'
945 infodir
='${datarootdir}/info'
950 libdir
='${exec_prefix}/lib'
951 localedir
='${datarootdir}/locale'
952 mandir
='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\
$ac_option
966 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
979 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
982 -build |
--build |
--buil |
--bui |
--bu)
983 ac_prev
=build_alias
;;
984 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
985 build_alias
=$ac_optarg ;;
987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
989 ac_prev
=cache_file
;;
990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
992 cache_file
=$ac_optarg ;;
995 cache_file
=config.cache
;;
997 -datadir |
--datadir |
--datadi |
--datad)
999 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1000 datadir
=$ac_optarg ;;
1002 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1003 |
--dataroo |
--dataro |
--datar)
1004 ac_prev
=datarootdir
;;
1005 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1006 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1007 datarootdir
=$ac_optarg ;;
1009 -disable-* |
--disable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=no
;;
1025 -docdir |
--docdir |
--docdi |
--doc |
--do)
1027 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1028 docdir
=$ac_optarg ;;
1030 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1032 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1033 dvidir
=$ac_optarg ;;
1035 -enable-* |
--enable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error $?
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=\
$ac_optarg ;;
1051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1053 |
--exec |
--exe |
--ex)
1054 ac_prev
=exec_prefix
;;
1055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1057 |
--exec=* |
--exe=* |
--ex=*)
1058 exec_prefix
=$ac_optarg ;;
1060 -gas |
--gas |
--ga |
--g)
1061 # Obsolete; use --with-gas.
1064 -help |
--help |
--hel |
--he |
-h)
1065 ac_init_help
=long
;;
1066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1067 ac_init_help
=recursive
;;
1068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1069 ac_init_help
=short
;;
1071 -host |
--host |
--hos |
--ho)
1072 ac_prev
=host_alias
;;
1073 -host=* |
--host=* |
--hos=* |
--ho=*)
1074 host_alias
=$ac_optarg ;;
1076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1080 htmldir
=$ac_optarg ;;
1082 -includedir |
--includedir |
--includedi |
--included |
--include \
1083 |
--includ |
--inclu |
--incl |
--inc)
1084 ac_prev
=includedir
;;
1085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1087 includedir
=$ac_optarg ;;
1089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1092 infodir
=$ac_optarg ;;
1094 -libdir |
--libdir |
--libdi |
--libd)
1096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1097 libdir
=$ac_optarg ;;
1099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1100 |
--libexe |
--libex |
--libe)
1101 ac_prev
=libexecdir
;;
1102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1103 |
--libexe=* |
--libex=* |
--libe=*)
1104 libexecdir
=$ac_optarg ;;
1106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1107 ac_prev
=localedir
;;
1108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1109 localedir
=$ac_optarg ;;
1111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1113 ac_prev
=localstatedir
;;
1114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1116 localstatedir
=$ac_optarg ;;
1118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1121 mandir
=$ac_optarg ;;
1123 -nfp |
--nfp |
--nf)
1124 # Obsolete; use --without-fp.
1127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1128 |
--no-cr |
--no-c |
-n)
1131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1137 |
--oldin |
--oldi |
--old |
--ol |
--o)
1138 ac_prev
=oldincludedir
;;
1139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1142 oldincludedir
=$ac_optarg ;;
1144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1147 prefix
=$ac_optarg ;;
1149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1150 |
--program-pre |
--program-pr |
--program-p)
1151 ac_prev
=program_prefix
;;
1152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1154 program_prefix
=$ac_optarg ;;
1156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1157 |
--program-suf |
--program-su |
--program-s)
1158 ac_prev
=program_suffix
;;
1159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1161 program_suffix
=$ac_optarg ;;
1163 -program-transform-name |
--program-transform-name \
1164 |
--program-transform-nam |
--program-transform-na \
1165 |
--program-transform-n |
--program-transform- \
1166 |
--program-transform |
--program-transfor \
1167 |
--program-transfo |
--program-transf \
1168 |
--program-trans |
--program-tran \
1169 |
--progr-tra |
--program-tr |
--program-t)
1170 ac_prev
=program_transform_name
;;
1171 -program-transform-name=* |
--program-transform-name=* \
1172 |
--program-transform-nam=* |
--program-transform-na=* \
1173 |
--program-transform-n=* |
--program-transform-=* \
1174 |
--program-transform=* |
--program-transfor=* \
1175 |
--program-transfo=* |
--program-transf=* \
1176 |
--program-trans=* |
--program-tran=* \
1177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1178 program_transform_name
=$ac_optarg ;;
1180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1183 pdfdir
=$ac_optarg ;;
1185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1191 |
-silent |
--silent |
--silen |
--sile |
--sil)
1194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1198 sbindir
=$ac_optarg ;;
1200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1204 ac_prev
=sharedstatedir
;;
1205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1209 sharedstatedir
=$ac_optarg ;;
1211 -site |
--site |
--sit)
1213 -site=* |
--site=* |
--sit=*)
1216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1219 srcdir
=$ac_optarg ;;
1221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1223 ac_prev
=sysconfdir
;;
1224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1226 sysconfdir
=$ac_optarg ;;
1228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1229 ac_prev
=target_alias
;;
1230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1231 target_alias
=$ac_optarg ;;
1233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1236 -version |
--version |
--versio |
--versi |
--vers |
-V)
1237 ac_init_version
=: ;;
1240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid package name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval with_
$ac_useropt=\
$ac_optarg ;;
1255 -without-* |
--without-*)
1256 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=no
;;
1272 # Obsolete; use --with-x.
1275 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1276 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1277 ac_prev
=x_includes
;;
1278 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1279 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1280 x_includes
=$ac_optarg ;;
1282 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1283 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1284 ac_prev
=x_libraries
;;
1285 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1286 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1287 x_libraries
=$ac_optarg ;;
1289 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1294 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1298 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1300 eval $ac_envvar=\
$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 if test -n "$ac_prev"; then
1315 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $?
"missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1322 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 # Check all directory arguments for consistency.
1328 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val
=\$
$ac_var
1334 # Remove trailing slashes.
1337 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\
$ac_val;;
1340 # Be sure to have absolute directory names.
1342 [\\/$
]* | ?
:[\\/]* ) continue;;
1343 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1345 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target
=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x
; then
1357 if test "x$build_alias" = x
; then
1358 cross_compiling
=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1367 test "$silent" = yes && exec 6>/dev
/null
1370 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di
=`ls -di .` &&
1372 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $?
"working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $?
"pwd does not report name of working directory"
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted
=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir
=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1410 ac_srcdir_defaulted
=no
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1414 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1416 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1428 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 as_fn_error $?
"path to source, $srcdir, contains spaces"
1435 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437 for ac_var
in $ac_precious_vars; do
1438 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1440 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures this package to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1516 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1520 if test -n "$ac_init_help"; then
1525 --disable-option-checking ignore unrecognized
--enable/--with options
1526 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1527 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1528 --enable-as-accelerator-for=ARG
1529 build as offload target compiler. Specify offload
1531 --enable-offload-targets=LIST
1532 enable offloading to devices from comma-separated
1533 LIST of TARGET
[=DIR
]. Use optional path to
find
1534 offload target compiler during the build
1535 --enable-offload-defaulted
1536 If enabled
, configured but not installed offload compilers and
1537 libgomp plugins are silently ignored. Useful
for distribution
1538 compilers where those are
in separate optional packages.
1540 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1541 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1542 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1543 Enable compressed debug sections
for gas
, gold or ld
1545 --disable-libquadmath do not build libquadmath directory
1546 --disable-libquadmath-support
1547 disable libquadmath support
for Fortran
1548 --enable-libada build libada directory
1549 --enable-libgm2 build libgm2 directory
1550 --enable-libssp build libssp directory
1551 --disable-libstdcxx do not build libstdc
++-v3 directory
1552 --enable-bootstrap enable bootstrapping
[yes if native build
]
1553 --enable-pgo-build[=lto
]
1554 enable the PGO build
1555 --disable-isl-version-check
1556 disable check
for isl version
1557 --enable-lto enable link
time optimization support
1558 --enable-linker-plugin-configure-flags=FLAGS
1559 additional flags
for configuring linker plugins
1561 --enable-linker-plugin-flags=FLAGS
1562 additional flags
for configuring and building linker
1564 --enable-host-pie build position independent
host executables
1565 --enable-host-shared build
host code as shared libraries
1566 --enable-stage1-languages[=all
]
1567 choose additional languages to build during stage1.
1568 Mostly useful
for compiler development
1569 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1571 --enable-vtable-verify Enable vtable verification feature
1572 --enable-serial-[{host,target,build}-]configure
1573 force sequential configuration of sub-packages for
1574 the host, target or build machine, or all
1576 --enable-maintainer-mode
1577 enable make rules and dependencies not useful (and
1578 sometimes confusing) to the casual installer
1579 --enable-stage1-checking[=all]
1580 choose additional checking for stage1 of the
1582 --enable-werror enable -Werror in bootstrap stage2 and later
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-build-libsubdir=DIR Directory where to find libraries for build system
1588 --with-system-zlib use installed libz
1589 --with-mpc=PATH specify prefix directory for installed MPC package.
1590 Equivalent to --with-mpc-include=PATH/include plus
1591 --with-mpc-lib=PATH/lib
1592 --with-mpc-include=PATH specify directory for installed MPC include files
1593 --with-mpc-lib=PATH specify directory for the installed MPC library
1594 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1595 Equivalent to --with-mpfr-include=PATH/include plus
1596 --with-mpfr-lib=PATH/lib
1597 --with-mpfr-include=PATH
1598 specify directory for installed MPFR include files
1599 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1600 --with-gmp=PATH specify prefix directory for the installed GMP
1601 package. Equivalent to
1602 --with-gmp-include=PATH/include plus
1603 --with-gmp-lib=PATH/lib
1604 --with-gmp-include=PATH specify directory for installed GMP include files
1605 --with-gmp-lib=PATH specify directory for the installed GMP library
1606 --with-stage1-libs=LIBS libraries for stage1
1607 --with-static-standard-libraries
1608 use -static-libstdc++ and -static-libgcc
1610 --with-stage1-ldflags=FLAGS
1611 linker flags for stage1
1612 --with-boot-libs=LIBS libraries for stage2 and later
1613 --with-boot-ldflags=FLAGS
1614 linker flags for stage2 and later
1615 --with-isl=PATH Specify prefix directory for the installed isl
1616 package. Equivalent to
1617 --with-isl-include=PATH/include plus
1618 --with-isl-lib=PATH/lib
1619 --with-isl-include=PATH Specify directory for installed isl include files
1620 --with-isl-lib=PATH Specify the directory for the installed isl library
1621 --with-target-bdw-gc=PATHLIST
1622 specify prefix directory for installed bdw-gc
1623 package. Equivalent to
1624 --with-target-bdw-gc-include=PATH/include plus
1625 --with-target-bdw-gc-lib=PATH/lib
1626 --with-target-bdw-gc-include=PATHLIST
1627 specify directories for installed bdw-gc include
1629 --with-target-bdw-gc-lib=PATHLIST
1630 specify directories for installed bdw-gc library
1631 --with-gcc-major-version-only
1632 use only GCC major number in filesystem paths
1633 --with-build-sysroot=SYSROOT
1634 use sysroot as the system root during the build
1635 --with-debug-prefix-map='A
=B C
=D ...
'
1636 map A to B, C to D ... in debug information
1637 --with-build-config='NAME NAME2...
'
1638 use config/NAME.mk build configuration
1639 --with-build-time-tools=PATH
1640 use given path to find target tools during the build
1642 Some influential environment variables:
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
1647 LIBS libraries to pass to the linker, e.g. -l<library>
1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649 you have headers in a nonstandard directory <include dir>
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
1653 additional configure arguments for build directories
1655 additional configure arguments for host directories
1657 additional configure arguments for target directories
1660 DLLTOOL DLLTOOL for the host
1661 DSYMUTIL DSYMUTIL for the host
1663 LIPO LIPO for the host
1665 RANLIB RANLIB for the host
1666 STRIP STRIP for the host
1667 WINDRES WINDRES for the host
1668 WINDMC WINDMC for the host
1669 OBJCOPY OBJCOPY for the host
1670 OBJDUMP OBJDUMP for the host
1671 OTOOL OTOOL for the host
1672 READELF READELF for the host
1680 GFORTRAN for the target
1692 DLLTOOL for the target
1694 DSYMUTIL for the target
1702 OBJCOPY for the target
1704 OBJDUMP for the target
1706 OTOOL for the target
1708 RANLIB for the target
1710 READELF for the target
1712 STRIP for the target
1714 WINDRES for the target
1716 WINDMC for the target
1718 Use these variables to override the choices made by `configure' or to
help
1719 it to
find libraries and programs with nonstandard names
/locations.
1721 Report bugs to the package provider.
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1735 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1737 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1742 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1745 ac_abs_top_builddir
=$ac_pwd
1746 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir
=$ac_top_build_prefix
1751 .
) # We are building in place.
1753 ac_top_srcdir
=$ac_top_builddir_sub
1754 ac_abs_top_srcdir
=$ac_pwd ;;
1755 [\\/]* | ?
:[\\/]* ) # Absolute name.
1756 ac_srcdir
=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir
=$srcdir
1758 ac_abs_top_srcdir
=$srcdir ;;
1760 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1764 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1785 generated by GNU Autoconf
2.69
1787 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1788 This configure
script is free software
; the Free Software Foundation
1789 gives unlimited permission to copy
, distribute and modify it.
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile
()
1803 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1804 rm -f conftest.
$ac_objext
1805 if { { ac_try
="$ac_compile"
1807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1846 *) ac_try_echo
=$ac_try;;
1848 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1852 if test -s conftest.err
; then
1853 grep -v '^ *+' conftest.err
>conftest.er1
1854 cat conftest.er1
>&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.
$ac_objext; then :
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status
$ac_retval
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_cxx_try_link LINENO
1875 # -------------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_link
()
1879 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1880 rm -f conftest.
$ac_objext conftest
$ac_exeext
1881 if { { ac_try
="$ac_link"
1883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_cxx_try_link
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1930 *) ac_try_echo
=$ac_try;;
1932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1936 if test -s conftest.err
; then
1937 grep -v '^ *+' conftest.err
>conftest.er1
1938 cat conftest.er1
>&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest
$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest
$ac_exeext
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status
$ac_retval
1964 } # ac_fn_c_try_link
1965 cat >config.log
<<_ACEOF
1966 This file contains any messages produced by compilers while
1967 running configure, to aid debugging if configure makes a mistake.
1969 It was created by $as_me, which was
1970 generated by GNU Autoconf 2.69. Invocation command line was
1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir
=.
2006 $as_echo "PATH: $as_dir"
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2030 ac_must_keep_next
=false
2036 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2037 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2038 |
-silent |
--silent |
--silen |
--sile |
--sil)
2041 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2046 as_fn_append ac_configure_args1
" '$ac_arg'"
2047 if test $ac_must_keep_next = true
; then
2048 ac_must_keep_next
=false
# Got value, back to normal.
2051 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2052 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2053 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2054 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 -* ) ac_must_keep_next
=true
;;
2062 as_fn_append ac_configure_args
" '$ac_arg'"
2067 { ac_configure_args0
=; unset ac_configure_args0
;}
2068 { ac_configure_args1
=; unset ac_configure_args1
;}
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log. We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076 # Save into config.log some information that might help in debugging.
2080 $as_echo "## ---------------- ##
2081 ## Cache variables. ##
2082 ## ---------------- ##"
2084 # The following way of writing the cache mishandles newlines in values,
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 $as_echo "## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##"
2120 for ac_var in $ac_subst_vars
2122 eval ac_val=\$$ac_var
2124 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 $as_echo "$ac_var='\''$ac_val'\''"
2130 if test -n "$ac_subst_files"; then
2131 $as_echo "## ------------------- ##
2132 ## File substitutions. ##
2133 ## ------------------- ##"
2135 for ac_var
in $ac_subst_files
2137 eval ac_val
=\$
$ac_var
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -s confdefs.h; then
2147 $as_echo "## ----------- ##
2154 test "$ac_signal" != 0 &&
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162 for ac_signal
in 1 2 13 15; do
2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2168 rm -f -r conftest
* confdefs.h
2170 $as_echo "/* confdefs.h */" > confdefs.h
2172 # Predefined preprocessor variables.
2174 cat >>confdefs.h
<<_ACEOF
2175 #define PACKAGE_NAME "$PACKAGE_NAME"
2178 cat >>confdefs.h
<<_ACEOF
2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182 cat >>confdefs.h
<<_ACEOF
2183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2186 cat >>confdefs.h
<<_ACEOF
2187 #define PACKAGE_STRING "$PACKAGE_STRING"
2190 cat >>confdefs.h
<<_ACEOF
2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_URL "$PACKAGE_URL"
2199 # Let the site file select an alternate cache file if it wants to.
2200 # Prefer an explicitly selected file to automatically selected ones.
2203 if test -n "$CONFIG_SITE"; then
2204 # We do not want a PATH search for config.site.
2205 case $CONFIG_SITE in #((
2206 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2207 */*) ac_site_file1
=$CONFIG_SITE;;
2208 *) ac_site_file1
=.
/$CONFIG_SITE;;
2210 elif test "x$prefix" != xNONE
; then
2211 ac_site_file1
=$prefix/share
/config.site
2212 ac_site_file2
=$prefix/etc
/config.site
2214 ac_site_file1
=$ac_default_prefix/share
/config.site
2215 ac_site_file2
=$ac_default_prefix/etc
/config.site
2217 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2219 test "x$ac_site_file" = xNONE
&& continue
2220 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2225 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 as_fn_error $?
"failed to load site script $ac_site_file
2228 See \`config.log' for more details" "$LINENO" 5; }
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special files
2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2235 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2239 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2240 *) .
"./$cache_file";;
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2249 # Check that the precious variables saved in the cache have kept the same
2251 ac_cache_corrupted
=false
2252 for ac_var
in $ac_precious_vars; do
2253 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2254 eval ac_new_set
=\
$ac_env_${ac_var}_set
2255 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2256 eval ac_new_val
=\
$ac_env_${ac_var}_value
2257 case $ac_old_set,$ac_new_set in
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261 ac_cache_corrupted
=: ;;
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265 ac_cache_corrupted
=: ;;
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w
=`echo x $ac_old_val`
2271 ac_new_val_w
=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted
=:
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\
$ac_old_val
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2290 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 *) ac_arg
=$ac_var=$ac_new_val ;;
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2295 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2299 if $ac_cache_corrupted; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2311 ac_cpp
='$CPP $CPPFLAGS'
2312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2324 # if PWD already has a value, it is probably wrong.
2325 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2327 # Export original configure arguments for use by sub-configures.
2328 # Quote arguments with shell meta charatcers.
2329 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2330 set -- "$progname" "$@"
2334 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2335 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2336 # if the argument is of the form -foo=baz, quote the baz part only
2337 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2340 # Add the quoted argument to the list.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2343 if test "$silent" = yes; then
2344 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2346 # Remove the initial space we just introduced and, as these will be
2347 # expanded by make, quote '$'.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2351 # Find the build, host, and target systems.
2353 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2354 if test -f "$ac_dir/install-sh"; then
2356 ac_install_sh
="$ac_aux_dir/install-sh -c"
2358 elif test -f "$ac_dir/install.sh"; then
2360 ac_install_sh
="$ac_aux_dir/install.sh -c"
2362 elif test -f "$ac_dir/shtool"; then
2364 ac_install_sh
="$ac_aux_dir/shtool install -c"
2368 if test -z "$ac_aux_dir"; then
2369 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372 # These three variables are undocumented and unsupported,
2373 # and are intended to be withdrawn in a future Autoconf release.
2374 # They can cause serious problems if a builder's source tree is in a directory
2375 # whose full name contains unusual characters.
2376 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381 # Make sure we can run config.sub.
2382 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2383 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386 $as_echo_n "checking build system type... " >&6; }
2387 if ${ac_cv_build+:} false
; then :
2388 $as_echo_n "(cached) " >&6
2390 ac_build_alias
=$build_alias
2391 test "x$ac_build_alias" = x
&&
2392 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2393 test "x$ac_build_alias" = x
&&
2394 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2395 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2396 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400 $as_echo "$ac_cv_build" >&6; }
2401 case $ac_cv_build in
2403 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2406 ac_save_IFS
=$IFS; IFS
='-'
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2416 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2419 case ${build_alias} in
2420 "") build_noncanonical
=${build} ;;
2421 *) build_noncanonical
=${build_alias} ;;
2426 case ${host_alias} in
2427 "") host_noncanonical
=${build_noncanonical} ;;
2428 *) host_noncanonical
=${host_alias} ;;
2433 case ${target_alias} in
2434 "") target_noncanonical
=${host_noncanonical} ;;
2435 *) target_noncanonical
=${target_alias} ;;
2441 test "$host_noncanonical" = "$target_noncanonical" &&
2442 test "$program_prefix$program_suffix$program_transform_name" = \
2444 program_transform_name
=s
,y
,y
,
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2447 $as_echo_n "checking host system type... " >&6; }
2448 if ${ac_cv_host+:} false
; then :
2449 $as_echo_n "(cached) " >&6
2451 if test "x$host_alias" = x
; then
2452 ac_cv_host
=$ac_cv_build
2454 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2455 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2460 $as_echo "$ac_cv_host" >&6; }
2463 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2466 ac_save_IFS
=$IFS; IFS
='-'
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2476 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2480 $as_echo_n "checking target system type... " >&6; }
2481 if ${ac_cv_target+:} false
; then :
2482 $as_echo_n "(cached) " >&6
2484 if test "x$target_alias" = x
; then
2485 ac_cv_target
=$ac_cv_host
2487 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2488 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2493 $as_echo "$ac_cv_target" >&6; }
2494 case $ac_cv_target in
2496 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2498 target
=$ac_cv_target
2499 ac_save_IFS
=$IFS; IFS
='-'
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2509 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2512 # The aliases save the names the user supplied, while $host etc.
2513 # will get canonicalized.
2514 test -n "$target_alias" &&
2515 test "$program_prefix$program_suffix$program_transform_name" = \
2517 program_prefix
=${target_alias}-
2519 test "$program_prefix" != NONE
&&
2520 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2521 # Use a double $ so make ignores it.
2522 test "$program_suffix" != NONE
&&
2523 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2524 # Double any \ or $.
2525 # By default was `s,x,x', remove it if useless.
2526 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2527 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 # Get 'install' or 'install-sh' and its variants.
2532 # Find a good install program. We prefer a C program (faster),
2533 # so one script is as good as another. But avoid the broken or
2534 # incompatible versions:
2535 # SysV /etc/install, /usr/sbin/install
2536 # SunOS /usr/etc/install
2537 # IRIX /sbin/install
2539 # AmigaOS /C/install, which installs bootblocks on floppy discs
2540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2543 # OS/2's system install, which has a completely different semantic
2544 # ./install, which can be erroneously created by make from ./install.sh.
2545 # Reject install programs that cannot install multiple files.
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2548 if test -z "$INSTALL"; then
2549 if ${ac_cv_path_install+:} false
; then :
2550 $as_echo_n "(cached) " >&6
2552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir
=.
2557 # Account for people who put trailing slashes in PATH elements.
2558 case $as_dir/ in #((
2559 .
/ | .
// |
/[cC
]/* | \
2560 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2561 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2564 # OSF1 and SCO ODT 3.0 have their own names for install.
2565 # Don't use installbsd from OSF since it installs stuff as root
2567 for ac_prog
in ginstall scoinst
install; do
2568 for ac_exec_ext
in '' $ac_executable_extensions; do
2569 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2570 if test $ac_prog = install &&
2571 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2572 # AIX install. It has an incompatible calling convention.
2574 elif test $ac_prog = install &&
2575 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2576 # program-specific install script used by HP pwplus--don't use.
2579 rm -rf conftest.one conftest.two conftest.dir
2580 echo one
> conftest.one
2581 echo two
> conftest.two
2583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2584 test -s conftest.one
&& test -s conftest.two
&&
2585 test -s conftest.dir
/conftest.one
&&
2586 test -s conftest.dir
/conftest.two
2588 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2601 rm -rf conftest.one conftest.two conftest.dir
2604 if test "${ac_cv_path_install+set}" = set; then
2605 INSTALL
=$ac_cv_path_install
2607 # As a last resort, use the slow shell script. Don't cache a
2608 # value for INSTALL within a source directory, because that will
2609 # break other packages using the cache if that directory is
2610 # removed, or if the value is a relative name.
2611 INSTALL
=$ac_install_sh
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2615 $as_echo "$INSTALL" >&6; }
2617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2618 # It thinks the first close brace ends the variable substitution.
2619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2623 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2626 $as_echo_n "checking whether ln works... " >&6; }
2627 if ${acx_cv_prog_LN+:} false
; then :
2628 $as_echo_n "(cached) " >&6
2630 rm -f conftestdata_t
2631 echo >conftestdata_f
2632 if ln conftestdata_f conftestdata_t
2>/dev
/null
2638 rm -f conftestdata_f conftestdata_t
2641 if test $acx_cv_prog_LN = no
; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2644 $as_echo "no, using $LN" >&6; }
2646 LN
="$acx_cv_prog_LN"
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2652 $as_echo_n "checking whether ln -s works... " >&6; }
2654 if test "$LN_S" = "ln -s"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656 $as_echo "yes" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2659 $as_echo "no, using $LN_S" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2663 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2664 if ${ac_cv_path_SED+:} false
; then :
2665 $as_echo_n "(cached) " >&6
2667 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2668 for ac_i
in 1 2 3 4 5 6 7; do
2669 ac_script
="$ac_script$as_nl$ac_script"
2671 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2672 { ac_script
=; unset ac_script
;}
2673 if test -z "$SED"; then
2674 ac_path_SED_found
=false
2675 # Loop through the user's path and test for each of PROGNAME-LIST
2676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir
=.
2681 for ac_prog
in sed gsed
; do
2682 for ac_exec_ext
in '' $ac_executable_extensions; do
2683 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2684 as_fn_executable_p
"$ac_path_SED" ||
continue
2685 # Check for GNU ac_path_SED and select it if it is found.
2686 # Check for GNU $ac_path_SED
2687 case `"$ac_path_SED" --version 2>&1` in
2689 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2692 $as_echo_n 0123456789 >"conftest.in"
2695 cat "conftest.in" "conftest.in" >"conftest.tmp"
2696 mv "conftest.tmp" "conftest.in"
2697 cp "conftest.in" "conftest.nl"
2698 $as_echo '' >> "conftest.nl"
2699 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2700 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2701 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2702 if test $ac_count -gt ${ac_path_SED_max-0}; then
2703 # Best one so far, save it but keep looking for a better one
2704 ac_cv_path_SED
="$ac_path_SED"
2705 ac_path_SED_max
=$ac_count
2707 # 10*(2^10) chars as input seems more than enough
2708 test $ac_count -gt 10 && break
2710 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2713 $ac_path_SED_found && break 3
2718 if test -z "$ac_cv_path_SED"; then
2719 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2727 $as_echo "$ac_cv_path_SED" >&6; }
2728 SED
="$ac_cv_path_SED"
2731 for ac_prog
in gawk mawk nawk
awk
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy
$ac_prog; ac_word
=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_AWK+:} false
; then :
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$AWK"; then
2741 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir
=.
2748 for ac_exec_ext
in '' $ac_executable_extensions; do
2749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_AWK
="$ac_prog"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 if test -n "$AWK"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2763 $as_echo "$AWK" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2770 test -n "$AWK" && break
2774 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2776 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2778 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2779 INSTALL
="${srcpwd}/install-sh -c"
2782 # Set srcdir to "." if that's what it is.
2783 # This is important for multilib support.
2785 if test "${pwd}" = "${srcpwd}" ; then
2793 ### To add a new directory to the tree, first choose whether it is a target
2794 ### or a host dependent tool. Then put it into the appropriate list
2795 ### (library or tools, host or target), doing a dependency sort.
2797 # Subdirs will be configured in the order listed in build_configdirs,
2798 # configdirs, or target_configdirs; see the serialization section below.
2800 # Dependency sorting is only needed when *configuration* must be done in
2801 # a particular order. In all cases a dependency should be specified in
2802 # the Makefile, whether or not it's implicitly specified here.
2804 # Double entries in build_configdirs, configdirs, or target_configdirs may
2805 # cause circular dependencies and break everything horribly.
2807 # these library is used by various programs built for the build
2810 build_libs
="build-libiberty build-libcpp"
2812 # these tools are built for the build environment
2813 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2815 # these libraries are used by various programs built for the host environment
2817 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2819 # these tools are built for the host environment
2820 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2821 # know that we are building the simulator.
2822 # binutils, gas and ld appear in that order because it makes sense to run
2823 # "make check" in that particular order.
2824 # If --enable-gold is used, "gold" may replace "ld".
2825 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2827 # these libraries are built for the target environment, and are built after
2828 # the host libraries and the host tools (which may be a cross compiler)
2829 # Note that libiberty is not a target library.
2830 target_libraries
="target-libgcc \
2831 target-libbacktrace \
2837 target-libstdc++-v3 \
2838 target-libsanitizer \
2841 target-libquadmath \
2842 target-libgfortran \
2851 # these tools are built using the target libraries, and are intended to
2852 # run only in the target environment
2854 # note: any program that *uses* libraries that are in the "target_libraries"
2855 # list belongs in this list.
2857 target_tools
="target-rda"
2859 ################################################################################
2861 ## All tools belong in one of the four categories, and are assigned above
2862 ## We assign ${configdirs} this way to remove all embedded newlines. This
2863 ## is important because configure will choke if they ever get through.
2864 ## ${configdirs} is directories we build using the host tools.
2865 ## ${target_configdirs} is directories we build using the target tools.
2866 configdirs
=`echo ${host_libs} ${host_tools}`
2867 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2868 build_configdirs
=`echo ${build_libs} ${build_tools}`
2872 ################################################################################
2874 srcname
="gnu development package"
2876 # This gets set non-empty for some net releases of packages.
2879 # Define is_cross_compiler to save on calls to 'test'.
2881 if test x
"${host}" = x
"${target}" ; then
2882 is_cross_compiler
=no
2884 is_cross_compiler
=yes
2887 # Find the build and target subdir names.
2889 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2890 # have matching libraries, they should use host libraries: Makefile.tpl
2891 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2892 # However, they still use the build modules, because the corresponding
2893 # host modules (e.g. bison) are only built for the host when bootstrap
2895 # - build_subdir is where we find build modules, and never changes.
2896 # - build_libsubdir is where we find build libraries, and can be overridden.
2898 # Prefix 'build-' so this never conflicts with target_subdir.
2899 build_subdir
="build-${build_noncanonical}"
2901 # Check whether --with-build-libsubdir was given.
2902 if test "${with_build_libsubdir+set}" = set; then :
2903 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2905 build_libsubdir
="$build_subdir"
2908 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2909 if ( test $srcdir = .
&& test -d gcc
) \
2910 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2911 host_subdir
="host-${host_noncanonical}"
2916 target_subdir
=${target_noncanonical}
2918 # Be sure to cover against remnants of an in-tree build.
2919 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2920 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2921 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2924 # Skipdirs are removed silently.
2926 # Noconfigdirs are removed loudly.
2930 # Make sure we don't let GNU ld be added if we didn't want it.
2931 if test x
$with_gnu_ld = xno
; then
2933 noconfigdirs
="$noconfigdirs ld gold"
2937 # Make sure we don't let GNU as be added if we didn't want it.
2938 if test x
$with_gnu_as = xno
; then
2940 noconfigdirs
="$noconfigdirs gas"
2945 # Check whether --with-system-zlib was given.
2946 if test "${with_system_zlib+set}" = set; then :
2947 withval
=$with_system_zlib;
2950 # Make sure we don't let ZLIB be added if we didn't want it.
2951 if test x
$with_system_zlib = xyes
; then
2952 use_included_zlib
=no
2953 noconfigdirs
="$noconfigdirs zlib"
2956 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2958 if test x
$with_system_readline = xyes
; then
2959 noconfigdirs
="$noconfigdirs readline"
2962 # some tools are so dependent upon X11 that if we're not building with X,
2963 # it's not even worth trying to configure, much less build, that tool.
2966 yes |
"") ;; # the default value for this tree is that X11 is available
2968 skipdirs
="${skipdirs} tk itcl libgui"
2969 # We won't be able to build gdbtk without X.
2972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2975 # Some are only suitable for cross toolchains.
2976 # Remove these if host=target.
2977 cross_only
="target-libgloss target-newlib target-opcodes"
2979 case $is_cross_compiler in
2980 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2983 # If both --with-headers and --with-libs are specified, default to
2985 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2986 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2987 if test x
"${with_newlib}" = x
; then
2992 # Recognize --with-newlib/--without-newlib.
2993 case ${with_newlib} in
2994 no
) skipdirs
="${skipdirs} target-newlib" ;;
2995 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2998 # Check whether --enable-as-accelerator-for was given.
2999 if test "${enable_as_accelerator_for+set}" = set; then :
3000 enableval
=$enable_as_accelerator_for;
3004 # Check whether --enable-offload-targets was given.
3005 if test "${enable_offload_targets+set}" = set; then :
3006 enableval
=$enable_offload_targets;
3007 if test x
"$enable_offload_targets" = x
; then
3008 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3012 enable_offload_targets
=
3016 # Check whether --enable-offload-defaulted was given.
3017 if test "${enable_offload_defaulted+set}" = set; then :
3018 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3020 enable_offload_defaulted
=
3024 # Handle --enable-gold, --enable-ld.
3025 # --disable-gold [--enable-ld]
3026 # Build only ld. Default option.
3027 # --enable-gold [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold", install ld
3029 # as "ld.bfd" and "ld".
3030 # --enable-gold=default [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3032 # install ld as "ld.bfd".
3033 # --enable-gold[=default] --disable-ld
3034 # Build only gold, which is then installed as both "ld.gold" and "ld".
3035 # --enable-gold --enable-ld=default
3036 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3038 # In other words, ld is default
3039 # --enable-gold=default --enable-ld=default
3043 # Check whether --enable-gold was given.
3044 if test "${enable_gold+set}" = set; then :
3045 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3050 case "${ENABLE_GOLD}" in
3052 # Check for ELF target.
3055 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3056 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3057 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3058 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3060 *-*-linux*aout
* |
*-*-linux*oldld
*)
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
3071 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3072 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3073 configdirs
="$configdirs gold"
3074 if test x
${ENABLE_GOLD} = xdefault
; then
3085 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3089 # Check whether --enable-ld was given.
3090 if test "${enable_ld+set}" = set; then :
3091 enableval
=$enable_ld; ENABLE_LD
=$enableval
3097 case "${ENABLE_LD}" in
3099 if test x
${default_ld} != x
; then
3100 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3106 if test x
${ENABLE_GOLD} != xyes
; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3113 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3118 # Decide the default method for compressing debug sections.
3119 # Provide a configure time option to override our default.
3120 # Check whether --enable-compressed_debug_sections was given.
3121 if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval
=$enable_compressed_debug_sections;
3123 if test x
"$enable_compressed_debug_sections" = xyes
; then
3124 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3128 enable_compressed_debug_sections
=
3132 # Configure extra directories which are host specific
3136 configdirs
="$configdirs libtermcap" ;;
3139 # A target can indicate whether a language isn't supported for some reason.
3140 # Only spaces may be used in this macro; not newlines or tabs.
3141 unsupported_languages
=
3143 # Remove more programs from consideration, based on the host or
3144 # target this usually means that a port of the program doesn't
3148 i
[3456789]86-*-msdosdjgpp*)
3149 noconfigdirs
="$noconfigdirs tcl tk itcl"
3154 # Check whether --enable-libquadmath was given.
3155 if test "${enable_libquadmath+set}" = set; then :
3156 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3158 ENABLE_LIBQUADMATH
=yes
3161 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs
="$noconfigdirs target-libquadmath"
3166 # Check whether --enable-libquadmath-support was given.
3167 if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3170 ENABLE_LIBQUADMATH_SUPPORT
=yes
3173 enable_libquadmath_support
=
3174 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support
=no
3179 # Check whether --enable-libada was given.
3180 if test "${enable_libada+set}" = set; then :
3181 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3186 if test "${ENABLE_LIBADA}" != "yes" ; then
3187 noconfigdirs
="$noconfigdirs gnattools"
3190 # Check whether --enable-libgm2 was given.
3191 if test "${enable_libgm2+set}" = set; then :
3192 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3197 if test "${ENABLE_LIBGM2}" != "yes" ; then
3198 noconfigdirs
="$noconfigdirs gm2tools"
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3209 # Check whether --enable-libstdcxx was given.
3210 if test "${enable_libstdcxx+set}" = set; then :
3211 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3213 ENABLE_LIBSTDCXX
=default
3216 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3217 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3220 # Enable libgomp by default on hosted POSIX systems, and a few others.
3221 if test x
$enable_libgomp = x
; then
3223 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3225 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3227 *-*-solaris2* |
*-*-hpux11*)
3229 *-*-darwin* |
*-*-aix*)
3231 nvptx
*-*-* | amdgcn
*-*-*)
3234 noconfigdirs
="$noconfigdirs target-libgomp"
3239 # Disable libatomic on unsupported systems.
3240 if test -d ${srcdir}/libatomic
; then
3241 if test x
$enable_libatomic = x
; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3243 $as_echo_n "checking for libatomic support... " >&6; }
3244 if (srcdir
=${srcdir}/libatomic
; \
3245 .
${srcdir}/configure.tgt
; \
3246 test -n "$UNSUPPORTED")
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 noconfigdirs
="$noconfigdirs target-libatomic"
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3258 # Disable libitm on unsupported systems.
3259 if test -d ${srcdir}/libitm
; then
3260 if test x
$enable_libitm = x
; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3262 $as_echo_n "checking for libitm support... " >&6; }
3263 if (srcdir
=${srcdir}/libitm
; \
3264 .
${srcdir}/configure.tgt
; \
3265 test -n "$UNSUPPORTED")
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 noconfigdirs
="$noconfigdirs target-libitm"
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3277 # Disable libsanitizer on unsupported systems.
3278 if test -d ${srcdir}/libsanitizer
; then
3279 if test x
$enable_libsanitizer = x
; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281 $as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir
=${srcdir}/libsanitizer
; \
3283 .
${srcdir}/configure.tgt
; \
3284 test -n "$UNSUPPORTED")
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs
="$noconfigdirs target-libsanitizer"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3296 # Disable libvtv on unsupported systems.
3297 if test -d ${srcdir}/libvtv
; then
3298 if test x
$enable_libvtv = x
; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300 $as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir
=${srcdir}/libvtv
; \
3302 .
${srcdir}/configure.tgt
; \
3303 test "$VTV_SUPPORTED" != "yes")
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs
="$noconfigdirs target-libvtv"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3315 # Disable libquadmath for some systems.
3318 noconfigdirs
="$noconfigdirs target-libquadmath"
3320 # libquadmath is unused on AIX and libquadmath build process use of
3321 # LD_LIBRARY_PATH can break AIX bootstrap.
3322 powerpc-
*-aix* | rs6000-
*-aix*)
3323 noconfigdirs
="$noconfigdirs target-libquadmath"
3327 # Disable libssp for some systems.
3330 # No hosted I/O support.
3331 noconfigdirs
="$noconfigdirs target-libssp"
3334 noconfigdirs
="$noconfigdirs target-libssp"
3336 powerpc-
*-aix* | rs6000-
*-aix*)
3337 noconfigdirs
="$noconfigdirs target-libssp"
3340 # No hosted I/O support.
3341 noconfigdirs
="$noconfigdirs target-libssp"
3344 # libssp uses a misaligned load to trigger a fault, but the RL78
3345 # doesn't fault for those - instead, it gives a build-time error
3346 # for explicit misaligned loads.
3347 noconfigdirs
="$noconfigdirs target-libssp"
3350 # No hosted I/O support.
3351 noconfigdirs
="$noconfigdirs target-libssp"
3355 # Disable libstdc++-v3 for some systems.
3356 # Allow user to override this if they pass --enable-libstdcxx
3357 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3360 # VxWorks uses the Dinkumware C++ library.
3361 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3364 # Not ported/fails to build when using newlib.
3365 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3368 # the C++ libraries don't build on top of CE's C libraries
3369 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3372 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3375 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3378 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3383 # Disable C++ on systems where it is known to not work.
3384 # For testing, you can override this with --enable-languages=c++.
3385 case ,${enable_languages}, in
3391 unsupported_languages
="$unsupported_languages c++"
3397 # Disable Objc on systems where it is known to not work.
3398 # For testing, you can override this with --enable-languages=objc.
3399 case ,${enable_languages}, in
3405 unsupported_languages
="$unsupported_languages objc"
3411 # Disable D on systems where it is known to not work.
3412 # For testing, you can override this with --enable-languages=d.
3413 case ,${enable_languages}, in
3419 unsupported_languages
="$unsupported_languages d"
3425 # Disable libphobos on unsupported systems.
3426 # For testing, you can override this with --enable-libphobos.
3427 if test -d ${srcdir}/libphobos
; then
3428 if test x
$enable_libphobos = x
; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3430 $as_echo_n "checking for libphobos support... " >&6; }
3431 if (srcdir
=${srcdir}/libphobos
; \
3432 .
${srcdir}/configure.tgt
; \
3433 test "$LIBPHOBOS_SUPPORTED" != "yes")
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 noconfigdirs
="$noconfigdirs target-libphobos"
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3445 # Disable Fortran for some systems.
3448 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3449 unsupported_languages
="$unsupported_languages fortran"
3452 unsupported_languages
="$unsupported_languages fortran"
3456 # Disable libffi for some systems.
3460 i
[3456789]86-*-darwin*)
3462 x86_64-
*-darwin[912]*)
3465 noconfigdirs
="$noconfigdirs target-libffi"
3468 noconfigdirs
="$noconfigdirs target-libffi"
3471 noconfigdirs
="$noconfigdirs target-libffi"
3474 noconfigdirs
="$noconfigdirs target-libffi"
3477 noconfigdirs
="$noconfigdirs target-libffi"
3480 noconfigdirs
="$noconfigdirs target-libffi"
3483 noconfigdirs
="$noconfigdirs target-libffi"
3485 aarch64
*-*-freebsd*)
3486 noconfigdirs
="$noconfigdirs target-libffi"
3489 noconfigdirs
="$noconfigdirs target-libffi"
3492 noconfigdirs
="$noconfigdirs target-libffi"
3495 noconfigdirs
="$noconfigdirs target-libffi"
3498 noconfigdirs
="$noconfigdirs target-libffi"
3501 noconfigdirs
="$noconfigdirs target-libffi"
3503 cris-
*-* | crisv32-
*-*)
3507 *) # See PR46792 regarding target-libffi.
3508 noconfigdirs
="$noconfigdirs target-libffi";;
3512 noconfigdirs
="$noconfigdirs target-libffi"
3515 noconfigdirs
="$noconfigdirs target-libffi"
3517 i
[3456789]86-w64-mingw*)
3518 noconfigdirs
="$noconfigdirs target-libffi"
3520 i
[3456789]86-*-mingw*)
3521 noconfigdirs
="$noconfigdirs target-libffi"
3524 noconfigdirs
="$noconfigdirs target-libffi"
3527 noconfigdirs
="$noconfigdirs target-libffi"
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3541 # Disable the go frontend on systems where it is known to not work. Please keep
3542 # this in sync with contrib/config-list.mk.
3544 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3545 unsupported_languages
="$unsupported_languages go"
3549 # Only allow gdbserver on some systems.
3550 if test -d ${srcdir}/gdbserver
; then
3551 if test x
$enable_gdbserver = x
; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3553 $as_echo_n "checking for gdbserver support... " >&6; }
3554 if (srcdir
=${srcdir}/gdbserver
; \
3555 .
${srcdir}/configure.srv
; \
3556 test -n "$UNSUPPORTED")
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 noconfigdirs
="$noconfigdirs gdbserver"
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 $as_echo "yes" >&6; }
3568 # Disable libgo for some systems where it is known to not work.
3569 # For testing, you can easily override this with --enable-libgo.
3570 if test x
$enable_libgo = x
; then
3574 noconfigdirs
="$noconfigdirs target-libgo"
3576 *-*-cygwin* |
*-*-mingw*)
3577 noconfigdirs
="$noconfigdirs target-libgo"
3580 noconfigdirs
="$noconfigdirs target-libgo"
3585 # Default libgloss CPU subdirectory.
3586 libgloss_dir
="$target_cpu"
3589 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3593 libgloss_dir
=aarch64
3598 cris-
*-* | crisv32-
*-*)
3608 libgloss_dir
=loongarch
3610 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3611 libgloss_dir
=m68hc11
3613 m68
*-*-* | fido-
*-*)
3630 # Disable newlib and libgloss for various target OSes.
3633 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3635 i
[3456789]86-*-linux*)
3636 # This section makes it possible to build newlib natively on linux.
3637 # If we are using a cross compiler then don't configure newlib.
3638 if test x
${is_cross_compiler} != xno
; then
3639 noconfigdirs
="$noconfigdirs target-newlib"
3641 noconfigdirs
="$noconfigdirs target-libgloss"
3642 # If we are not using a cross compiler, do configure newlib.
3643 # Note however, that newlib will only be configured in this situation
3644 # if the --with-newlib option has been given, because otherwise
3645 # 'target-newlib' will appear in skipdirs.
3647 i
[3456789]86-*-rdos*)
3648 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3650 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3651 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3654 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3657 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3660 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3663 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3666 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3669 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3672 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3674 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3675 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3678 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3681 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3684 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3687 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3690 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3693 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3696 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3704 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs
="$noconfigdirs sim target-rda"
3710 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3711 noconfigdirs
="$noconfigdirs sim target-rda"
3714 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3715 noconfigdirs
="$noconfigdirs sim target-rda"
3717 i
[3456789]86-*-darwin*)
3718 noconfigdirs
="$noconfigdirs ld gprof"
3719 noconfigdirs
="$noconfigdirs sim target-rda"
3721 x86_64-
*-darwin[912]*)
3722 noconfigdirs
="$noconfigdirs ld gas gprof"
3723 noconfigdirs
="$noconfigdirs sim target-rda"
3726 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3727 noconfigdirs
="$noconfigdirs sim target-rda"
3732 if test "x$with_gmp" = x \
3733 && ! test -d ${srcdir}/gmp \
3734 && test -f /usr
/local
/include
/gmp.h
; then
3739 # Remove unsupported stuff on all kaOS configurations.
3740 noconfigdirs
="$noconfigdirs target-libgloss"
3747 noconfigdirs
="$noconfigdirs target-libgloss"
3750 noconfigdirs
="$noconfigdirs target-libgloss"
3752 # The tpf target doesn't support gdb yet.
3754 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3757 noconfigdirs
="$noconfigdirs target-rda"
3762 # ld works, but does not support shared libraries.
3763 # gas doesn't generate exception information.
3764 noconfigdirs
="$noconfigdirs gas ld"
3767 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3770 # newlib is not 64 bit ready
3771 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3774 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3776 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3777 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3780 noconfigdirs
="$noconfigdirs sim"
3783 noconfigdirs
="$noconfigdirs target-libgloss"
3786 noconfigdirs
="$noconfigdirs ld target-libgloss"
3789 if test x
${with_avrlibc} != xno
; then
3790 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3793 c4x-
*-* | tic4x-
*-*)
3794 noconfigdirs
="$noconfigdirs target-libgloss"
3797 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3800 noconfigdirs
="$noconfigdirs target-libgloss"
3803 noconfigdirs
="$noconfigdirs gdb"
3806 noconfigdirs
="$noconfigdirs gdb"
3809 noconfigdirs
="$noconfigdirs target-rda gprof"
3812 noconfigdirs
="$noconfigdirs"
3815 noconfigdirs
="$noconfigdirs target-libgloss"
3818 noconfigdirs
="$noconfigdirs target-libgloss"
3821 noconfigdirs
="$noconfigdirs gdb"
3829 hppa
*-*-openbsd* | \
3835 noconfigdirs
="$noconfigdirs ld"
3838 noconfigdirs
="$noconfigdirs gdb"
3841 # No gdb support yet.
3842 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3845 # No ld support yet.
3846 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3849 # No ld support yet.
3850 noconfigdirs
="$noconfigdirs libgui itcl ld"
3852 i
[3456789]86-w64-mingw*)
3854 i
[3456789]86-*-mingw*)
3855 target_configdirs
="$target_configdirs target-winsup"
3858 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3859 noconfigdirs
="$noconfigdirs target-libgloss"
3860 # always build newlib if winsup directory is present.
3861 if test -d "$srcdir/winsup/cygwin"; then
3862 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3863 elif test -d "$srcdir/newlib"; then
3864 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3868 noconfigdirs
="$noconfigdirs target-libgloss"
3870 i
[3456789]86-*-sco3.2v5
*)
3871 # The linker does not yet know about weak symbols in COFF,
3872 # and is not configured to handle mixed ELF and COFF.
3873 noconfigdirs
="$noconfigdirs ld target-libgloss"
3875 i
[3456789]86-*-sco*)
3876 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3878 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3879 noconfigdirs
="$noconfigdirs target-libgloss"
3881 i
[3456789]86-*-sysv4*)
3882 noconfigdirs
="$noconfigdirs target-libgloss"
3884 i
[3456789]86-*-beos*)
3885 noconfigdirs
="$noconfigdirs gdb"
3887 i
[3456789]86-*-rdos*)
3888 noconfigdirs
="$noconfigdirs gdb"
3891 noconfigdirs
="$noconfigdirs gdb"
3894 noconfigdirs
="$noconfigdirs sim"
3897 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3898 noconfigdirs
="$noconfigdirs $target_libraries"
3901 noconfigdirs
="$noconfigdirs gdb gprof"
3904 # copied from rs6000-*-* entry
3905 noconfigdirs
="$noconfigdirs gprof"
3907 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3908 target_configdirs
="$target_configdirs target-winsup"
3909 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3910 # always build newlib.
3911 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 # This is temporary until we can link against shared libraries
3914 powerpcle-
*-solaris*)
3915 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3918 noconfigdirs
="$noconfigdirs gdb"
3921 noconfigdirs
="$noconfigdirs gprof"
3924 noconfigdirs
="$noconfigdirs gprof"
3927 noconfigdirs
="$noconfigdirs gprof"
3930 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3933 noconfigdirs
="$noconfigdirs gprof"
3935 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3936 if test x
$with_newlib = xyes
; then
3937 noconfigdirs
="$noconfigdirs gprof"
3941 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3944 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3947 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3951 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3952 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3953 noconfigdirs
="$noconfigdirs ld gas gprof"
3956 noconfigdirs
="$noconfigdirs gprof"
3959 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3966 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3970 if test x
${is_cross_compiler} = xno
; then
3975 noconfigdirs
="$noconfigdirs sim"
3978 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3981 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3984 noconfigdirs
="$noconfigdirs ld"
3986 loongarch
*-*-linux*)
3989 noconfigdirs
="$noconfigdirs gprof"
3993 # If we aren't building newlib, then don't build libgloss, since libgloss
3994 # depends upon some newlib header files.
3995 case "${noconfigdirs}" in
3996 *target-libgloss
*) ;;
3997 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4000 # Work in distributions that contain no compiler tools, like Autoconf.
4001 host_makefile_frag
=/dev
/null
4002 if test -d ${srcdir}/config
; then
4004 i
[3456789]86-*-msdosdjgpp*)
4005 host_makefile_frag
="config/mh-djgpp"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4010 $as_echo_n "checking to see if cat works as expected... " >&6; }
4011 echo a
>cygwin-cat-check
4012 if test `cat cygwin-cat-check` = a
; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 as_fn_error $?
"The cat command does not ignore carriage return characters.
4021 Please either mount the build directory in binary mode or run the following
4022 commands before running any configure script:
4028 host_makefile_frag
="config/mh-cygwin"
4031 host_makefile_frag
="config/mh-mingw"
4034 host_makefile_frag
="config/mh-alpha-linux"
4037 host_makefile_frag
="config/mh-pa"
4040 host_makefile_frag
="config/mh-pa"
4042 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4043 host_makefile_frag
="config/mh-darwin"
4046 host_makefile_frag
="config/mh-ppc-aix"
4049 host_makefile_frag
="config/mh-ppc-aix"
4054 if test "${build}" != "${host}" ; then
4055 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4056 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4057 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4058 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4059 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4060 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4061 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4062 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4063 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4064 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4065 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4066 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4067 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4068 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4069 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4071 AR_FOR_BUILD
="\$(AR)"
4072 AS_FOR_BUILD
="\$(AS)"
4073 CC_FOR_BUILD
="\$(CC)"
4074 CXX_FOR_BUILD
="\$(CXX)"
4075 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4076 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4077 GOC_FOR_BUILD
="\$(GOC)"
4078 GDC_FOR_BUILD
="\$(GDC)"
4079 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4080 LD_FOR_BUILD
="\$(LD)"
4081 NM_FOR_BUILD
="\$(NM)"
4082 RANLIB_FOR_BUILD
="\$(RANLIB)"
4083 WINDRES_FOR_BUILD
="\$(WINDRES)"
4084 WINDMC_FOR_BUILD
="\$(WINDMC)"
4088 ac_cpp
='$CPP $CPPFLAGS'
4089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4092 if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CC+:} false
; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC
="$CC" # Let the user override the test.
4103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir
=.
4108 for ac_exec_ext
in '' $ac_executable_extensions; do
4109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4131 if test -z "$ac_cv_prog_CC"; then
4133 # Extract the first word of "gcc", so it can be a program name with args.
4134 set dummy gcc
; ac_word
=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4138 $as_echo_n "(cached) " >&6
4140 if test -n "$ac_ct_CC"; then
4141 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4147 test -z "$as_dir" && as_dir
=.
4148 for ac_exec_ext
in '' $ac_executable_extensions; do
4149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_ac_ct_CC
="gcc"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4161 if test -n "$ac_ct_CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 $as_echo "$ac_ct_CC" >&6; }
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4169 if test "x$ac_ct_CC" = x
; then
4172 case $cross_compiling:$ac_tool_warned in
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 ac_tool_warned
=yes ;;
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4187 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false
; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC
="$CC" # Let the user override the test.
4196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir
=.
4201 for ac_exec_ext
in '' $ac_executable_extensions; do
4202 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4225 if test -z "$CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CC+:} false
; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC
="$CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 if test $ac_prog_rejected = yes; then
4257 # We found a bogon in the path, so make sure we never use it.
4258 set dummy
$ac_cv_prog_CC
4260 if test $# != 0; then
4261 # We chose a different compiler from the bogus one.
4262 # However, it has the same basename, so the bogon will be chosen
4263 # first if we set CC to just the basename; use the full file name.
4265 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4271 if test -n "$CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 $as_echo "$CC" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 for ac_prog
in cl.exe
4285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4286 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_CC+:} false
; then :
4290 $as_echo_n "(cached) " >&6
4292 if test -n "$CC"; then
4293 ac_cv_prog_CC
="$CC" # Let the user override the test.
4295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir
=.
4300 for ac_exec_ext
in '' $ac_executable_extensions; do
4301 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 if test -n "$CC"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4315 $as_echo "$CC" >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4322 test -n "$CC" && break
4325 if test -z "$CC"; then
4327 for ac_prog
in cl.exe
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy
$ac_prog; ac_word
=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_exec_ext
in '' $ac_executable_extensions; do
4345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_ac_ct_CC
="$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4359 $as_echo "$ac_ct_CC" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4366 test -n "$ac_ct_CC" && break
4369 if test "x$ac_ct_CC" = x
; then
4372 case $cross_compiling:$ac_tool_warned in
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376 ac_tool_warned
=yes ;;
4385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $?
"no acceptable C compiler found in \$PATH
4388 See \`config.log' for more details" "$LINENO" 5; }
4390 # Provide some information about the compiler.
4391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4394 for ac_option
in --version -v -V -qversion; do
4395 { { ac_try
="$ac_compiler $ac_option >&5"
4397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401 $as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4404 if test -s conftest.err; then
4406 ... rest of stderr output deleted ...
4407 10q' conftest.err >conftest.er1
4408 cat conftest.er1 >&5
4410 rm -f conftest.er1 conftest.err
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4426 ac_clean_files_save=$ac_clean_files
4427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4428 # Try to create an executable without -o first, disregard a.out.
4429 # It will help us diagnose broken compilers, and finding out an intuition
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4432 $as_echo_n "checking whether the C compiler works... " >&6; }
4433 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4435 # The possible output files:
4436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4439 for ac_file in $ac_files
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448 if { { ac_try="$ac_link_default"
4450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4451 *) ac_try_echo
=$ac_try;;
4453 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link_default") 2>&5
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4462 # so that the user can short-circuit this test for compilers unknown to
4464 for ac_file
in $ac_files ''
4466 test -f "$ac_file" ||
continue
4468 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4471 # We found the default executable, but exeext='' is most
4475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4477 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 # We set ac_cv_exeext here because the later test for it is not
4480 # safe: cross compilers may not add the suffix if given an `-o'
4481 # argument, so we may need to know it at that point already.
4482 # Even if this section looks crufty: it has the advantage of
4489 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4494 if test -z "$ac_file"; then :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error
77 "C compiler cannot create executables
4503 See \`config.log' for more details" "$LINENO" 5; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506 $as_echo "yes" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4509 $as_echo_n "checking for C compiler default output file name... " >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4511 $as_echo "$ac_file" >&6; }
4512 ac_exeext
=$ac_cv_exeext
4514 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4515 ac_clean_files
=$ac_clean_files_save
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4517 $as_echo_n "checking for suffix of executables... " >&6; }
4518 if { { ac_try
="$ac_link"
4520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_link") 2>&5
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then :
4529 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4530 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4531 # work properly (i.e., refer to `conftest.exe'), while it won't with
4533 for ac_file
in conftest.exe conftest conftest.
*; do
4534 test -f "$ac_file" ||
continue
4536 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4537 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4546 See \`config.log' for more details" "$LINENO" 5; }
4548 rm -f conftest conftest
$ac_cv_exeext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4550 $as_echo "$ac_cv_exeext" >&6; }
4552 rm -f conftest.
$ac_ext
4553 EXEEXT
=$ac_cv_exeext
4555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4561 FILE *f = fopen ("conftest.out", "w");
4562 return ferror (f) || fclose (f) != 0;
4568 ac_clean_files
="$ac_clean_files conftest.out"
4569 # Check that the compiler produces executables we can run. If not, either
4570 # the compiler is broken, or we cross compile.
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4572 $as_echo_n "checking whether we are cross compiling... " >&6; }
4573 if test "$cross_compiling" != yes; then
4574 { { ac_try
="$ac_link"
4576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_link") 2>&5
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }
4585 if { ac_try='./conftest$ac_cv_exeext'
4586 { { case "(($ac_try" in
4587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4588 *) ac_try_echo
=$ac_try;;
4590 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4591 $as_echo "$ac_try_echo"; } >&5
4592 (eval "$ac_try") 2>&5
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }; }; then
4598 if test "$cross_compiling" = maybe
; then
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $?
"cannot run C compiled programs.
4604 If you meant to cross compile, use \`--host'.
4605 See \`config.log' for more details" "$LINENO" 5; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4610 $as_echo "$cross_compiling" >&6; }
4612 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4613 ac_clean_files
=$ac_clean_files_save
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4615 $as_echo_n "checking for suffix of object files... " >&6; }
4616 if ${ac_cv_objext+:} false
; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4630 rm -f conftest.o conftest.obj
4631 if { { ac_try
="$ac_compile"
4633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_compile") 2>&5
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; then :
4642 for ac_file in conftest.o conftest.obj conftest.*; do
4643 test -f "$ac_file" || continue;
4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651 $as_echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4656 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4657 See \
`config.log' for more details" "$LINENO" 5; }
4659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4662 $as_echo "$ac_cv_objext" >&6; }
4663 OBJEXT=$ac_cv_objext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4667 if ${ac_cv_c_compiler_gnu+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4684 if ac_fn_c_try_compile "$LINENO"; then :
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4700 ac_test_CFLAGS=${CFLAGS+set}
4701 ac_save_CFLAGS=$CFLAGS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4704 if ${ac_cv_prog_cc_g+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 ac_save_c_werror_flag=$ac_c_werror_flag
4708 ac_c_werror_flag=yes
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_c_try_compile "$LINENO"; then :
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4737 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4753 if ac_fn_c_try_compile "$LINENO"; then :
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4764 $as_echo "$ac_cv_prog_cc_g" >&6; }
4765 if test "$ac_test_CFLAGS" = set; then
4766 CFLAGS=$ac_save_CFLAGS
4767 elif test $ac_cv_prog_cc_g = yes; then
4768 if test "$GCC" = yes; then
4774 if test "$GCC" = yes; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4782 if ${ac_cv_prog_cc_c89+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 ac_cv_prog_cc_c89=no
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4793 struct buf { int x; };
4794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4795 static char *e (p, i)
4801 static char *f (char * (*g) (char **, int), char **p, ...)
4806 s = g (p, va_arg (v,int));
4811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4812 function prototypes and stuff, but not '\xHH' hex character constants.
4813 These don't provoke an error unfortunately, instead are silently treated
4814 as 'x'. The following induces an error, until -std is added to get
4815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4816 array size at least. It's necessary to write '\x00'==0 to get something
4817 that's true only with -std. */
4818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4821 inside strings and character constants. */
4823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825 int test (int i, double x);
4826 struct s1 {int (*f) (int a);};
4827 struct s2 {int (*f) (double a);};
4828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 CC="$ac_save_CC $ac_arg"
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 ac_cv_prog_cc_c89=$ac_arg
4846 rm -f core conftest.err conftest.$ac_objext
4847 test "x$ac_cv_prog_cc_c89" != "xno" && break
4849 rm -f conftest.$ac_ext
4854 case "x$ac_cv_prog_cc_c89" in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 $as_echo "none needed" >&6; } ;;
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4860 $as_echo "unsupported" >&6; } ;;
4862 CC="$CC $ac_cv_prog_cc_c89"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4866 if test "x$ac_cv_prog_cc_c89" != xno; then :
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4877 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4878 if ${ac_cv_prog_cc_c99+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 ac_cv_prog_cc_c99=no
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4886 #include <stdbool.h>
4891 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4892 #define debug(...) fprintf (stderr, __VA_ARGS__)
4893 #define showlist(...) puts (#__VA_ARGS__)
4894 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4896 test_varargs_macros (void)
4901 debug ("X = %d\n", x);
4902 showlist (The first, second, and third items.);
4903 report (x>y, "x is %d but y is %d", x, y);
4906 // Check long long types.
4907 #define BIG64 18446744073709551615ull
4908 #define BIG32 4294967295ul
4909 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4911 your preprocessor is broken;
4915 your preprocessor is broken;
4917 static long long int bignum = -9223372036854775807LL;
4918 static unsigned long long int ubignum = BIG64;
4920 struct incomplete_array
4928 const wchar_t *name;
4932 typedef const char *ccp;
4935 test_restrict (ccp restrict text)
4937 // See if C++-style comments work.
4938 // Iterate through items via the restricted pointer.
4939 // Also check for declarations in for loops.
4940 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4945 // Check varargs and va_copy.
4947 test_varargs (const char *format, ...)
4950 va_start (args, format);
4952 va_copy (args_copy, args);
4963 str = va_arg (args_copy, const char *);
4966 number = va_arg (args_copy, int);
4969 fnumber = va_arg (args_copy, double);
4984 _Bool success = false;
4987 if (test_restrict ("String literal") == 0)
4989 char *restrict newvar = "Another string";
4992 test_varargs ("s, d' f .", "string", 65, 34.234);
4993 test_varargs_macros ();
4995 // Check flexible array members.
4996 struct incomplete_array *ia =
4997 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4999 for (int i = 0; i < ia->datasize; ++i)
5000 ia->data[i] = i * 1.234;
5002 // Check named initializers.
5003 struct named_init ni = {
5005 .name = L"Test wide string",
5006 .average = 543.34343,
5011 int dynamic_array[ni.number];
5012 dynamic_array[ni.number - 1] = 543;
5014 // work around unused variable warnings
5015 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5016 || dynamic_array[ni.number - 1] != 543);
5022 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5024 CC="$ac_save_CC $ac_arg"
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 ac_cv_prog_cc_c99=$ac_arg
5028 rm -f core conftest.err conftest.$ac_objext
5029 test "x$ac_cv_prog_cc_c99" != "xno" && break
5031 rm -f conftest.$ac_ext
5036 case "x$ac_cv_prog_cc_c99" in
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5039 $as_echo "none needed" >&6; } ;;
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5042 $as_echo "unsupported" >&6; } ;;
5044 CC="$CC $ac_cv_prog_cc_c99"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5046 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5048 if test "x$ac_cv_prog_cc_c99" != xno; then :
5054 ac_cpp='$CXXCPP $CPPFLAGS'
5055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058 if test -z "$CXX"; then
5059 if test -n "$CCC"; then
5062 if test -n "$ac_tool_prefix"; then
5063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_CXX+:} false; then :
5070 $as_echo_n "(cached) " >&6
5072 if test -n "$CXX"; then
5073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 if test -n "$CXX"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5095 $as_echo "$CXX" >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5102 test -n "$CXX" && break
5105 if test -z "$CXX"; then
5107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110 set dummy $ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -n "$ac_ct_CXX"; then
5117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_CXX="$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5137 if test -n "$ac_ct_CXX"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5139 $as_echo "$ac_ct_CXX" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$ac_ct_CXX" && break
5149 if test "x$ac_ct_CXX" = x; then
5152 case $cross_compiling:$ac_tool_warned in
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156 ac_tool_warned=yes ;;
5164 # Provide some information about the compiler.
5165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5168 for ac_option in --version -v -V -qversion; do
5169 { { ac_try="$ac_compiler $ac_option >&5"
5171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5172 *) ac_try_echo
=$ac_try;;
5174 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175 $as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5178 if test -s conftest.err
; then
5180 ... rest of stderr output deleted ...
5181 10q' conftest.err
>conftest.er1
5182 cat conftest.er1
>&5
5184 rm -f conftest.er1 conftest.err
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5191 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5192 $as_echo_n "(cached) " >&6
5194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5208 if ac_fn_cxx_try_compile
"$LINENO"; then :
5213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5214 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5219 if test $ac_compiler_gnu = yes; then
5224 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5225 ac_save_CXXFLAGS
=$CXXFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5228 if ${ac_cv_prog_cxx_g+:} false
; then :
5229 $as_echo_n "(cached) " >&6
5231 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5232 ac_cxx_werror_flag
=yes
5235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5246 if ac_fn_cxx_try_compile
"$LINENO"; then :
5247 ac_cv_prog_cxx_g
=yes
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5261 if ac_fn_cxx_try_compile
"$LINENO"; then :
5264 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5277 if ac_fn_cxx_try_compile
"$LINENO"; then :
5278 ac_cv_prog_cxx_g
=yes
5280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5289 if test "$ac_test_CXXFLAGS" = set; then
5290 CXXFLAGS
=$ac_save_CXXFLAGS
5291 elif test $ac_cv_prog_cxx_g = yes; then
5292 if test "$GXX" = yes; then
5298 if test "$GXX" = yes; then
5305 ac_cpp
='$CPP $CPPFLAGS'
5306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5311 # We must set the default linker to the linker used by gcc for the correct
5312 # operation of libtool. If LD is not defined and we are using gcc, try to
5313 # set the LD default to the ld used by gcc.
5314 if test -z "$LD"; then
5315 if test "$GCC" = yes; then
5318 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5320 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5322 case $gcc_prog_ld in
5323 # Accept absolute paths.
5324 [\\/]* |
[A-Za-z
]:[\\/]*)
5325 LD
="$gcc_prog_ld" ;;
5330 # Check whether -static-libstdc++ -static-libgcc is supported.
5332 if test "$GCC" = yes; then
5333 saved_LDFLAGS
="$LDFLAGS"
5335 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5337 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5339 ac_cpp
='$CXXCPP $CPPFLAGS'
5340 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5348 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5349 #error -static-libstdc++ not implemented
5353 if ac_fn_cxx_try_link
"$LINENO"; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355 $as_echo "yes" >&6; }; have_static_libs
=yes
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5360 rm -f core conftest.err conftest.
$ac_objext \
5361 conftest
$ac_exeext conftest.
$ac_ext
5363 ac_cpp
='$CPP $CPPFLAGS'
5364 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5369 LDFLAGS
="$saved_LDFLAGS"
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5377 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_GNATBIND+:} false
; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$GNATBIND"; then
5384 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 GNATBIND
=$ac_cv_prog_GNATBIND
5404 if test -n "$GNATBIND"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5406 $as_echo "$GNATBIND" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_GNATBIND"; then
5415 ac_ct_GNATBIND
=$GNATBIND
5416 # Extract the first word of "gnatbind", so it can be a program name with args.
5417 set dummy gnatbind
; ac_word
=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$ac_ct_GNATBIND"; then
5424 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir
=.
5431 for ac_exec_ext
in '' $ac_executable_extensions; do
5432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5444 if test -n "$ac_ct_GNATBIND"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5446 $as_echo "$ac_ct_GNATBIND" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_GNATBIND" = x
; then
5455 case $cross_compiling:$ac_tool_warned in
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned
=yes ;;
5461 GNATBIND
=$ac_ct_GNATBIND
5464 GNATBIND
="$ac_cv_prog_GNATBIND"
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5469 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5473 $as_echo_n "(cached) " >&6
5475 if test -n "$GNATMAKE"; then
5476 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir
=.
5483 for ac_exec_ext
in '' $ac_executable_extensions; do
5484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 GNATMAKE
=$ac_cv_prog_GNATMAKE
5496 if test -n "$GNATMAKE"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5498 $as_echo "$GNATMAKE" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test -z "$ac_cv_prog_GNATMAKE"; then
5507 ac_ct_GNATMAKE
=$GNATMAKE
5508 # Extract the first word of "gnatmake", so it can be a program name with args.
5509 set dummy gnatmake
; ac_word
=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5513 $as_echo_n "(cached) " >&6
5515 if test -n "$ac_ct_GNATMAKE"; then
5516 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5522 test -z "$as_dir" && as_dir
=.
5523 for ac_exec_ext
in '' $ac_executable_extensions; do
5524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5536 if test -n "$ac_ct_GNATMAKE"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5538 $as_echo "$ac_ct_GNATMAKE" >&6; }
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5544 if test "x$ac_ct_GNATMAKE" = x
; then
5547 case $cross_compiling:$ac_tool_warned in
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned
=yes ;;
5553 GNATMAKE
=$ac_ct_GNATMAKE
5556 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5560 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5561 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5562 $as_echo_n "(cached) " >&6
5564 cat >conftest.adb
<<EOF
5565 pragma Warnings (Off);
5567 pragma Warnings (On);
5568 use type System.CRTL.int64;
5569 procedure conftest is begin null; end conftest;
5571 acx_cv_cc_gcc_supports_ada
=no
5572 # There is a bug in old released versions of GCC which causes the
5573 # driver to exit successfully when the appropriate language module
5574 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5575 # Therefore we must check for the error message as well as an
5576 # unsuccessful exit.
5577 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5578 # given a .adb file, but produce no object file. So we must check
5579 # if an object file was really produced to guard against this.
5580 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5581 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5582 acx_cv_cc_gcc_supports_ada
=yes
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5587 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5589 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5599 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_GDC+:} false
; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$GDC"; then
5606 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_exec_ext
in '' $ac_executable_extensions; do
5614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 if test -n "$GDC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5628 $as_echo "$GDC" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_GDC"; then
5638 # Extract the first word of "gdc", so it can be a program name with args.
5639 set dummy gdc
; ac_word
=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$ac_ct_GDC"; then
5646 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir
=.
5653 for ac_exec_ext
in '' $ac_executable_extensions; do
5654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_GDC
="gdc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5666 if test -n "$ac_ct_GDC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5668 $as_echo "$ac_ct_GDC" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_GDC" = x
; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned
=yes ;;
5686 GDC
="$ac_cv_prog_GDC"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5690 $as_echo_n "checking whether the D compiler works... " >&6; }
5691 if ${acx_cv_d_compiler_works+:} false
; then :
5692 $as_echo_n "(cached) " >&6
5694 cat >conftest.d
<<EOF
5695 module conftest; int main() { return 0; }
5697 acx_cv_d_compiler_works
=no
5698 if test "x$GDC" != xno
; then
5699 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5700 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5701 acx_cv_d_compiler_works
=yes
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5707 $as_echo "$acx_cv_d_compiler_works" >&6; }
5708 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5715 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5716 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5717 $as_echo_n "(cached) " >&6
5721 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5722 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5723 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5726 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5729 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5730 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5733 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5740 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5741 do_compare
="$gcc_cv_prog_cmp_skip"
5745 # Check whether --enable-bootstrap was given.
5746 if test "${enable_bootstrap+set}" = set; then :
5747 enableval
=$enable_bootstrap;
5749 enable_bootstrap
=default
5753 # Issue errors and warnings for invalid/strange bootstrap combinations.
5754 if test -r $srcdir/gcc
/configure
; then
5760 case "$have_compiler:$host:$target:$enable_bootstrap" in
5763 # Default behavior. Enable bootstrap if we have a compiler
5764 # and we are in a native configuration.
5765 yes:$build:$build:default
)
5766 enable_bootstrap
=yes ;;
5769 enable_bootstrap
=no
;;
5771 # We have a compiler and we are in a native configuration, bootstrap is ok
5772 yes:$build:$build:yes)
5775 # Other configurations, but we have a compiler. Assume the user knows
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5779 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5782 # No compiler: if they passed --enable-bootstrap explicitly, fail
5784 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5786 # Fail if wrong command line
5788 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5792 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5793 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5794 # require C++11 (or higher).
5795 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5796 CXX
="$CXX -std=c++11"
5797 elif test "$have_compiler" = yes; then
5798 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5800 ac_cpp
='$CXXCPP $CPPFLAGS'
5801 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5807 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5808 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5809 $as_echo_n "(cached) " >&6
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5815 // If the compiler admits that it is not ready for C++11, why torture it?
5816 // Hopefully, this will speed up the test.
5820 #error "This is not a C++ compiler"
5822 #elif __cplusplus < 201103L
5824 #error "This is not a C++11 compiler"
5831 namespace test_static_assert
5834 template <typename T>
5837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5842 namespace test_final_override
5851 struct Derived : public Base
5853 virtual ~Derived() override {}
5854 virtual void f() override {}
5859 namespace test_double_right_angle_brackets
5862 template < typename T >
5865 typedef check<void> single_type;
5866 typedef check<check<void>> double_type;
5867 typedef check<check<check<void>>> triple_type;
5868 typedef check<check<check<check<void>>>> quadruple_type;
5872 namespace test_decltype
5885 namespace test_type_deduction
5888 template < typename T1, typename T2 >
5891 static const bool value = false;
5894 template < typename T >
5895 struct is_same<T, T>
5897 static const bool value = true;
5900 template < typename T1, typename T2 >
5902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5908 test(const int c, volatile int v)
5910 static_assert(is_same<int, decltype(0)>::value == true, "");
5911 static_assert(is_same<int, decltype(c)>::value == false, "");
5912 static_assert(is_same<int, decltype(v)>::value == false, "");
5915 auto sumi = ac + av + 'x';
5916 auto sumf = ac + av + 1.0;
5917 static_assert(is_same<int, decltype(ac)>::value == true, "");
5918 static_assert(is_same<int, decltype(av)>::value == true, "");
5919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5922 return (sumf > 0.0) ? sumi : add(c, v);
5927 namespace test_noexcept
5930 int f() { return 0; }
5931 int g() noexcept { return 0; }
5933 static_assert(noexcept(f()) == false, "");
5934 static_assert(noexcept(g()) == true, "");
5938 namespace test_constexpr
5941 template < typename CharT >
5942 unsigned long constexpr
5943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5948 template < typename CharT >
5949 unsigned long constexpr
5950 strlen_c(const CharT *const s) noexcept
5952 return strlen_c_r(s, 0UL);
5955 static_assert(strlen_c("") == 0UL, "");
5956 static_assert(strlen_c("1") == 1UL, "");
5957 static_assert(strlen_c("example") == 7UL, "");
5958 static_assert(strlen_c("another\0example") == 7UL, "");
5962 namespace test_rvalue_references
5968 static constexpr int value = N;
5971 answer<1> f(int&) { return answer<1>(); }
5972 answer<2> f(const int&) { return answer<2>(); }
5973 answer<3> f(int&&) { return answer<3>(); }
5980 static_assert(decltype(f(i))::value == 1, "");
5981 static_assert(decltype(f(c))::value == 2, "");
5982 static_assert(decltype(f(0))::value == 3, "");
5987 namespace test_uniform_initialization
5992 static const int zero {};
5993 static const int one {1};
5996 static_assert(test::zero == 0, "");
5997 static_assert(test::one == 1, "");
6001 namespace test_lambdas
6007 auto lambda1 = [](){};
6008 auto lambda2 = lambda1;
6016 auto a = [](int i, int j){ return i + j; }(1, 2);
6017 auto b = []() -> int { return '0'; }();
6018 auto c = [=](){ return a + b; }();
6019 auto d = [&](){ return c; }();
6020 auto e = [a, &b](int x) mutable {
6021 const auto identity = [](int y){ return y; };
6022 for (auto i = 0; i < a; ++i)
6024 return x + identity(a + b);
6026 return a + b + c + d + e;
6032 const auto nullary = [](){ return 0; };
6033 const auto unary = [](int x){ return x; };
6034 using nullary_t = decltype(nullary);
6035 using unary_t = decltype(unary);
6036 const auto higher1st = [](nullary_t f){ return f(); };
6037 const auto higher2nd = [unary](nullary_t f1){
6038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6040 return higher1st(nullary) + higher2nd(nullary)(unary);
6045 namespace test_variadic_templates
6051 template <int N0, int... N1toN>
6052 struct sum<N0, N1toN...>
6054 static constexpr auto value = N0 + sum<N1toN...>::value;
6060 static constexpr auto value = 0;
6063 static_assert(sum<>::value == 0, "");
6064 static_assert(sum<1>::value == 1, "");
6065 static_assert(sum<23>::value == 23, "");
6066 static_assert(sum<1, 2>::value == 3, "");
6067 static_assert(sum<5, 5, 11>::value == 21, "");
6068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6075 namespace test_template_alias_sfinae
6080 template<typename T>
6081 using member = typename T::member_type;
6083 template<typename T>
6086 template<typename T>
6087 void func(member<T>*) {}
6091 void test() { func<foo>(0); }
6095 } // namespace cxx11
6097 #endif // __cplusplus >= 201103L
6102 if ac_fn_cxx_try_compile
"$LINENO"; then :
6103 ax_cv_cxx_compile_cxx11
=yes
6105 ax_cv_cxx_compile_cxx11
=no
6107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6110 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6111 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6115 if test x
$ac_success = xno
; then
6116 for alternative
in ${ax_cxx_compile_alternatives}; do
6117 switch
="-std=gnu++${alternative}"
6118 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6120 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6121 if eval \
${$cachevar+:} false
; then :
6122 $as_echo_n "(cached) " >&6
6126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6130 // If the compiler admits that it is not ready for C++11, why torture it?
6131 // Hopefully, this will speed up the test.
6135 #error "This is not a C++ compiler"
6137 #elif __cplusplus < 201103L
6139 #error "This is not a C++11 compiler"
6146 namespace test_static_assert
6149 template <typename T>
6152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6157 namespace test_final_override
6166 struct Derived : public Base
6168 virtual ~Derived() override {}
6169 virtual void f() override {}
6174 namespace test_double_right_angle_brackets
6177 template < typename T >
6180 typedef check<void> single_type;
6181 typedef check<check<void>> double_type;
6182 typedef check<check<check<void>>> triple_type;
6183 typedef check<check<check<check<void>>>> quadruple_type;
6187 namespace test_decltype
6200 namespace test_type_deduction
6203 template < typename T1, typename T2 >
6206 static const bool value = false;
6209 template < typename T >
6210 struct is_same<T, T>
6212 static const bool value = true;
6215 template < typename T1, typename T2 >
6217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6223 test(const int c, volatile int v)
6225 static_assert(is_same<int, decltype(0)>::value == true, "");
6226 static_assert(is_same<int, decltype(c)>::value == false, "");
6227 static_assert(is_same<int, decltype(v)>::value == false, "");
6230 auto sumi = ac + av + 'x';
6231 auto sumf = ac + av + 1.0;
6232 static_assert(is_same<int, decltype(ac)>::value == true, "");
6233 static_assert(is_same<int, decltype(av)>::value == true, "");
6234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6237 return (sumf > 0.0) ? sumi : add(c, v);
6242 namespace test_noexcept
6245 int f() { return 0; }
6246 int g() noexcept { return 0; }
6248 static_assert(noexcept(f()) == false, "");
6249 static_assert(noexcept(g()) == true, "");
6253 namespace test_constexpr
6256 template < typename CharT >
6257 unsigned long constexpr
6258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6263 template < typename CharT >
6264 unsigned long constexpr
6265 strlen_c(const CharT *const s) noexcept
6267 return strlen_c_r(s, 0UL);
6270 static_assert(strlen_c("") == 0UL, "");
6271 static_assert(strlen_c("1") == 1UL, "");
6272 static_assert(strlen_c("example") == 7UL, "");
6273 static_assert(strlen_c("another\0example") == 7UL, "");
6277 namespace test_rvalue_references
6283 static constexpr int value = N;
6286 answer<1> f(int&) { return answer<1>(); }
6287 answer<2> f(const int&) { return answer<2>(); }
6288 answer<3> f(int&&) { return answer<3>(); }
6295 static_assert(decltype(f(i))::value == 1, "");
6296 static_assert(decltype(f(c))::value == 2, "");
6297 static_assert(decltype(f(0))::value == 3, "");
6302 namespace test_uniform_initialization
6307 static const int zero {};
6308 static const int one {1};
6311 static_assert(test::zero == 0, "");
6312 static_assert(test::one == 1, "");
6316 namespace test_lambdas
6322 auto lambda1 = [](){};
6323 auto lambda2 = lambda1;
6331 auto a = [](int i, int j){ return i + j; }(1, 2);
6332 auto b = []() -> int { return '0'; }();
6333 auto c = [=](){ return a + b; }();
6334 auto d = [&](){ return c; }();
6335 auto e = [a, &b](int x) mutable {
6336 const auto identity = [](int y){ return y; };
6337 for (auto i = 0; i < a; ++i)
6339 return x + identity(a + b);
6341 return a + b + c + d + e;
6347 const auto nullary = [](){ return 0; };
6348 const auto unary = [](int x){ return x; };
6349 using nullary_t = decltype(nullary);
6350 using unary_t = decltype(unary);
6351 const auto higher1st = [](nullary_t f){ return f(); };
6352 const auto higher2nd = [unary](nullary_t f1){
6353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6355 return higher1st(nullary) + higher2nd(nullary)(unary);
6360 namespace test_variadic_templates
6366 template <int N0, int... N1toN>
6367 struct sum<N0, N1toN...>
6369 static constexpr auto value = N0 + sum<N1toN...>::value;
6375 static constexpr auto value = 0;
6378 static_assert(sum<>::value == 0, "");
6379 static_assert(sum<1>::value == 1, "");
6380 static_assert(sum<23>::value == 23, "");
6381 static_assert(sum<1, 2>::value == 3, "");
6382 static_assert(sum<5, 5, 11>::value == 21, "");
6383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6390 namespace test_template_alias_sfinae
6395 template<typename T>
6396 using member = typename T::member_type;
6398 template<typename T>
6401 template<typename T>
6402 void func(member<T>*) {}
6406 void test() { func<foo>(0); }
6410 } // namespace cxx11
6412 #endif // __cplusplus >= 201103L
6417 if ac_fn_cxx_try_compile
"$LINENO"; then :
6422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6425 eval ac_res
=\$
$cachevar
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428 if eval test x\$
$cachevar = xyes
; then
6430 if test -n "$CXXCPP" ; then
6431 CXXCPP
="$CXXCPP $switch"
6439 if test x
$ac_success = xno
; then
6440 for alternative
in ${ax_cxx_compile_alternatives}; do
6441 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6444 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6445 if eval \${$cachevar+:} false; then :
6446 $as_echo_n "(cached
) " >&6
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6454 // If the compiler admits that it is not ready for C++11, why torture it?
6455 // Hopefully, this will speed up the test.
6459 #error "This is not a C
++ compiler
"
6461 #elif __cplusplus < 201103L
6463 #error "This is not a C
++11 compiler
"
6470 namespace test_static_assert
6473 template <typename T>
6476 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6481 namespace test_final_override
6490 struct Derived : public Base
6492 virtual ~Derived() override {}
6493 virtual void f() override {}
6498 namespace test_double_right_angle_brackets
6501 template < typename T >
6504 typedef check<void> single_type;
6505 typedef check<check<void>> double_type;
6506 typedef check<check<check<void>>> triple_type;
6507 typedef check<check<check<check<void>>>> quadruple_type;
6511 namespace test_decltype
6524 namespace test_type_deduction
6527 template < typename T1, typename T2 >
6530 static const bool value = false;
6533 template < typename T >
6534 struct is_same<T, T>
6536 static const bool value = true;
6539 template < typename T1, typename T2 >
6541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6547 test(const int c, volatile int v)
6549 static_assert(is_same<int, decltype(0)>::value == true, "");
6550 static_assert(is_same<int, decltype(c)>::value == false, "");
6551 static_assert(is_same<int, decltype(v)>::value == false, "");
6554 auto sumi = ac + av + 'x';
6555 auto sumf = ac + av + 1.0;
6556 static_assert(is_same<int, decltype(ac)>::value == true, "");
6557 static_assert(is_same<int, decltype(av)>::value == true, "");
6558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6561 return (sumf > 0.0) ? sumi : add(c, v);
6566 namespace test_noexcept
6569 int f() { return 0; }
6570 int g() noexcept { return 0; }
6572 static_assert(noexcept(f()) == false, "");
6573 static_assert(noexcept(g()) == true, "");
6577 namespace test_constexpr
6580 template < typename CharT >
6581 unsigned long constexpr
6582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6587 template < typename CharT >
6588 unsigned long constexpr
6589 strlen_c(const CharT *const s) noexcept
6591 return strlen_c_r(s, 0UL);
6594 static_assert(strlen_c("") == 0UL, "");
6595 static_assert(strlen_c("1") == 1UL, "");
6596 static_assert(strlen_c("example
") == 7UL, "");
6597 static_assert(strlen_c("another\
0example
") == 7UL, "");
6601 namespace test_rvalue_references
6607 static constexpr int value = N;
6610 answer<1> f(int&) { return answer<1>(); }
6611 answer<2> f(const int&) { return answer<2>(); }
6612 answer<3> f(int&&) { return answer<3>(); }
6619 static_assert(decltype(f(i))::value == 1, "");
6620 static_assert(decltype(f(c))::value == 2, "");
6621 static_assert(decltype(f(0))::value == 3, "");
6626 namespace test_uniform_initialization
6631 static const int zero {};
6632 static const int one {1};
6635 static_assert(test::zero == 0, "");
6636 static_assert(test::one == 1, "");
6640 namespace test_lambdas
6646 auto lambda1 = [](){};
6647 auto lambda2 = lambda1;
6655 auto a = [](int i, int j){ return i + j; }(1, 2);
6656 auto b = []() -> int { return '0'; }();
6657 auto c = [=](){ return a + b; }();
6658 auto d = [&](){ return c; }();
6659 auto e = [a, &b](int x) mutable {
6660 const auto identity = [](int y){ return y; };
6661 for (auto i = 0; i < a; ++i)
6663 return x + identity(a + b);
6665 return a + b + c + d + e;
6671 const auto nullary = [](){ return 0; };
6672 const auto unary = [](int x){ return x; };
6673 using nullary_t = decltype(nullary);
6674 using unary_t = decltype(unary);
6675 const auto higher1st = [](nullary_t f){ return f(); };
6676 const auto higher2nd = [unary](nullary_t f1){
6677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6679 return higher1st(nullary) + higher2nd(nullary)(unary);
6684 namespace test_variadic_templates
6690 template <int N0, int... N1toN>
6691 struct sum<N0, N1toN...>
6693 static constexpr auto value = N0 + sum<N1toN...>::value;
6699 static constexpr auto value = 0;
6702 static_assert(sum<>::value == 0, "");
6703 static_assert(sum<1>::value == 1, "");
6704 static_assert(sum<23>::value == 23, "");
6705 static_assert(sum<1, 2>::value == 3, "");
6706 static_assert(sum<5, 5, 11>::value == 21, "");
6707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6714 namespace test_template_alias_sfinae
6719 template<typename T>
6720 using member = typename T::member_type;
6722 template<typename T>
6725 template<typename T>
6726 void func(member<T>*) {}
6730 void test() { func<foo>(0); }
6734 } // namespace cxx11
6736 #endif // __cplusplus >= 201103L
6741 if ac_fn_cxx_try_compile "$LINENO"; then :
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 eval ac_res=\$$cachevar
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6751 $as_echo "$ac_res" >&6; }
6752 if eval test x\$$cachevar = xyes; then
6754 if test -n "$CXXCPP" ; then
6755 CXXCPP="$CXXCPP $switch"
6761 if test x$ac_success = xyes; then
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6774 if test x$ac_success = xno; then
6775 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6778 if test x$ac_success = xno; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6781 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6785 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6791 if test "${build}" != "${host}"; then
6792 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6794 ac_cpp
='$CXXCPP $CPPFLAGS'
6795 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6799 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6800 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6801 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6802 CXX
="$CXX_FOR_BUILD"
6803 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6804 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6806 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6807 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6808 $as_echo_n "(cached) " >&6
6810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6814 // If the compiler admits that it is not ready for C++11, why torture it?
6815 // Hopefully, this will speed up the test.
6819 #error "This is not a C++ compiler"
6821 #elif __cplusplus < 201103L
6823 #error "This is not a C++11 compiler"
6830 namespace test_static_assert
6833 template <typename T>
6836 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6841 namespace test_final_override
6850 struct Derived : public Base
6852 virtual ~Derived() override {}
6853 virtual void f() override {}
6858 namespace test_double_right_angle_brackets
6861 template < typename T >
6864 typedef check<void> single_type;
6865 typedef check<check<void>> double_type;
6866 typedef check<check<check<void>>> triple_type;
6867 typedef check<check<check<check<void>>>> quadruple_type;
6871 namespace test_decltype
6884 namespace test_type_deduction
6887 template < typename T1, typename T2 >
6890 static const bool value = false;
6893 template < typename T >
6894 struct is_same<T, T>
6896 static const bool value = true;
6899 template < typename T1, typename T2 >
6901 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6907 test(const int c, volatile int v)
6909 static_assert(is_same<int, decltype(0)>::value == true, "");
6910 static_assert(is_same<int, decltype(c)>::value == false, "");
6911 static_assert(is_same<int, decltype(v)>::value == false, "");
6914 auto sumi = ac + av + 'x';
6915 auto sumf = ac + av + 1.0;
6916 static_assert(is_same<int, decltype(ac)>::value == true, "");
6917 static_assert(is_same<int, decltype(av)>::value == true, "");
6918 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6920 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6921 return (sumf > 0.0) ? sumi : add(c, v);
6926 namespace test_noexcept
6929 int f() { return 0; }
6930 int g() noexcept { return 0; }
6932 static_assert(noexcept(f()) == false, "");
6933 static_assert(noexcept(g()) == true, "");
6937 namespace test_constexpr
6940 template < typename CharT >
6941 unsigned long constexpr
6942 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6944 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6947 template < typename CharT >
6948 unsigned long constexpr
6949 strlen_c(const CharT *const s) noexcept
6951 return strlen_c_r(s, 0UL);
6954 static_assert(strlen_c("") == 0UL, "");
6955 static_assert(strlen_c("1") == 1UL, "");
6956 static_assert(strlen_c("example") == 7UL, "");
6957 static_assert(strlen_c("another\0example") == 7UL, "");
6961 namespace test_rvalue_references
6967 static constexpr int value = N;
6970 answer<1> f(int&) { return answer<1>(); }
6971 answer<2> f(const int&) { return answer<2>(); }
6972 answer<3> f(int&&) { return answer<3>(); }
6979 static_assert(decltype(f(i))::value == 1, "");
6980 static_assert(decltype(f(c))::value == 2, "");
6981 static_assert(decltype(f(0))::value == 3, "");
6986 namespace test_uniform_initialization
6991 static const int zero {};
6992 static const int one {1};
6995 static_assert(test::zero == 0, "");
6996 static_assert(test::one == 1, "");
7000 namespace test_lambdas
7006 auto lambda1 = [](){};
7007 auto lambda2 = lambda1;
7015 auto a = [](int i, int j){ return i + j; }(1, 2);
7016 auto b = []() -> int { return '0'; }();
7017 auto c = [=](){ return a + b; }();
7018 auto d = [&](){ return c; }();
7019 auto e = [a, &b](int x) mutable {
7020 const auto identity = [](int y){ return y; };
7021 for (auto i = 0; i < a; ++i)
7023 return x + identity(a + b);
7025 return a + b + c + d + e;
7031 const auto nullary = [](){ return 0; };
7032 const auto unary = [](int x){ return x; };
7033 using nullary_t = decltype(nullary);
7034 using unary_t = decltype(unary);
7035 const auto higher1st = [](nullary_t f){ return f(); };
7036 const auto higher2nd = [unary](nullary_t f1){
7037 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7039 return higher1st(nullary) + higher2nd(nullary)(unary);
7044 namespace test_variadic_templates
7050 template <int N0, int... N1toN>
7051 struct sum<N0, N1toN...>
7053 static constexpr auto value = N0 + sum<N1toN...>::value;
7059 static constexpr auto value = 0;
7062 static_assert(sum<>::value == 0, "");
7063 static_assert(sum<1>::value == 1, "");
7064 static_assert(sum<23>::value == 23, "");
7065 static_assert(sum<1, 2>::value == 3, "");
7066 static_assert(sum<5, 5, 11>::value == 21, "");
7067 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7071 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7072 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7074 namespace test_template_alias_sfinae
7079 template<typename T>
7080 using member = typename T::member_type;
7082 template<typename T>
7085 template<typename T>
7086 void func(member<T>*) {}
7090 void test() { func<foo>(0); }
7094 } // namespace cxx11
7096 #endif // __cplusplus >= 201103L
7101 if ac_fn_cxx_try_compile
"$LINENO"; then :
7102 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7104 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7109 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7110 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7114 if test x
$ac_success = xno
; then
7115 for alternative
in ${ax_cxx_compile_alternatives}; do
7116 switch
="-std=gnu++${alternative}"
7117 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7119 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7120 if eval \
${$cachevar+:} false
; then :
7121 $as_echo_n "(cached) " >&6
7125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 // If the compiler admits that it is not ready for C++11, why torture it?
7130 // Hopefully, this will speed up the test.
7134 #error "This is not a C++ compiler"
7136 #elif __cplusplus < 201103L
7138 #error "This is not a C++11 compiler"
7145 namespace test_static_assert
7148 template <typename T>
7151 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7156 namespace test_final_override
7165 struct Derived : public Base
7167 virtual ~Derived() override {}
7168 virtual void f() override {}
7173 namespace test_double_right_angle_brackets
7176 template < typename T >
7179 typedef check<void> single_type;
7180 typedef check<check<void>> double_type;
7181 typedef check<check<check<void>>> triple_type;
7182 typedef check<check<check<check<void>>>> quadruple_type;
7186 namespace test_decltype
7199 namespace test_type_deduction
7202 template < typename T1, typename T2 >
7205 static const bool value = false;
7208 template < typename T >
7209 struct is_same<T, T>
7211 static const bool value = true;
7214 template < typename T1, typename T2 >
7216 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7222 test(const int c, volatile int v)
7224 static_assert(is_same<int, decltype(0)>::value == true, "");
7225 static_assert(is_same<int, decltype(c)>::value == false, "");
7226 static_assert(is_same<int, decltype(v)>::value == false, "");
7229 auto sumi = ac + av + 'x';
7230 auto sumf = ac + av + 1.0;
7231 static_assert(is_same<int, decltype(ac)>::value == true, "");
7232 static_assert(is_same<int, decltype(av)>::value == true, "");
7233 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7235 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7236 return (sumf > 0.0) ? sumi : add(c, v);
7241 namespace test_noexcept
7244 int f() { return 0; }
7245 int g() noexcept { return 0; }
7247 static_assert(noexcept(f()) == false, "");
7248 static_assert(noexcept(g()) == true, "");
7252 namespace test_constexpr
7255 template < typename CharT >
7256 unsigned long constexpr
7257 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7259 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7262 template < typename CharT >
7263 unsigned long constexpr
7264 strlen_c(const CharT *const s) noexcept
7266 return strlen_c_r(s, 0UL);
7269 static_assert(strlen_c("") == 0UL, "");
7270 static_assert(strlen_c("1") == 1UL, "");
7271 static_assert(strlen_c("example") == 7UL, "");
7272 static_assert(strlen_c("another\0example") == 7UL, "");
7276 namespace test_rvalue_references
7282 static constexpr int value = N;
7285 answer<1> f(int&) { return answer<1>(); }
7286 answer<2> f(const int&) { return answer<2>(); }
7287 answer<3> f(int&&) { return answer<3>(); }
7294 static_assert(decltype(f(i))::value == 1, "");
7295 static_assert(decltype(f(c))::value == 2, "");
7296 static_assert(decltype(f(0))::value == 3, "");
7301 namespace test_uniform_initialization
7306 static const int zero {};
7307 static const int one {1};
7310 static_assert(test::zero == 0, "");
7311 static_assert(test::one == 1, "");
7315 namespace test_lambdas
7321 auto lambda1 = [](){};
7322 auto lambda2 = lambda1;
7330 auto a = [](int i, int j){ return i + j; }(1, 2);
7331 auto b = []() -> int { return '0'; }();
7332 auto c = [=](){ return a + b; }();
7333 auto d = [&](){ return c; }();
7334 auto e = [a, &b](int x) mutable {
7335 const auto identity = [](int y){ return y; };
7336 for (auto i = 0; i < a; ++i)
7338 return x + identity(a + b);
7340 return a + b + c + d + e;
7346 const auto nullary = [](){ return 0; };
7347 const auto unary = [](int x){ return x; };
7348 using nullary_t = decltype(nullary);
7349 using unary_t = decltype(unary);
7350 const auto higher1st = [](nullary_t f){ return f(); };
7351 const auto higher2nd = [unary](nullary_t f1){
7352 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7354 return higher1st(nullary) + higher2nd(nullary)(unary);
7359 namespace test_variadic_templates
7365 template <int N0, int... N1toN>
7366 struct sum<N0, N1toN...>
7368 static constexpr auto value = N0 + sum<N1toN...>::value;
7374 static constexpr auto value = 0;
7377 static_assert(sum<>::value == 0, "");
7378 static_assert(sum<1>::value == 1, "");
7379 static_assert(sum<23>::value == 23, "");
7380 static_assert(sum<1, 2>::value == 3, "");
7381 static_assert(sum<5, 5, 11>::value == 21, "");
7382 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7386 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7387 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7389 namespace test_template_alias_sfinae
7394 template<typename T>
7395 using member = typename T::member_type;
7397 template<typename T>
7400 template<typename T>
7401 void func(member<T>*) {}
7405 void test() { func<foo>(0); }
7409 } // namespace cxx11
7411 #endif // __cplusplus >= 201103L
7416 if ac_fn_cxx_try_compile
"$LINENO"; then :
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7424 eval ac_res
=\$
$cachevar
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7426 $as_echo "$ac_res" >&6; }
7427 if eval test x\$
$cachevar = xyes
; then
7429 if test -n "$CXXCPP" ; then
7430 CXXCPP
="$CXXCPP $switch"
7438 if test x
$ac_success = xno
; then
7439 for alternative
in ${ax_cxx_compile_alternatives}; do
7440 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7441 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7443 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7444 if eval \${$cachevar+:} false; then :
7445 $as_echo_n "(cached
) " >&6
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 // If the compiler admits that it is not ready for C++11, why torture it?
7454 // Hopefully, this will speed up the test.
7458 #error "This is not a C
++ compiler
"
7460 #elif __cplusplus < 201103L
7462 #error "This is not a C
++11 compiler
"
7469 namespace test_static_assert
7472 template <typename T>
7475 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7480 namespace test_final_override
7489 struct Derived : public Base
7491 virtual ~Derived() override {}
7492 virtual void f() override {}
7497 namespace test_double_right_angle_brackets
7500 template < typename T >
7503 typedef check<void> single_type;
7504 typedef check<check<void>> double_type;
7505 typedef check<check<check<void>>> triple_type;
7506 typedef check<check<check<check<void>>>> quadruple_type;
7510 namespace test_decltype
7523 namespace test_type_deduction
7526 template < typename T1, typename T2 >
7529 static const bool value = false;
7532 template < typename T >
7533 struct is_same<T, T>
7535 static const bool value = true;
7538 template < typename T1, typename T2 >
7540 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7546 test(const int c, volatile int v)
7548 static_assert(is_same<int, decltype(0)>::value == true, "");
7549 static_assert(is_same<int, decltype(c)>::value == false, "");
7550 static_assert(is_same<int, decltype(v)>::value == false, "");
7553 auto sumi = ac + av + 'x';
7554 auto sumf = ac + av + 1.0;
7555 static_assert(is_same<int, decltype(ac)>::value == true, "");
7556 static_assert(is_same<int, decltype(av)>::value == true, "");
7557 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7559 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7560 return (sumf > 0.0) ? sumi : add(c, v);
7565 namespace test_noexcept
7568 int f() { return 0; }
7569 int g() noexcept { return 0; }
7571 static_assert(noexcept(f()) == false, "");
7572 static_assert(noexcept(g()) == true, "");
7576 namespace test_constexpr
7579 template < typename CharT >
7580 unsigned long constexpr
7581 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7583 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7586 template < typename CharT >
7587 unsigned long constexpr
7588 strlen_c(const CharT *const s) noexcept
7590 return strlen_c_r(s, 0UL);
7593 static_assert(strlen_c("") == 0UL, "");
7594 static_assert(strlen_c("1") == 1UL, "");
7595 static_assert(strlen_c("example
") == 7UL, "");
7596 static_assert(strlen_c("another\
0example
") == 7UL, "");
7600 namespace test_rvalue_references
7606 static constexpr int value = N;
7609 answer<1> f(int&) { return answer<1>(); }
7610 answer<2> f(const int&) { return answer<2>(); }
7611 answer<3> f(int&&) { return answer<3>(); }
7618 static_assert(decltype(f(i))::value == 1, "");
7619 static_assert(decltype(f(c))::value == 2, "");
7620 static_assert(decltype(f(0))::value == 3, "");
7625 namespace test_uniform_initialization
7630 static const int zero {};
7631 static const int one {1};
7634 static_assert(test::zero == 0, "");
7635 static_assert(test::one == 1, "");
7639 namespace test_lambdas
7645 auto lambda1 = [](){};
7646 auto lambda2 = lambda1;
7654 auto a = [](int i, int j){ return i + j; }(1, 2);
7655 auto b = []() -> int { return '0'; }();
7656 auto c = [=](){ return a + b; }();
7657 auto d = [&](){ return c; }();
7658 auto e = [a, &b](int x) mutable {
7659 const auto identity = [](int y){ return y; };
7660 for (auto i = 0; i < a; ++i)
7662 return x + identity(a + b);
7664 return a + b + c + d + e;
7670 const auto nullary = [](){ return 0; };
7671 const auto unary = [](int x){ return x; };
7672 using nullary_t = decltype(nullary);
7673 using unary_t = decltype(unary);
7674 const auto higher1st = [](nullary_t f){ return f(); };
7675 const auto higher2nd = [unary](nullary_t f1){
7676 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7678 return higher1st(nullary) + higher2nd(nullary)(unary);
7683 namespace test_variadic_templates
7689 template <int N0, int... N1toN>
7690 struct sum<N0, N1toN...>
7692 static constexpr auto value = N0 + sum<N1toN...>::value;
7698 static constexpr auto value = 0;
7701 static_assert(sum<>::value == 0, "");
7702 static_assert(sum<1>::value == 1, "");
7703 static_assert(sum<23>::value == 23, "");
7704 static_assert(sum<1, 2>::value == 3, "");
7705 static_assert(sum<5, 5, 11>::value == 21, "");
7706 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7710 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7711 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7713 namespace test_template_alias_sfinae
7718 template<typename T>
7719 using member = typename T::member_type;
7721 template<typename T>
7724 template<typename T>
7725 void func(member<T>*) {}
7729 void test() { func<foo>(0); }
7733 } // namespace cxx11
7735 #endif // __cplusplus >= 201103L
7740 if ac_fn_cxx_try_compile "$LINENO"; then :
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 eval ac_res=\$$cachevar
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7750 $as_echo "$ac_res" >&6; }
7751 if eval test x\$$cachevar = xyes; then
7753 if test -n "$CXXCPP" ; then
7754 CXXCPP="$CXXCPP $switch"
7760 if test x$ac_success = xyes; then
7765 CXX_FOR_BUILD="$CXX"
7766 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7767 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7768 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7769 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7770 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7778 if test x$ac_success = xno; then
7779 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7782 if test x$ac_success = xno; then
7783 HAVE_CXX11_FOR_BUILD=0
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7785 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7787 HAVE_CXX11_FOR_BUILD=1
7789 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7797 # Check whether --enable-pgo-build was given.
7798 if test "${enable_pgo_build+set}" = set; then :
7799 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7805 # Issue errors and warnings for invalid/strange PGO build combinations.
7806 case "$have_compiler:$host:$target:$enable_pgo_build" in
7809 # Allow the PGO build only if we aren't building a compiler and
7810 # we are in a native configuration.
7811 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7813 # Disallow the PGO bootstrap if we are building a compiler.
7814 yes:*:*:yes |
yes:*:*:lto
)
7815 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7818 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7822 if test "$enable_pgo_build" != "no"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7824 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7825 old_CFLAGS
="$CFLAGS"
7826 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7827 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7833 if ac_fn_c_try_compile
"$LINENO"; then :
7836 PGO_BUILD_GEN_CFLAGS
=
7838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7839 CFLAGS
="$old_CFLAGS"
7840 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7843 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7850 if test "$enable_pgo_build" = "lto"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7852 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7853 old_CFLAGS
="$CFLAGS"
7854 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7855 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7860 if ac_fn_c_try_compile
"$LINENO"; then :
7863 PGO_BUILD_LTO_CFLAGS
=
7865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7866 CFLAGS
="$old_CFLAGS"
7867 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7874 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7882 # Used for setting $lt_cv_objdir
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7884 $as_echo_n "checking for objdir... " >&6; }
7885 if ${lt_cv_objdir+:} false
; then :
7886 $as_echo_n "(cached) " >&6
7888 rm -f .libs
2>/dev
/null
7889 mkdir .libs
2>/dev
/null
7890 if test -d .libs
; then
7893 # MS-DOS does not allow filenames that begin with a dot.
7896 rmdir .libs
2>/dev
/null
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7899 $as_echo "$lt_cv_objdir" >&6; }
7900 objdir
=$lt_cv_objdir
7906 cat >>confdefs.h
<<_ACEOF
7907 #define LT_OBJDIR "$lt_cv_objdir/"
7912 # Check for GMP, MPFR and MPC
7915 if test -d ${srcdir}/gcc
; then
7919 if test -d ${srcdir}/gdb
; then
7920 if test "x$enable_gdb" != xno
; then
7925 gmplibs
="-lmpfr -lgmp"
7926 if test x
"$require_mpc" = "xyes" ; then
7927 gmplibs
="-lmpc $gmplibs"
7932 # Specify a location for mpc
7933 # check for this first so it ends up on the link line before mpfr.
7935 # Check whether --with-mpc was given.
7936 if test "${with_mpc+set}" = set; then :
7941 # Check whether --with-mpc-include was given.
7942 if test "${with_mpc_include+set}" = set; then :
7943 withval
=$with_mpc_include;
7947 # Check whether --with-mpc-lib was given.
7948 if test "${with_mpc_lib+set}" = set; then :
7949 withval
=$with_mpc_lib;
7953 if test "x$with_mpc" != x
; then
7954 gmplibs
="-L$with_mpc/lib $gmplibs"
7955 gmpinc
="-I$with_mpc/include $gmpinc"
7957 if test "x$with_mpc_include" != x
; then
7958 gmpinc
="-I$with_mpc_include $gmpinc"
7960 if test "x$with_mpc_lib" != x
; then
7961 gmplibs
="-L$with_mpc_lib $gmplibs"
7963 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7964 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7965 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7966 # Do not test the mpc version. Assume that it is sufficient, since
7967 # it is in the source tree, and the library has not been built yet
7968 # but it would be included on the link line in the version check below
7969 # hence making the test fail.
7973 # Specify a location for mpfr
7974 # check for this first so it ends up on the link line before gmp.
7976 # Check whether --with-mpfr was given.
7977 if test "${with_mpfr+set}" = set; then :
7982 # Check whether --with-mpfr-include was given.
7983 if test "${with_mpfr_include+set}" = set; then :
7984 withval
=$with_mpfr_include;
7988 # Check whether --with-mpfr-lib was given.
7989 if test "${with_mpfr_lib+set}" = set; then :
7990 withval
=$with_mpfr_lib;
7994 if test "x$with_mpfr" != x
; then
7995 gmplibs
="-L$with_mpfr/lib $gmplibs"
7996 gmpinc
="-I$with_mpfr/include $gmpinc"
7998 if test "x$with_mpfr_include" != x
; then
7999 gmpinc
="-I$with_mpfr_include $gmpinc"
8001 if test "x$with_mpfr_lib" != x
; then
8002 gmplibs
="-L$with_mpfr_lib $gmplibs"
8004 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8005 # MPFR v3.1.0 moved the sources into a src sub-directory.
8006 if ! test -d ${srcdir}/mpfr
/src
; then
8007 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8009 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8010 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8011 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8012 # Do not test the mpfr version. Assume that it is sufficient, since
8013 # it is in the source tree, and the library has not been built yet
8014 # but it would be included on the link line in the version check below
8015 # hence making the test fail.
8019 # Specify a location for gmp
8021 # Check whether --with-gmp was given.
8022 if test "${with_gmp+set}" = set; then :
8027 # Check whether --with-gmp-include was given.
8028 if test "${with_gmp_include+set}" = set; then :
8029 withval
=$with_gmp_include;
8033 # Check whether --with-gmp-lib was given.
8034 if test "${with_gmp_lib+set}" = set; then :
8035 withval
=$with_gmp_lib;
8040 if test "x$with_gmp" != x
; then
8041 gmplibs
="-L$with_gmp/lib $gmplibs"
8042 gmpinc
="-I$with_gmp/include $gmpinc"
8044 if test "x$with_gmp_include" != x
; then
8045 gmpinc
="-I$with_gmp_include $gmpinc"
8047 if test "x$with_gmp_lib" != x
; then
8048 gmplibs
="-L$with_gmp_lib $gmplibs"
8050 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8051 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8052 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8053 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8054 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8055 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8056 # Do not test the gmp version. Assume that it is sufficient, since
8057 # it is in the source tree, and the library has not been built yet
8058 # but it would be included on the link line in the version check below
8059 # hence making the test fail.
8063 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8065 saved_CFLAGS
="$CFLAGS"
8066 CFLAGS
="$CFLAGS $gmpinc"
8067 # Check for the recommended and required versions of GMP.
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8069 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8077 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8078 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8079 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8087 if ac_fn_c_try_compile
"$LINENO"; then :
8088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8095 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8096 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8097 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8105 if ac_fn_c_try_compile
"$LINENO"; then :
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107 $as_echo "yes" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8110 $as_echo "buggy but acceptable" >&6; }
8112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }; have_gmp
=no
8117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8119 # If we have GMP, check the MPFR version.
8120 if test x
"$have_gmp" = xyes
; then
8121 # Check for the recommended and required versions of MPFR.
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8123 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8132 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8140 if ac_fn_c_try_compile
"$LINENO"; then :
8141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8149 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8157 if ac_fn_c_try_compile
"$LINENO"; then :
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159 $as_echo "yes" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8162 $as_echo "buggy but acceptable" >&6; }
8164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }; have_gmp
=no
8169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8172 # Check for the MPC header version.
8173 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8174 # Check for the recommended and required versions of MPC.
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8176 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8184 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8192 if ac_fn_c_try_compile
"$LINENO"; then :
8193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8200 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8208 if ac_fn_c_try_compile
"$LINENO"; then :
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210 $as_echo "yes" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8213 $as_echo "buggy but acceptable" >&6; }
8215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }; have_gmp
=no
8220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 # Now check the MPFR library.
8224 if test x
"$have_gmp" = xyes
; then
8226 LIBS
="$LIBS $gmplibs"
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8228 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8241 mpfr_atan2 (n, n, x, MPFR_RNDN);
8242 mpfr_erfc (n, x, MPFR_RNDN);
8243 mpfr_subnormalize (x, t, MPFR_RNDN);
8251 if ac_fn_c_try_link
"$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }; have_gmp
=no
8258 rm -f core conftest.err conftest.
$ac_objext \
8259 conftest
$ac_exeext conftest.
$ac_ext
8263 # Now check the MPC library
8264 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8266 LIBS
="$LIBS $gmplibs"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8268 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8278 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8279 mpc_cosh (c, c, MPC_RNDNN);
8280 mpc_pow (c, c, c, MPC_RNDNN);
8281 mpc_acosh (c, c, MPC_RNDNN);
8288 if ac_fn_c_try_link
"$LINENO"; then :
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290 $as_echo "yes" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }; have_gmp
=no
8295 rm -f core conftest.err conftest.
$ac_objext \
8296 conftest
$ac_exeext conftest.
$ac_ext
8300 CFLAGS
="$saved_CFLAGS"
8302 # The library versions listed in the error message below should match
8303 # the HARD-minimums enforced above.
8304 if test x
$have_gmp != xyes
; then
8305 if test -d ${srcdir}/gcc
; then
8306 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8307 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8308 their locations. Source code for these libraries can be found at
8309 their respective hosting sites as well as at
8310 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8311 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8312 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8313 make sure that you have installed both the libraries and the header
8314 files. They may be located in separate packages." "$LINENO" 5
8316 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8317 Try the --with-gmp and/or --with-mpfr options to specify
8318 their locations. If you obtained GMP and/or MPFR from a vendor
8319 distribution package, make sure that you have installed both the libraries
8320 and the header files. They may be located in separate packages." "$LINENO" 5
8325 # Flags needed for both GMP, MPFR and/or MPC.
8333 # Libraries to use for stage1 or when not bootstrapping.
8335 # Check whether --with-stage1-libs was given.
8336 if test "${with_stage1_libs+set}" = set; then :
8337 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8340 stage1_libs
=$withval
8348 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8349 # default is yes if gcc is being built; no otherwise. The reason for
8350 # this default is that gdb is sometimes linked against GNU Source
8351 # Highlight, which is a shared library that uses C++ exceptions. In
8352 # this case, -static-libstdc++ will cause crashes.
8354 # Check whether --with-static-standard-libraries was given.
8355 if test "${with_static_standard_libraries+set}" = set; then :
8356 withval
=$with_static_standard_libraries;
8358 with_static_standard_libraries
=auto
8361 if test "$with_static_standard_libraries" = auto
; then
8362 with_static_standard_libraries
=$have_compiler
8365 # Linker flags to use for stage1 or when not bootstrapping.
8367 # Check whether --with-stage1-ldflags was given.
8368 if test "${with_stage1_ldflags+set}" = set; then :
8369 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8372 stage1_ldflags
=$withval
8376 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8377 # if supported. But if the user explicitly specified the libraries to use,
8378 # trust that they are doing what they want.
8379 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8380 -a "$have_static_libs" = yes; then
8381 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8387 # Libraries to use for stage2 and later builds.
8389 # Check whether --with-boot-libs was given.
8390 if test "${with_boot_libs+set}" = set; then :
8391 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8394 poststage1_libs
=$withval
8402 # Linker flags to use for stage2 and later builds.
8404 # Check whether --with-boot-ldflags was given.
8405 if test "${with_boot_ldflags+set}" = set; then :
8406 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8409 poststage1_ldflags
=$withval
8413 # In stages 2 and 3, default to linking libstdc++ and libgcc
8414 # statically. But if the user explicitly specified the libraries to
8415 # use, trust that they are doing what they want.
8416 if test "$poststage1_libs" = ""; then
8417 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8423 # GCC GRAPHITE dependency isl.
8424 # Basic setup is inlined here, actual checks are in config/isl.m4
8427 # Check whether --with-isl was given.
8428 if test "${with_isl+set}" = set; then :
8433 # Treat --without-isl as a request to disable
8434 # GRAPHITE support and skip all following checks.
8435 if test "x$with_isl" != "xno"; then
8439 # Check whether --with-isl-include was given.
8440 if test "${with_isl_include+set}" = set; then :
8441 withval
=$with_isl_include;
8445 # Check whether --with-isl-lib was given.
8446 if test "${with_isl_lib+set}" = set; then :
8447 withval
=$with_isl_lib;
8451 # Check whether --enable-isl-version-check was given.
8452 if test "${enable_isl_version_check+set}" = set; then :
8453 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8455 ENABLE_ISL_CHECK
=yes
8459 # Initialize isllibs and islinc.
8468 isllibs
="-L$with_isl/lib"
8469 islinc
="-I$with_isl/include"
8472 if test "x${with_isl_include}" != x
; then
8473 islinc
="-I$with_isl_include"
8475 if test "x${with_isl_lib}" != x
; then
8476 isllibs
="-L$with_isl_lib"
8478 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8479 && test -d ${srcdir}/isl
; then
8480 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8481 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8484 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8487 isllibs
="${isllibs} -lisl"
8491 if test "${ENABLE_ISL_CHECK}" = yes ; then
8492 _isl_saved_CFLAGS
=$CFLAGS
8493 _isl_saved_LDFLAGS
=$LDFLAGS
8494 _isl_saved_LIBS
=$LIBS
8496 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8497 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8498 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8501 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <isl/schedule.h>
8508 isl_options_set_schedule_serialize_sccs (NULL, 0);
8513 if ac_fn_c_try_link
"$LINENO"; then :
8518 rm -f core conftest.err conftest.
$ac_objext \
8519 conftest
$ac_exeext conftest.
$ac_ext
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8521 $as_echo "$gcc_cv_isl" >&6; }
8523 if test "${gcc_cv_isl}" = no
; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8525 $as_echo "required isl version is 0.15 or later" >&6; }
8528 CFLAGS
=$_isl_saved_CFLAGS
8529 LDFLAGS
=$_isl_saved_LDFLAGS
8530 LIBS
=$_isl_saved_LIBS
8538 if test "x${with_isl}" = xno
; then
8539 graphite_requested
=no
8540 elif test "x${with_isl}" != x \
8541 ||
test "x${with_isl_include}" != x \
8542 ||
test "x${with_isl_lib}" != x
; then
8543 graphite_requested
=yes
8545 graphite_requested
=no
8550 if test "${gcc_cv_isl}" = no
; then
8555 if test "${graphite_requested}" = yes \
8556 && test "x${isllibs}" = x \
8557 && test "x${islinc}" = x
; then
8559 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8565 # If the isl check failed, disable builds of in-tree variant of isl
8566 if test "x$with_isl" = xno ||
8567 test "x$gcc_cv_isl" = xno
; then
8568 noconfigdirs
="$noconfigdirs isl"
8575 # Check for LTO support.
8576 # Check whether --enable-lto was given.
8577 if test "${enable_lto+set}" = set; then :
8578 enableval
=$enable_lto; enable_lto
=$enableval
8580 enable_lto
=yes; default_enable_lto
=yes
8589 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8590 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8591 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8600 if test $target_elf = yes; then :
8601 # ELF platforms build the lto-plugin always.
8602 build_lto_plugin
=yes
8605 if test x
"$default_enable_lto" = x
"yes" ; then
8607 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8608 # On other non-ELF platforms, LTO has yet to be validated.
8612 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8613 # It would also be nice to check the binutils support, but we don't
8614 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8615 # warn during gcc/ subconfigure; unless you're bootstrapping with
8616 # -flto it won't be needed until after installation anyway.
8618 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8619 *) if test x
"$enable_lto" = x
"yes"; then
8620 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8625 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8626 # Build it unless LTO was explicitly disabled.
8628 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8635 # Check whether --enable-linker-plugin-configure-flags was given.
8636 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8637 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8639 extra_linker_plugin_configure_flags
=
8643 # Check whether --enable-linker-plugin-flags was given.
8644 if test "${enable_linker_plugin_flags+set}" = set; then :
8645 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8647 extra_linker_plugin_flags
=
8652 # Enable --enable-host-pie.
8653 # Checked early to determine whether jit is an 'all' language
8654 # Check whether --enable-host-pie was given.
8655 if test "${enable_host_pie+set}" = set; then :
8656 enableval
=$enable_host_pie; host_pie
=$enableval
8658 x86_64-
*-darwin* | aarch64-
*-darwin*)
8659 if test x
$host_pie != xyes
; then
8660 # PIC is the default, and actually cannot be switched off.
8661 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8668 *-*-darwin2*) host_pie
=yes ;;
8676 # Enable --enable-host-shared.
8677 # Checked early to determine whether jit is an 'all' language
8678 # Check whether --enable-host-shared was given.
8679 if test "${enable_host_shared+set}" = set; then :
8680 enableval
=$enable_host_shared; host_shared
=$enableval
8682 x86_64-
*-darwin* | aarch64-
*-darwin*)
8683 if test x
$host_shared != xyes
; then
8684 # PIC is the default, and actually cannot be switched off.
8685 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8689 if test x
$host_pie == xyes
; then
8690 echo configure.ac
: warning
: PIC code is required
for PIE executables.
1>&2
8697 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8698 # Darwin needs PIC objects to link PIE executables.
8699 *-*-darwin*) host_shared
=host_pie
;;
8707 if test x
$host_shared = xyes
; then
8709 elif test x
$host_pie = xyes
; then
8717 # If we are building PIC/PIE host executables, and we are building dependent
8718 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8721 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8722 host_libs_picflag
='--with-pic'
8726 # By default, C and C++ are the only stage 1 languages.
8727 stage1_languages
=,c
,
8729 # Target libraries that we bootstrap.
8730 bootstrap_target_libs
=,target-libgcc
,
8732 # Figure out what language subdirectories are present.
8733 # Look if the user specified --enable-languages="..."; if not, use
8734 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8736 # NB: embedded tabs in this IF block -- do not untabify
8737 if test -d ${srcdir}/gcc
; then
8738 if test x
"${enable_languages+set}" != xset
; then
8739 if test x
"${LANGUAGES+set}" = xset
; then
8740 enable_languages
="${LANGUAGES}"
8741 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8743 enable_languages
=default
8746 if test x
"${enable_languages}" = x ||
8747 test x
"${enable_languages}" = xyes
;
8749 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8753 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8755 # 'f95' is the old name for the 'fortran' language. We issue a warning
8756 # and make the substitution.
8757 case ,${enable_languages}, in
8759 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8760 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8764 # If bootstrapping, C++ must be enabled.
8765 case ",$enable_languages,:$enable_bootstrap" in
8768 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8769 enable_languages
="${enable_languages},c++"
8771 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8776 # First scan to see if an enabled language requires some other language.
8777 # We assume that a given config-lang.in will list all the language
8778 # front ends it requires, even if some are required indirectly.
8779 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8780 case ${lang_frag} in
8782 # The odd quoting in the next line works around
8783 # an apparent bug in bash 1.12 on linux.
8784 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8786 # From the config-lang.in, get $language, $lang_requires, and
8787 # $lang_requires_boot_languages.
8790 lang_requires_boot_languages
=
8791 # set srcdir during sourcing lang_frag to the gcc dir.
8792 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8793 # polutes this shell
8794 saved_srcdir
=${srcdir}
8795 srcdir
=${srcdir}/gcc .
${lang_frag}
8796 srcdir
=${saved_srcdir}
8797 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8798 case ,${enable_languages}, in
8803 echo " \`$other' language required by \`$language'; enabling" 1>&2
8804 enable_languages
="${enable_languages},${other}"
8808 for other
in ${lang_requires_boot_languages} ; do
8809 if test "$other" != "c"; then
8810 case ,${enable_stage1_languages}, in
8815 case ,${enable_languages}, in
8817 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8818 enable_stage1_languages
="$enable_stage1_languages,${other}"
8829 new_enable_languages
=,c
,
8831 # If LTO is enabled, add the LTO front end.
8832 if test "$enable_lto" = "yes" ; then
8833 case ,${enable_languages}, in
8835 *) enable_languages
="${enable_languages},lto" ;;
8837 if test "${build_lto_plugin}" = "yes" ; then
8838 configdirs
="$configdirs lto-plugin"
8842 # If we're building an offloading compiler, add the LTO front end.
8843 if test x
"$enable_as_accelerator_for" != x
; then
8844 case ,${enable_languages}, in
8846 *) enable_languages
="${enable_languages},lto" ;;
8850 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8851 potential_languages
=,c
,
8853 enabled_target_libs
=
8854 disabled_target_libs
=
8856 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8857 case ${lang_frag} in
8859 # The odd quoting in the next line works around
8860 # an apparent bug in bash 1.12 on linux.
8861 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8863 # From the config-lang.in, get $language, $target_libs,
8864 # $lang_dirs, $boot_language, and $build_by_default
8870 build_by_default
=yes
8871 # set srcdir during sourcing. See above about save & restore
8872 saved_srcdir
=${srcdir}
8873 srcdir
=${srcdir}/gcc .
${lang_frag}
8874 srcdir
=${saved_srcdir}
8875 if test x
${language} = x
; then
8876 echo "${lang_frag} doesn't set \$language." 1>&2
8880 if test "$language" = "c++"; then
8885 # C is always enabled, so no need to add it again
8886 if test "$language" != "c"; then
8887 case ,${enable_languages}, in
8889 # Language was explicitly selected; include it
8893 # All languages are enabled
8897 # 'default' was selected, select it if it is a default language
8898 add_this_lang
=${build_by_default}
8903 # Disable languages that need other directories if these aren't available.
8904 for i
in $subdir_requires; do
8905 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8906 case ${add_this_lang} in
8908 # Specifically requested language; tell them.
8909 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8913 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8914 add_this_lang
=unsupported
8918 add_this_lang
=unsupported
8923 # Disable Ada if no preexisting GNAT is available.
8924 case ${add_this_lang}:${language}:${have_gnat} in
8926 # Specifically requested language; tell them.
8927 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8931 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8932 add_this_lang
=unsupported
8936 add_this_lang
=unsupported
8940 # Disable D if no preexisting GDC is available.
8941 case ${add_this_lang}:${language}:${have_gdc} in
8943 # Specifically requested language; tell them.
8944 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8948 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8949 add_this_lang
=unsupported
8953 add_this_lang
=unsupported
8957 # Disable jit if -enable-host-shared not specified
8958 # but not if building for Mingw. All code in Windows
8959 # is position independent code (PIC).
8963 case ${add_this_lang}:${language}:${host_shared} in
8965 # PR jit/64780: explicitly specify --enable-host-shared
8967 Enabling language \"jit\" requires --enable-host-shared.
8969 --enable-host-shared typically slows the rest of the compiler down by
8970 a few %, so you must explicitly enable it.
8972 If you want to build both the jit and the regular compiler, it is often
8973 best to do this via two separate configure/builds, in separate
8974 directories, to avoid imposing the performance cost of
8975 --enable-host-shared on the regular compiler." "$LINENO" 5
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8979 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8980 add_this_lang
=unsupported
8984 add_this_lang
=unsupported
8990 # Disable a language that is unsupported by the target.
8991 case "${add_this_lang}: $unsupported_languages " in
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8996 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8997 add_this_lang
=unsupported
9001 case $add_this_lang in
9003 # Remove language-dependent dirs.
9004 disabled_target_libs
="$disabled_target_libs $target_libs"
9005 noconfigdirs
="$noconfigdirs $lang_dirs"
9008 # Remove language-dependent dirs; still show language as supported.
9009 disabled_target_libs
="$disabled_target_libs $target_libs"
9010 noconfigdirs
="$noconfigdirs $lang_dirs"
9011 potential_languages
="${potential_languages}${language},"
9014 new_enable_languages
="${new_enable_languages}${language},"
9015 potential_languages
="${potential_languages}${language},"
9016 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9017 enabled_target_libs
="$enabled_target_libs $target_libs"
9018 case "${boot_language}:,$enable_stage1_languages," in
9019 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9020 # Add to (comma-separated) list of stage 1 languages.
9021 case ",$stage1_languages," in
9022 *,$language,* |
,yes, |
,all
,) ;;
9023 *) stage1_languages
="${stage1_languages}${language}," ;;
9025 # We need to bootstrap any supporting libraries.
9026 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9035 # Add target libraries which are only needed for disabled languages
9037 if test -n "$disabled_target_libs"; then
9038 for dir
in $disabled_target_libs; do
9039 case " $enabled_target_libs " in
9041 *) noconfigdirs
="$noconfigdirs $dir" ;;
9046 # Check whether --enable-stage1-languages was given.
9047 if test "${enable_stage1_languages+set}" = set; then :
9048 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9050 # Set it to something that will have no effect in the loop below
9051 enable_stage1_languages
=c
;;
9053 enable_stage1_languages
=`echo $new_enable_languages | \
9054 sed -e "s/^,//" -e "s/,$//" ` ;;
9056 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9057 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9060 # Add "good" languages from enable_stage1_languages to stage1_languages,
9061 # while "bad" languages go in missing_languages. Leave no duplicates.
9062 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9063 case $potential_languages in
9065 case $stage1_languages in
9067 *) stage1_languages
="$stage1_languages$i," ;;
9070 case $missing_languages in
9072 *) missing_languages
="$missing_languages$i," ;;
9079 # Remove leading/trailing commas that were added for simplicity
9080 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9081 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9082 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9083 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9085 if test "x$missing_languages" != x
; then
9087 The following requested languages could not be built: ${missing_languages}
9088 Supported languages are: ${potential_languages}" "$LINENO" 5
9090 if test "x$new_enable_languages" != "x$enable_languages"; then
9091 echo The following languages will be built
: ${new_enable_languages}
9092 enable_languages
="$new_enable_languages"
9096 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9099 # Handle --disable-<component> generically.
9100 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9101 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9102 varname
=`echo $dirname | sed -e s/+/_/g`
9103 if eval test x\
${enable_${varname}} "=" xno
; then
9104 noconfigdirs
="$noconfigdirs $dir"
9108 # Check for Boehm's garbage collector
9109 # Check whether --enable-objc-gc was given.
9110 if test "${enable_objc_gc+set}" = set; then :
9111 enableval
=$enable_objc_gc;
9115 # Check whether --with-target-bdw-gc was given.
9116 if test "${with_target_bdw_gc+set}" = set; then :
9117 withval
=$with_target_bdw_gc;
9121 # Check whether --with-target-bdw-gc-include was given.
9122 if test "${with_target_bdw_gc_include+set}" = set; then :
9123 withval
=$with_target_bdw_gc_include;
9127 # Check whether --with-target-bdw-gc-lib was given.
9128 if test "${with_target_bdw_gc_lib+set}" = set; then :
9129 withval
=$with_target_bdw_gc_lib;
9133 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9135 $as_echo_n "checking for bdw garbage collector... " >&6; }
9136 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9138 $as_echo "using bdw-gc in default locations" >&6; }
9140 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9141 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9142 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9143 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9146 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9151 # Disable libitm, libsanitizer, libvtv if we're not building C++
9152 case ,${enable_languages}, in
9154 # Disable libitm, libsanitizer if we're not building libstdc++
9155 case "${noconfigdirs}" in
9156 *target-libstdc
++-v3*)
9157 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9163 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9167 # If gcc/ is not in the source tree then we'll not be building a
9168 # target compiler, assume in that case we don't want to build any
9169 # target libraries or tools.
9171 # This was added primarily for the benefit for binutils-gdb who reuse
9172 # this configure script, but don't always have target tools available.
9173 if test ! -d ${srcdir}/gcc
; then
9174 skipdirs
="${skipdirs} ${target_configdirs}"
9177 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9178 # $build_configdirs and $target_configdirs.
9179 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9182 for dir
in .
$skipdirs $noconfigdirs ; do
9183 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9184 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9185 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9186 if test -r $srcdir/$dirname/configure
; then
9187 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9190 notsupp
="$notsupp $dir"
9194 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9195 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9196 if test -r $srcdir/$dirname/configure
; then
9197 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9200 notsupp
="$notsupp $dir"
9204 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9205 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9206 if test -r $srcdir/$dirname/configure
; then
9207 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9210 notsupp
="$notsupp $dir"
9216 # Quietly strip out all directories which aren't configurable in this tree.
9217 # This relies on all configurable subdirectories being autoconfiscated, which
9219 build_configdirs_all
="$build_configdirs"
9221 for i
in ${build_configdirs_all} ; do
9222 j
=`echo $i | sed -e s/build-//g`
9223 if test -f ${srcdir}/$j/configure
; then
9224 build_configdirs
="${build_configdirs} $i"
9228 configdirs_all
="$configdirs"
9230 for i
in ${configdirs_all} ; do
9231 if test -f ${srcdir}/$i/configure
; then
9232 configdirs
="${configdirs} $i"
9236 target_configdirs_all
="$target_configdirs"
9238 for i
in ${target_configdirs_all} ; do
9239 j
=`echo $i | sed -e s/target-//g`
9240 if test -f ${srcdir}/$j/configure
; then
9241 target_configdirs
="${target_configdirs} $i"
9245 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9246 # so we have to add it after the preceding checks.
9247 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9249 case " $configdirs " in
9251 # If we can build libiberty, we can also build libiberty-linker-plugin.
9252 configdirs
="$configdirs libiberty-linker-plugin"
9253 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9254 --with-libiberty=../libiberty-linker-plugin";;
9256 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9260 # Sometimes we have special requirements for the host libiberty.
9261 extra_host_libiberty_configure_flags
=
9262 case " $configdirs " in
9263 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9264 # When these are to be built as shared libraries, the same applies to
9266 extra_host_libiberty_configure_flags
=--enable-shared
9271 # Sometimes we have special requirements for the host zlib.
9272 extra_host_zlib_configure_flags
=
9273 case " $configdirs " in
9275 # When bfd is to be built as a shared library, the same applies to
9277 if test "$enable_shared" = "yes"; then
9278 extra_host_zlib_configure_flags
=--enable-host-shared
9284 # Produce a warning message for the subdirs we can't configure.
9285 # This isn't especially interesting in the Cygnus tree, but in the individual
9286 # FSF releases, it's important to let people know when their machine isn't
9287 # supported by the one or two programs in a package.
9289 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9290 # If $appdirs is non-empty, at least one of those directories must still
9291 # be configured, or we error out. (E.g., if the gas release supports a
9292 # specified target in some subdirs but not the gas subdir, we shouldn't
9293 # pretend that all is well.)
9294 if test -n "$appdirs" ; then
9295 for dir
in $appdirs ; do
9296 if test -r $dir/Makefile.
in ; then
9297 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9301 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9307 if test -n "$appdirs" ; then
9308 echo "*** This configuration is not supported by this package." 1>&2
9312 # Okay, some application will build, or we don't care to check. Still
9313 # notify of subdirs not getting built.
9314 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9315 echo " ${notsupp}" 1>&2
9316 echo " (Any other directories should still work fine.)" 1>&2
9324 # To find our prefix, in gcc_cv_tool_prefix.
9326 # The user is always right.
9327 if test "${PATH_SEPARATOR+set}" != set; then
9328 echo "#! /bin/sh" >conf$$.sh
9329 echo "exit 0" >>conf$$.sh
9331 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9340 get_gcc_base_ver
="cat"
9342 # Check whether --with-gcc-major-version-only was given.
9343 if test "${with_gcc_major_version_only+set}" = set; then :
9344 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9345 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9355 if test "x$exec_prefix" = xNONE
; then
9356 if test "x$prefix" = xNONE
; then
9357 gcc_cv_tool_prefix
=$ac_default_prefix
9359 gcc_cv_tool_prefix
=$prefix
9362 gcc_cv_tool_prefix
=$exec_prefix
9365 # If there is no compiler in the tree, use the PATH only. In any
9366 # case, if there is no compiler in the tree nobody should use
9367 # AS_FOR_TARGET and LD_FOR_TARGET.
9368 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9369 if test x
$with_gcc_major_version_only = xyes
; then
9370 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9372 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9374 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9375 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9376 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9377 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9378 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9379 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9384 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9385 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9393 # Check whether --with-build-sysroot was given.
9394 if test "${with_build_sysroot+set}" = set; then :
9395 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9396 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9399 SYSROOT_CFLAGS_FOR_TARGET
=
9405 # Check whether --with-debug-prefix-map was given.
9406 if test "${with_debug_prefix_map+set}" = set; then :
9407 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9408 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9409 for debug_map
in $withval; do
9410 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9414 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9419 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9420 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9421 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9422 # We want to ensure that TARGET libraries (which we know are built with
9423 # gcc) are built with "-O2 -g", so include those options when setting
9424 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9425 if test "x$CFLAGS_FOR_TARGET" = x
; then
9426 if test "x${is_cross_compiler}" = xyes
; then
9427 CFLAGS_FOR_TARGET
="-g -O2"
9429 CFLAGS_FOR_TARGET
=$CFLAGS
9432 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9435 *" -g "* |
*" -g3 "*) ;;
9436 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9442 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9443 if test "x${is_cross_compiler}" = xyes
; then
9444 CXXFLAGS_FOR_TARGET
="-g -O2"
9446 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9447 case " $CXXFLAGS " in
9449 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9451 case " $CXXFLAGS " in
9452 *" -g "* |
*" -g3 "*) ;;
9453 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9461 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9462 # the named directory are copied to $(tooldir)/sys-include.
9463 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9464 if test x
${is_cross_compiler} = xno
; then
9465 echo 1>&2 '***' --with-headers is only supported when cross compiling
9468 if test x
"${with_headers}" != xyes
; then
9469 x
=${gcc_cv_tool_prefix}
9470 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9474 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9475 # the name directories are copied to $(tooldir)/lib. Multiple directories
9477 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9478 if test x
${is_cross_compiler} = xno
; then
9479 echo 1>&2 '***' --with-libs is only supported when cross compiling
9482 if test x
"${with_libs}" != xyes
; then
9483 # Copy the libraries in reverse order, so that files in the first named
9484 # library override files in subsequent libraries.
9485 x
=${gcc_cv_tool_prefix}
9486 for l
in ${with_libs}; do
9487 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9492 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9494 # This is done by determining whether or not the appropriate directory
9495 # is available, and by checking whether or not specific configurations
9496 # have requested that this magic not happen.
9498 # The command line options always override the explicit settings in
9499 # configure.ac, and the settings in configure.ac override this magic.
9501 # If the default for a toolchain is to use GNU as and ld, and you don't
9502 # want to do that, then you should use the --without-gnu-as and
9503 # --without-gnu-ld options for the configure script. Similarly, if
9504 # the default is to use the included zlib and you don't want to do that,
9505 # you should use the --with-system-zlib option for the configure script.
9507 if test x
${use_gnu_as} = x
&&
9508 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9510 extra_host_args
="$extra_host_args --with-gnu-as"
9513 if test x
${use_gnu_ld} = x
&&
9514 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9516 extra_host_args
="$extra_host_args --with-gnu-ld"
9519 if test x
${use_included_zlib} = x
&&
9520 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9523 with_system_zlib
=yes
9524 extra_host_args
="$extra_host_args --with-system-zlib"
9527 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9528 # can detect this case.
9530 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9532 extra_host_args
="$extra_host_args --with-newlib"
9535 # Handle ${copy_dirs}
9536 set fnord
${copy_dirs}
9538 while test $# != 0 ; do
9539 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9542 echo Copying
$1 to
$2
9544 # Use the install script to create the directory and all required
9545 # parent directories.
9546 if test -d $2 ; then
9550 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9553 # Copy the directory, assuming we have tar.
9554 # FIXME: Should we use B in the second tar? Not all systems support it.
9555 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9557 # It is the responsibility of the user to correctly adjust all
9558 # symlinks. If somebody can figure out how to handle them correctly
9559 # here, feel free to add the code.
9566 # Determine a target-dependent exec_prefix that the installed
9567 # gcc will search in. Keep this list sorted by triplet, with
9568 # the *-*-osname triplets last.
9571 i
[34567]86-pc-msdosdjgpp*)
9572 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9577 md_exec_prefix
=/usr
/ccs
/bin
9581 extra_arflags_for_target
=
9582 extra_nmflags_for_target
=
9583 extra_ranlibflags_for_target
=
9584 target_makefile_frag
=/dev
/null
9587 target_makefile_frag
="config/mt-spu"
9589 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9590 target_makefile_frag
="config/mt-sde"
9592 mipsisa
*-*-elfoabi*)
9593 target_makefile_frag
="config/mt-mips-elfoabi"
9595 mips
*-*-*linux
* | mips
*-*-gnu*)
9596 target_makefile_frag
="config/mt-mips-gnu"
9599 target_makefile_frag
="config/mt-nios2-elf"
9602 target_makefile_frag
="config/mt-android"
9604 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9605 target_makefile_frag
="config/mt-gnu"
9607 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9608 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9609 # commands to handle both 32-bit and 64-bit objects. These flags are
9610 # harmless if we're using GNU nm or ar.
9611 extra_arflags_for_target
=" -X32_64"
9612 extra_nmflags_for_target
=" -B -X32_64"
9616 alphaieee_frag
=/dev
/null
9619 # This just makes sure to use the -mieee option to build target libs.
9620 # This should probably be set individually by each library.
9621 alphaieee_frag
="config/mt-alphaieee"
9625 # If --enable-target-optspace always use -Os instead of -O2 to build
9626 # the target libraries, similarly if it is not specified, use -Os
9627 # on selected platforms.
9628 ospace_frag
=/dev
/null
9629 case "${enable_target_optspace}:${target}" in
9631 ospace_frag
="config/mt-ospace"
9634 ospace_frag
="config/mt-d30v"
9636 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9637 ospace_frag
="config/mt-ospace"
9642 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9646 # Some systems (e.g., one of the i386-aix systems the gas testers are
9647 # using) don't handle "\$" correctly, so don't use it here.
9648 tooldir
='${exec_prefix}'/${target_noncanonical}
9649 build_tooldir
=${tooldir}
9651 # Create a .gdbinit file which runs the one in srcdir
9652 # and tells GDB to look there for source files.
9654 if test -r ${srcdir}/.gdbinit
; then
9657 *) cat > .
/.gdbinit
<<EOF
9661 source ${srcdir}/.gdbinit
9667 # Make sure that the compiler is able to generate an executable. If it
9668 # can't, we are probably in trouble. We don't care whether we can run the
9669 # executable--we might be using a cross compiler--we only care whether it
9670 # can be created. At this point the main configure script has set CC.
9672 echo "int main () { return 0; }" > conftest.c
9673 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9674 if test $?
= 0 ; then
9675 if test -s conftest ||
test -s conftest.exe
; then
9681 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9682 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9689 # Decide which environment variable is used to find dynamic libraries.
9691 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9692 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9693 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9694 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9697 # On systems where the dynamic library environment variable is PATH,
9698 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9699 # built executables to PATH.
9700 if test "$RPATH_ENVVAR" = PATH
; then
9701 GCC_SHLIB_SUBDIR
=/shlib
9706 # Adjust the toplevel makefile according to whether bootstrap was selected.
9707 case $enable_bootstrap in
9709 bootstrap_suffix
=bootstrap
9710 BUILD_CONFIG
=bootstrap-debug
9713 bootstrap_suffix
=no-bootstrap
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9719 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9722 # Check whether --with-build-config was given.
9723 if test "${with_build_config+set}" = set; then :
9724 withval
=$with_build_config; case $with_build_config in
9725 yes) with_build_config
= ;;
9726 no
) with_build_config
= BUILD_CONFIG
= ;;
9731 if test "x${with_build_config}" != x
; then
9732 BUILD_CONFIG
=$with_build_config
9734 case $BUILD_CONFIG in
9736 if echo "int f (void) { return 0; }" > conftest.c
&&
9737 ${CC} -c conftest.c
&&
9738 mv conftest.o conftest.o.g0
&&
9739 ${CC} -c -g conftest.c
&&
9740 mv conftest.o conftest.o.g
&&
9741 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9746 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9751 $as_echo "$BUILD_CONFIG" >&6; }
9754 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9756 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9757 # Check whether --enable-vtable-verify was given.
9758 if test "${enable_vtable_verify+set}" = set; then :
9759 enableval
=$enable_vtable_verify; case "$enableval" in
9760 yes) enable_vtable_verify
=yes ;;
9761 no
) enable_vtable_verify
=no
;;
9762 *) enable_vtable_verify
=no
;;
9765 enable_vtable_verify
=no
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9769 $as_echo "$enable_vtable_verify" >&6; }
9771 # Record target_configdirs and the configure arguments for target and
9772 # build configuration in Makefile.
9773 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9774 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9775 bootstrap_fixincludes
=no
9777 # If we are building libgomp, bootstrap it.
9778 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9779 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9782 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9783 # or bootstrap-ubsan, bootstrap it.
9784 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9785 case "$BUILD_CONFIG" in
9786 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9787 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9788 bootstrap_fixincludes
=yes
9793 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9794 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9795 test "$enable_vtable_verify" != no
; then
9796 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9799 # If we are building libatomic and the list of enabled languages includes the
9800 # D frontend, bootstrap it.
9801 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9802 case ,${enable_languages}, in
9804 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9809 # Determine whether gdb needs tk/tcl or not.
9810 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9811 # and in that case we want gdb to be built without tk. Ugh!
9812 # In fact I believe gdb is the *only* package directly dependent on tk,
9813 # so we should be able to put the 'maybe's in unconditionally and
9814 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9815 # 100% sure that that's safe though.
9817 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9818 case "$enable_gdbtk" in
9822 GDB_TK
="${gdb_tk}" ;;
9824 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9825 # distro. Eventually someone will fix this and move Insight, nee
9826 # gdbtk to a separate directory.
9827 if test -d ${srcdir}/gdb
/gdbtk
; then
9834 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9835 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9837 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9838 # else does, only include them if one of these is built. The Makefile
9839 # provides the ordering, so it's enough here to add to the list.
9840 case " ${configdirs} " in
9842 configdirs
="${configdirs} gnulib gdbsupport"
9845 configdirs
="${configdirs} gnulib gdbsupport"
9848 configdirs
="${configdirs} gnulib"
9852 # Strip out unwanted targets.
9854 # While at that, we remove Makefiles if we were started for recursive
9855 # configuration, so that the top-level Makefile reconfigures them,
9856 # like we used to do when configure itself was recursive.
9858 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9859 # but now we're fixing up the Makefile ourselves with the additional
9860 # commands passed to AC_CONFIG_FILES. Use separate variables
9861 # extrasub-{build,host,target} not because there is any reason to split
9862 # the substitutions up that way, but only to remain below the limit of
9863 # 99 commands in a script, for HP-UX sed.
9865 # Do not nest @if/@endif or @unless/@endunless pairs, because
9866 # configure will not warn you at all.
9868 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9869 yes:yes:*\ gold\
*:*,c
++,*) ;;
9870 yes:yes:*\ gold\
*:*)
9871 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9876 for module
in ${build_configdirs} ; do
9877 if test -z "${no_recursion}" \
9878 && test -f ${build_subdir}/${module}/Makefile
; then
9879 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9880 rm -f ${build_subdir}/${module}/Makefile
9882 extrasub_build
="$extrasub_build
9883 /^@if build-$module\$/d
9884 /^@endif build-$module\$/d
9885 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9886 /^@if build-$module-$bootstrap_suffix\$/d
9887 /^@endif build-$module-$bootstrap_suffix\$/d
9888 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9891 for module
in ${configdirs} ; do
9892 if test -z "${no_recursion}"; then
9893 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9894 if test -f ${file}; then
9895 echo 1>&2 "*** removing ${file} to force reconfigure"
9900 case ${module},${bootstrap_fixincludes} in
9901 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9902 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9904 extrasub_host
="$extrasub_host
9906 /^@endif $module\$/d
9907 /^@unless $module\$/,/^@endunless $module\$/d
9908 /^@if $module-$host_bootstrap_suffix\$/d
9909 /^@endif $module-$host_bootstrap_suffix\$/d
9910 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9913 for module
in ${target_configdirs} ; do
9914 if test -z "${no_recursion}" \
9915 && test -f ${target_subdir}/${module}/Makefile
; then
9916 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9917 rm -f ${target_subdir}/${module}/Makefile
9920 # We only bootstrap target libraries listed in bootstrap_target_libs.
9921 case $bootstrap_target_libs in
9922 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9923 *) target_bootstrap_suffix
=no-bootstrap
;;
9926 extrasub_target
="$extrasub_target
9927 /^@if target-$module\$/d
9928 /^@endif target-$module\$/d
9929 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9930 /^@if target-$module-$target_bootstrap_suffix\$/d
9931 /^@endif target-$module-$target_bootstrap_suffix\$/d
9932 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9935 # Do the final fixup along with target modules.
9936 extrasub_target
="$extrasub_target
9941 if test "$enable_pgo_build" != "no"; then
9942 extrasub_build
="$extrasub_build
9944 /^@endif pgo-build\$/d"
9947 # Create the serialization dependencies. This uses a temporary file.
9949 # Check whether --enable-serial-configure was given.
9950 if test "${enable_serial_configure+set}" = set; then :
9951 enableval
=$enable_serial_configure;
9955 case ${enable_serial_configure} in
9957 enable_serial_build_configure
=yes
9958 enable_serial_host_configure
=yes
9959 enable_serial_target_configure
=yes
9963 # These force 'configure's to be done one at a time, to avoid problems
9964 # with contention over a shared config.cache.
9966 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
9967 echo '# serdep.tmp' > serdep.tmp
9970 test "x${enable_serial_build_configure}" = xyes
&&
9971 for item
in ${build_configdirs} ; do
9974 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9979 test "x${enable_serial_host_configure}" = xyes
&&
9980 for item
in ${configdirs} ; do
9983 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9988 test "x${enable_serial_target_configure}" = xyes
&&
9989 for item
in ${target_configdirs} ; do
9992 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9996 serialization_dependencies
=serdep.tmp
9999 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10000 # target, nonopt, and variable assignments. These are the ones we
10001 # might not want to pass down to subconfigures. The exception being
10002 # --cache-file=/dev/null, which is used to turn off the use of cache
10003 # files altogether, and which should be passed on to subconfigures.
10004 # Also strip program-prefix, program-suffix, and program-transform-name,
10005 # so that we can pass down a consistent program-transform-name.
10010 eval "set -- $ac_configure_args"
10013 if test X
"$skip_next" = X
"yes"; then
10017 if test X
"$keep_next" = X
"yes"; then
10020 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10022 baseargs
="$baseargs '$ac_arg'"
10023 tbaseargs
="$tbaseargs '$ac_arg'"
10028 # Handle separated arguments. Based on the logic generated by
10031 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10032 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10033 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10034 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10048 --with-* |
--without-*)
10049 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10053 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10056 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10065 mpc | mpfr | gmp | isl
)
10066 # If we're processing --with-$lib, --with-$lib-include or
10067 # --with-$lib-lib, for one of the libs above, and target is
10068 # different from host, don't pass the current argument to any
10069 # target library's configure.
10070 if test x
$is_cross_compiler = xyes
; then
10079 --cache-file=/dev
/null | \
10080 -cache-file=/dev
/null
)
10081 # Handled here to avoid the test to skip args below.
10082 baseargs
="$baseargs '$ac_arg'"
10083 tbaseargs
="$tbaseargs '$ac_arg'"
10084 # Assert: $separate_arg should always be no.
10085 keep_next
=$separate_arg
10101 -program-prefix* | \
10102 -program-suffix* | \
10103 -program-transform-name* )
10104 skip_next
=$separate_arg
10108 # An option. Add it.
10111 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10113 baseargs
="$baseargs '$ac_arg'"
10114 if test X
"$skip_targ" = Xno
; then
10115 tbaseargs
="$tbaseargs '$ac_arg'"
10117 keep_next
=$separate_arg
10120 # Either a variable assignment, or a nonopt (triplet). Don't
10121 # pass it down; let the Makefile handle this.
10126 # Remove the initial space we just introduced and, as these will be
10127 # expanded by make, quote '$'.
10128 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10130 # Add in --program-transform-name, after --program-prefix and
10131 # --program-suffix have been applied to it. Autoconf has already
10132 # doubled dollar signs and backslashes in program_transform_name; we want
10133 # the backslashes un-doubled, and then the entire thing wrapped in single
10134 # quotes, because this will be expanded first by make and then by the shell.
10135 # Also, because we want to override the logic in subdir configure scripts to
10136 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10137 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10138 ${program_transform_name}
10140 gcc_transform_name
=`cat conftestsed.out`
10141 rm -f conftestsed.out
10142 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10143 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10144 if test "$silent" = yes; then
10145 baseargs
="$baseargs --silent"
10146 tbaseargs
="$tbaseargs --silent"
10148 baseargs
="$baseargs --disable-option-checking"
10149 tbaseargs
="$tbaseargs --disable-option-checking"
10151 # Record and document user additions to sub configure arguments.
10156 # For the build-side libraries, we just need to pretend we're native,
10157 # and not use the same cache file. Multilibs are neither needed nor
10158 # desired. We can't even use the same cache file for all build-side
10159 # libraries, as they're compiled differently; some with C, some with
10160 # C++ or with different feature-enabling options.
10161 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10163 # For host modules, accept cache file option, or specification as blank.
10164 case "${cache_file}" in
10166 cache_file_option
="" ;;
10167 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10168 cache_file_option
="--cache-file=${cache_file}" ;;
10170 cache_file_option
="--cache-file=../${cache_file}" ;;
10173 # Host dirs don't like to share a cache file either, horribly enough.
10174 # This seems to be due to autoconf 2.5x stupidity.
10175 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10177 target_configargs
="$target_configargs ${tbaseargs}"
10179 # Passing a --with-cross-host argument lets the target libraries know
10180 # whether they are being built with a cross-compiler or being built
10181 # native. However, it would be better to use other mechanisms to make the
10182 # sorts of decisions they want to make on this basis. Please consider
10183 # this option to be deprecated. FIXME.
10184 if test x
${is_cross_compiler} = xyes
; then
10185 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10188 # Special user-friendly check for native x86_64-linux build, if
10189 # multilib is not explicitly enabled.
10190 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10191 x86_64-
*linux
*:yes:$build:$build:)
10192 # Make sure we have a development environment that handles 32-bit
10194 echo "int main () { return 0; }" > conftest.c
10195 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10196 if test $?
= 0 ; then
10197 if test -s conftest ||
test -s conftest.exe
; then
10202 if test x
${dev64} != xyes
; then
10203 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
10208 # Default to --enable-multilib.
10209 if test x
${enable_multilib} = x
; then
10210 target_configargs
="--enable-multilib ${target_configargs}"
10213 # Pass --with-newlib if appropriate. Note that target_configdirs has
10214 # changed from the earlier setting of with_newlib.
10215 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10216 target_configargs
="--with-newlib ${target_configargs}"
10219 # Different target subdirs use different values of certain variables
10220 # (notably CXX). Worse, multilibs use *lots* of different values.
10221 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10222 # it doesn't automatically accept command-line overrides of them.
10223 # This means it's not safe for target subdirs to share a cache file,
10224 # which is disgusting, but there you have it. Hopefully this can be
10225 # fixed in future. It's still worthwhile to use a cache file for each
10226 # directory. I think.
10228 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10229 # We need to pass --target, as newer autoconf's requires consistency
10230 # for target_alias and gcc doesn't manage it consistently.
10231 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10234 case " $target_configdirs " in
10236 case " $target_configargs " in
10237 *" --with-newlib "*)
10240 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10244 # If we're not building GCC, don't discard standard headers.
10245 if test -d ${srcdir}/gcc
; then
10246 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10248 if test "${build}" != "${host}"; then
10249 # On Canadian crosses, CC_FOR_TARGET will have already been set
10250 # by `configure', so we won't have an opportunity to add -Bgcc/
10251 # to it. This is right: we don't want to search that directory
10252 # for binaries, but we want the header files in there, so add
10254 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10256 # Someone might think of using the pre-installed headers on
10257 # Canadian crosses, in case the installed compiler is not fully
10258 # compatible with the compiler being built. In this case, it
10259 # would be better to flag an error than risking having
10260 # incompatible object files being constructed. We can't
10261 # guarantee that an error will be flagged, but let's hope the
10262 # compiler will do it, when presented with incompatible header
10267 case "${target}-${is_cross_compiler}" in
10268 i
[3456789]86-*-linux*-no)
10269 # Here host == target, so we don't need to build gcc,
10270 # so we don't want to discard standard headers.
10271 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10274 # If we're building newlib, use its generic headers last, but search
10275 # for any libc-related directories first (so make it the last -B
10277 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10279 # If we're building libgloss, find the startup file, simulator library
10280 # and linker script.
10281 case " $target_configdirs " in
10283 # Look for startup file, simulator library and maybe linker script.
10284 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10285 # Look for libnosys.a in case the target needs it.
10286 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10287 # Most targets have the linker script in the source directory.
10288 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10299 x86_64-
*mingw
* |
*-w64-mingw*)
10300 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10301 # however, use a symlink named 'mingw' in ${prefix} .
10302 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10305 # MinGW can't be handled as Cygwin above since it does not use newlib.
10306 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'
10310 # Allow the user to override the flags for
10311 # our build compiler if desired.
10312 if test x
"${build}" = x
"${host}" ; then
10313 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10314 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10315 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10316 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10319 # On Canadian crosses, we'll be searching the right directories for
10320 # the previously-installed cross compiler, so don't bother to add
10321 # flags for directories within the install tree of the compiler
10322 # being built; programs in there won't even run.
10323 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10324 # Search for pre-installed headers if nothing else fits.
10325 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10328 if test "x
${use_gnu_ld}" = x &&
10329 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10330 # Arrange for us to find uninstalled linker scripts.
10331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10334 # Search for other target-specific linker scripts and such.
10335 case "${target}" in
10337 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10339 # The VxWorks support for shared libraries is getting in
10340 # incrementally. Make sure it doesn't get activated implicitly:
10342 if test "${enable_shared-unset}" = unset ; then
10344 # So the build of libraries knows ...
10345 target_configargs="${target_configargs} --disable-shared"
10347 host_configargs="${host_configargs} --disable-shared"
10352 # Makefile fragments.
10353 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10355 eval fragval=\$$frag
10356 if test $fragval != /dev/null; then
10357 eval $frag=${srcdir}/$fragval
10365 # Miscellanea: directories, flags, etc.
10374 # Build module lists & subconfigure args.
10378 # Host module lists & subconfigure args.
10383 # Target module lists & subconfigure args.
10408 # Generate default definitions for YACC, M4, LEX and other programs that run
10409 # on the build machine. These are used if the Makefile can't locate these
10410 # programs in objdir.
10411 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10413 for ac_prog in 'bison -y' byacc yacc
10415 # Extract the first word of "$ac_prog", so it can be a program name with args.
10416 set dummy $ac_prog; ac_word=$2
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10418 $as_echo_n "checking
for $ac_word...
" >&6; }
10419 if ${ac_cv_prog_YACC+:} false; then :
10420 $as_echo_n "(cached
) " >&6
10422 if test -n "$YACC"; then
10423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432 ac_cv_prog_YACC="$ac_prog"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10442 YACC=$ac_cv_prog_YACC
10443 if test -n "$YACC"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10445 $as_echo "$YACC" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10448 $as_echo "no
" >&6; }
10452 test -n "$YACC" && break
10454 test -n "$YACC" || YACC="$MISSING bison
-y"
10456 case " $build_configdirs " in
10457 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10460 for ac_prog in bison
10462 # Extract the first word of "$ac_prog", so it can be a program name with args.
10463 set dummy $ac_prog; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10465 $as_echo_n "checking
for $ac_word...
" >&6; }
10466 if ${ac_cv_prog_BISON+:} false; then :
10467 $as_echo_n "(cached
) " >&6
10469 if test -n "$BISON"; then
10470 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_prog_BISON="$ac_prog"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10489 BISON=$ac_cv_prog_BISON
10490 if test -n "$BISON"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10492 $as_echo "$BISON" >&6; }
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10495 $as_echo "no
" >&6; }
10499 test -n "$BISON" && break
10501 test -n "$BISON" || BISON="$MISSING bison
"
10503 case " $build_configdirs " in
10504 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10507 for ac_prog in gm4 gnum4 m4
10509 # Extract the first word of "$ac_prog", so it can be a program name with args.
10510 set dummy $ac_prog; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10512 $as_echo_n "checking
for $ac_word...
" >&6; }
10513 if ${ac_cv_prog_M4+:} false; then :
10514 $as_echo_n "(cached
) " >&6
10516 if test -n "$M4"; then
10517 ac_cv_prog_M4="$M4" # Let the user override the test.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_prog_M4="$ac_prog"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10537 if test -n "$M4"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10539 $as_echo "$M4" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10542 $as_echo "no
" >&6; }
10546 test -n "$M4" && break
10548 test -n "$M4" || M4="$MISSING m4"
10550 case " $build_configdirs " in
10551 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10554 for ac_prog in flex lex
10556 # Extract the first word of "$ac_prog", so it can be a program name with args.
10557 set dummy $ac_prog; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10559 $as_echo_n "checking
for $ac_word...
" >&6; }
10560 if ${ac_cv_prog_LEX+:} false; then :
10561 $as_echo_n "(cached
) " >&6
10563 if test -n "$LEX"; then
10564 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_LEX="$ac_prog"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10583 LEX=$ac_cv_prog_LEX
10584 if test -n "$LEX"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10586 $as_echo "$LEX" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10589 $as_echo "no
" >&6; }
10593 test -n "$LEX" && break
10595 test -n "$LEX" || LEX="$MISSING flex
"
10597 case " $build_configdirs " in
10598 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10599 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10602 for ac_prog in flex
10604 # Extract the first word of "$ac_prog", so it can be a program name with args.
10605 set dummy $ac_prog; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10607 $as_echo_n "checking
for $ac_word...
" >&6; }
10608 if ${ac_cv_prog_FLEX+:} false; then :
10609 $as_echo_n "(cached
) " >&6
10611 if test -n "$FLEX"; then
10612 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_FLEX="$ac_prog"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10631 FLEX=$ac_cv_prog_FLEX
10632 if test -n "$FLEX"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10634 $as_echo "$FLEX" >&6; }
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10637 $as_echo "no
" >&6; }
10641 test -n "$FLEX" && break
10643 test -n "$FLEX" || FLEX="$MISSING flex
"
10645 case " $build_configdirs " in
10646 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10649 for ac_prog in makeinfo
10651 # Extract the first word of "$ac_prog", so it can be a program name with args.
10652 set dummy $ac_prog; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10654 $as_echo_n "checking
for $ac_word...
" >&6; }
10655 if ${ac_cv_prog_MAKEINFO+:} false; then :
10656 $as_echo_n "(cached
) " >&6
10658 if test -n "$MAKEINFO"; then
10659 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_MAKEINFO="$ac_prog"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10678 MAKEINFO=$ac_cv_prog_MAKEINFO
10679 if test -n "$MAKEINFO"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10681 $as_echo "$MAKEINFO" >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10684 $as_echo "no
" >&6; }
10688 test -n "$MAKEINFO" && break
10690 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10692 case " $build_configdirs " in
10693 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10696 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10697 # higher, else we use the "missing
" dummy.
10698 if ${MAKEINFO} --version \
10699 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10702 MAKEINFO="$MISSING makeinfo
"
10708 # FIXME: expect and dejagnu may become build tools?
10710 for ac_prog in expect
10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
10713 set dummy $ac_prog; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10715 $as_echo_n "checking
for $ac_word...
" >&6; }
10716 if ${ac_cv_prog_EXPECT+:} false; then :
10717 $as_echo_n "(cached
) " >&6
10719 if test -n "$EXPECT"; then
10720 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_EXPECT="$ac_prog"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10739 EXPECT=$ac_cv_prog_EXPECT
10740 if test -n "$EXPECT"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10742 $as_echo "$EXPECT" >&6; }
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10745 $as_echo "no
" >&6; }
10749 test -n "$EXPECT" && break
10751 test -n "$EXPECT" || EXPECT="expect
"
10753 case " $configdirs " in
10755 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10759 for ac_prog in runtest
10761 # Extract the first word of "$ac_prog", so it can be a program name with args.
10762 set dummy $ac_prog; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10764 $as_echo_n "checking
for $ac_word...
" >&6; }
10765 if ${ac_cv_prog_RUNTEST+:} false; then :
10766 $as_echo_n "(cached
) " >&6
10768 if test -n "$RUNTEST"; then
10769 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_RUNTEST="$ac_prog"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10788 RUNTEST=$ac_cv_prog_RUNTEST
10789 if test -n "$RUNTEST"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10791 $as_echo "$RUNTEST" >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10794 $as_echo "no
" >&6; }
10798 test -n "$RUNTEST" && break
10800 test -n "$RUNTEST" || RUNTEST="runtest
"
10802 case " $configdirs " in
10804 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10811 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10812 ncn_target_tool_prefix=
10813 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10817 if test -n "$AR"; then
10819 elif test -n "$ac_cv_prog_AR"; then
10823 if test -n "$ac_cv_prog_AR"; then
10824 for ncn_progname in ar; do
10825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_progname}; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10828 $as_echo_n "checking
for $ac_word...
" >&6; }
10829 if ${ac_cv_prog_AR+:} false; then :
10830 $as_echo_n "(cached
) " >&6
10832 if test -n "$AR"; then
10833 ac_cv_prog_AR="$AR" # Let the user override the test.
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_prog_AR="${ncn_progname}"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10853 if test -n "$AR"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10855 $as_echo "$AR" >&6; }
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10858 $as_echo "no
" >&6; }
10865 for ncn_progname in ar; do
10866 if test -n "$ncn_tool_prefix"; then
10867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10868 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10870 $as_echo_n "checking
for $ac_word...
" >&6; }
10871 if ${ac_cv_prog_AR+:} false; then :
10872 $as_echo_n "(cached
) " >&6
10874 if test -n "$AR"; then
10875 ac_cv_prog_AR="$AR" # Let the user override the test.
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10895 if test -n "$AR"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10897 $as_echo "$AR" >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10900 $as_echo "no
" >&6; }
10905 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10907 set dummy ${ncn_progname}; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10909 $as_echo_n "checking
for $ac_word...
" >&6; }
10910 if ${ac_cv_prog_AR+:} false; then :
10911 $as_echo_n "(cached
) " >&6
10913 if test -n "$AR"; then
10914 ac_cv_prog_AR="$AR" # Let the user override the test.
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_AR="${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10934 if test -n "$AR"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10936 $as_echo "$AR" >&6; }
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10939 $as_echo "no
" >&6; }
10944 test -n "$ac_cv_prog_AR" && break
10947 if test -z "$ac_cv_prog_AR" ; then
10949 if test $build = $host ; then
10952 AR="${ncn_tool_prefix}$2"
10958 if test -n "$AS"; then
10960 elif test -n "$ac_cv_prog_AS"; then
10964 if test -n "$ac_cv_prog_AS"; then
10965 for ncn_progname in as; do
10966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967 set dummy ${ncn_progname}; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10969 $as_echo_n "checking
for $ac_word...
" >&6; }
10970 if ${ac_cv_prog_AS+:} false; then :
10971 $as_echo_n "(cached
) " >&6
10973 if test -n "$AS"; then
10974 ac_cv_prog_AS="$AS" # Let the user override the test.
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_AS="${ncn_progname}"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10994 if test -n "$AS"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10996 $as_echo "$AS" >&6; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10999 $as_echo "no
" >&6; }
11006 for ncn_progname in as; do
11007 if test -n "$ncn_tool_prefix"; then
11008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11011 $as_echo_n "checking
for $ac_word...
" >&6; }
11012 if ${ac_cv_prog_AS+:} false; then :
11013 $as_echo_n "(cached
) " >&6
11015 if test -n "$AS"; then
11016 ac_cv_prog_AS="$AS" # Let the user override the test.
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11036 if test -n "$AS"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11038 $as_echo "$AS" >&6; }
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11041 $as_echo "no
" >&6; }
11046 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048 set dummy ${ncn_progname}; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11050 $as_echo_n "checking
for $ac_word...
" >&6; }
11051 if ${ac_cv_prog_AS+:} false; then :
11052 $as_echo_n "(cached
) " >&6
11054 if test -n "$AS"; then
11055 ac_cv_prog_AS="$AS" # Let the user override the test.
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11064 ac_cv_prog_AS="${ncn_progname}"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11075 if test -n "$AS"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11077 $as_echo "$AS" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11080 $as_echo "no
" >&6; }
11085 test -n "$ac_cv_prog_AS" && break
11088 if test -z "$ac_cv_prog_AS" ; then
11090 if test $build = $host ; then
11093 AS="${ncn_tool_prefix}$2"
11099 if test -n "$DLLTOOL"; then
11100 ac_cv_prog_DLLTOOL=$DLLTOOL
11101 elif test -n "$ac_cv_prog_DLLTOOL"; then
11102 DLLTOOL=$ac_cv_prog_DLLTOOL
11105 if test -n "$ac_cv_prog_DLLTOOL"; then
11106 for ncn_progname in dlltool; do
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108 set dummy ${ncn_progname}; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11110 $as_echo_n "checking
for $ac_word...
" >&6; }
11111 if ${ac_cv_prog_DLLTOOL+:} false; then :
11112 $as_echo_n "(cached
) " >&6
11114 if test -n "$DLLTOOL"; then
11115 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_DLLTOOL="${ncn_progname}"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11134 DLLTOOL=$ac_cv_prog_DLLTOOL
11135 if test -n "$DLLTOOL"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11137 $as_echo "$DLLTOOL" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11140 $as_echo "no
" >&6; }
11147 for ncn_progname in dlltool; do
11148 if test -n "$ncn_tool_prefix"; then
11149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11152 $as_echo_n "checking
for $ac_word...
" >&6; }
11153 if ${ac_cv_prog_DLLTOOL+:} false; then :
11154 $as_echo_n "(cached
) " >&6
11156 if test -n "$DLLTOOL"; then
11157 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11176 DLLTOOL=$ac_cv_prog_DLLTOOL
11177 if test -n "$DLLTOOL"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11179 $as_echo "$DLLTOOL" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11182 $as_echo "no
" >&6; }
11187 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11189 set dummy ${ncn_progname}; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11191 $as_echo_n "checking
for $ac_word...
" >&6; }
11192 if ${ac_cv_prog_DLLTOOL+:} false; then :
11193 $as_echo_n "(cached
) " >&6
11195 if test -n "$DLLTOOL"; then
11196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_prog_DLLTOOL="${ncn_progname}"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11215 DLLTOOL=$ac_cv_prog_DLLTOOL
11216 if test -n "$DLLTOOL"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11218 $as_echo "$DLLTOOL" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11221 $as_echo "no
" >&6; }
11226 test -n "$ac_cv_prog_DLLTOOL" && break
11229 if test -z "$ac_cv_prog_DLLTOOL" ; then
11231 if test $build = $host ; then
11234 DLLTOOL="${ncn_tool_prefix}$2"
11240 if test -n "$DSYMUTIL"; then
11241 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11242 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11243 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11246 if test -n "$ac_cv_prog_DSYMUTIL"; then
11247 for ncn_progname in dsymutil; do
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249 set dummy ${ncn_progname}; ac_word=$2
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11251 $as_echo_n "checking
for $ac_word...
" >&6; }
11252 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11253 $as_echo_n "(cached
) " >&6
11255 if test -n "$DSYMUTIL"; then
11256 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11275 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11276 if test -n "$DSYMUTIL"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11278 $as_echo "$DSYMUTIL" >&6; }
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11281 $as_echo "no
" >&6; }
11288 for ncn_progname in dsymutil; do
11289 if test -n "$ncn_tool_prefix"; then
11290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11293 $as_echo_n "checking
for $ac_word...
" >&6; }
11294 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11295 $as_echo_n "(cached
) " >&6
11297 if test -n "$DSYMUTIL"; then
11298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11317 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11318 if test -n "$DSYMUTIL"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11320 $as_echo "$DSYMUTIL" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11323 $as_echo "no
" >&6; }
11328 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330 set dummy ${ncn_progname}; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11332 $as_echo_n "checking
for $ac_word...
" >&6; }
11333 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11334 $as_echo_n "(cached
) " >&6
11336 if test -n "$DSYMUTIL"; then
11337 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11356 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11357 if test -n "$DSYMUTIL"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11359 $as_echo "$DSYMUTIL" >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11362 $as_echo "no
" >&6; }
11367 test -n "$ac_cv_prog_DSYMUTIL" && break
11370 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11372 if test $build = $host ; then
11375 DSYMUTIL="${ncn_tool_prefix}$2"
11381 if test -n "$LD"; then
11383 elif test -n "$ac_cv_prog_LD"; then
11387 if test -n "$ac_cv_prog_LD"; then
11388 for ncn_progname in ld; do
11389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11390 set dummy ${ncn_progname}; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11392 $as_echo_n "checking
for $ac_word...
" >&6; }
11393 if ${ac_cv_prog_LD+:} false; then :
11394 $as_echo_n "(cached
) " >&6
11396 if test -n "$LD"; then
11397 ac_cv_prog_LD="$LD" # Let the user override the test.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406 ac_cv_prog_LD="${ncn_progname}"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11417 if test -n "$LD"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11419 $as_echo "$LD" >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11422 $as_echo "no
" >&6; }
11429 for ncn_progname in ld; do
11430 if test -n "$ncn_tool_prefix"; then
11431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11434 $as_echo_n "checking
for $ac_word...
" >&6; }
11435 if ${ac_cv_prog_LD+:} false; then :
11436 $as_echo_n "(cached
) " >&6
11438 if test -n "$LD"; then
11439 ac_cv_prog_LD="$LD" # Let the user override the test.
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11448 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11459 if test -n "$LD"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11461 $as_echo "$LD" >&6; }
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11464 $as_echo "no
" >&6; }
11469 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11471 set dummy ${ncn_progname}; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11473 $as_echo_n "checking
for $ac_word...
" >&6; }
11474 if ${ac_cv_prog_LD+:} false; then :
11475 $as_echo_n "(cached
) " >&6
11477 if test -n "$LD"; then
11478 ac_cv_prog_LD="$LD" # Let the user override the test.
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_prog_LD="${ncn_progname}"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11498 if test -n "$LD"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11500 $as_echo "$LD" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11503 $as_echo "no
" >&6; }
11508 test -n "$ac_cv_prog_LD" && break
11511 if test -z "$ac_cv_prog_LD" ; then
11513 if test $build = $host ; then
11516 LD="${ncn_tool_prefix}$2"
11522 if test -n "$LIPO"; then
11523 ac_cv_prog_LIPO=$LIPO
11524 elif test -n "$ac_cv_prog_LIPO"; then
11525 LIPO=$ac_cv_prog_LIPO
11528 if test -n "$ac_cv_prog_LIPO"; then
11529 for ncn_progname in lipo; do
11530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11531 set dummy ${ncn_progname}; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11533 $as_echo_n "checking
for $ac_word...
" >&6; }
11534 if ${ac_cv_prog_LIPO+:} false; then :
11535 $as_echo_n "(cached
) " >&6
11537 if test -n "$LIPO"; then
11538 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547 ac_cv_prog_LIPO="${ncn_progname}"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11557 LIPO=$ac_cv_prog_LIPO
11558 if test -n "$LIPO"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11560 $as_echo "$LIPO" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11563 $as_echo "no
" >&6; }
11570 for ncn_progname in lipo; do
11571 if test -n "$ncn_tool_prefix"; then
11572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11575 $as_echo_n "checking
for $ac_word...
" >&6; }
11576 if ${ac_cv_prog_LIPO+:} false; then :
11577 $as_echo_n "(cached
) " >&6
11579 if test -n "$LIPO"; then
11580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11599 LIPO=$ac_cv_prog_LIPO
11600 if test -n "$LIPO"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11602 $as_echo "$LIPO" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11605 $as_echo "no
" >&6; }
11610 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11614 $as_echo_n "checking
for $ac_word...
" >&6; }
11615 if ${ac_cv_prog_LIPO+:} false; then :
11616 $as_echo_n "(cached
) " >&6
11618 if test -n "$LIPO"; then
11619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_LIPO="${ncn_progname}"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11638 LIPO=$ac_cv_prog_LIPO
11639 if test -n "$LIPO"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11641 $as_echo "$LIPO" >&6; }
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11644 $as_echo "no
" >&6; }
11649 test -n "$ac_cv_prog_LIPO" && break
11652 if test -z "$ac_cv_prog_LIPO" ; then
11654 if test $build = $host ; then
11657 LIPO="${ncn_tool_prefix}$2"
11663 if test -n "$NM"; then
11665 elif test -n "$ac_cv_prog_NM"; then
11669 if test -n "$ac_cv_prog_NM"; then
11670 for ncn_progname in nm; do
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11674 $as_echo_n "checking
for $ac_word...
" >&6; }
11675 if ${ac_cv_prog_NM+:} false; then :
11676 $as_echo_n "(cached
) " >&6
11678 if test -n "$NM"; then
11679 ac_cv_prog_NM="$NM" # Let the user override the test.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_prog_NM="${ncn_progname}"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11699 if test -n "$NM"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11701 $as_echo "$NM" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11704 $as_echo "no
" >&6; }
11711 for ncn_progname in nm; do
11712 if test -n "$ncn_tool_prefix"; then
11713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11716 $as_echo_n "checking
for $ac_word...
" >&6; }
11717 if ${ac_cv_prog_NM+:} false; then :
11718 $as_echo_n "(cached
) " >&6
11720 if test -n "$NM"; then
11721 ac_cv_prog_NM="$NM" # Let the user override the test.
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11741 if test -n "$NM"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11743 $as_echo "$NM" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11746 $as_echo "no
" >&6; }
11751 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11753 set dummy ${ncn_progname}; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11755 $as_echo_n "checking
for $ac_word...
" >&6; }
11756 if ${ac_cv_prog_NM+:} false; then :
11757 $as_echo_n "(cached
) " >&6
11759 if test -n "$NM"; then
11760 ac_cv_prog_NM="$NM" # Let the user override the test.
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_NM="${ncn_progname}"
11770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11780 if test -n "$NM"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11782 $as_echo "$NM" >&6; }
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11785 $as_echo "no
" >&6; }
11790 test -n "$ac_cv_prog_NM" && break
11793 if test -z "$ac_cv_prog_NM" ; then
11795 if test $build = $host ; then
11798 NM="${ncn_tool_prefix}$2"
11804 if test -n "$RANLIB"; then
11805 ac_cv_prog_RANLIB=$RANLIB
11806 elif test -n "$ac_cv_prog_RANLIB"; then
11807 RANLIB=$ac_cv_prog_RANLIB
11810 if test -n "$ac_cv_prog_RANLIB"; then
11811 for ncn_progname in ranlib; do
11812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11813 set dummy ${ncn_progname}; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11815 $as_echo_n "checking
for $ac_word...
" >&6; }
11816 if ${ac_cv_prog_RANLIB+:} false; then :
11817 $as_echo_n "(cached
) " >&6
11819 if test -n "$RANLIB"; then
11820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_prog_RANLIB="${ncn_progname}"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11839 RANLIB=$ac_cv_prog_RANLIB
11840 if test -n "$RANLIB"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11842 $as_echo "$RANLIB" >&6; }
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11845 $as_echo "no
" >&6; }
11852 for ncn_progname in ranlib; do
11853 if test -n "$ncn_tool_prefix"; then
11854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11857 $as_echo_n "checking
for $ac_word...
" >&6; }
11858 if ${ac_cv_prog_RANLIB+:} false; then :
11859 $as_echo_n "(cached
) " >&6
11861 if test -n "$RANLIB"; then
11862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11881 RANLIB=$ac_cv_prog_RANLIB
11882 if test -n "$RANLIB"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11884 $as_echo "$RANLIB" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11887 $as_echo "no
" >&6; }
11892 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11896 $as_echo_n "checking
for $ac_word...
" >&6; }
11897 if ${ac_cv_prog_RANLIB+:} false; then :
11898 $as_echo_n "(cached
) " >&6
11900 if test -n "$RANLIB"; then
11901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_RANLIB="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11920 RANLIB=$ac_cv_prog_RANLIB
11921 if test -n "$RANLIB"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11923 $as_echo "$RANLIB" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11926 $as_echo "no
" >&6; }
11931 test -n "$ac_cv_prog_RANLIB" && break
11934 if test -z "$ac_cv_prog_RANLIB" ; then
11940 if test -n "$STRIP"; then
11941 ac_cv_prog_STRIP=$STRIP
11942 elif test -n "$ac_cv_prog_STRIP"; then
11943 STRIP=$ac_cv_prog_STRIP
11946 if test -n "$ac_cv_prog_STRIP"; then
11947 for ncn_progname in strip; do
11948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949 set dummy ${ncn_progname}; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11951 $as_echo_n "checking
for $ac_word...
" >&6; }
11952 if ${ac_cv_prog_STRIP+:} false; then :
11953 $as_echo_n "(cached
) " >&6
11955 if test -n "$STRIP"; then
11956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_prog_STRIP="${ncn_progname}"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11975 STRIP=$ac_cv_prog_STRIP
11976 if test -n "$STRIP"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11978 $as_echo "$STRIP" >&6; }
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11981 $as_echo "no
" >&6; }
11988 for ncn_progname in strip; do
11989 if test -n "$ncn_tool_prefix"; then
11990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11993 $as_echo_n "checking
for $ac_word...
" >&6; }
11994 if ${ac_cv_prog_STRIP+:} false; then :
11995 $as_echo_n "(cached
) " >&6
11997 if test -n "$STRIP"; then
11998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12017 STRIP=$ac_cv_prog_STRIP
12018 if test -n "$STRIP"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12020 $as_echo "$STRIP" >&6; }
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12023 $as_echo "no
" >&6; }
12028 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030 set dummy ${ncn_progname}; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12032 $as_echo_n "checking
for $ac_word...
" >&6; }
12033 if ${ac_cv_prog_STRIP+:} false; then :
12034 $as_echo_n "(cached
) " >&6
12036 if test -n "$STRIP"; then
12037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_prog_STRIP="${ncn_progname}"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12056 STRIP=$ac_cv_prog_STRIP
12057 if test -n "$STRIP"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12059 $as_echo "$STRIP" >&6; }
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12062 $as_echo "no
" >&6; }
12067 test -n "$ac_cv_prog_STRIP" && break
12070 if test -z "$ac_cv_prog_STRIP" ; then
12076 if test -n "$WINDRES"; then
12077 ac_cv_prog_WINDRES=$WINDRES
12078 elif test -n "$ac_cv_prog_WINDRES"; then
12079 WINDRES=$ac_cv_prog_WINDRES
12082 if test -n "$ac_cv_prog_WINDRES"; then
12083 for ncn_progname in windres; do
12084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12087 $as_echo_n "checking
for $ac_word...
" >&6; }
12088 if ${ac_cv_prog_WINDRES+:} false; then :
12089 $as_echo_n "(cached
) " >&6
12091 if test -n "$WINDRES"; then
12092 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_WINDRES="${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12111 WINDRES=$ac_cv_prog_WINDRES
12112 if test -n "$WINDRES"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12114 $as_echo "$WINDRES" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12117 $as_echo "no
" >&6; }
12124 for ncn_progname in windres; do
12125 if test -n "$ncn_tool_prefix"; then
12126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12129 $as_echo_n "checking
for $ac_word...
" >&6; }
12130 if ${ac_cv_prog_WINDRES+:} false; then :
12131 $as_echo_n "(cached
) " >&6
12133 if test -n "$WINDRES"; then
12134 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12153 WINDRES=$ac_cv_prog_WINDRES
12154 if test -n "$WINDRES"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12156 $as_echo "$WINDRES" >&6; }
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12159 $as_echo "no
" >&6; }
12164 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166 set dummy ${ncn_progname}; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12168 $as_echo_n "checking
for $ac_word...
" >&6; }
12169 if ${ac_cv_prog_WINDRES+:} false; then :
12170 $as_echo_n "(cached
) " >&6
12172 if test -n "$WINDRES"; then
12173 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_prog_WINDRES="${ncn_progname}"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12192 WINDRES=$ac_cv_prog_WINDRES
12193 if test -n "$WINDRES"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12195 $as_echo "$WINDRES" >&6; }
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12198 $as_echo "no
" >&6; }
12203 test -n "$ac_cv_prog_WINDRES" && break
12206 if test -z "$ac_cv_prog_WINDRES" ; then
12208 if test $build = $host ; then
12211 WINDRES="${ncn_tool_prefix}$2"
12217 if test -n "$WINDMC"; then
12218 ac_cv_prog_WINDMC=$WINDMC
12219 elif test -n "$ac_cv_prog_WINDMC"; then
12220 WINDMC=$ac_cv_prog_WINDMC
12223 if test -n "$ac_cv_prog_WINDMC"; then
12224 for ncn_progname in windmc; do
12225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12226 set dummy ${ncn_progname}; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12228 $as_echo_n "checking
for $ac_word...
" >&6; }
12229 if ${ac_cv_prog_WINDMC+:} false; then :
12230 $as_echo_n "(cached
) " >&6
12232 if test -n "$WINDMC"; then
12233 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_WINDMC="${ncn_progname}"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12252 WINDMC=$ac_cv_prog_WINDMC
12253 if test -n "$WINDMC"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12255 $as_echo "$WINDMC" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12258 $as_echo "no
" >&6; }
12265 for ncn_progname in windmc; do
12266 if test -n "$ncn_tool_prefix"; then
12267 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12268 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12270 $as_echo_n "checking
for $ac_word...
" >&6; }
12271 if ${ac_cv_prog_WINDMC+:} false; then :
12272 $as_echo_n "(cached
) " >&6
12274 if test -n "$WINDMC"; then
12275 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12294 WINDMC=$ac_cv_prog_WINDMC
12295 if test -n "$WINDMC"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12297 $as_echo "$WINDMC" >&6; }
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12300 $as_echo "no
" >&6; }
12305 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12307 set dummy ${ncn_progname}; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12309 $as_echo_n "checking
for $ac_word...
" >&6; }
12310 if ${ac_cv_prog_WINDMC+:} false; then :
12311 $as_echo_n "(cached
) " >&6
12313 if test -n "$WINDMC"; then
12314 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_prog_WINDMC="${ncn_progname}"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12333 WINDMC=$ac_cv_prog_WINDMC
12334 if test -n "$WINDMC"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12336 $as_echo "$WINDMC" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12339 $as_echo "no
" >&6; }
12344 test -n "$ac_cv_prog_WINDMC" && break
12347 if test -z "$ac_cv_prog_WINDMC" ; then
12349 if test $build = $host ; then
12352 WINDMC="${ncn_tool_prefix}$2"
12358 if test -n "$OBJCOPY"; then
12359 ac_cv_prog_OBJCOPY=$OBJCOPY
12360 elif test -n "$ac_cv_prog_OBJCOPY"; then
12361 OBJCOPY=$ac_cv_prog_OBJCOPY
12364 if test -n "$ac_cv_prog_OBJCOPY"; then
12365 for ncn_progname in objcopy; do
12366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12367 set dummy ${ncn_progname}; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12369 $as_echo_n "checking
for $ac_word...
" >&6; }
12370 if ${ac_cv_prog_OBJCOPY+:} false; then :
12371 $as_echo_n "(cached
) " >&6
12373 if test -n "$OBJCOPY"; then
12374 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_OBJCOPY="${ncn_progname}"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12393 OBJCOPY=$ac_cv_prog_OBJCOPY
12394 if test -n "$OBJCOPY"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12396 $as_echo "$OBJCOPY" >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12399 $as_echo "no
" >&6; }
12406 for ncn_progname in objcopy; do
12407 if test -n "$ncn_tool_prefix"; then
12408 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12409 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12411 $as_echo_n "checking
for $ac_word...
" >&6; }
12412 if ${ac_cv_prog_OBJCOPY+:} false; then :
12413 $as_echo_n "(cached
) " >&6
12415 if test -n "$OBJCOPY"; then
12416 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12435 OBJCOPY=$ac_cv_prog_OBJCOPY
12436 if test -n "$OBJCOPY"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12438 $as_echo "$OBJCOPY" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12441 $as_echo "no
" >&6; }
12446 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12448 set dummy ${ncn_progname}; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12450 $as_echo_n "checking
for $ac_word...
" >&6; }
12451 if ${ac_cv_prog_OBJCOPY+:} false; then :
12452 $as_echo_n "(cached
) " >&6
12454 if test -n "$OBJCOPY"; then
12455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464 ac_cv_prog_OBJCOPY="${ncn_progname}"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12474 OBJCOPY=$ac_cv_prog_OBJCOPY
12475 if test -n "$OBJCOPY"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12477 $as_echo "$OBJCOPY" >&6; }
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12480 $as_echo "no
" >&6; }
12485 test -n "$ac_cv_prog_OBJCOPY" && break
12488 if test -z "$ac_cv_prog_OBJCOPY" ; then
12490 if test $build = $host ; then
12493 OBJCOPY="${ncn_tool_prefix}$2"
12499 if test -n "$OBJDUMP"; then
12500 ac_cv_prog_OBJDUMP=$OBJDUMP
12501 elif test -n "$ac_cv_prog_OBJDUMP"; then
12502 OBJDUMP=$ac_cv_prog_OBJDUMP
12505 if test -n "$ac_cv_prog_OBJDUMP"; then
12506 for ncn_progname in objdump; do
12507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508 set dummy ${ncn_progname}; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12510 $as_echo_n "checking
for $ac_word...
" >&6; }
12511 if ${ac_cv_prog_OBJDUMP+:} false; then :
12512 $as_echo_n "(cached
) " >&6
12514 if test -n "$OBJDUMP"; then
12515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12524 ac_cv_prog_OBJDUMP="${ncn_progname}"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12534 OBJDUMP=$ac_cv_prog_OBJDUMP
12535 if test -n "$OBJDUMP"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12537 $as_echo "$OBJDUMP" >&6; }
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12540 $as_echo "no
" >&6; }
12547 for ncn_progname in objdump; do
12548 if test -n "$ncn_tool_prefix"; then
12549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12550 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12552 $as_echo_n "checking
for $ac_word...
" >&6; }
12553 if ${ac_cv_prog_OBJDUMP+:} false; then :
12554 $as_echo_n "(cached
) " >&6
12556 if test -n "$OBJDUMP"; then
12557 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12566 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12576 OBJDUMP=$ac_cv_prog_OBJDUMP
12577 if test -n "$OBJDUMP"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12579 $as_echo "$OBJDUMP" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12582 $as_echo "no
" >&6; }
12587 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12589 set dummy ${ncn_progname}; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12591 $as_echo_n "checking
for $ac_word...
" >&6; }
12592 if ${ac_cv_prog_OBJDUMP+:} false; then :
12593 $as_echo_n "(cached
) " >&6
12595 if test -n "$OBJDUMP"; then
12596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_prog_OBJDUMP="${ncn_progname}"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12615 OBJDUMP=$ac_cv_prog_OBJDUMP
12616 if test -n "$OBJDUMP"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12618 $as_echo "$OBJDUMP" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12621 $as_echo "no
" >&6; }
12626 test -n "$ac_cv_prog_OBJDUMP" && break
12629 if test -z "$ac_cv_prog_OBJDUMP" ; then
12631 if test $build = $host ; then
12634 OBJDUMP="${ncn_tool_prefix}$2"
12640 if test -n "$OTOOL"; then
12641 ac_cv_prog_OTOOL=$OTOOL
12642 elif test -n "$ac_cv_prog_OTOOL"; then
12643 OTOOL=$ac_cv_prog_OTOOL
12646 if test -n "$ac_cv_prog_OTOOL"; then
12647 for ncn_progname in otool; do
12648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12649 set dummy ${ncn_progname}; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12651 $as_echo_n "checking
for $ac_word...
" >&6; }
12652 if ${ac_cv_prog_OTOOL+:} false; then :
12653 $as_echo_n "(cached
) " >&6
12655 if test -n "$OTOOL"; then
12656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_OTOOL="${ncn_progname}"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12675 OTOOL=$ac_cv_prog_OTOOL
12676 if test -n "$OTOOL"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12678 $as_echo "$OTOOL" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12681 $as_echo "no
" >&6; }
12688 for ncn_progname in otool; do
12689 if test -n "$ncn_tool_prefix"; then
12690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12691 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12693 $as_echo_n "checking
for $ac_word...
" >&6; }
12694 if ${ac_cv_prog_OTOOL+:} false; then :
12695 $as_echo_n "(cached
) " >&6
12697 if test -n "$OTOOL"; then
12698 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12717 OTOOL=$ac_cv_prog_OTOOL
12718 if test -n "$OTOOL"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12720 $as_echo "$OTOOL" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12723 $as_echo "no
" >&6; }
12728 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12730 set dummy ${ncn_progname}; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12732 $as_echo_n "checking
for $ac_word...
" >&6; }
12733 if ${ac_cv_prog_OTOOL+:} false; then :
12734 $as_echo_n "(cached
) " >&6
12736 if test -n "$OTOOL"; then
12737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746 ac_cv_prog_OTOOL="${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12756 OTOOL=$ac_cv_prog_OTOOL
12757 if test -n "$OTOOL"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12759 $as_echo "$OTOOL" >&6; }
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12762 $as_echo "no
" >&6; }
12767 test -n "$ac_cv_prog_OTOOL" && break
12770 if test -z "$ac_cv_prog_OTOOL" ; then
12772 if test $build = $host ; then
12775 OTOOL="${ncn_tool_prefix}$2"
12781 if test -n "$READELF"; then
12782 ac_cv_prog_READELF=$READELF
12783 elif test -n "$ac_cv_prog_READELF"; then
12784 READELF=$ac_cv_prog_READELF
12787 if test -n "$ac_cv_prog_READELF"; then
12788 for ncn_progname in readelf; do
12789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790 set dummy ${ncn_progname}; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12792 $as_echo_n "checking
for $ac_word...
" >&6; }
12793 if ${ac_cv_prog_READELF+:} false; then :
12794 $as_echo_n "(cached
) " >&6
12796 if test -n "$READELF"; then
12797 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12806 ac_cv_prog_READELF="${ncn_progname}"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12816 READELF=$ac_cv_prog_READELF
12817 if test -n "$READELF"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12819 $as_echo "$READELF" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12822 $as_echo "no
" >&6; }
12829 for ncn_progname in readelf; do
12830 if test -n "$ncn_tool_prefix"; then
12831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12834 $as_echo_n "checking
for $ac_word...
" >&6; }
12835 if ${ac_cv_prog_READELF+:} false; then :
12836 $as_echo_n "(cached
) " >&6
12838 if test -n "$READELF"; then
12839 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12858 READELF=$ac_cv_prog_READELF
12859 if test -n "$READELF"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12861 $as_echo "$READELF" >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12864 $as_echo "no
" >&6; }
12869 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12873 $as_echo_n "checking
for $ac_word...
" >&6; }
12874 if ${ac_cv_prog_READELF+:} false; then :
12875 $as_echo_n "(cached
) " >&6
12877 if test -n "$READELF"; then
12878 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_prog_READELF="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12897 READELF=$ac_cv_prog_READELF
12898 if test -n "$READELF"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12900 $as_echo "$READELF" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12903 $as_echo "no
" >&6; }
12908 test -n "$ac_cv_prog_READELF" && break
12911 if test -z "$ac_cv_prog_READELF" ; then
12913 if test $build = $host ; then
12916 READELF="${ncn_tool_prefix}$2"
12929 # Check whether --with-build-time-tools was given.
12930 if test "${with_build_time_tools+set}" = set; then :
12931 withval=$with_build_time_tools; case x"$withval" in
12934 with_build_time_tools=
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12936 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12940 with_build_time_tools=
12946 if test -n "$CC_FOR_TARGET"; then
12947 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12948 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12952 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12953 for ncn_progname in cc gcc; do
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12955 set dummy ${ncn_progname}; ac_word=$2
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12957 $as_echo_n "checking
for $ac_word...
" >&6; }
12958 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12959 $as_echo_n "(cached
) " >&6
12961 if test -n "$CC_FOR_TARGET"; then
12962 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12971 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12981 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12982 if test -n "$CC_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12984 $as_echo "$CC_FOR_TARGET" >&6; }
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12987 $as_echo "no
" >&6; }
12994 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12995 for ncn_progname in cc gcc; do
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12997 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12998 if test -x $with_build_time_tools/${ncn_progname}; then
12999 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13001 $as_echo "yes" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13005 $as_echo "no
" >&6; }
13010 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13011 for ncn_progname in cc gcc; do
13012 if test -n "$ncn_target_tool_prefix"; then
13013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13014 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13016 $as_echo_n "checking
for $ac_word...
" >&6; }
13017 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13018 $as_echo_n "(cached
) " >&6
13020 if test -n "$CC_FOR_TARGET"; then
13021 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13040 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13041 if test -n "$CC_FOR_TARGET"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13043 $as_echo "$CC_FOR_TARGET" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13046 $as_echo "no
" >&6; }
13051 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13053 set dummy ${ncn_progname}; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13055 $as_echo_n "checking
for $ac_word...
" >&6; }
13056 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13057 $as_echo_n "(cached
) " >&6
13059 if test -n "$CC_FOR_TARGET"; then
13060 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13069 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13079 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13080 if test -n "$CC_FOR_TARGET"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13082 $as_echo "$CC_FOR_TARGET" >&6; }
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13085 $as_echo "no
" >&6; }
13090 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13094 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13096 if test $build = $target ; then
13099 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13102 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13107 if test -n "$CXX_FOR_TARGET"; then
13108 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13109 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13113 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13114 for ncn_progname in c++ g++ cxx gxx; do
13115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13116 set dummy ${ncn_progname}; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13118 $as_echo_n "checking
for $ac_word...
" >&6; }
13119 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13120 $as_echo_n "(cached
) " >&6
13122 if test -n "$CXX_FOR_TARGET"; then
13123 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13132 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13142 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13143 if test -n "$CXX_FOR_TARGET"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13145 $as_echo "$CXX_FOR_TARGET" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13148 $as_echo "no
" >&6; }
13155 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13156 for ncn_progname in c++ g++ cxx gxx; do
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13158 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13159 if test -x $with_build_time_tools/${ncn_progname}; then
13160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13162 $as_echo "yes" >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13166 $as_echo "no
" >&6; }
13171 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13172 for ncn_progname in c++ g++ cxx gxx; do
13173 if test -n "$ncn_target_tool_prefix"; then
13174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13177 $as_echo_n "checking
for $ac_word...
" >&6; }
13178 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13179 $as_echo_n "(cached
) " >&6
13181 if test -n "$CXX_FOR_TARGET"; then
13182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13201 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13202 if test -n "$CXX_FOR_TARGET"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13204 $as_echo "$CXX_FOR_TARGET" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13207 $as_echo "no
" >&6; }
13212 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13214 set dummy ${ncn_progname}; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13216 $as_echo_n "checking
for $ac_word...
" >&6; }
13217 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13218 $as_echo_n "(cached
) " >&6
13220 if test -n "$CXX_FOR_TARGET"; then
13221 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13240 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13241 if test -n "$CXX_FOR_TARGET"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13243 $as_echo "$CXX_FOR_TARGET" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13246 $as_echo "no
" >&6; }
13251 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13255 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13256 set dummy c++ g++ cxx gxx
13257 if test $build = $target ; then
13258 CXX_FOR_TARGET="$2"
13260 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13263 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13268 if test -n "$GCC_FOR_TARGET"; then
13269 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13270 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13274 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13275 for ncn_progname in gcc; do
13276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13277 set dummy ${ncn_progname}; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13279 $as_echo_n "checking
for $ac_word...
" >&6; }
13280 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13281 $as_echo_n "(cached
) " >&6
13283 if test -n "$GCC_FOR_TARGET"; then
13284 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13303 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13304 if test -n "$GCC_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13306 $as_echo "$GCC_FOR_TARGET" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13309 $as_echo "no
" >&6; }
13316 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13317 for ncn_progname in gcc; do
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13319 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13320 if test -x $with_build_time_tools/${ncn_progname}; then
13321 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13323 $as_echo "yes" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13327 $as_echo "no
" >&6; }
13332 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13333 for ncn_progname in gcc; do
13334 if test -n "$ncn_target_tool_prefix"; then
13335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13336 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13338 $as_echo_n "checking
for $ac_word...
" >&6; }
13339 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13340 $as_echo_n "(cached
) " >&6
13342 if test -n "$GCC_FOR_TARGET"; then
13343 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
13351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13362 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13363 if test -n "$GCC_FOR_TARGET"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13365 $as_echo "$GCC_FOR_TARGET" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13368 $as_echo "no
" >&6; }
13373 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13375 set dummy ${ncn_progname}; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13377 $as_echo_n "checking
for $ac_word...
" >&6; }
13378 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13379 $as_echo_n "(cached
) " >&6
13381 if test -n "$GCC_FOR_TARGET"; then
13382 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13401 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13402 if test -n "$GCC_FOR_TARGET"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13404 $as_echo "$GCC_FOR_TARGET" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13407 $as_echo "no
" >&6; }
13412 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13416 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13417 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13419 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13424 if test -n "$GFORTRAN_FOR_TARGET"; then
13425 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13426 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13427 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13430 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13431 for ncn_progname in gfortran; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13433 set dummy ${ncn_progname}; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13435 $as_echo_n "checking
for $ac_word...
" >&6; }
13436 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13437 $as_echo_n "(cached
) " >&6
13439 if test -n "$GFORTRAN_FOR_TARGET"; then
13440 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13459 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13460 if test -n "$GFORTRAN_FOR_TARGET"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13462 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13465 $as_echo "no
" >&6; }
13472 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13473 for ncn_progname in gfortran; do
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13475 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13479 $as_echo "yes" >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13483 $as_echo "no
" >&6; }
13488 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13489 for ncn_progname in gfortran; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13494 $as_echo_n "checking
for $ac_word...
" >&6; }
13495 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13496 $as_echo_n "(cached
) " >&6
13498 if test -n "$GFORTRAN_FOR_TARGET"; then
13499 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13518 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13519 if test -n "$GFORTRAN_FOR_TARGET"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13521 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13524 $as_echo "no
" >&6; }
13529 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531 set dummy ${ncn_progname}; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13533 $as_echo_n "checking
for $ac_word...
" >&6; }
13534 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13535 $as_echo_n "(cached
) " >&6
13537 if test -n "$GFORTRAN_FOR_TARGET"; then
13538 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13557 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13558 if test -n "$GFORTRAN_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13560 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13563 $as_echo "no
" >&6; }
13568 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13572 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13574 if test $build = $target ; then
13575 GFORTRAN_FOR_TARGET="$2"
13577 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13580 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13585 if test -n "$GOC_FOR_TARGET"; then
13586 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13587 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13588 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13591 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13592 for ncn_progname in gccgo; do
13593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13594 set dummy ${ncn_progname}; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13596 $as_echo_n "checking
for $ac_word...
" >&6; }
13597 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13598 $as_echo_n "(cached
) " >&6
13600 if test -n "$GOC_FOR_TARGET"; then
13601 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13610 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13620 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13621 if test -n "$GOC_FOR_TARGET"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13623 $as_echo "$GOC_FOR_TARGET" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13626 $as_echo "no
" >&6; }
13633 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13634 for ncn_progname in gccgo; do
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13636 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13637 if test -x $with_build_time_tools/${ncn_progname}; then
13638 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13640 $as_echo "yes" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13644 $as_echo "no
" >&6; }
13649 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13650 for ncn_progname in gccgo; do
13651 if test -n "$ncn_target_tool_prefix"; then
13652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13653 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13655 $as_echo_n "checking
for $ac_word...
" >&6; }
13656 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13657 $as_echo_n "(cached
) " >&6
13659 if test -n "$GOC_FOR_TARGET"; then
13660 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13666 test -z "$as_dir" && as_dir=.
13667 for ac_exec_ext in '' $ac_executable_extensions; do
13668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13669 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13679 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13680 if test -n "$GOC_FOR_TARGET"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13682 $as_echo "$GOC_FOR_TARGET" >&6; }
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13685 $as_echo "no
" >&6; }
13690 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13692 set dummy ${ncn_progname}; ac_word=$2
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13694 $as_echo_n "checking
for $ac_word...
" >&6; }
13695 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13696 $as_echo_n "(cached
) " >&6
13698 if test -n "$GOC_FOR_TARGET"; then
13699 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13718 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13719 if test -n "$GOC_FOR_TARGET"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13721 $as_echo "$GOC_FOR_TARGET" >&6; }
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13724 $as_echo "no
" >&6; }
13729 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13733 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13735 if test $build = $target ; then
13736 GOC_FOR_TARGET="$2"
13738 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13741 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13746 if test -n "$GDC_FOR_TARGET"; then
13747 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13748 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13749 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13752 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13753 for ncn_progname in gdc; do
13754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13755 set dummy ${ncn_progname}; ac_word=$2
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13757 $as_echo_n "checking
for $ac_word...
" >&6; }
13758 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13759 $as_echo_n "(cached
) " >&6
13761 if test -n "$GDC_FOR_TARGET"; then
13762 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13781 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13782 if test -n "$GDC_FOR_TARGET"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13784 $as_echo "$GDC_FOR_TARGET" >&6; }
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13787 $as_echo "no
" >&6; }
13794 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13795 for ncn_progname in gdc; do
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13797 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13798 if test -x $with_build_time_tools/${ncn_progname}; then
13799 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13801 $as_echo "yes" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13805 $as_echo "no
" >&6; }
13810 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13811 for ncn_progname in gdc; do
13812 if test -n "$ncn_target_tool_prefix"; then
13813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13814 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13816 $as_echo_n "checking
for $ac_word...
" >&6; }
13817 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13818 $as_echo_n "(cached
) " >&6
13820 if test -n "$GDC_FOR_TARGET"; then
13821 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13840 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13841 if test -n "$GDC_FOR_TARGET"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13843 $as_echo "$GDC_FOR_TARGET" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13846 $as_echo "no
" >&6; }
13851 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13853 set dummy ${ncn_progname}; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13855 $as_echo_n "checking
for $ac_word...
" >&6; }
13856 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13857 $as_echo_n "(cached
) " >&6
13859 if test -n "$GDC_FOR_TARGET"; then
13860 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13879 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13880 if test -n "$GDC_FOR_TARGET"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13882 $as_echo "$GDC_FOR_TARGET" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13885 $as_echo "no
" >&6; }
13890 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13894 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13896 if test $build = $target ; then
13897 GDC_FOR_TARGET="$2"
13899 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13902 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13907 if test -n "$GM2_FOR_TARGET"; then
13908 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13909 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13910 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13913 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13914 for ncn_progname in gm2; do
13915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13916 set dummy ${ncn_progname}; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13918 $as_echo_n "checking
for $ac_word...
" >&6; }
13919 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13920 $as_echo_n "(cached
) " >&6
13922 if test -n "$GM2_FOR_TARGET"; then
13923 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13942 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13943 if test -n "$GM2_FOR_TARGET"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13945 $as_echo "$GM2_FOR_TARGET" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13948 $as_echo "no
" >&6; }
13955 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13956 for ncn_progname in gm2; do
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13958 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13959 if test -x $with_build_time_tools/${ncn_progname}; then
13960 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13962 $as_echo "yes" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13966 $as_echo "no
" >&6; }
13971 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13972 for ncn_progname in gm2; do
13973 if test -n "$ncn_target_tool_prefix"; then
13974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13977 $as_echo_n "checking
for $ac_word...
" >&6; }
13978 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13979 $as_echo_n "(cached
) " >&6
13981 if test -n "$GM2_FOR_TARGET"; then
13982 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14001 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14002 if test -n "$GM2_FOR_TARGET"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14004 $as_echo "$GM2_FOR_TARGET" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14007 $as_echo "no
" >&6; }
14012 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14014 set dummy ${ncn_progname}; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14016 $as_echo_n "checking
for $ac_word...
" >&6; }
14017 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14018 $as_echo_n "(cached
) " >&6
14020 if test -n "$GM2_FOR_TARGET"; then
14021 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14040 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14041 if test -n "$GM2_FOR_TARGET"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14043 $as_echo "$GM2_FOR_TARGET" >&6; }
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14046 $as_echo "no
" >&6; }
14051 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14055 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14057 if test $build = $target ; then
14058 GM2_FOR_TARGET="$2"
14060 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14063 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14068 cat > conftest.c << \EOF
14073 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14074 have_gcc_for_target=yes
14076 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14077 have_gcc_for_target=no
14084 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14085 if test -n "$with_build_time_tools"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14087 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14088 if test -x $with_build_time_tools/ar; then
14089 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14090 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14092 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14095 $as_echo "no
" >&6; }
14097 elif test $build != $host && test $have_gcc_for_target = yes; then
14098 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14099 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14100 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14103 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14104 # Extract the first word of "ar", so it can be a program name with args.
14105 set dummy ar; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14107 $as_echo_n "checking
for $ac_word...
" >&6; }
14108 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14109 $as_echo_n "(cached
) " >&6
14111 case $AR_FOR_TARGET in
14113 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $gcc_cv_tool_dirs
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14134 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14135 if test -n "$AR_FOR_TARGET"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14137 $as_echo "$AR_FOR_TARGET" >&6; }
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14140 $as_echo "no
" >&6; }
14145 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14148 if test -n "$AR_FOR_TARGET"; then
14149 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14150 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14151 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14154 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14155 for ncn_progname in ar; do
14156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14157 set dummy ${ncn_progname}; ac_word=$2
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14159 $as_echo_n "checking
for $ac_word...
" >&6; }
14160 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14161 $as_echo_n "(cached
) " >&6
14163 if test -n "$AR_FOR_TARGET"; then
14164 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14183 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14184 if test -n "$AR_FOR_TARGET"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14186 $as_echo "$AR_FOR_TARGET" >&6; }
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14189 $as_echo "no
" >&6; }
14196 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14197 for ncn_progname in ar; do
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14199 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14200 if test -x $with_build_time_tools/${ncn_progname}; then
14201 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14203 $as_echo "yes" >&6; }
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14207 $as_echo "no
" >&6; }
14212 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14213 for ncn_progname in ar; do
14214 if test -n "$ncn_target_tool_prefix"; then
14215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14218 $as_echo_n "checking
for $ac_word...
" >&6; }
14219 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14220 $as_echo_n "(cached
) " >&6
14222 if test -n "$AR_FOR_TARGET"; then
14223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14242 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14243 if test -n "$AR_FOR_TARGET"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14245 $as_echo "$AR_FOR_TARGET" >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14248 $as_echo "no
" >&6; }
14253 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14255 set dummy ${ncn_progname}; ac_word=$2
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14257 $as_echo_n "checking
for $ac_word...
" >&6; }
14258 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14259 $as_echo_n "(cached
) " >&6
14261 if test -n "$AR_FOR_TARGET"; then
14262 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14268 test -z "$as_dir" && as_dir=.
14269 for ac_exec_ext in '' $ac_executable_extensions; do
14270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14272 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14281 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14282 if test -n "$AR_FOR_TARGET"; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14284 $as_echo "$AR_FOR_TARGET" >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14287 $as_echo "no
" >&6; }
14292 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14296 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14298 if test $build = $target ; then
14301 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14304 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14308 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14314 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14315 if test -n "$with_build_time_tools"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14317 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14318 if test -x $with_build_time_tools/as; then
14319 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14320 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14322 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14325 $as_echo "no
" >&6; }
14327 elif test $build != $host && test $have_gcc_for_target = yes; then
14328 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14329 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14330 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14333 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14334 # Extract the first word of "as
", so it can be a program name with args.
14335 set dummy as; ac_word=$2
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14337 $as_echo_n "checking
for $ac_word...
" >&6; }
14338 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14339 $as_echo_n "(cached
) " >&6
14341 case $AS_FOR_TARGET in
14343 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $gcc_cv_tool_dirs
14350 test -z "$as_dir" && as_dir=.
14351 for ac_exec_ext in '' $ac_executable_extensions; do
14352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14353 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14354 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14364 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14365 if test -n "$AS_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14367 $as_echo "$AS_FOR_TARGET" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14370 $as_echo "no
" >&6; }
14375 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14378 if test -n "$AS_FOR_TARGET"; then
14379 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14380 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14381 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14384 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14385 for ncn_progname in as; do
14386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14387 set dummy ${ncn_progname}; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14389 $as_echo_n "checking
for $ac_word...
" >&6; }
14390 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14391 $as_echo_n "(cached
) " >&6
14393 if test -n "$AS_FOR_TARGET"; then
14394 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14400 test -z "$as_dir" && as_dir=.
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14413 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14414 if test -n "$AS_FOR_TARGET"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14416 $as_echo "$AS_FOR_TARGET" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14419 $as_echo "no
" >&6; }
14426 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14427 for ncn_progname in as; do
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14429 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14430 if test -x $with_build_time_tools/${ncn_progname}; then
14431 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14433 $as_echo "yes" >&6; }
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14437 $as_echo "no
" >&6; }
14442 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14443 for ncn_progname in as; do
14444 if test -n "$ncn_target_tool_prefix"; then
14445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14448 $as_echo_n "checking
for $ac_word...
" >&6; }
14449 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14450 $as_echo_n "(cached
) " >&6
14452 if test -n "$AS_FOR_TARGET"; then
14453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14463 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14472 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14473 if test -n "$AS_FOR_TARGET"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14475 $as_echo "$AS_FOR_TARGET" >&6; }
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14478 $as_echo "no
" >&6; }
14483 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14485 set dummy ${ncn_progname}; ac_word=$2
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14487 $as_echo_n "checking
for $ac_word...
" >&6; }
14488 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14489 $as_echo_n "(cached
) " >&6
14491 if test -n "$AS_FOR_TARGET"; then
14492 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 for as_dir in $PATH
14498 test -z "$as_dir" && as_dir=.
14499 for ac_exec_ext in '' $ac_executable_extensions; do
14500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14511 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14512 if test -n "$AS_FOR_TARGET"; then
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14514 $as_echo "$AS_FOR_TARGET" >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14517 $as_echo "no
" >&6; }
14522 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14526 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14528 if test $build = $target ; then
14531 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14534 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14538 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14544 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14545 if test -n "$with_build_time_tools"; then
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14547 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14548 if test -x $with_build_time_tools/dlltool; then
14549 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14550 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14552 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14555 $as_echo "no
" >&6; }
14557 elif test $build != $host && test $have_gcc_for_target = yes; then
14558 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14559 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14560 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14563 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14564 # Extract the first word of "dlltool
", so it can be a program name with args.
14565 set dummy dlltool; ac_word=$2
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14567 $as_echo_n "checking
for $ac_word...
" >&6; }
14568 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14569 $as_echo_n "(cached
) " >&6
14571 case $DLLTOOL_FOR_TARGET in
14573 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $gcc_cv_tool_dirs
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14594 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14595 if test -n "$DLLTOOL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14597 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14600 $as_echo "no
" >&6; }
14605 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14608 if test -n "$DLLTOOL_FOR_TARGET"; then
14609 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14610 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14611 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14614 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14615 for ncn_progname in dlltool; do
14616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14617 set dummy ${ncn_progname}; ac_word=$2
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14619 $as_echo_n "checking
for $ac_word...
" >&6; }
14620 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14621 $as_echo_n "(cached
) " >&6
14623 if test -n "$DLLTOOL_FOR_TARGET"; then
14624 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14627 for as_dir in $PATH
14630 test -z "$as_dir" && as_dir=.
14631 for ac_exec_ext in '' $ac_executable_extensions; do
14632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14633 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14634 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14643 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14644 if test -n "$DLLTOOL_FOR_TARGET"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14646 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14649 $as_echo "no
" >&6; }
14656 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14657 for ncn_progname in dlltool; do
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14659 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14660 if test -x $with_build_time_tools/${ncn_progname}; then
14661 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14663 $as_echo "yes" >&6; }
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14667 $as_echo "no
" >&6; }
14672 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14673 for ncn_progname in dlltool; do
14674 if test -n "$ncn_target_tool_prefix"; then
14675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14678 $as_echo_n "checking
for $ac_word...
" >&6; }
14679 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14680 $as_echo_n "(cached
) " >&6
14682 if test -n "$DLLTOOL_FOR_TARGET"; then
14683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14686 for as_dir in $PATH
14689 test -z "$as_dir" && as_dir=.
14690 for ac_exec_ext in '' $ac_executable_extensions; do
14691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14702 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14703 if test -n "$DLLTOOL_FOR_TARGET"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14705 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14708 $as_echo "no
" >&6; }
14713 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14715 set dummy ${ncn_progname}; ac_word=$2
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14717 $as_echo_n "checking
for $ac_word...
" >&6; }
14718 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14719 $as_echo_n "(cached
) " >&6
14721 if test -n "$DLLTOOL_FOR_TARGET"; then
14722 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14741 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14742 if test -n "$DLLTOOL_FOR_TARGET"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14744 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14747 $as_echo "no
" >&6; }
14752 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14756 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14758 if test $build = $target ; then
14759 DLLTOOL_FOR_TARGET="$2"
14761 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14764 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14768 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14774 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14775 if test -n "$with_build_time_tools"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14777 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14778 if test -x $with_build_time_tools/dsymutil; then
14779 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14780 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14782 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14785 $as_echo "no
" >&6; }
14787 elif test $build != $host && test $have_gcc_for_target = yes; then
14788 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14789 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14790 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14793 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14794 # Extract the first word of "dsymutil
", so it can be a program name with args.
14795 set dummy dsymutil; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14797 $as_echo_n "checking
for $ac_word...
" >&6; }
14798 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14799 $as_echo_n "(cached
) " >&6
14801 case $DSYMUTIL_FOR_TARGET in
14803 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $gcc_cv_tool_dirs
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14824 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14825 if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14827 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14830 $as_echo "no
" >&6; }
14835 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14838 if test -n "$DSYMUTIL_FOR_TARGET"; then
14839 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14840 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14841 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14844 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14845 for ncn_progname in dsymutil; do
14846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14847 set dummy ${ncn_progname}; ac_word=$2
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14849 $as_echo_n "checking
for $ac_word...
" >&6; }
14850 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14851 $as_echo_n "(cached
) " >&6
14853 if test -n "$DSYMUTIL_FOR_TARGET"; then
14854 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857 for as_dir in $PATH
14860 test -z "$as_dir" && as_dir=.
14861 for ac_exec_ext in '' $ac_executable_extensions; do
14862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14864 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14873 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14874 if test -n "$DSYMUTIL_FOR_TARGET"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14876 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14879 $as_echo "no
" >&6; }
14886 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14887 for ncn_progname in dsymutil; do
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14889 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14890 if test -x $with_build_time_tools/${ncn_progname}; then
14891 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14893 $as_echo "yes" >&6; }
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14897 $as_echo "no
" >&6; }
14902 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14903 for ncn_progname in dsymutil; do
14904 if test -n "$ncn_target_tool_prefix"; then
14905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14906 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14908 $as_echo_n "checking
for $ac_word...
" >&6; }
14909 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14910 $as_echo_n "(cached
) " >&6
14912 if test -n "$DSYMUTIL_FOR_TARGET"; then
14913 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916 for as_dir in $PATH
14919 test -z "$as_dir" && as_dir=.
14920 for ac_exec_ext in '' $ac_executable_extensions; do
14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14922 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14923 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14932 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14933 if test -n "$DSYMUTIL_FOR_TARGET"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14935 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14938 $as_echo "no
" >&6; }
14943 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14945 set dummy ${ncn_progname}; ac_word=$2
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14947 $as_echo_n "checking
for $ac_word...
" >&6; }
14948 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14949 $as_echo_n "(cached
) " >&6
14951 if test -n "$DSYMUTIL_FOR_TARGET"; then
14952 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14958 test -z "$as_dir" && as_dir=.
14959 for ac_exec_ext in '' $ac_executable_extensions; do
14960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14961 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14962 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14971 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14972 if test -n "$DSYMUTIL_FOR_TARGET"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14974 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14977 $as_echo "no
" >&6; }
14982 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14986 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14988 if test $build = $target ; then
14989 DSYMUTIL_FOR_TARGET="$2"
14991 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14994 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14998 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15004 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15005 if test -n "$with_build_time_tools"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15007 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15008 if test -x $with_build_time_tools/ld; then
15009 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15010 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15012 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15015 $as_echo "no
" >&6; }
15017 elif test $build != $host && test $have_gcc_for_target = yes; then
15018 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15019 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15020 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15023 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15024 # Extract the first word of "ld
", so it can be a program name with args.
15025 set dummy ld; ac_word=$2
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15027 $as_echo_n "checking
for $ac_word...
" >&6; }
15028 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15029 $as_echo_n "(cached
) " >&6
15031 case $LD_FOR_TARGET in
15033 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $gcc_cv_tool_dirs
15040 test -z "$as_dir" && as_dir=.
15041 for ac_exec_ext in '' $ac_executable_extensions; do
15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15054 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15055 if test -n "$LD_FOR_TARGET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15057 $as_echo "$LD_FOR_TARGET" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15060 $as_echo "no
" >&6; }
15065 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15068 if test -n "$LD_FOR_TARGET"; then
15069 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15070 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15071 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15074 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15075 for ncn_progname in ld; do
15076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15077 set dummy ${ncn_progname}; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15079 $as_echo_n "checking
for $ac_word...
" >&6; }
15080 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15081 $as_echo_n "(cached
) " >&6
15083 if test -n "$LD_FOR_TARGET"; then
15084 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15103 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15104 if test -n "$LD_FOR_TARGET"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15106 $as_echo "$LD_FOR_TARGET" >&6; }
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15109 $as_echo "no
" >&6; }
15116 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15117 for ncn_progname in ld; do
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15119 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15120 if test -x $with_build_time_tools/${ncn_progname}; then
15121 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15123 $as_echo "yes" >&6; }
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15127 $as_echo "no
" >&6; }
15132 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15133 for ncn_progname in ld; do
15134 if test -n "$ncn_target_tool_prefix"; then
15135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15138 $as_echo_n "checking
for $ac_word...
" >&6; }
15139 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15140 $as_echo_n "(cached
) " >&6
15142 if test -n "$LD_FOR_TARGET"; then
15143 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146 for as_dir in $PATH
15149 test -z "$as_dir" && as_dir=.
15150 for ac_exec_ext in '' $ac_executable_extensions; do
15151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15152 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15162 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15163 if test -n "$LD_FOR_TARGET"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15165 $as_echo "$LD_FOR_TARGET" >&6; }
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15168 $as_echo "no
" >&6; }
15173 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15175 set dummy ${ncn_progname}; ac_word=$2
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15177 $as_echo_n "checking
for $ac_word...
" >&6; }
15178 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15179 $as_echo_n "(cached
) " >&6
15181 if test -n "$LD_FOR_TARGET"; then
15182 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185 for as_dir in $PATH
15188 test -z "$as_dir" && as_dir=.
15189 for ac_exec_ext in '' $ac_executable_extensions; do
15190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15191 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15201 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15202 if test -n "$LD_FOR_TARGET"; then
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15204 $as_echo "$LD_FOR_TARGET" >&6; }
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15207 $as_echo "no
" >&6; }
15212 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15216 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15218 if test $build = $target ; then
15221 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15224 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15228 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15234 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15235 if test -n "$with_build_time_tools"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15237 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15238 if test -x $with_build_time_tools/lipo; then
15239 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15240 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15242 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15245 $as_echo "no
" >&6; }
15247 elif test $build != $host && test $have_gcc_for_target = yes; then
15248 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15249 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15250 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15253 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15254 # Extract the first word of "lipo
", so it can be a program name with args.
15255 set dummy lipo; ac_word=$2
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15257 $as_echo_n "checking
for $ac_word...
" >&6; }
15258 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15259 $as_echo_n "(cached
) " >&6
15261 case $LIPO_FOR_TARGET in
15263 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $gcc_cv_tool_dirs
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15284 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15285 if test -n "$LIPO_FOR_TARGET"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15287 $as_echo "$LIPO_FOR_TARGET" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15290 $as_echo "no
" >&6; }
15295 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15298 if test -n "$LIPO_FOR_TARGET"; then
15299 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15300 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15301 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15304 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15305 for ncn_progname in lipo; do
15306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15307 set dummy ${ncn_progname}; ac_word=$2
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15309 $as_echo_n "checking
for $ac_word...
" >&6; }
15310 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15311 $as_echo_n "(cached
) " >&6
15313 if test -n "$LIPO_FOR_TARGET"; then
15314 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 for as_dir in $PATH
15320 test -z "$as_dir" && as_dir=.
15321 for ac_exec_ext in '' $ac_executable_extensions; do
15322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15323 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15333 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15334 if test -n "$LIPO_FOR_TARGET"; then
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15336 $as_echo "$LIPO_FOR_TARGET" >&6; }
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15339 $as_echo "no
" >&6; }
15346 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15347 for ncn_progname in lipo; do
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15349 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15350 if test -x $with_build_time_tools/${ncn_progname}; then
15351 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15353 $as_echo "yes" >&6; }
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15357 $as_echo "no
" >&6; }
15362 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15363 for ncn_progname in lipo; do
15364 if test -n "$ncn_target_tool_prefix"; then
15365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15366 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15368 $as_echo_n "checking
for $ac_word...
" >&6; }
15369 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15370 $as_echo_n "(cached
) " >&6
15372 if test -n "$LIPO_FOR_TARGET"; then
15373 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376 for as_dir in $PATH
15379 test -z "$as_dir" && as_dir=.
15380 for ac_exec_ext in '' $ac_executable_extensions; do
15381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15382 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15392 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15393 if test -n "$LIPO_FOR_TARGET"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15395 $as_echo "$LIPO_FOR_TARGET" >&6; }
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15398 $as_echo "no
" >&6; }
15403 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15405 set dummy ${ncn_progname}; ac_word=$2
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15407 $as_echo_n "checking
for $ac_word...
" >&6; }
15408 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15409 $as_echo_n "(cached
) " >&6
15411 if test -n "$LIPO_FOR_TARGET"; then
15412 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15418 test -z "$as_dir" && as_dir=.
15419 for ac_exec_ext in '' $ac_executable_extensions; do
15420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15421 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15422 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15431 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15432 if test -n "$LIPO_FOR_TARGET"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15434 $as_echo "$LIPO_FOR_TARGET" >&6; }
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15437 $as_echo "no
" >&6; }
15442 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15446 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15448 if test $build = $target ; then
15449 LIPO_FOR_TARGET="$2"
15451 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15454 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15458 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15464 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15465 if test -n "$with_build_time_tools"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15467 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15468 if test -x $with_build_time_tools/nm; then
15469 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15470 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15472 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15475 $as_echo "no
" >&6; }
15477 elif test $build != $host && test $have_gcc_for_target = yes; then
15478 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15479 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15480 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15483 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15484 # Extract the first word of "nm
", so it can be a program name with args.
15485 set dummy nm; ac_word=$2
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15487 $as_echo_n "checking
for $ac_word...
" >&6; }
15488 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15489 $as_echo_n "(cached
) " >&6
15491 case $NM_FOR_TARGET in
15493 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 for as_dir in $gcc_cv_tool_dirs
15500 test -z "$as_dir" && as_dir=.
15501 for ac_exec_ext in '' $ac_executable_extensions; do
15502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15503 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15514 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15515 if test -n "$NM_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15517 $as_echo "$NM_FOR_TARGET" >&6; }
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15520 $as_echo "no
" >&6; }
15525 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15528 if test -n "$NM_FOR_TARGET"; then
15529 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15530 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15531 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15534 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15535 for ncn_progname in nm; do
15536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15537 set dummy ${ncn_progname}; ac_word=$2
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15539 $as_echo_n "checking
for $ac_word...
" >&6; }
15540 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15541 $as_echo_n "(cached
) " >&6
15543 if test -n "$NM_FOR_TARGET"; then
15544 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 for as_dir in $PATH
15550 test -z "$as_dir" && as_dir=.
15551 for ac_exec_ext in '' $ac_executable_extensions; do
15552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15553 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15554 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15563 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15564 if test -n "$NM_FOR_TARGET"; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15566 $as_echo "$NM_FOR_TARGET" >&6; }
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15569 $as_echo "no
" >&6; }
15576 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15577 for ncn_progname in nm; do
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15579 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15580 if test -x $with_build_time_tools/${ncn_progname}; then
15581 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15583 $as_echo "yes" >&6; }
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15587 $as_echo "no
" >&6; }
15592 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15593 for ncn_progname in nm; do
15594 if test -n "$ncn_target_tool_prefix"; then
15595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15598 $as_echo_n "checking
for $ac_word...
" >&6; }
15599 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15600 $as_echo_n "(cached
) " >&6
15602 if test -n "$NM_FOR_TARGET"; then
15603 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15613 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15622 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15623 if test -n "$NM_FOR_TARGET"; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15625 $as_echo "$NM_FOR_TARGET" >&6; }
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15628 $as_echo "no
" >&6; }
15633 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15635 set dummy ${ncn_progname}; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15637 $as_echo_n "checking
for $ac_word...
" >&6; }
15638 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15639 $as_echo_n "(cached
) " >&6
15641 if test -n "$NM_FOR_TARGET"; then
15642 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15648 test -z "$as_dir" && as_dir=.
15649 for ac_exec_ext in '' $ac_executable_extensions; do
15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15661 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15662 if test -n "$NM_FOR_TARGET"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15664 $as_echo "$NM_FOR_TARGET" >&6; }
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15667 $as_echo "no
" >&6; }
15672 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15676 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15678 if test $build = $target ; then
15681 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15684 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15688 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15694 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15695 if test -n "$with_build_time_tools"; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15697 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15698 if test -x $with_build_time_tools/objcopy; then
15699 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15700 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15702 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15705 $as_echo "no
" >&6; }
15707 elif test $build != $host && test $have_gcc_for_target = yes; then
15708 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15709 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15710 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15713 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15714 # Extract the first word of "objcopy
", so it can be a program name with args.
15715 set dummy objcopy; ac_word=$2
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15717 $as_echo_n "checking
for $ac_word...
" >&6; }
15718 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15719 $as_echo_n "(cached
) " >&6
15721 case $OBJCOPY_FOR_TARGET in
15723 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $gcc_cv_tool_dirs
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15744 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15745 if test -n "$OBJCOPY_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15747 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15750 $as_echo "no
" >&6; }
15755 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15758 if test -n "$OBJCOPY_FOR_TARGET"; then
15759 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15760 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15761 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15764 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15765 for ncn_progname in objcopy; do
15766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15767 set dummy ${ncn_progname}; ac_word=$2
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15769 $as_echo_n "checking
for $ac_word...
" >&6; }
15770 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15771 $as_echo_n "(cached
) " >&6
15773 if test -n "$OBJCOPY_FOR_TARGET"; then
15774 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 for as_dir in $PATH
15780 test -z "$as_dir" && as_dir=.
15781 for ac_exec_ext in '' $ac_executable_extensions; do
15782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15784 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15793 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15794 if test -n "$OBJCOPY_FOR_TARGET"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15796 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15799 $as_echo "no
" >&6; }
15806 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15807 for ncn_progname in objcopy; do
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15809 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15810 if test -x $with_build_time_tools/${ncn_progname}; then
15811 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15813 $as_echo "yes" >&6; }
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15817 $as_echo "no
" >&6; }
15822 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15823 for ncn_progname in objcopy; do
15824 if test -n "$ncn_target_tool_prefix"; then
15825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15828 $as_echo_n "checking
for $ac_word...
" >&6; }
15829 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15830 $as_echo_n "(cached
) " >&6
15832 if test -n "$OBJCOPY_FOR_TARGET"; then
15833 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15852 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15853 if test -n "$OBJCOPY_FOR_TARGET"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15855 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15858 $as_echo "no
" >&6; }
15863 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15865 set dummy ${ncn_progname}; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15867 $as_echo_n "checking
for $ac_word...
" >&6; }
15868 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15869 $as_echo_n "(cached
) " >&6
15871 if test -n "$OBJCOPY_FOR_TARGET"; then
15872 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15891 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15892 if test -n "$OBJCOPY_FOR_TARGET"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15894 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15897 $as_echo "no
" >&6; }
15902 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15906 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15908 if test $build = $target ; then
15909 OBJCOPY_FOR_TARGET="$2"
15911 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15914 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15918 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15924 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15925 if test -n "$with_build_time_tools"; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15927 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15928 if test -x $with_build_time_tools/objdump; then
15929 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15930 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15932 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15935 $as_echo "no
" >&6; }
15937 elif test $build != $host && test $have_gcc_for_target = yes; then
15938 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15939 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15940 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15943 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15944 # Extract the first word of "objdump
", so it can be a program name with args.
15945 set dummy objdump; ac_word=$2
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15947 $as_echo_n "checking
for $ac_word...
" >&6; }
15948 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15949 $as_echo_n "(cached
) " >&6
15951 case $OBJDUMP_FOR_TARGET in
15953 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $gcc_cv_tool_dirs
15960 test -z "$as_dir" && as_dir=.
15961 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15974 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15975 if test -n "$OBJDUMP_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15977 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15980 $as_echo "no
" >&6; }
15985 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15988 if test -n "$OBJDUMP_FOR_TARGET"; then
15989 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15990 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15991 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15994 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15995 for ncn_progname in objdump; do
15996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15997 set dummy ${ncn_progname}; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15999 $as_echo_n "checking
for $ac_word...
" >&6; }
16000 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16001 $as_echo_n "(cached
) " >&6
16003 if test -n "$OBJDUMP_FOR_TARGET"; then
16004 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16010 test -z "$as_dir" && as_dir=.
16011 for ac_exec_ext in '' $ac_executable_extensions; do
16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16023 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16024 if test -n "$OBJDUMP_FOR_TARGET"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16026 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16029 $as_echo "no
" >&6; }
16036 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16037 for ncn_progname in objdump; do
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16039 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16040 if test -x $with_build_time_tools/${ncn_progname}; then
16041 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16043 $as_echo "yes" >&6; }
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16047 $as_echo "no
" >&6; }
16052 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16053 for ncn_progname in objdump; do
16054 if test -n "$ncn_target_tool_prefix"; then
16055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16056 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16058 $as_echo_n "checking
for $ac_word...
" >&6; }
16059 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16060 $as_echo_n "(cached
) " >&6
16062 if test -n "$OBJDUMP_FOR_TARGET"; then
16063 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066 for as_dir in $PATH
16069 test -z "$as_dir" && as_dir=.
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16072 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16082 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16083 if test -n "$OBJDUMP_FOR_TARGET"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16085 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16088 $as_echo "no
" >&6; }
16093 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16095 set dummy ${ncn_progname}; ac_word=$2
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16097 $as_echo_n "checking
for $ac_word...
" >&6; }
16098 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16099 $as_echo_n "(cached
) " >&6
16101 if test -n "$OBJDUMP_FOR_TARGET"; then
16102 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105 for as_dir in $PATH
16108 test -z "$as_dir" && as_dir=.
16109 for ac_exec_ext in '' $ac_executable_extensions; do
16110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16121 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16122 if test -n "$OBJDUMP_FOR_TARGET"; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16124 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16127 $as_echo "no
" >&6; }
16132 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16136 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16138 if test $build = $target ; then
16139 OBJDUMP_FOR_TARGET="$2"
16141 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16144 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16148 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16154 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16155 if test -n "$with_build_time_tools"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16157 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16158 if test -x $with_build_time_tools/otool; then
16159 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16160 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16162 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16165 $as_echo "no
" >&6; }
16167 elif test $build != $host && test $have_gcc_for_target = yes; then
16168 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16169 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16170 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16173 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16174 # Extract the first word of "otool
", so it can be a program name with args.
16175 set dummy otool; ac_word=$2
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16177 $as_echo_n "checking
for $ac_word...
" >&6; }
16178 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16179 $as_echo_n "(cached
) " >&6
16181 case $OTOOL_FOR_TARGET in
16183 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187 for as_dir in $gcc_cv_tool_dirs
16190 test -z "$as_dir" && as_dir=.
16191 for ac_exec_ext in '' $ac_executable_extensions; do
16192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16193 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16204 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16205 if test -n "$OTOOL_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16207 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16210 $as_echo "no
" >&6; }
16215 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16218 if test -n "$OTOOL_FOR_TARGET"; then
16219 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16220 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16221 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16224 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16225 for ncn_progname in otool; do
16226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16227 set dummy ${ncn_progname}; ac_word=$2
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16229 $as_echo_n "checking
for $ac_word...
" >&6; }
16230 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16231 $as_echo_n "(cached
) " >&6
16233 if test -n "$OTOOL_FOR_TARGET"; then
16234 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237 for as_dir in $PATH
16240 test -z "$as_dir" && as_dir=.
16241 for ac_exec_ext in '' $ac_executable_extensions; do
16242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16244 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16253 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16254 if test -n "$OTOOL_FOR_TARGET"; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16256 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16259 $as_echo "no
" >&6; }
16266 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16267 for ncn_progname in otool; do
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16269 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16270 if test -x $with_build_time_tools/${ncn_progname}; then
16271 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16273 $as_echo "yes" >&6; }
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16277 $as_echo "no
" >&6; }
16282 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16283 for ncn_progname in otool; do
16284 if test -n "$ncn_target_tool_prefix"; then
16285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16286 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16288 $as_echo_n "checking
for $ac_word...
" >&6; }
16289 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16290 $as_echo_n "(cached
) " >&6
16292 if test -n "$OTOOL_FOR_TARGET"; then
16293 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296 for as_dir in $PATH
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16312 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16313 if test -n "$OTOOL_FOR_TARGET"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16315 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16318 $as_echo "no
" >&6; }
16323 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16325 set dummy ${ncn_progname}; ac_word=$2
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16327 $as_echo_n "checking
for $ac_word...
" >&6; }
16328 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16329 $as_echo_n "(cached
) " >&6
16331 if test -n "$OTOOL_FOR_TARGET"; then
16332 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335 for as_dir in $PATH
16338 test -z "$as_dir" && as_dir=.
16339 for ac_exec_ext in '' $ac_executable_extensions; do
16340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16341 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16351 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16352 if test -n "$OTOOL_FOR_TARGET"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16354 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16357 $as_echo "no
" >&6; }
16362 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16366 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16368 if test $build = $target ; then
16369 OTOOL_FOR_TARGET="$2"
16371 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16374 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16378 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16384 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16385 if test -n "$with_build_time_tools"; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16387 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16388 if test -x $with_build_time_tools/ranlib; then
16389 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16390 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16392 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16395 $as_echo "no
" >&6; }
16397 elif test $build != $host && test $have_gcc_for_target = yes; then
16398 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16399 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16400 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16403 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16404 # Extract the first word of "ranlib
", so it can be a program name with args.
16405 set dummy ranlib; ac_word=$2
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16407 $as_echo_n "checking
for $ac_word...
" >&6; }
16408 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16409 $as_echo_n "(cached
) " >&6
16411 case $RANLIB_FOR_TARGET in
16413 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $gcc_cv_tool_dirs
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16424 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16434 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16435 if test -n "$RANLIB_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16437 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16440 $as_echo "no
" >&6; }
16445 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16448 if test -n "$RANLIB_FOR_TARGET"; then
16449 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16450 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16451 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16454 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16455 for ncn_progname in ranlib; do
16456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16457 set dummy ${ncn_progname}; ac_word=$2
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16459 $as_echo_n "checking
for $ac_word...
" >&6; }
16460 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16461 $as_echo_n "(cached
) " >&6
16463 if test -n "$RANLIB_FOR_TARGET"; then
16464 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16467 for as_dir in $PATH
16470 test -z "$as_dir" && as_dir=.
16471 for ac_exec_ext in '' $ac_executable_extensions; do
16472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16473 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16483 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16484 if test -n "$RANLIB_FOR_TARGET"; then
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16486 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16489 $as_echo "no
" >&6; }
16496 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16497 for ncn_progname in ranlib; do
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16499 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16500 if test -x $with_build_time_tools/${ncn_progname}; then
16501 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16503 $as_echo "yes" >&6; }
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16507 $as_echo "no
" >&6; }
16512 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16513 for ncn_progname in ranlib; do
16514 if test -n "$ncn_target_tool_prefix"; then
16515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16518 $as_echo_n "checking
for $ac_word...
" >&6; }
16519 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16520 $as_echo_n "(cached
) " >&6
16522 if test -n "$RANLIB_FOR_TARGET"; then
16523 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in $PATH
16529 test -z "$as_dir" && as_dir=.
16530 for ac_exec_ext in '' $ac_executable_extensions; do
16531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16532 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16542 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16543 if test -n "$RANLIB_FOR_TARGET"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16545 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16548 $as_echo "no
" >&6; }
16553 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16555 set dummy ${ncn_progname}; ac_word=$2
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16557 $as_echo_n "checking
for $ac_word...
" >&6; }
16558 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16559 $as_echo_n "(cached
) " >&6
16561 if test -n "$RANLIB_FOR_TARGET"; then
16562 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $PATH
16568 test -z "$as_dir" && as_dir=.
16569 for ac_exec_ext in '' $ac_executable_extensions; do
16570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16572 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16581 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16582 if test -n "$RANLIB_FOR_TARGET"; then
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16584 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16587 $as_echo "no
" >&6; }
16592 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16596 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16598 if test $build = $target ; then
16599 RANLIB_FOR_TARGET="$2"
16601 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16604 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16608 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16614 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16615 if test -n "$with_build_time_tools"; then
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16617 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16618 if test -x $with_build_time_tools/readelf; then
16619 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16620 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16622 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16625 $as_echo "no
" >&6; }
16627 elif test $build != $host && test $have_gcc_for_target = yes; then
16628 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16629 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16630 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16633 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16634 # Extract the first word of "readelf
", so it can be a program name with args.
16635 set dummy readelf; ac_word=$2
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16637 $as_echo_n "checking
for $ac_word...
" >&6; }
16638 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16639 $as_echo_n "(cached
) " >&6
16641 case $READELF_FOR_TARGET in
16643 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $gcc_cv_tool_dirs
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16664 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16665 if test -n "$READELF_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16667 $as_echo "$READELF_FOR_TARGET" >&6; }
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16670 $as_echo "no
" >&6; }
16675 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16678 if test -n "$READELF_FOR_TARGET"; then
16679 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16680 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16681 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16684 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16685 for ncn_progname in readelf; do
16686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16687 set dummy ${ncn_progname}; ac_word=$2
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16689 $as_echo_n "checking
for $ac_word...
" >&6; }
16690 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16691 $as_echo_n "(cached
) " >&6
16693 if test -n "$READELF_FOR_TARGET"; then
16694 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697 for as_dir in $PATH
16700 test -z "$as_dir" && as_dir=.
16701 for ac_exec_ext in '' $ac_executable_extensions; do
16702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16703 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16713 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16714 if test -n "$READELF_FOR_TARGET"; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16716 $as_echo "$READELF_FOR_TARGET" >&6; }
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16719 $as_echo "no
" >&6; }
16726 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16727 for ncn_progname in readelf; do
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16729 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16730 if test -x $with_build_time_tools/${ncn_progname}; then
16731 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16733 $as_echo "yes" >&6; }
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16737 $as_echo "no
" >&6; }
16742 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16743 for ncn_progname in readelf; do
16744 if test -n "$ncn_target_tool_prefix"; then
16745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16746 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16748 $as_echo_n "checking
for $ac_word...
" >&6; }
16749 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16750 $as_echo_n "(cached
) " >&6
16752 if test -n "$READELF_FOR_TARGET"; then
16753 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756 for as_dir in $PATH
16759 test -z "$as_dir" && as_dir=.
16760 for ac_exec_ext in '' $ac_executable_extensions; do
16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16762 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16763 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16772 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16773 if test -n "$READELF_FOR_TARGET"; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16775 $as_echo "$READELF_FOR_TARGET" >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16778 $as_echo "no
" >&6; }
16783 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16785 set dummy ${ncn_progname}; ac_word=$2
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16787 $as_echo_n "checking
for $ac_word...
" >&6; }
16788 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16789 $as_echo_n "(cached
) " >&6
16791 if test -n "$READELF_FOR_TARGET"; then
16792 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16795 for as_dir in $PATH
16798 test -z "$as_dir" && as_dir=.
16799 for ac_exec_ext in '' $ac_executable_extensions; do
16800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16801 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16802 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16811 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16812 if test -n "$READELF_FOR_TARGET"; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16814 $as_echo "$READELF_FOR_TARGET" >&6; }
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16817 $as_echo "no
" >&6; }
16822 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16826 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16828 if test $build = $target ; then
16829 READELF_FOR_TARGET="$2"
16831 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16834 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16838 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16844 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16845 if test -n "$with_build_time_tools"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16847 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16848 if test -x $with_build_time_tools/strip; then
16849 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16850 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16852 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16855 $as_echo "no
" >&6; }
16857 elif test $build != $host && test $have_gcc_for_target = yes; then
16858 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16859 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16860 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16863 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16864 # Extract the first word of "strip
", so it can be a program name with args.
16865 set dummy strip; ac_word=$2
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16867 $as_echo_n "checking
for $ac_word...
" >&6; }
16868 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16869 $as_echo_n "(cached
) " >&6
16871 case $STRIP_FOR_TARGET in
16873 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877 for as_dir in $gcc_cv_tool_dirs
16880 test -z "$as_dir" && as_dir=.
16881 for ac_exec_ext in '' $ac_executable_extensions; do
16882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16883 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16894 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16895 if test -n "$STRIP_FOR_TARGET"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16897 $as_echo "$STRIP_FOR_TARGET" >&6; }
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16900 $as_echo "no
" >&6; }
16905 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16908 if test -n "$STRIP_FOR_TARGET"; then
16909 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16910 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16911 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16914 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16915 for ncn_progname in strip; do
16916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16917 set dummy ${ncn_progname}; ac_word=$2
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16919 $as_echo_n "checking
for $ac_word...
" >&6; }
16920 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16921 $as_echo_n "(cached
) " >&6
16923 if test -n "$STRIP_FOR_TARGET"; then
16924 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16927 for as_dir in $PATH
16930 test -z "$as_dir" && as_dir=.
16931 for ac_exec_ext in '' $ac_executable_extensions; do
16932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16933 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16943 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16944 if test -n "$STRIP_FOR_TARGET"; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16946 $as_echo "$STRIP_FOR_TARGET" >&6; }
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16949 $as_echo "no
" >&6; }
16956 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16957 for ncn_progname in strip; do
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16959 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16960 if test -x $with_build_time_tools/${ncn_progname}; then
16961 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16963 $as_echo "yes" >&6; }
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16967 $as_echo "no
" >&6; }
16972 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16973 for ncn_progname in strip; do
16974 if test -n "$ncn_target_tool_prefix"; then
16975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16976 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16978 $as_echo_n "checking
for $ac_word...
" >&6; }
16979 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16980 $as_echo_n "(cached
) " >&6
16982 if test -n "$STRIP_FOR_TARGET"; then
16983 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986 for as_dir in $PATH
16989 test -z "$as_dir" && as_dir=.
16990 for ac_exec_ext in '' $ac_executable_extensions; do
16991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16992 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16993 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17002 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17003 if test -n "$STRIP_FOR_TARGET"; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17005 $as_echo "$STRIP_FOR_TARGET" >&6; }
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17008 $as_echo "no
" >&6; }
17013 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17015 set dummy ${ncn_progname}; ac_word=$2
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17017 $as_echo_n "checking
for $ac_word...
" >&6; }
17018 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17019 $as_echo_n "(cached
) " >&6
17021 if test -n "$STRIP_FOR_TARGET"; then
17022 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025 for as_dir in $PATH
17028 test -z "$as_dir" && as_dir=.
17029 for ac_exec_ext in '' $ac_executable_extensions; do
17030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17031 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17041 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17042 if test -n "$STRIP_FOR_TARGET"; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17044 $as_echo "$STRIP_FOR_TARGET" >&6; }
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17047 $as_echo "no
" >&6; }
17052 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17056 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17058 if test $build = $target ; then
17059 STRIP_FOR_TARGET="$2"
17061 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17064 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17068 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17074 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17075 if test -n "$with_build_time_tools"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17077 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17078 if test -x $with_build_time_tools/windres; then
17079 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17080 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17082 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17085 $as_echo "no
" >&6; }
17087 elif test $build != $host && test $have_gcc_for_target = yes; then
17088 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17089 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17090 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17093 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17094 # Extract the first word of "windres
", so it can be a program name with args.
17095 set dummy windres; ac_word=$2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17097 $as_echo_n "checking
for $ac_word...
" >&6; }
17098 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17099 $as_echo_n "(cached
) " >&6
17101 case $WINDRES_FOR_TARGET in
17103 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $gcc_cv_tool_dirs
17110 test -z "$as_dir" && as_dir=.
17111 for ac_exec_ext in '' $ac_executable_extensions; do
17112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17113 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17124 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17125 if test -n "$WINDRES_FOR_TARGET"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17127 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17130 $as_echo "no
" >&6; }
17135 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17138 if test -n "$WINDRES_FOR_TARGET"; then
17139 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17140 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17141 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17144 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17145 for ncn_progname in windres; do
17146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17147 set dummy ${ncn_progname}; ac_word=$2
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17149 $as_echo_n "checking
for $ac_word...
" >&6; }
17150 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17151 $as_echo_n "(cached
) " >&6
17153 if test -n "$WINDRES_FOR_TARGET"; then
17154 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17157 for as_dir in $PATH
17160 test -z "$as_dir" && as_dir=.
17161 for ac_exec_ext in '' $ac_executable_extensions; do
17162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17163 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17173 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17174 if test -n "$WINDRES_FOR_TARGET"; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17176 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17179 $as_echo "no
" >&6; }
17186 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17187 for ncn_progname in windres; do
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17189 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17190 if test -x $with_build_time_tools/${ncn_progname}; then
17191 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17193 $as_echo "yes" >&6; }
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17197 $as_echo "no
" >&6; }
17202 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17203 for ncn_progname in windres; do
17204 if test -n "$ncn_target_tool_prefix"; then
17205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17208 $as_echo_n "checking
for $ac_word...
" >&6; }
17209 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17210 $as_echo_n "(cached
) " >&6
17212 if test -n "$WINDRES_FOR_TARGET"; then
17213 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17216 for as_dir in $PATH
17219 test -z "$as_dir" && as_dir=.
17220 for ac_exec_ext in '' $ac_executable_extensions; do
17221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17222 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17232 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17233 if test -n "$WINDRES_FOR_TARGET"; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17235 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17238 $as_echo "no
" >&6; }
17243 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17245 set dummy ${ncn_progname}; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17247 $as_echo_n "checking
for $ac_word...
" >&6; }
17248 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17249 $as_echo_n "(cached
) " >&6
17251 if test -n "$WINDRES_FOR_TARGET"; then
17252 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17258 test -z "$as_dir" && as_dir=.
17259 for ac_exec_ext in '' $ac_executable_extensions; do
17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17261 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17262 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17271 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17272 if test -n "$WINDRES_FOR_TARGET"; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17274 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17277 $as_echo "no
" >&6; }
17282 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17286 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17288 if test $build = $target ; then
17289 WINDRES_FOR_TARGET="$2"
17291 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17294 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17298 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17304 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17305 if test -n "$with_build_time_tools"; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17307 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17308 if test -x $with_build_time_tools/windmc; then
17309 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17310 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17312 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17315 $as_echo "no
" >&6; }
17317 elif test $build != $host && test $have_gcc_for_target = yes; then
17318 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17319 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17320 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17323 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17324 # Extract the first word of "windmc
", so it can be a program name with args.
17325 set dummy windmc; ac_word=$2
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17327 $as_echo_n "checking
for $ac_word...
" >&6; }
17328 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17329 $as_echo_n "(cached
) " >&6
17331 case $WINDMC_FOR_TARGET in
17333 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337 for as_dir in $gcc_cv_tool_dirs
17340 test -z "$as_dir" && as_dir=.
17341 for ac_exec_ext in '' $ac_executable_extensions; do
17342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17343 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17354 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17355 if test -n "$WINDMC_FOR_TARGET"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17357 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17360 $as_echo "no
" >&6; }
17365 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17368 if test -n "$WINDMC_FOR_TARGET"; then
17369 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17370 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17371 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17374 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17375 for ncn_progname in windmc; do
17376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17377 set dummy ${ncn_progname}; ac_word=$2
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17379 $as_echo_n "checking
for $ac_word...
" >&6; }
17380 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17381 $as_echo_n "(cached
) " >&6
17383 if test -n "$WINDMC_FOR_TARGET"; then
17384 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387 for as_dir in $PATH
17390 test -z "$as_dir" && as_dir=.
17391 for ac_exec_ext in '' $ac_executable_extensions; do
17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17393 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17403 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17404 if test -n "$WINDMC_FOR_TARGET"; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17406 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17409 $as_echo "no
" >&6; }
17416 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17417 for ncn_progname in windmc; do
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17419 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17420 if test -x $with_build_time_tools/${ncn_progname}; then
17421 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17423 $as_echo "yes" >&6; }
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17427 $as_echo "no
" >&6; }
17432 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17433 for ncn_progname in windmc; do
17434 if test -n "$ncn_target_tool_prefix"; then
17435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17436 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17438 $as_echo_n "checking
for $ac_word...
" >&6; }
17439 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17440 $as_echo_n "(cached
) " >&6
17442 if test -n "$WINDMC_FOR_TARGET"; then
17443 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17446 for as_dir in $PATH
17449 test -z "$as_dir" && as_dir=.
17450 for ac_exec_ext in '' $ac_executable_extensions; do
17451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17452 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17462 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17463 if test -n "$WINDMC_FOR_TARGET"; then
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17465 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17468 $as_echo "no
" >&6; }
17473 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17475 set dummy ${ncn_progname}; ac_word=$2
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17477 $as_echo_n "checking
for $ac_word...
" >&6; }
17478 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17479 $as_echo_n "(cached
) " >&6
17481 if test -n "$WINDMC_FOR_TARGET"; then
17482 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17485 for as_dir in $PATH
17488 test -z "$as_dir" && as_dir=.
17489 for ac_exec_ext in '' $ac_executable_extensions; do
17490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17491 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17492 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17501 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17502 if test -n "$WINDMC_FOR_TARGET"; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17504 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17507 $as_echo "no
" >&6; }
17512 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17516 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17518 if test $build = $target ; then
17519 WINDMC_FOR_TARGET="$2"
17521 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17524 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17528 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17532 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17535 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17536 if test "x
${build}" != "x
${host}" ; then
17537 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17538 # We already found the complete path
17539 ac_dir=`dirname $AR_FOR_TARGET`
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17541 $as_echo "pre-installed
in $ac_dir" >&6; }
17543 # Canadian cross, just use what we found
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17545 $as_echo "pre-installed
" >&6; }
17549 case " ${configdirs} " in
17554 if test $ok = yes; then
17555 # An in-tree tool is available and we can use it
17556 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17558 $as_echo "just compiled
" >&6; }
17559 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17560 # We already found the complete path
17561 ac_dir=`dirname $AR_FOR_TARGET`
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17563 $as_echo "pre-installed
in $ac_dir" >&6; }
17564 elif test "x
$target" = "x
$host"; then
17565 # We can use an host tool
17566 AR_FOR_TARGET='$(AR)'
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17568 $as_echo "host tool
" >&6; }
17570 # We need a cross tool
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17572 $as_echo "pre-installed
" >&6; }
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17577 $as_echo_n "checking where to
find the target as...
" >&6; }
17578 if test "x
${build}" != "x
${host}" ; then
17579 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17580 # We already found the complete path
17581 ac_dir=`dirname $AS_FOR_TARGET`
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17583 $as_echo "pre-installed
in $ac_dir" >&6; }
17585 # Canadian cross, just use what we found
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17587 $as_echo "pre-installed
" >&6; }
17591 case " ${configdirs} " in
17596 if test $ok = yes; then
17597 # An in-tree tool is available and we can use it
17598 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17600 $as_echo "just compiled
" >&6; }
17601 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $AS_FOR_TARGET`
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17605 $as_echo "pre-installed
in $ac_dir" >&6; }
17606 elif test "x
$target" = "x
$host"; then
17607 # We can use an host tool
17608 AS_FOR_TARGET='$(AS)'
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17610 $as_echo "host tool
" >&6; }
17612 # We need a cross tool
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17614 $as_echo "pre-installed
" >&6; }
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17619 $as_echo_n "checking where to
find the target cc...
" >&6; }
17620 if test "x
${build}" != "x
${host}" ; then
17621 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17622 # We already found the complete path
17623 ac_dir=`dirname $CC_FOR_TARGET`
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17625 $as_echo "pre-installed
in $ac_dir" >&6; }
17627 # Canadian cross, just use what we found
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17629 $as_echo "pre-installed
" >&6; }
17633 case " ${configdirs} " in
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17642 $as_echo "just compiled
" >&6; }
17643 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $CC_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17647 $as_echo "pre-installed
in $ac_dir" >&6; }
17648 elif test "x
$target" = "x
$host"; then
17649 # We can use an host tool
17650 CC_FOR_TARGET='$(CC)'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17652 $as_echo "host tool
" >&6; }
17654 # We need a cross tool
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17656 $as_echo "pre-installed
" >&6; }
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17661 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17662 if test "x
${build}" != "x
${host}" ; then
17663 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17664 # We already found the complete path
17665 ac_dir=`dirname $CXX_FOR_TARGET`
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17667 $as_echo "pre-installed
in $ac_dir" >&6; }
17669 # Canadian cross, just use what we found
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17671 $as_echo "pre-installed
" >&6; }
17675 case " ${configdirs} " in
17679 case ,${enable_languages}, in
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
17685 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'
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17687 $as_echo "just compiled
" >&6; }
17688 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $CXX_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17692 $as_echo "pre-installed
in $ac_dir" >&6; }
17693 elif test "x
$target" = "x
$host"; then
17694 # We can use an host tool
17695 CXX_FOR_TARGET='$(CXX)'
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
++ for libstdc
++" >&5
17706 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17707 if test "x
${build}" != "x
${host}" ; then
17708 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17709 # We already found the complete path
17710 ac_dir=`dirname $RAW_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 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'
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17732 $as_echo "just compiled
" >&6; }
17733 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17737 $as_echo "pre-installed
in $ac_dir" >&6; }
17738 elif test "x
$target" = "x
$host"; then
17739 # We can use an host tool
17740 RAW_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 dlltool
" >&5
17751 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17752 if test "x
${build}" != "x
${host}" ; then
17753 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17754 # We already found the complete path
17755 ac_dir=`dirname $DLLTOOL_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
17770 if test $ok = yes; then
17771 # An in-tree tool is available and we can use it
17772 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17774 $as_echo "just compiled
" >&6; }
17775 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17776 # We already found the complete path
17777 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17779 $as_echo "pre-installed
in $ac_dir" >&6; }
17780 elif test "x
$target" = "x
$host"; then
17781 # We can use an host tool
17782 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17784 $as_echo "host tool
" >&6; }
17786 # We need a cross tool
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17788 $as_echo "pre-installed
" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17793 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17794 if test "x
${build}" != "x
${host}" ; then
17795 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17796 # We already found the complete path
17797 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17799 $as_echo "pre-installed
in $ac_dir" >&6; }
17801 # Canadian cross, just use what we found
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17803 $as_echo "pre-installed
" >&6; }
17806 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17807 # We already found the complete path
17808 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17810 $as_echo "pre-installed
in $ac_dir" >&6; }
17811 elif test "x
$target" = "x
$host"; then
17812 # We can use an host tool
17813 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17815 $as_echo "host tool
" >&6; }
17817 # We need a cross tool
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17819 $as_echo "pre-installed
" >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17824 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17825 if test "x
${build}" != "x
${host}" ; then
17826 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17827 # We already found the complete path
17828 ac_dir=`dirname $GCC_FOR_TARGET`
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17830 $as_echo "pre-installed
in $ac_dir" >&6; }
17832 # Canadian cross, just use what we found
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17834 $as_echo "pre-installed
" >&6; }
17838 case " ${configdirs} " in
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17847 $as_echo "just compiled
" >&6; }
17848 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17849 # We already found the complete path
17850 ac_dir=`dirname $GCC_FOR_TARGET`
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17852 $as_echo "pre-installed
in $ac_dir" >&6; }
17853 elif test "x
$target" = "x
$host"; then
17854 # We can use an host tool
17855 GCC_FOR_TARGET='$()'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17857 $as_echo "host tool
" >&6; }
17859 # We need a cross tool
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17861 $as_echo "pre-installed
" >&6; }
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17866 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17867 if test "x
${build}" != "x
${host}" ; then
17868 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17869 # We already found the complete path
17870 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17872 $as_echo "pre-installed
in $ac_dir" >&6; }
17874 # Canadian cross, just use what we found
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17876 $as_echo "pre-installed
" >&6; }
17880 case " ${configdirs} " in
17884 case ,${enable_languages}, in
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -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
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17897 $as_echo "pre-installed
in $ac_dir" >&6; }
17898 elif test "x
$target" = "x
$host"; then
17899 # We can use an host tool
17900 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo
" >&5
17911 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17912 if test "x
${build}" != "x
${host}" ; then
17913 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GOC_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 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -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
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GOC_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17942 $as_echo "pre-installed
in $ac_dir" >&6; }
17943 elif test "x
$target" = "x
$host"; then
17944 # We can use an host tool
17945 GOC_FOR_TARGET='$(GOC)'
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 gdc
" >&5
17956 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17957 if test "x
${build}" != "x
${host}" ; then
17958 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GDC_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 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -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
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GDC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17987 $as_echo "pre-installed
in $ac_dir" >&6; }
17988 elif test "x
$target" = "x
$host"; then
17989 # We can use an host tool
17990 GDC_FOR_TARGET='$(GDC)'
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 gm2
" >&5
18001 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18002 if test "x
${build}" != "x
${host}" ; then
18003 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18004 # We already found the complete path
18005 ac_dir=`dirname $GM2_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 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -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
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GM2_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18032 $as_echo "pre-installed
in $ac_dir" >&6; }
18033 elif test "x
$target" = "x
$host"; then
18034 # We can use an host tool
18035 GM2_FOR_TARGET='$(GM2)'
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
/*"
18606 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18607 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18608 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18610 hppa*64*-*-hpux*) ;;
18611 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18615 ac_config_files="$ac_config_files Makefile
"
18617 cat >confcache <<\_ACEOF
18618 # This file is a shell script that caches the results of configure
18619 # tests run on this system so they can be shared between configure
18620 # scripts and configure runs, see configure's option --config-cache.
18621 # It is not useful on other systems. If it contains results you don't
18622 # want to keep, you may remove or edit it.
18624 # config.status only pays attention to the cache file if you give it
18625 # the --recheck option to rerun configure.
18627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18629 # following values.
18633 # The following way of writing the cache mishandles newlines in values,
18634 # but we know of no workaround that is simple, portable, and efficient.
18635 # So, we kill variables containing newlines.
18636 # Ultrix sh set writes to stderr and can't be redirected directly,
18637 # and sets the high bit in the cache file unless we assign to the vars.
18639 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18640 eval ac_val=\$$ac_var
18644 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18645 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18648 _ | IFS | as_nl) ;; #(
18649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18650 *) { eval $ac_var=; unset $ac_var;} ;;
18656 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18657 *${as_nl}ac_space=\ *)
18658 # `set' does not quote correctly, so add quotes: double-quote
18659 # substitution turns \\\\ into \\, and sed turns \\ into \.
18662 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18665 # `set' quotes correctly as required by POSIX, so do not add quotes.
18666 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18677 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18679 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18680 if test -w "$cache_file"; then
18681 if test "x
$cache_file" != "x
/dev
/null
"; then
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18683 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18684 if test ! -f "$cache_file" || test -h "$cache_file"; then
18685 cat confcache >"$cache_file"
18687 case $cache_file in #(
18689 mv -f confcache "$cache_file"$$ &&
18690 mv -f "$cache_file"$$ "$cache_file" ;; #(
18692 mv -f confcache "$cache_file" ;;
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18698 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18703 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18704 # Let make expand exec_prefix.
18705 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18707 # Transform confdefs.h into DEFS.
18708 # Protect against shell expansion while executing Makefile rules.
18709 # Protect against Makefile macro expansion.
18711 # If the first sed substitution is executed (which looks for macros that
18712 # take arguments), then branch to the quote section. Otherwise,
18713 # look for a macro that doesn't take arguments.
18723 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18725 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18729 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18742 DEFS=`sed -n "$ac_script" confdefs.h`
18748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18749 # 1. Remove the extension, and $U if already installed.
18750 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18753 # will be set to the directory where LIBOBJS objects are built.
18754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18757 LIBOBJS=$ac_libobjs
18759 LTLIBOBJS=$ac_ltlibobjs
18763 : "${CONFIG_STATUS=./config.status}"
18765 ac_clean_files_save=$ac_clean_files
18766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18772 # Generated by $as_me.
18773 # Run this file to recreate the current configuration.
18774 # Compiler output produced by configure, useful for debugging
18775 # configure, is in config.log if it exists.
18778 ac_cs_recheck=false
18781 SHELL=\${CONFIG_SHELL-$SHELL}
18784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18785 ## -------------------- ##
18786 ## M4sh Initialization. ##
18787 ## -------------------- ##
18789 # Be more Bourne compatible
18790 DUALCASE=1; export DUALCASE # for MKS sh
18791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18795 # is contrary to our usage. Disable this feature.
18796 alias -g '${1+"$@"}'='"$@"'
18797 setopt NO_GLOB_SUBST
18799 case `(set -o) 2>/dev/null` in #(
18811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18813 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18814 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18815 # Prefer a ksh shell builtin over an external printf program on Solaris,
18816 # but without wasting forks for bash or zsh.
18817 if test -z "$BASH_VERSION$ZSH_VERSION" \
18818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18819 as_echo
='print -r --'
18820 as_echo_n
='print -rn --'
18821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18822 as_echo
='printf %s\n'
18823 as_echo_n
='printf %s'
18825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18826 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18827 as_echo_n
='/usr/ucb/echo -n'
18829 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18830 as_echo_n_body
='eval
18834 expr "X$arg" : "X\\(.*\\)$as_nl";
18835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18839 export as_echo_n_body
18840 as_echo_n
='sh -c $as_echo_n_body as_echo'
18842 export as_echo_body
18843 as_echo
='sh -c $as_echo_body as_echo'
18846 # The user is always right.
18847 if test "${PATH_SEPARATOR+set}" != set; then
18849 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18850 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18857 # We need space, tab and new line, in precisely that order. Quoting is
18858 # there to prevent editors from complaining about space-tab.
18859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18860 # splitting by setting IFS to empty value.)
18863 # Find who we are. Look in the path if we contain no directory separator.
18866 *[\\/]* ) as_myself
=$0 ;;
18867 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18868 for as_dir
in $PATH
18871 test -z "$as_dir" && as_dir
=.
18872 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18878 # We did not find ourselves, most probably we were run as `sh COMMAND'
18879 # in which case we are not to be found in the path.
18880 if test "x$as_myself" = x
; then
18883 if test ! -f "$as_myself"; then
18884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18888 # Unset variables that we do not need and which cause bugs (e.g. in
18889 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18890 # suppresses any "Segmentation fault" message there. '((' could
18891 # trigger a bug in pdksh 5.2.14.
18892 for as_var
in BASH_ENV ENV MAIL MAILPATH
18893 do eval test x\
${$as_var+set} = xset \
18894 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18907 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18910 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18911 # ----------------------------------------
18912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18914 # script with STATUS, using 1 if that was 0.
18917 as_status
=$1; test $as_status -eq 0 && as_status
=1
18919 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18922 $as_echo "$as_me: error: $2" >&2
18923 as_fn_exit
$as_status
18927 # as_fn_set_status STATUS
18928 # -----------------------
18929 # Set $? to STATUS, without forking.
18930 as_fn_set_status
()
18933 } # as_fn_set_status
18935 # as_fn_exit STATUS
18936 # -----------------
18937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18941 as_fn_set_status
$1
18947 # Portably unset VAR.
18950 { eval $1=; unset $1;}
18952 as_unset
=as_fn_unset
18953 # as_fn_append VAR VALUE
18954 # ----------------------
18955 # Append the text in VALUE to the end of the definition contained in VAR. Take
18956 # advantage of any shell optimizations that allow amortized linear growth over
18957 # repeated appends, instead of the typical quadratic growth present in naive
18959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18960 eval 'as_fn_append ()
18971 # as_fn_arith ARG...
18972 # ------------------
18973 # Perform arithmetic evaluation on the ARGs, and store the result in the
18974 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18975 # must be portable across $(()) and expr.
18976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18977 eval 'as_fn_arith ()
18984 as_val
=`expr "$@" || test $? -eq 1`
18989 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18990 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18996 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18997 as_basename
=basename
19002 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19008 as_me
=`$as_basename -- "$0" ||
19009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19010 X"$0" : 'X\(//\)$' \| \
19011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19013 sed '/^.*\/\([^/][^/]*\)\/*$/{
19027 # Avoid depending upon Character Ranges.
19028 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19029 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19030 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19031 as_cr_digits
='0123456789'
19032 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19034 ECHO_C
= ECHO_N
= ECHO_T
=
19035 case `echo -n x` in #(((((
19037 case `echo 'xy\c'` in
19038 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19040 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19047 rm -f conf$$ conf$$.exe conf$$.
file
19048 if test -d conf$$.dir
; then
19049 rm -f conf$$.dir
/conf$$.
file
19052 mkdir conf$$.dir
2>/dev
/null
19054 if (echo >conf$$.
file) 2>/dev
/null
; then
19055 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19057 # ... but there are two gotchas:
19058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19060 # In both cases, we have to default to `cp -pR'.
19061 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19063 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19071 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19072 rmdir conf$$.dir
2>/dev
/null
19077 # Create "$as_dir" as a directory, including parents if necessary.
19082 -*) as_dir
=.
/$as_dir;;
19084 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19088 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19089 *) as_qdir
=$as_dir;;
19091 as_dirs
="'$as_qdir' $as_dirs"
19092 as_dir
=`$as_dirname -- "$as_dir" ||
19093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19094 X"$as_dir" : 'X\(//\)[^/]' \| \
19095 X"$as_dir" : 'X\(//\)$' \| \
19096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19097 $as_echo X"$as_dir" |
19098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19102 /^X\(\/\/\)[^/].*/{
19115 test -d "$as_dir" && break
19117 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19118 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19122 if mkdir
-p .
2>/dev
/null
; then
19123 as_mkdir_p
='mkdir -p "$as_dir"'
19125 test -d .
/-p && rmdir .
/-p
19130 # as_fn_executable_p FILE
19131 # -----------------------
19132 # Test if FILE is an executable regular file.
19133 as_fn_executable_p
()
19135 test -f "$1" && test -x "$1"
19136 } # as_fn_executable_p
19137 as_test_x
='test -x'
19138 as_executable_p
=as_fn_executable_p
19140 # Sed expression to map a string onto a valid CPP name.
19141 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19143 # Sed expression to map a string onto a valid variable name.
19144 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19148 ## ----------------------------------- ##
19149 ## Main body of $CONFIG_STATUS script. ##
19150 ## ----------------------------------- ##
19152 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19155 # Save the log message, to keep $0 and so on meaningful, and to
19156 # report actual input values of CONFIG_FILES etc. instead of their
19157 # values after options handling.
19159 This file was extended by $as_me, which was
19160 generated by GNU Autoconf 2.69. Invocation command line was
19162 CONFIG_FILES = $CONFIG_FILES
19163 CONFIG_HEADERS = $CONFIG_HEADERS
19164 CONFIG_LINKS = $CONFIG_LINKS
19165 CONFIG_COMMANDS = $CONFIG_COMMANDS
19168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19173 case $ac_config_files in *"
19174 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19180 # Files that config.status was made for.
19181 config_files="$ac_config_files"
19185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19187 \`$as_me' instantiates files and other configuration actions
19188 from templates according to the current configuration. Unless the files
19189 and actions are specified as TAGs, all are instantiated by default.
19191 Usage: $0 [OPTION]... [TAG]...
19193 -h, --help print this help, then exit
19194 -V, --version print version number and configuration settings, then exit
19195 --config print configuration, then exit
19196 -q, --quiet, --silent
19197 do not print progress messages
19198 -d, --debug don't remove temporary files
19199 --recheck update $as_me by reconfiguring in the same conditions
19200 --file=FILE[:TEMPLATE]
19201 instantiate the configuration file FILE
19203 Configuration files:
19206 Report bugs to the package provider."
19209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19210 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19213 configured by $0, generated by GNU Autoconf 2.69,
19214 with options \\"\$ac_cs_config\\"
19216 Copyright (C) 2012 Free Software Foundation, Inc.
19217 This config.status script is free software; the Free Software Foundation
19218 gives unlimited permission to copy, distribute and modify it."
19224 test -n "\$AWK" || AWK=awk
19227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19228 # The default lists apply if the user does not specify any file.
19234 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19235 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19239 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19251 # Handling of the options.
19252 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19254 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19255 $as_echo "$ac_cs_version"; exit ;;
19256 --config |
--confi |
--conf |
--con |
--co |
--c )
19257 $as_echo "$ac_cs_config"; exit ;;
19258 --debug |
--debu |
--deb |
--de |
--d |
-d )
19260 --file |
--fil |
--fi |
--f )
19263 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19264 '') as_fn_error $?
"missing file argument" ;;
19266 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19267 ac_need_defaults
=false
;;
19268 --he |
--h |
--help |
--hel |
-h )
19269 $as_echo "$ac_cs_usage"; exit ;;
19270 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19271 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19274 # This is an error.
19275 -*) as_fn_error $?
"unrecognized option: \`$1'
19276 Try \`$0 --help' for more information." ;;
19278 *) as_fn_append ac_config_targets
" $1"
19279 ac_need_defaults
=false
;;
19285 ac_configure_extra_args
=
19287 if $ac_cs_silent; then
19289 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 if \$ac_cs_recheck; then
19295 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19298 CONFIG_SHELL='$SHELL'
19299 export CONFIG_SHELL
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19309 ## Running $as_me. ##
19315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 extrasub_build="$extrasub_build"
19320 extrasub_host="$extrasub_host"
19321 extrasub_target="$extrasub_target"
19325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19327 # Handling of arguments.
19328 for ac_config_target
in $ac_config_targets
19330 case $ac_config_target in
19331 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19333 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19338 # If the user did not use the arguments to specify the items to instantiate,
19339 # then the envvar interface is used. Set only those that are not.
19340 # We use the long form for the default assignment because of an extremely
19341 # bizarre bug on SunOS 4.1.3.
19342 if $ac_need_defaults; then
19343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19346 # Have a temporary directory for convenience. Make it in the build tree
19347 # simply because there is no reason against having it here, and in addition,
19348 # creating and moving files from /tmp can sometimes cause problems.
19349 # Hook for its removal unless debugging.
19350 # Note that there is a small window in which the directory will not be cleaned:
19351 # after its creation but before its name has been assigned to `$tmp'.
19355 trap 'exit_status=$?
19356 : "${ac_tmp:=$tmp}"
19357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19359 trap 'as_fn_exit 1' 1 2 13 15
19361 # Create a (secure) tmp directory for tmp files.
19364 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19368 tmp
=.
/conf$$
-$RANDOM
19369 (umask 077 && mkdir
"$tmp")
19370 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19373 # Set up the scripts for CONFIG_FILES section.
19374 # No need to generate them if there are no CONFIG_FILES.
19375 # This happens for instance with `./config.status config.h'.
19376 if test -n "$CONFIG_FILES"; then
19378 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19379 ac_cs_awk_getline
=:
19380 ac_cs_awk_pipe_init
=
19381 ac_cs_awk_read_file
='
19382 while ((getline aline < (F[key])) > 0)
19385 ac_cs_awk_pipe_fini
=
19387 ac_cs_awk_getline
=false
19388 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19389 ac_cs_awk_read_file
='
19391 print "cat " F[key] " &&"
19392 '$ac_cs_awk_pipe_init
19393 # The final `:' finishes the AND list.
19394 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19396 ac_cr
=`echo X | tr X '\015'`
19397 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19398 # But we know of no other shell where ac_cr would be empty at this
19399 # point, so we can use a bashism as a fallback.
19400 if test "x$ac_cr" = x
; then
19401 eval ac_cr
=\$
\'\\r
\'
19403 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19407 ac_cs_awk_cr
=$ac_cr
19410 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19413 # Create commands to substitute file output variables.
19415 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19416 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19417 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19420 } >conf$
$files.sh
&&
19421 . .
/conf$
$files.sh ||
19422 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19423 rm -f conf$
$files.sh
19426 echo "cat >conf$$subs.awk <<_ACEOF" &&
19427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19429 } >conf$$subs.sh ||
19430 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19433 for ac_last_try in false false false false false :; do
19434 . ./conf$$subs.sh ||
19435 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19437 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19438 if test $ac_delim_n = $ac_delim_num; then
19440 elif $ac_last_try; then
19441 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19443 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19446 rm -f conf$$subs.sh
19448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19449 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19453 s/^/S["/; s
/!.
*/"]=/
19463 s/\(.\{148\}\)..*/\1/
19465 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19470 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19477 s/\(.\{148\}\)..*/\1/
19479 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19483 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19488 ' <conf$$subs.awk | sed '
19493 ' >>$CONFIG_STATUS || ac_write_fail=1
19494 rm -f conf$$subs.awk
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19497 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19498 for (key in S) S_is_set[key] = 1
19500 \$ac_cs_awk_pipe_init
19504 nfields = split(line, field, "@
")
19506 len = length(field[1])
19507 for (i = 2; i < nfields; i++) {
19509 keylen = length(key)
19510 if (S_is_set[key]) {
19512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19513 len += length(value) + length(field[++i])
19518 if (nfields == 3 && !substed) {
19520 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19521 \$ac_cs_awk_read_file
19527 \$ac_cs_awk_pipe_fini
19530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19531 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19532 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19535 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19536 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19541 # trailing colons and then remove the whole line if VPATH becomes empty
19542 # (actually we leave an empty line to preserve line numbers).
19543 if test "x
$srcdir" = x.; then
19544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19563 fi # test -n "$CONFIG_FILES"
19566 eval set X " :F
$CONFIG_FILES "
19571 :[FHLC]) ac_mode=$ac_tag; continue;;
19573 case $ac_mode$ac_tag in
19575 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19576 :[FH]-) ac_tag=-:-;;
19577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19594 -) ac_f="$ac_tmp/stdin";;
19595 *) # Look for the file first in the build tree, then in the source tree
19596 # (if the path is not absolute). The absolute path cannot be DOS-style,
19597 # because $ac_f cannot contain `:'.
19601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19605 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19606 as_fn_append ac_file_inputs " '$ac_f'"
19609 # Let's still pretend it is `configure' which instantiates (i.e., don't
19610 # use $as_me), people would be surprised to read:
19611 # /* config.h. Generated by config.status. */
19612 configure_input='Generated from '`
19613 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19615 if test x"$ac_file" != x-; then
19616 configure_input="$ac_file.
$configure_input"
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19618 $as_echo "$as_me: creating
$ac_file" >&6;}
19620 # Neutralize special characters interpreted by sed in replacement strings.
19621 case $configure_input in #(
19622 *\&* | *\|* | *\\* )
19623 ac_sed_conf_input=`$as_echo "$configure_input" |
19624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19625 *) ac_sed_conf_input=$configure_input;;
19629 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19630 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19635 ac_dir=`$as_dirname -- "$ac_file" ||
19636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$ac_file" : 'X\(//\)[^/]' \| \
19638 X"$ac_file" : 'X\(//\)$' \| \
19639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19640 $as_echo X"$ac_file" |
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19645 /^X\(\/\/\)[^/].*/{
19658 as_dir="$ac_dir"; as_fn_mkdir_p
19662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19665 # A "..
" for each directory in $ac_dir_suffix.
19666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19667 case $ac_top_builddir_sub in
19668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19672 ac_abs_top_builddir=$ac_pwd
19673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19674 # for backward compatibility:
19675 ac_top_builddir=$ac_top_build_prefix
19678 .) # We are building in place.
19680 ac_top_srcdir=$ac_top_builddir_sub
19681 ac_abs_top_srcdir=$ac_pwd ;;
19682 [\\/]* | ?:[\\/]* ) # Absolute name.
19683 ac_srcdir=$srcdir$ac_dir_suffix;
19684 ac_top_srcdir=$srcdir
19685 ac_abs_top_srcdir=$srcdir ;;
19686 *) # Relative name.
19687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19688 ac_top_srcdir=$ac_top_build_prefix$srcdir
19689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707 # If the template does not know about datarootdir, expand it.
19708 # FIXME: This hack should be removed a few years after 2.60.
19709 ac_datarootdir_hack=; ac_datarootdir_seen=
19720 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19721 *datarootdir*) ac_datarootdir_seen=yes;;
19722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19724 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19727 ac_datarootdir_hack='
19728 s&@datadir@&$datadir&g
19729 s&@docdir@&$docdir&g
19730 s&@infodir@&$infodir&g
19731 s&@localedir@&$localedir&g
19732 s&@mandir@&$mandir&g
19733 s&\\\${datarootdir}&$datarootdir&g' ;;
19737 # Neutralize VPATH when `$srcdir' = `.'.
19738 # Shell code in configure.ac might set extrasub.
19739 # FIXME: do we really want to maintain this feature?
19740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19741 ac_sed_extra="$ac_vpsub
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19746 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19747 s|@configure_input@|
$ac_sed_conf_input|
;t t
19748 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19749 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19750 s
&@srcdir@
&$ac_srcdir&;t t
19751 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19752 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19753 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19754 s
&@builddir@
&$ac_builddir&;t t
19755 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19756 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19757 s
&@INSTALL@
&$ac_INSTALL&;t t
19758 $ac_datarootdir_hack
19760 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19761 if $ac_cs_awk_getline; then
19762 $AWK -f "$ac_tmp/subs.
awk"
19764 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19766 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19771 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19773 which seems to be undefined. Please make sure it is defined" >&5
19774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19775 which seems to be undefined. Please make sure it is defined" >&2;}
19777 rm -f "$ac_tmp/stdin"
19779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19790 case $ac_file$ac_mode in
19791 "Makefile":F) sed "$extrasub_build" Makefile |
19792 sed "$extrasub_host" |
19793 sed "$extrasub_target" > mf$$
19794 mv -f mf$$ Makefile ;;
19802 ac_clean_files=$ac_clean_files_save
19804 test $ac_write_fail = 0 ||
19805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19808 # configure is writing to config.log, and then calls config.status.
19809 # config.status does its own redirection, appending to config.log.
19810 # Unfortunately, on DOS this fails, as config.log is still kept open
19811 # by configure, so config.status won't be able to
write to it
; its
19812 # output is simply discarded. So we exec the FD to /dev/null,
19813 # effectively closing config.log, so it can be properly (re)opened and
19814 # appended to by config.status. When coming back to configure, we
19815 # need to make the FD available again.
19816 if test "$no_create" != yes; then
19818 ac_config_status_args
=
19819 test "$silent" = yes &&
19820 ac_config_status_args
="$ac_config_status_args --quiet"
19822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19825 # would make configure fail if this is the last instruction.
19826 $ac_cs_success || as_fn_exit
1
19828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}