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
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
724 extra_liboffloadmic_configure_flags
751 TOPLEVEL_CONFIGURE_ARGUMENTS
779 program_transform_name
790 ac_subst_files
='serialization_dependencies
796 enable_option_checking
799 enable_as_accelerator_for
800 enable_offload_targets
801 enable_offload_defaulted
804 enable_compressed_debug_sections
806 enable_libquadmath_support
825 with_static_standard_libraries
832 enable_isl_version_check
834 enable_linker_plugin_configure_flags
835 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
905 # Initialize some variables set by options.
907 ac_init_version
=false
908 ac_unrecognized_opts
=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name
=s
,x
,x
,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir
='${exec_prefix}/bin'
934 sbindir
='${exec_prefix}/sbin'
935 libexecdir
='${exec_prefix}/libexec'
936 datarootdir
='${prefix}/share'
937 datadir
='${datarootdir}'
938 sysconfdir
='${prefix}/etc'
939 sharedstatedir
='${prefix}/com'
940 localstatedir
='${prefix}/var'
941 includedir
='${prefix}/include'
942 oldincludedir
='/usr/include'
943 docdir
='${datarootdir}/doc/${PACKAGE}'
944 infodir
='${datarootdir}/info'
949 libdir
='${exec_prefix}/lib'
950 localedir
='${datarootdir}/locale'
951 mandir
='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\
$ac_option
965 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
976 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
978 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
981 -build |
--build |
--buil |
--bui |
--bu)
982 ac_prev
=build_alias
;;
983 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
984 build_alias
=$ac_optarg ;;
986 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
987 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
988 ac_prev
=cache_file
;;
989 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
990 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
991 cache_file
=$ac_optarg ;;
994 cache_file
=config.cache
;;
996 -datadir |
--datadir |
--datadi |
--datad)
998 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
999 datadir
=$ac_optarg ;;
1001 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1002 |
--dataroo |
--dataro |
--datar)
1003 ac_prev
=datarootdir
;;
1004 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1005 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1006 datarootdir
=$ac_optarg ;;
1008 -disable-* |
--disable-*)
1009 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1012 as_fn_error $?
"invalid feature name: $ac_useropt"
1013 ac_useropt_orig
=$ac_useropt
1014 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_
$ac_useropt"
1019 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep
=', ';;
1022 eval enable_
$ac_useropt=no
;;
1024 -docdir |
--docdir |
--docdi |
--doc |
--do)
1026 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1027 docdir
=$ac_optarg ;;
1029 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1031 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1032 dvidir
=$ac_optarg ;;
1034 -enable-* |
--enable-*)
1035 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1038 as_fn_error $?
"invalid feature name: $ac_useropt"
1039 ac_useropt_orig
=$ac_useropt
1040 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_
$ac_useropt"
1045 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep
=', ';;
1048 eval enable_
$ac_useropt=\
$ac_optarg ;;
1050 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1051 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1052 |
--exec |
--exe |
--ex)
1053 ac_prev
=exec_prefix
;;
1054 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1055 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1056 |
--exec=* |
--exe=* |
--ex=*)
1057 exec_prefix
=$ac_optarg ;;
1059 -gas |
--gas |
--ga |
--g)
1060 # Obsolete; use --with-gas.
1063 -help |
--help |
--hel |
--he |
-h)
1064 ac_init_help
=long
;;
1065 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1066 ac_init_help
=recursive
;;
1067 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1068 ac_init_help
=short
;;
1070 -host |
--host |
--hos |
--ho)
1071 ac_prev
=host_alias
;;
1072 -host=* |
--host=* |
--hos=* |
--ho=*)
1073 host_alias
=$ac_optarg ;;
1075 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1077 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1079 htmldir
=$ac_optarg ;;
1081 -includedir |
--includedir |
--includedi |
--included |
--include \
1082 |
--includ |
--inclu |
--incl |
--inc)
1083 ac_prev
=includedir
;;
1084 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1085 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1086 includedir
=$ac_optarg ;;
1088 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1090 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1091 infodir
=$ac_optarg ;;
1093 -libdir |
--libdir |
--libdi |
--libd)
1095 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1096 libdir
=$ac_optarg ;;
1098 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1099 |
--libexe |
--libex |
--libe)
1100 ac_prev
=libexecdir
;;
1101 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1102 |
--libexe=* |
--libex=* |
--libe=*)
1103 libexecdir
=$ac_optarg ;;
1105 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1106 ac_prev
=localedir
;;
1107 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1108 localedir
=$ac_optarg ;;
1110 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1111 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1112 ac_prev
=localstatedir
;;
1113 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1114 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1115 localstatedir
=$ac_optarg ;;
1117 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1119 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1120 mandir
=$ac_optarg ;;
1122 -nfp |
--nfp |
--nf)
1123 # Obsolete; use --without-fp.
1126 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1127 |
--no-cr |
--no-c |
-n)
1130 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1131 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1134 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1135 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1136 |
--oldin |
--oldi |
--old |
--ol |
--o)
1137 ac_prev
=oldincludedir
;;
1138 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1139 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1140 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1141 oldincludedir
=$ac_optarg ;;
1143 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1145 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1146 prefix
=$ac_optarg ;;
1148 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1149 |
--program-pre |
--program-pr |
--program-p)
1150 ac_prev
=program_prefix
;;
1151 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1152 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1153 program_prefix
=$ac_optarg ;;
1155 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1156 |
--program-suf |
--program-su |
--program-s)
1157 ac_prev
=program_suffix
;;
1158 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1159 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1160 program_suffix
=$ac_optarg ;;
1162 -program-transform-name |
--program-transform-name \
1163 |
--program-transform-nam |
--program-transform-na \
1164 |
--program-transform-n |
--program-transform- \
1165 |
--program-transform |
--program-transfor \
1166 |
--program-transfo |
--program-transf \
1167 |
--program-trans |
--program-tran \
1168 |
--progr-tra |
--program-tr |
--program-t)
1169 ac_prev
=program_transform_name
;;
1170 -program-transform-name=* |
--program-transform-name=* \
1171 |
--program-transform-nam=* |
--program-transform-na=* \
1172 |
--program-transform-n=* |
--program-transform-=* \
1173 |
--program-transform=* |
--program-transfor=* \
1174 |
--program-transfo=* |
--program-transf=* \
1175 |
--program-trans=* |
--program-tran=* \
1176 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1177 program_transform_name
=$ac_optarg ;;
1179 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1181 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1182 pdfdir
=$ac_optarg ;;
1184 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1186 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1189 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1190 |
-silent |
--silent |
--silen |
--sile |
--sil)
1193 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1195 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1197 sbindir
=$ac_optarg ;;
1199 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1200 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1201 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1203 ac_prev
=sharedstatedir
;;
1204 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1205 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1206 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1208 sharedstatedir
=$ac_optarg ;;
1210 -site |
--site |
--sit)
1212 -site=* |
--site=* |
--sit=*)
1215 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1217 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1218 srcdir
=$ac_optarg ;;
1220 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1221 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1222 ac_prev
=sysconfdir
;;
1223 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1224 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1225 sysconfdir
=$ac_optarg ;;
1227 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1228 ac_prev
=target_alias
;;
1229 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1230 target_alias
=$ac_optarg ;;
1232 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1235 -version |
--version |
--versio |
--versi |
--vers |
-V)
1236 ac_init_version
=: ;;
1239 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1242 as_fn_error $?
"invalid package name: $ac_useropt"
1243 ac_useropt_orig
=$ac_useropt
1244 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep
=', ';;
1252 eval with_
$ac_useropt=\
$ac_optarg ;;
1254 -without-* |
--without-*)
1255 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=no
;;
1271 # Obsolete; use --with-x.
1274 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1275 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1276 ac_prev
=x_includes
;;
1277 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1278 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1279 x_includes
=$ac_optarg ;;
1281 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1282 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1283 ac_prev
=x_libraries
;;
1284 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1285 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1286 x_libraries
=$ac_optarg ;;
1288 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1293 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1297 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1299 eval $ac_envvar=\
$ac_optarg
1300 export $ac_envvar ;;
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313 if test -n "$ac_prev"; then
1314 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $?
"missing argument to $ac_option"
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1321 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 # Check all directory arguments for consistency.
1327 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1332 eval ac_val
=\$
$ac_var
1333 # Remove trailing slashes.
1336 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\
$ac_val;;
1339 # Be sure to have absolute directory names.
1341 [\\/$
]* | ?
:[\\/]* ) continue;;
1342 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1344 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1352 target
=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x
; then
1356 if test "x$build_alias" = x
; then
1357 cross_compiling
=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1366 test "$silent" = yes && exec 6>/dev
/null
1369 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di
=`ls -di .` &&
1371 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $?
"working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $?
"pwd does not report name of working directory"
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted
=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir
=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted
=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1413 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1415 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1427 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 as_fn_error $?
"path to source, $srcdir, contains spaces"
1434 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1436 for ac_var
in $ac_precious_vars; do
1437 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1439 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures this package to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1513 --build=BUILD configure
for building on BUILD
[guessed
]
1514 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1515 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1519 if test -n "$ac_init_help"; then
1524 --disable-option-checking ignore unrecognized
--enable/--with options
1525 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1526 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1527 --enable-as-accelerator-for=ARG
1528 build as offload target compiler. Specify offload
1530 --enable-offload-targets=LIST
1531 enable offloading to devices from comma-separated
1532 LIST of TARGET
[=DIR
]. Use optional path to
find
1533 offload target compiler during the build
1534 --enable-offload-defaulted
1535 If enabled
, configured but not installed offload compilers and
1536 libgomp plugins are silently ignored. Useful
for distribution
1537 compilers where those are
in separate optional packages.
1539 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1540 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1541 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1542 Enable compressed debug sections
for gas
, gold or ld
1544 --disable-libquadmath do not build libquadmath directory
1545 --disable-libquadmath-support
1546 disable libquadmath support
for Fortran
1547 --enable-libada build libada directory
1548 --enable-libssp build libssp directory
1549 --disable-libstdcxx do not build libstdc
++-v3 directory
1550 --enable-liboffloadmic=ARG
1551 build liboffloadmic
[ARG
={no
,host,target
}]
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-shared build
host code as shared libraries
1565 --enable-stage1-languages[=all
]
1566 choose additional languages to build during stage1.
1567 Mostly useful
for compiler development
1568 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1570 --enable-vtable-verify Enable vtable verification feature
1571 --enable-serial-[{host,target,build}-]configure
1572 force sequential configuration of sub-packages for
1573 the host, target or build machine, or all
1575 --enable-maintainer-mode
1576 enable make rules and dependencies not useful (and
1577 sometimes confusing) to the casual installer
1578 --enable-stage1-checking[=all]
1579 choose additional checking for stage1 of the
1581 --enable-werror enable -Werror in bootstrap stage2 and later
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-build-libsubdir=DIR Directory where to find libraries for build system
1587 --with-system-zlib use installed libz
1588 --with-mpc=PATH specify prefix directory for installed MPC package.
1589 Equivalent to --with-mpc-include=PATH/include plus
1590 --with-mpc-lib=PATH/lib
1591 --with-mpc-include=PATH specify directory for installed MPC include files
1592 --with-mpc-lib=PATH specify directory for the installed MPC library
1593 --with-mpfr-dir=PATH this option has been REMOVED
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-dir=PATH this option has been REMOVED
1601 --with-gmp=PATH specify prefix directory for the installed GMP
1602 package. Equivalent to
1603 --with-gmp-include=PATH/include plus
1604 --with-gmp-lib=PATH/lib
1605 --with-gmp-include=PATH specify directory for installed GMP include files
1606 --with-gmp-lib=PATH specify directory for the installed GMP library
1607 --with-stage1-libs=LIBS libraries for stage1
1608 --with-static-standard-libraries
1609 use -static-libstdc++ and -static-libgcc
1611 --with-stage1-ldflags=FLAGS
1612 linker flags for stage1
1613 --with-boot-libs=LIBS libraries for stage2 and later
1614 --with-boot-ldflags=FLAGS
1615 linker flags for stage2 and later
1616 --with-isl=PATH Specify prefix directory for the installed isl
1617 package. Equivalent to
1618 --with-isl-include=PATH/include plus
1619 --with-isl-lib=PATH/lib
1620 --with-isl-include=PATH Specify directory for installed isl include files
1621 --with-isl-lib=PATH Specify the directory for the installed isl library
1622 --with-target-bdw-gc=PATHLIST
1623 specify prefix directory for installed bdw-gc
1624 package. Equivalent to
1625 --with-target-bdw-gc-include=PATH/include plus
1626 --with-target-bdw-gc-lib=PATH/lib
1627 --with-target-bdw-gc-include=PATHLIST
1628 specify directories for installed bdw-gc include
1630 --with-target-bdw-gc-lib=PATHLIST
1631 specify directories for installed bdw-gc library
1632 --with-gcc-major-version-only
1633 use only GCC major number in filesystem paths
1634 --with-build-sysroot=SYSROOT
1635 use sysroot as the system root during the build
1636 --with-debug-prefix-map='A
=B C
=D ...
'
1637 map A to B, C to D ... in debug information
1638 --with-build-config='NAME NAME2...
'
1639 use config/NAME.mk build configuration
1640 --with-build-time-tools=PATH
1641 use given path to find target tools during the build
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXX C++ compiler command
1652 CXXFLAGS C++ compiler flags
1654 additional configure arguments for build directories
1656 additional configure arguments for host directories
1658 additional configure arguments for target directories
1661 DLLTOOL DLLTOOL for the host
1662 DSYMUTIL DSYMUTIL for the host
1664 LIPO LIPO for the host
1666 RANLIB RANLIB for the host
1667 STRIP STRIP for the host
1668 WINDRES WINDRES for the host
1669 WINDMC WINDMC for the host
1670 OBJCOPY OBJCOPY for the host
1671 OBJDUMP OBJDUMP for the host
1672 OTOOL OTOOL for the host
1673 READELF READELF for the host
1681 GFORTRAN for the target
1691 DLLTOOL for the target
1693 DSYMUTIL for the target
1701 OBJCOPY for the target
1703 OBJDUMP for the target
1705 OTOOL for the target
1707 RANLIB for the target
1709 READELF for the target
1711 STRIP for the target
1713 WINDRES for the target
1715 WINDMC for the target
1717 Use these variables to override the choices made by `configure' or to
help
1718 it to
find libraries and programs with nonstandard names
/locations.
1720 Report bugs to the package provider.
1725 if test "$ac_init_help" = "recursive"; then
1726 # If there are subdirs, report their specific --help.
1727 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1728 test -d "$ac_dir" ||
1729 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1734 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1736 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1737 # A ".." for each directory in $ac_dir_suffix.
1738 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1739 case $ac_top_builddir_sub in
1740 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1741 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1744 ac_abs_top_builddir
=$ac_pwd
1745 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1746 # for backward compatibility:
1747 ac_top_builddir
=$ac_top_build_prefix
1750 .
) # We are building in place.
1752 ac_top_srcdir
=$ac_top_builddir_sub
1753 ac_abs_top_srcdir
=$ac_pwd ;;
1754 [\\/]* | ?
:[\\/]* ) # Absolute name.
1755 ac_srcdir
=$srcdir$ac_dir_suffix;
1756 ac_top_srcdir
=$srcdir
1757 ac_abs_top_srcdir
=$srcdir ;;
1759 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1760 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1761 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1763 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1765 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1766 # Check for guested configure.
1767 if test -f "$ac_srcdir/configure.gnu"; then
1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1770 elif test -f "$ac_srcdir/configure"; then
1772 $SHELL "$ac_srcdir/configure" --help=recursive
1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1780 test -n "$ac_init_help" && exit $ac_status
1781 if $ac_init_version; then
1784 generated by GNU Autoconf
2.69
1786 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1787 This configure
script is free software
; the Free Software Foundation
1788 gives unlimited permission to copy
, distribute and modify it.
1793 ## ------------------------ ##
1794 ## Autoconf initialization. ##
1795 ## ------------------------ ##
1797 # ac_fn_c_try_compile LINENO
1798 # --------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_compile
()
1802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1803 rm -f conftest.
$ac_objext
1804 if { { ac_try
="$ac_compile"
1806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1833 } # ac_fn_c_try_compile
1835 # ac_fn_cxx_try_compile LINENO
1836 # ----------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_cxx_try_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1845 *) ac_try_echo
=$ac_try;;
1847 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1851 if test -s conftest.err
; then
1852 grep -v '^ *+' conftest.err
>conftest.er1
1853 cat conftest.er1
>&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.
$ac_objext; then :
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.
$ac_ext >&5
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status
$ac_retval
1871 } # ac_fn_cxx_try_compile
1873 # ac_fn_cxx_try_link LINENO
1874 # -------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_cxx_try_link
()
1878 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1879 rm -f conftest.
$ac_objext conftest
$ac_exeext
1880 if { { ac_try
="$ac_link"
1882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1917 } # ac_fn_cxx_try_link
1919 # ac_fn_c_try_link LINENO
1920 # -----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1929 *) ac_try_echo
=$ac_try;;
1931 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1935 if test -s conftest.err
; then
1936 grep -v '^ *+' conftest.err
>conftest.er1
1937 cat conftest.er1
>&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_c_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest
$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest
$ac_exeext
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.
$ac_ext >&5
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status
$ac_retval
1963 } # ac_fn_c_try_link
1964 cat >config.log
<<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1968 It was created by $as_me, which was
1969 generated by GNU Autoconf 2.69. Invocation command line was
1981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir
=.
2005 $as_echo "PATH: $as_dir"
2021 # Keep a trace of the command line.
2022 # Strip out --no-create and --no-recursion so they do not pile up.
2023 # Strip out --silent because we don't want to record it for future runs.
2024 # Also quote any args containing shell meta-characters.
2025 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_must_keep_next
=false
2035 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2036 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2037 |
-silent |
--silent |
--silen |
--sile |
--sil)
2040 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2045 as_fn_append ac_configure_args1
" '$ac_arg'"
2046 if test $ac_must_keep_next = true
; then
2047 ac_must_keep_next
=false
# Got value, back to normal.
2050 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2051 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2052 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2053 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2054 case "$ac_configure_args0 " in
2055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 -* ) ac_must_keep_next
=true
;;
2061 as_fn_append ac_configure_args
" '$ac_arg'"
2066 { ac_configure_args0
=; unset ac_configure_args0
;}
2067 { ac_configure_args1
=; unset ac_configure_args1
;}
2069 # When interrupted or exit'd, cleanup temporary files, and complete
2070 # config.log. We remove comments because anyway the quotes in there
2071 # would cause problems or look ugly.
2072 # WARNING: Use '\'' to represent an apostrophe within the trap.
2073 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074 trap 'exit_status=$?
2075 # Save into config.log some information that might help in debugging.
2079 $as_echo "## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##"
2083 # The following way of writing the cache mishandles newlines in values,
2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 eval ac_val=\$$ac_var
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 $as_echo "## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##"
2119 for ac_var in $ac_subst_vars
2121 eval ac_val=\$$ac_var
2123 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 $as_echo "$ac_var='\''$ac_val'\''"
2129 if test -n "$ac_subst_files"; then
2130 $as_echo "## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##"
2134 for ac_var
in $ac_subst_files
2136 eval ac_val
=\$
$ac_var
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 $as_echo "$ac_var='\''$ac_val'\''"
2145 if test -s confdefs.h; then
2146 $as_echo "## ----------- ##
2153 test "$ac_signal" != 0 &&
2154 $as_echo "$as_me: caught signal $ac_signal"
2155 $as_echo "$as_me: exit $exit_status"
2157 rm -f core *.core core.conftest.* &&
2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161 for ac_signal
in 1 2 13 15; do
2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 rm -f -r conftest
* confdefs.h
2169 $as_echo "/* confdefs.h */" > confdefs.h
2171 # Predefined preprocessor variables.
2173 cat >>confdefs.h
<<_ACEOF
2174 #define PACKAGE_NAME "$PACKAGE_NAME"
2177 cat >>confdefs.h
<<_ACEOF
2178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2185 cat >>confdefs.h
<<_ACEOF
2186 #define PACKAGE_STRING "$PACKAGE_STRING"
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_URL "$PACKAGE_URL"
2198 # Let the site file select an alternate cache file if it wants to.
2199 # Prefer an explicitly selected file to automatically selected ones.
2202 if test -n "$CONFIG_SITE"; then
2203 # We do not want a PATH search for config.site.
2204 case $CONFIG_SITE in #((
2205 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2206 */*) ac_site_file1
=$CONFIG_SITE;;
2207 *) ac_site_file1
=.
/$CONFIG_SITE;;
2209 elif test "x$prefix" != xNONE
; then
2210 ac_site_file1
=$prefix/share
/config.site
2211 ac_site_file2
=$prefix/etc
/config.site
2213 ac_site_file1
=$ac_default_prefix/share
/config.site
2214 ac_site_file2
=$ac_default_prefix/etc
/config.site
2216 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2218 test "x$ac_site_file" = xNONE
&& continue
2219 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2224 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $?
"failed to load site script $ac_site_file
2227 See \`config.log' for more details" "$LINENO" 5; }
2231 if test -r "$cache_file"; then
2232 # Some versions of bash will fail to source /dev/null (special files
2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2239 *) .
"./$cache_file";;
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 $as_echo "$as_me: creating cache $cache_file" >&6;}
2248 # Check that the precious variables saved in the cache have kept the same
2250 ac_cache_corrupted
=false
2251 for ac_var
in $ac_precious_vars; do
2252 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2253 eval ac_new_set
=\
$ac_env_${ac_var}_set
2254 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2255 eval ac_new_val
=\
$ac_env_${ac_var}_value
2256 case $ac_old_set,$ac_new_set in
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260 ac_cache_corrupted
=: ;;
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264 ac_cache_corrupted
=: ;;
2267 if test "x$ac_old_val" != "x$ac_new_val"; then
2268 # differences in whitespace do not lead to failure.
2269 ac_old_val_w
=`echo x $ac_old_val`
2270 ac_new_val_w
=`echo x $ac_new_val`
2271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274 ac_cache_corrupted
=:
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278 eval $ac_var=\
$ac_old_val
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2286 # Pass precious variables to config.status.
2287 if test "$ac_new_set" = set; then
2289 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290 *) ac_arg
=$ac_var=$ac_new_val ;;
2292 case " $ac_configure_args " in
2293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2298 if $ac_cache_corrupted; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305 ## -------------------- ##
2306 ## Main body of script. ##
2307 ## -------------------- ##
2310 ac_cpp
='$CPP $CPPFLAGS'
2311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2323 # if PWD already has a value, it is probably wrong.
2324 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2326 # Export original configure arguments for use by sub-configures.
2327 # Quote arguments with shell meta charatcers.
2328 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2329 set -- "$progname" "$@"
2333 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2334 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2335 # if the argument is of the form -foo=baz, quote the baz part only
2336 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2339 # Add the quoted argument to the list.
2340 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2342 if test "$silent" = yes; then
2343 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2345 # Remove the initial space we just introduced and, as these will be
2346 # expanded by make, quote '$'.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2350 # Find the build, host, and target systems.
2352 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353 if test -f "$ac_dir/install-sh"; then
2355 ac_install_sh
="$ac_aux_dir/install-sh -c"
2357 elif test -f "$ac_dir/install.sh"; then
2359 ac_install_sh
="$ac_aux_dir/install.sh -c"
2361 elif test -f "$ac_dir/shtool"; then
2363 ac_install_sh
="$ac_aux_dir/shtool install -c"
2367 if test -z "$ac_aux_dir"; then
2368 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2371 # These three variables are undocumented and unsupported,
2372 # and are intended to be withdrawn in a future Autoconf release.
2373 # They can cause serious problems if a builder's source tree is in a directory
2374 # whose full name contains unusual characters.
2375 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2376 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2377 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380 # Make sure we can run config.sub.
2381 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2382 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2385 $as_echo_n "checking build system type... " >&6; }
2386 if ${ac_cv_build+:} false
; then :
2387 $as_echo_n "(cached) " >&6
2389 ac_build_alias
=$build_alias
2390 test "x$ac_build_alias" = x
&&
2391 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2392 test "x$ac_build_alias" = x
&&
2393 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2394 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2395 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2399 $as_echo "$ac_cv_build" >&6; }
2400 case $ac_cv_build in
2402 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2405 ac_save_IFS
=$IFS; IFS
='-'
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2415 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2418 case ${build_alias} in
2419 "") build_noncanonical
=${build} ;;
2420 *) build_noncanonical
=${build_alias} ;;
2425 case ${host_alias} in
2426 "") host_noncanonical
=${build_noncanonical} ;;
2427 *) host_noncanonical
=${host_alias} ;;
2432 case ${target_alias} in
2433 "") target_noncanonical
=${host_noncanonical} ;;
2434 *) target_noncanonical
=${target_alias} ;;
2440 test "$host_noncanonical" = "$target_noncanonical" &&
2441 test "$program_prefix$program_suffix$program_transform_name" = \
2443 program_transform_name
=s
,y
,y
,
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446 $as_echo_n "checking host system type... " >&6; }
2447 if ${ac_cv_host+:} false
; then :
2448 $as_echo_n "(cached) " >&6
2450 if test "x$host_alias" = x
; then
2451 ac_cv_host
=$ac_cv_build
2453 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459 $as_echo "$ac_cv_host" >&6; }
2462 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2465 ac_save_IFS
=$IFS; IFS
='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2479 $as_echo_n "checking target system type... " >&6; }
2480 if ${ac_cv_target+:} false
; then :
2481 $as_echo_n "(cached) " >&6
2483 if test "x$target_alias" = x
; then
2484 ac_cv_target
=$ac_cv_host
2486 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2487 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2492 $as_echo "$ac_cv_target" >&6; }
2493 case $ac_cv_target in
2495 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2497 target
=$ac_cv_target
2498 ac_save_IFS
=$IFS; IFS
='-'
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2508 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2511 # The aliases save the names the user supplied, while $host etc.
2512 # will get canonicalized.
2513 test -n "$target_alias" &&
2514 test "$program_prefix$program_suffix$program_transform_name" = \
2516 program_prefix
=${target_alias}-
2518 test "$program_prefix" != NONE
&&
2519 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2520 # Use a double $ so make ignores it.
2521 test "$program_suffix" != NONE
&&
2522 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2523 # Double any \ or $.
2524 # By default was `s,x,x', remove it if useless.
2525 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2526 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530 # Get 'install' or 'install-sh' and its variants.
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if ${ac_cv_path_install+:} false
; then :
2549 $as_echo_n "(cached) " >&6
2551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir
=.
2556 # Account for people who put trailing slashes in PATH elements.
2557 case $as_dir/ in #((
2558 .
/ | .
// |
/[cC
]/* | \
2559 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2560 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2563 # OSF1 and SCO ODT 3.0 have their own names for install.
2564 # Don't use installbsd from OSF since it installs stuff as root
2566 for ac_prog
in ginstall scoinst
install; do
2567 for ac_exec_ext
in '' $ac_executable_extensions; do
2568 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2569 if test $ac_prog = install &&
2570 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2571 # AIX install. It has an incompatible calling convention.
2573 elif test $ac_prog = install &&
2574 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2575 # program-specific install script used by HP pwplus--don't use.
2578 rm -rf conftest.one conftest.two conftest.dir
2579 echo one
> conftest.one
2580 echo two
> conftest.two
2582 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2583 test -s conftest.one
&& test -s conftest.two
&&
2584 test -s conftest.dir
/conftest.one
&&
2585 test -s conftest.dir
/conftest.two
2587 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2600 rm -rf conftest.one conftest.two conftest.dir
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL
=$ac_cv_path_install
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 INSTALL
=$ac_install_sh
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 $as_echo "$INSTALL" >&6; }
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2622 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2625 $as_echo_n "checking whether ln works... " >&6; }
2626 if ${acx_cv_prog_LN+:} false
; then :
2627 $as_echo_n "(cached) " >&6
2629 rm -f conftestdata_t
2630 echo >conftestdata_f
2631 if ln conftestdata_f conftestdata_t
2>/dev
/null
2637 rm -f conftestdata_f conftestdata_t
2640 if test $acx_cv_prog_LN = no
; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2643 $as_echo "no, using $LN" >&6; }
2645 LN
="$acx_cv_prog_LN"
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2651 $as_echo_n "checking whether ln -s works... " >&6; }
2653 if test "$LN_S" = "ln -s"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2658 $as_echo "no, using $LN_S" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2662 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2663 if ${ac_cv_path_SED+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2667 for ac_i
in 1 2 3 4 5 6 7; do
2668 ac_script
="$ac_script$as_nl$ac_script"
2670 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2671 { ac_script
=; unset ac_script
;}
2672 if test -z "$SED"; then
2673 ac_path_SED_found
=false
2674 # Loop through the user's path and test for each of PROGNAME-LIST
2675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir
=.
2680 for ac_prog
in sed gsed
; do
2681 for ac_exec_ext
in '' $ac_executable_extensions; do
2682 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2683 as_fn_executable_p
"$ac_path_SED" ||
continue
2684 # Check for GNU ac_path_SED and select it if it is found.
2685 # Check for GNU $ac_path_SED
2686 case `"$ac_path_SED" --version 2>&1` in
2688 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2691 $as_echo_n 0123456789 >"conftest.in"
2694 cat "conftest.in" "conftest.in" >"conftest.tmp"
2695 mv "conftest.tmp" "conftest.in"
2696 cp "conftest.in" "conftest.nl"
2697 $as_echo '' >> "conftest.nl"
2698 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2699 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2700 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2701 if test $ac_count -gt ${ac_path_SED_max-0}; then
2702 # Best one so far, save it but keep looking for a better one
2703 ac_cv_path_SED
="$ac_path_SED"
2704 ac_path_SED_max
=$ac_count
2706 # 10*(2^10) chars as input seems more than enough
2707 test $ac_count -gt 10 && break
2709 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2712 $ac_path_SED_found && break 3
2717 if test -z "$ac_cv_path_SED"; then
2718 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2726 $as_echo "$ac_cv_path_SED" >&6; }
2727 SED
="$ac_cv_path_SED"
2730 for ac_prog
in gawk mawk nawk
awk
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy
$ac_prog; ac_word
=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false
; then :
2737 $as_echo_n "(cached) " >&6
2739 if test -n "$AWK"; then
2740 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir
=.
2747 for ac_exec_ext
in '' $ac_executable_extensions; do
2748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_AWK
="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test -n "$AWK"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2769 test -n "$AWK" && break
2773 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2775 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2777 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2778 INSTALL
="${srcpwd}/install-sh -c"
2781 # Set srcdir to "." if that's what it is.
2782 # This is important for multilib support.
2784 if test "${pwd}" = "${srcpwd}" ; then
2792 ### To add a new directory to the tree, first choose whether it is a target
2793 ### or a host dependent tool. Then put it into the appropriate list
2794 ### (library or tools, host or target), doing a dependency sort.
2796 # Subdirs will be configured in the order listed in build_configdirs,
2797 # configdirs, or target_configdirs; see the serialization section below.
2799 # Dependency sorting is only needed when *configuration* must be done in
2800 # a particular order. In all cases a dependency should be specified in
2801 # the Makefile, whether or not it's implicitly specified here.
2803 # Double entries in build_configdirs, configdirs, or target_configdirs may
2804 # cause circular dependencies and break everything horribly.
2806 # these library is used by various programs built for the build
2809 build_libs
="build-libiberty build-libcpp"
2811 # these tools are built for the build environment
2812 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2814 # these libraries are used by various programs built for the host environment
2816 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2818 # these tools are built for the host environment
2819 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2820 # know that we are building the simulator.
2821 # binutils, gas and ld appear in that order because it makes sense to run
2822 # "make check" in that particular order.
2823 # If --enable-gold is used, "gold" may replace "ld".
2824 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2826 # these libraries are built for the target environment, and are built after
2827 # the host libraries and the host tools (which may be a cross compiler)
2828 # Note that libiberty is not a target library.
2829 target_libraries
="target-libgcc \
2830 target-libbacktrace \
2834 target-liboffloadmic \
2837 target-libstdc++-v3 \
2838 target-libsanitizer \
2841 target-libquadmath \
2842 target-libgfortran \
2850 # these tools are built using the target libraries, and are intended to
2851 # run only in the target environment
2853 # note: any program that *uses* libraries that are in the "target_libraries"
2854 # list belongs in this list.
2856 target_tools
="target-rda"
2858 ################################################################################
2860 ## All tools belong in one of the four categories, and are assigned above
2861 ## We assign ${configdirs} this way to remove all embedded newlines. This
2862 ## is important because configure will choke if they ever get through.
2863 ## ${configdirs} is directories we build using the host tools.
2864 ## ${target_configdirs} is directories we build using the target tools.
2865 configdirs
=`echo ${host_libs} ${host_tools}`
2866 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2867 build_configdirs
=`echo ${build_libs} ${build_tools}`
2871 ################################################################################
2873 srcname
="gnu development package"
2875 # This gets set non-empty for some net releases of packages.
2878 # Define is_cross_compiler to save on calls to 'test'.
2880 if test x
"${host}" = x
"${target}" ; then
2881 is_cross_compiler
=no
2883 is_cross_compiler
=yes
2886 # Find the build and target subdir names.
2888 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2889 # have matching libraries, they should use host libraries: Makefile.tpl
2890 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2891 # However, they still use the build modules, because the corresponding
2892 # host modules (e.g. bison) are only built for the host when bootstrap
2894 # - build_subdir is where we find build modules, and never changes.
2895 # - build_libsubdir is where we find build libraries, and can be overridden.
2897 # Prefix 'build-' so this never conflicts with target_subdir.
2898 build_subdir
="build-${build_noncanonical}"
2900 # Check whether --with-build-libsubdir was given.
2901 if test "${with_build_libsubdir+set}" = set; then :
2902 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2904 build_libsubdir
="$build_subdir"
2907 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2908 if ( test $srcdir = .
&& test -d gcc
) \
2909 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2910 host_subdir
="host-${host_noncanonical}"
2915 target_subdir
=${target_noncanonical}
2917 # Be sure to cover against remnants of an in-tree build.
2918 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2919 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2920 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2923 # Skipdirs are removed silently.
2925 # Noconfigdirs are removed loudly.
2929 # Make sure we don't let GNU ld be added if we didn't want it.
2930 if test x
$with_gnu_ld = xno
; then
2932 noconfigdirs
="$noconfigdirs ld gold"
2936 # Make sure we don't let GNU as be added if we didn't want it.
2937 if test x
$with_gnu_as = xno
; then
2939 noconfigdirs
="$noconfigdirs gas"
2944 # Check whether --with-system-zlib was given.
2945 if test "${with_system_zlib+set}" = set; then :
2946 withval
=$with_system_zlib;
2949 # Make sure we don't let ZLIB be added if we didn't want it.
2950 if test x
$with_system_zlib = xyes
; then
2951 use_included_zlib
=no
2952 noconfigdirs
="$noconfigdirs zlib"
2955 # some tools are so dependent upon X11 that if we're not building with X,
2956 # it's not even worth trying to configure, much less build, that tool.
2959 yes |
"") ;; # the default value for this tree is that X11 is available
2961 skipdirs
="${skipdirs} tk itcl libgui"
2962 # We won't be able to build gdbtk without X.
2965 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2968 # Some are only suitable for cross toolchains.
2969 # Remove these if host=target.
2970 cross_only
="target-libgloss target-newlib target-opcodes"
2972 case $is_cross_compiler in
2973 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2976 # If both --with-headers and --with-libs are specified, default to
2978 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2979 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2980 if test x
"${with_newlib}" = x
; then
2985 # Recognize --with-newlib/--without-newlib.
2986 case ${with_newlib} in
2987 no
) skipdirs
="${skipdirs} target-newlib" ;;
2988 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2991 # Check whether --enable-as-accelerator-for was given.
2992 if test "${enable_as_accelerator_for+set}" = set; then :
2993 enableval
=$enable_as_accelerator_for;
2997 # Check whether --enable-offload-targets was given.
2998 if test "${enable_offload_targets+set}" = set; then :
2999 enableval
=$enable_offload_targets;
3000 if test x
"$enable_offload_targets" = x
; then
3001 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3005 enable_offload_targets
=
3009 # Check whether --enable-offload-defaulted was given.
3010 if test "${enable_offload_defaulted+set}" = set; then :
3011 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3013 enable_offload_defaulted
=
3017 # Handle --enable-gold, --enable-ld.
3018 # --disable-gold [--enable-ld]
3019 # Build only ld. Default option.
3020 # --enable-gold [--enable-ld]
3021 # Build both gold and ld. Install gold as "ld.gold", install ld
3022 # as "ld.bfd" and "ld".
3023 # --enable-gold=default [--enable-ld]
3024 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3025 # install ld as "ld.bfd".
3026 # --enable-gold[=default] --disable-ld
3027 # Build only gold, which is then installed as both "ld.gold" and "ld".
3028 # --enable-gold --enable-ld=default
3029 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3031 # In other words, ld is default
3032 # --enable-gold=default --enable-ld=default
3036 # Check whether --enable-gold was given.
3037 if test "${enable_gold+set}" = set; then :
3038 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3043 case "${ENABLE_GOLD}" in
3045 # Check for ELF target.
3048 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3049 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3050 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3051 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3053 *-*-linux*aout
* |
*-*-linux*oldld
*)
3061 if test "$is_elf" = "yes"; then
3062 # Check for target supported by gold.
3064 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3065 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3066 configdirs
="$configdirs gold"
3067 if test x
${ENABLE_GOLD} = xdefault
; then
3078 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3082 # Check whether --enable-ld was given.
3083 if test "${enable_ld+set}" = set; then :
3084 enableval
=$enable_ld; ENABLE_LD
=$enableval
3090 case "${ENABLE_LD}" in
3092 if test x
${default_ld} != x
; then
3093 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3099 if test x
${ENABLE_GOLD} != xyes
; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3101 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3103 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3106 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3111 # Decide the default method for compressing debug sections.
3112 # Provide a configure time option to override our default.
3113 # Check whether --enable-compressed_debug_sections was given.
3114 if test "${enable_compressed_debug_sections+set}" = set; then :
3115 enableval
=$enable_compressed_debug_sections;
3116 if test x
"$enable_compressed_debug_sections" = xyes
; then
3117 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3121 enable_compressed_debug_sections
=
3125 # Configure extra directories which are host specific
3129 configdirs
="$configdirs libtermcap" ;;
3132 # A target can indicate whether a language isn't supported for some reason.
3133 # Only spaces may be used in this macro; not newlines or tabs.
3134 unsupported_languages
=
3136 # Remove more programs from consideration, based on the host or
3137 # target this usually means that a port of the program doesn't
3141 i
[3456789]86-*-msdosdjgpp*)
3142 noconfigdirs
="$noconfigdirs tcl tk itcl"
3147 # Check whether --enable-libquadmath was given.
3148 if test "${enable_libquadmath+set}" = set; then :
3149 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3151 ENABLE_LIBQUADMATH
=yes
3154 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3155 noconfigdirs
="$noconfigdirs target-libquadmath"
3159 # Check whether --enable-libquadmath-support was given.
3160 if test "${enable_libquadmath_support+set}" = set; then :
3161 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3163 ENABLE_LIBQUADMATH_SUPPORT
=yes
3166 enable_libquadmath_support
=
3167 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3168 enable_libquadmath_support
=no
3172 # Check whether --enable-libada was given.
3173 if test "${enable_libada+set}" = set; then :
3174 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3179 if test "${ENABLE_LIBADA}" != "yes" ; then
3180 noconfigdirs
="$noconfigdirs gnattools"
3183 # Check whether --enable-libssp was given.
3184 if test "${enable_libssp+set}" = set; then :
3185 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3191 # Check whether --enable-libstdcxx was given.
3192 if test "${enable_libstdcxx+set}" = set; then :
3193 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3195 ENABLE_LIBSTDCXX
=default
3198 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3199 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3202 # If this is accelerator compiler and its target is intelmic we enable
3203 # target liboffloadmic by default. If this is compiler with offloading
3204 # for intelmic we enable host liboffloadmic by default. Otherwise
3205 # liboffloadmic is disabled by default.
3206 # Check whether --enable-liboffloadmic was given.
3207 if test "${enable_liboffloadmic+set}" = set; then :
3208 enableval
=$enable_liboffloadmic; case "$enableval" in
3210 enable_liboffloadmic
=$enableval ;;
3212 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3215 if test x
"$enable_as_accelerator_for" != x
; then
3217 *-intelmic-* |
*-intelmicemul-*)
3218 enable_liboffloadmic
=target
3219 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3222 enable_liboffloadmic
=no
3226 case "${enable_offload_targets}" in
3227 *-intelmic-* |
*-intelmicemul-*)
3228 enable_liboffloadmic
=host
3229 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3232 enable_liboffloadmic
=no
3240 # Enable libgomp by default on hosted POSIX systems, and a few others.
3241 if test x
$enable_libgomp = x
; then
3243 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3245 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3247 *-*-solaris2* |
*-*-hpux11*)
3249 *-*-darwin* |
*-*-aix*)
3251 nvptx
*-*-* | amdgcn
*-*-*)
3254 noconfigdirs
="$noconfigdirs target-libgomp"
3259 # Disable libatomic on unsupported systems.
3260 if test -d ${srcdir}/libatomic
; then
3261 if test x
$enable_libatomic = x
; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263 $as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir
=${srcdir}/libatomic
; \
3265 .
${srcdir}/configure.tgt
; \
3266 test -n "$UNSUPPORTED")
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs
="$noconfigdirs target-libatomic"
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable liboffloadmic on unsupported systems.
3279 if test -d ${srcdir}/liboffloadmic
; then
3280 if test x
$enable_liboffloadmic != xno
; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3282 $as_echo_n "checking for liboffloadmic support... " >&6; }
3283 if (srcdir
=${srcdir}/liboffloadmic
; \
3284 .
${srcdir}/configure.tgt
; \
3285 test -n "$UNSUPPORTED")
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libitm on unsupported systems.
3298 if test -d ${srcdir}/libitm
; then
3299 if test x
$enable_libitm = x
; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3301 $as_echo_n "checking for libitm support... " >&6; }
3302 if (srcdir
=${srcdir}/libitm
; \
3303 .
${srcdir}/configure.tgt
; \
3304 test -n "$UNSUPPORTED")
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs
="$noconfigdirs target-libitm"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libsanitizer on unsupported systems.
3317 if test -d ${srcdir}/libsanitizer
; then
3318 if test x
$enable_libsanitizer = x
; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3320 $as_echo_n "checking for libsanitizer support... " >&6; }
3321 if (srcdir
=${srcdir}/libsanitizer
; \
3322 .
${srcdir}/configure.tgt
; \
3323 test -n "$UNSUPPORTED")
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs
="$noconfigdirs target-libsanitizer"
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3335 # Disable libvtv on unsupported systems.
3336 if test -d ${srcdir}/libvtv
; then
3337 if test x
$enable_libvtv = x
; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3339 $as_echo_n "checking for libvtv support... " >&6; }
3340 if (srcdir
=${srcdir}/libvtv
; \
3341 .
${srcdir}/configure.tgt
; \
3342 test "$VTV_SUPPORTED" != "yes")
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 noconfigdirs
="$noconfigdirs target-libvtv"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3354 # Disable libquadmath for some systems.
3357 noconfigdirs
="$noconfigdirs target-libquadmath"
3359 # libquadmath is unused on AIX and libquadmath build process use of
3360 # LD_LIBRARY_PATH can break AIX bootstrap.
3361 powerpc-
*-aix* | rs6000-
*-aix*)
3362 noconfigdirs
="$noconfigdirs target-libquadmath"
3366 # Disable libssp for some systems.
3369 # No hosted I/O support.
3370 noconfigdirs
="$noconfigdirs target-libssp"
3373 noconfigdirs
="$noconfigdirs target-libssp"
3375 powerpc-
*-aix* | rs6000-
*-aix*)
3376 noconfigdirs
="$noconfigdirs target-libssp"
3379 # No hosted I/O support.
3380 noconfigdirs
="$noconfigdirs target-libssp"
3383 # libssp uses a misaligned load to trigger a fault, but the RL78
3384 # doesn't fault for those - instead, it gives a build-time error
3385 # for explicit misaligned loads.
3386 noconfigdirs
="$noconfigdirs target-libssp"
3389 # No hosted I/O support.
3390 noconfigdirs
="$noconfigdirs target-libssp"
3394 # Disable libstdc++-v3 for some systems.
3395 # Allow user to override this if they pass --enable-libstdc++-v3
3396 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3399 # VxWorks uses the Dinkumware C++ library.
3400 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3403 # Not ported/fails to build when using newlib.
3404 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3407 # the C++ libraries don't build on top of CE's C libraries
3408 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3411 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3414 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3417 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3422 # Disable C++ on systems where it is known to not work.
3423 # For testing, you can override this with --enable-languages=c++.
3424 case ,${enable_languages}, in
3430 unsupported_languages
="$unsupported_languages c++"
3436 # Disable Objc on systems where it is known to not work.
3437 # For testing, you can override this with --enable-languages=objc.
3438 case ,${enable_languages}, in
3444 unsupported_languages
="$unsupported_languages objc"
3450 # Disable D on systems where it is known to not work.
3451 # For testing, you can override this with --enable-languages=d.
3452 case ,${enable_languages}, in
3458 unsupported_languages
="$unsupported_languages d"
3464 # Disable libphobos on unsupported systems.
3465 # For testing, you can override this with --enable-libphobos.
3466 if test -d ${srcdir}/libphobos
; then
3467 if test x
$enable_libphobos = x
; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3469 $as_echo_n "checking for libphobos support... " >&6; }
3470 if (srcdir
=${srcdir}/libphobos
; \
3471 .
${srcdir}/configure.tgt
; \
3472 test "$LIBPHOBOS_SUPPORTED" != "yes")
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 noconfigdirs
="$noconfigdirs target-libphobos"
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3484 # Disable Fortran for some systems.
3487 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3488 unsupported_languages
="$unsupported_languages fortran"
3491 unsupported_languages
="$unsupported_languages fortran"
3495 # Disable libffi for some systems.
3499 i
[3456789]86-*-darwin*)
3501 x86_64-
*-darwin[912]*)
3504 noconfigdirs
="$noconfigdirs target-libffi"
3507 noconfigdirs
="$noconfigdirs target-libffi"
3510 noconfigdirs
="$noconfigdirs target-libffi"
3513 noconfigdirs
="$noconfigdirs target-libffi"
3516 noconfigdirs
="$noconfigdirs target-libffi"
3519 noconfigdirs
="$noconfigdirs target-libffi"
3522 noconfigdirs
="$noconfigdirs target-libffi"
3524 aarch64
*-*-freebsd*)
3525 noconfigdirs
="$noconfigdirs target-libffi"
3528 noconfigdirs
="$noconfigdirs target-libffi"
3531 noconfigdirs
="$noconfigdirs target-libffi"
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3542 cris-
*-* | crisv32-
*-*)
3546 *) # See PR46792 regarding target-libffi.
3547 noconfigdirs
="$noconfigdirs target-libffi";;
3551 noconfigdirs
="$noconfigdirs target-libffi"
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3561 i
[3456789]86-w64-mingw*)
3562 noconfigdirs
="$noconfigdirs target-libffi"
3564 i
[3456789]86-*-mingw*)
3565 noconfigdirs
="$noconfigdirs target-libffi"
3568 noconfigdirs
="$noconfigdirs target-libffi"
3571 noconfigdirs
="$noconfigdirs target-libffi"
3578 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3585 # Disable the go frontend on systems where it is known to not work. Please keep
3586 # this in sync with contrib/config-list.mk.
3588 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3589 unsupported_languages
="$unsupported_languages go"
3593 # Only allow gdbserver on some systems.
3594 if test -d ${srcdir}/gdbserver
; then
3595 if test x
$enable_gdbserver = x
; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3597 $as_echo_n "checking for gdbserver support... " >&6; }
3598 if (srcdir
=${srcdir}/gdbserver
; \
3599 .
${srcdir}/configure.srv
; \
3600 test -n "$UNSUPPORTED")
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 noconfigdirs
="$noconfigdirs gdbserver"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3612 # Disable libgo for some systems where it is known to not work.
3613 # For testing, you can easily override this with --enable-libgo.
3614 if test x
$enable_libgo = x
; then
3618 noconfigdirs
="$noconfigdirs target-libgo"
3620 *-*-cygwin* |
*-*-mingw*)
3621 noconfigdirs
="$noconfigdirs target-libgo"
3624 noconfigdirs
="$noconfigdirs target-libgo"
3629 # Default libgloss CPU subdirectory.
3630 libgloss_dir
="$target_cpu"
3633 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3637 libgloss_dir
=aarch64
3642 cris-
*-* | crisv32-
*-*)
3651 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3652 libgloss_dir
=m68hc11
3654 m68
*-*-* | fido-
*-*)
3671 # Disable newlib and libgloss for various target OSes.
3674 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3676 i
[3456789]86-*-linux*)
3677 # This section makes it possible to build newlib natively on linux.
3678 # If we are using a cross compiler then don't configure newlib.
3679 if test x
${is_cross_compiler} != xno
; then
3680 noconfigdirs
="$noconfigdirs target-newlib"
3682 noconfigdirs
="$noconfigdirs target-libgloss"
3683 # If we are not using a cross compiler, do configure newlib.
3684 # Note however, that newlib will only be configured in this situation
3685 # if the --with-newlib option has been given, because otherwise
3686 # 'target-newlib' will appear in skipdirs.
3688 i
[3456789]86-*-rdos*)
3689 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3691 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3692 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3695 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3698 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3704 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3710 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3713 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3715 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3745 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3746 noconfigdirs
="$noconfigdirs sim target-rda"
3751 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3752 noconfigdirs
="$noconfigdirs sim target-rda"
3755 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs
="$noconfigdirs sim target-rda"
3758 i
[3456789]86-*-darwin*)
3759 noconfigdirs
="$noconfigdirs ld gprof"
3760 noconfigdirs
="$noconfigdirs sim target-rda"
3762 x86_64-
*-darwin[912]*)
3763 noconfigdirs
="$noconfigdirs ld gas gprof"
3764 noconfigdirs
="$noconfigdirs sim target-rda"
3767 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3768 noconfigdirs
="$noconfigdirs sim target-rda"
3773 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3774 && ! test -d ${srcdir}/gmp \
3775 && test -f /usr
/local
/include
/gmp.h
; then
3780 # Remove unsupported stuff on all kaOS configurations.
3781 noconfigdirs
="$noconfigdirs target-libgloss"
3788 noconfigdirs
="$noconfigdirs target-libgloss"
3791 noconfigdirs
="$noconfigdirs target-libgloss"
3793 # The tpf target doesn't support gdb yet.
3795 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3798 noconfigdirs
="$noconfigdirs target-rda"
3803 # ld works, but does not support shared libraries.
3804 # gas doesn't generate exception information.
3805 noconfigdirs
="$noconfigdirs gas ld"
3808 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3811 # newlib is not 64 bit ready
3812 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3815 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3817 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3818 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3821 noconfigdirs
="$noconfigdirs sim"
3824 noconfigdirs
="$noconfigdirs target-libgloss"
3827 noconfigdirs
="$noconfigdirs ld target-libgloss"
3830 if test x
${with_avrlibc} != xno
; then
3831 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3834 c4x-
*-* | tic4x-
*-*)
3835 noconfigdirs
="$noconfigdirs target-libgloss"
3838 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3841 noconfigdirs
="$noconfigdirs target-libgloss"
3844 noconfigdirs
="$noconfigdirs gdb"
3847 noconfigdirs
="$noconfigdirs gdb"
3850 noconfigdirs
="$noconfigdirs target-rda gprof"
3853 noconfigdirs
="$noconfigdirs"
3856 noconfigdirs
="$noconfigdirs target-libgloss"
3859 noconfigdirs
="$noconfigdirs target-libgloss"
3861 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3864 noconfigdirs
="$noconfigdirs gdb"
3867 noconfigdirs
="$noconfigdirs gdb ld"
3875 hppa
*-*-openbsd* | \
3881 noconfigdirs
="$noconfigdirs ld"
3884 noconfigdirs
="$noconfigdirs gdb"
3887 # No gdb support yet.
3888 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3891 # No ld support yet.
3892 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3895 # No ld support yet.
3896 noconfigdirs
="$noconfigdirs libgui itcl ld"
3898 i
[3456789]86-w64-mingw*)
3900 i
[3456789]86-*-mingw*)
3901 target_configdirs
="$target_configdirs target-winsup"
3904 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3905 noconfigdirs
="$noconfigdirs target-libgloss"
3906 # always build newlib if winsup directory is present.
3907 if test -d "$srcdir/winsup/cygwin"; then
3908 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3909 elif test -d "$srcdir/newlib"; then
3910 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3914 noconfigdirs
="$noconfigdirs target-libgloss"
3916 i
[3456789]86-*-sco3.2v5
*)
3917 # The linker does not yet know about weak symbols in COFF,
3918 # and is not configured to handle mixed ELF and COFF.
3919 noconfigdirs
="$noconfigdirs ld target-libgloss"
3921 i
[3456789]86-*-sco*)
3922 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3924 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3925 noconfigdirs
="$noconfigdirs target-libgloss"
3927 i
[3456789]86-*-sysv4*)
3928 noconfigdirs
="$noconfigdirs target-libgloss"
3930 i
[3456789]86-*-beos*)
3931 noconfigdirs
="$noconfigdirs gdb"
3933 i
[3456789]86-*-rdos*)
3934 noconfigdirs
="$noconfigdirs gdb"
3937 noconfigdirs
="$noconfigdirs gdb"
3940 noconfigdirs
="$noconfigdirs sim"
3943 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3944 noconfigdirs
="$noconfigdirs $target_libraries"
3947 noconfigdirs
="$noconfigdirs gdb gprof"
3950 # copied from rs6000-*-* entry
3951 noconfigdirs
="$noconfigdirs gprof"
3953 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3954 target_configdirs
="$target_configdirs target-winsup"
3955 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3956 # always build newlib.
3957 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3959 # This is temporary until we can link against shared libraries
3960 powerpcle-
*-solaris*)
3961 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3964 noconfigdirs
="$noconfigdirs gdb"
3967 noconfigdirs
="$noconfigdirs gprof"
3970 noconfigdirs
="$noconfigdirs gprof"
3973 noconfigdirs
="$noconfigdirs gprof"
3976 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3979 noconfigdirs
="$noconfigdirs gprof"
3981 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3982 if test x
$with_newlib = xyes
; then
3983 noconfigdirs
="$noconfigdirs gprof"
3987 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3990 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3993 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3997 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3998 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3999 noconfigdirs
="$noconfigdirs ld gas gprof"
4002 noconfigdirs
="$noconfigdirs gprof"
4005 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4012 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4016 if test x
${is_cross_compiler} = xno
; then
4021 noconfigdirs
="$noconfigdirs sim"
4023 tilepro
*-*-* | tilegx
*-*-*)
4024 noconfigdirs
="$noconfigdirs sim"
4027 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4030 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4033 noconfigdirs
="$noconfigdirs ld"
4037 # If we aren't building newlib, then don't build libgloss, since libgloss
4038 # depends upon some newlib header files.
4039 case "${noconfigdirs}" in
4040 *target-libgloss
*) ;;
4041 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4044 # Work in distributions that contain no compiler tools, like Autoconf.
4045 host_makefile_frag
=/dev
/null
4046 if test -d ${srcdir}/config
; then
4048 i
[3456789]86-*-msdosdjgpp*)
4049 host_makefile_frag
="config/mh-djgpp"
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4054 $as_echo_n "checking to see if cat works as expected... " >&6; }
4055 echo a
>cygwin-cat-check
4056 if test `cat cygwin-cat-check` = a
; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059 $as_echo "yes" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 as_fn_error $?
"The cat command does not ignore carriage return characters.
4065 Please either mount the build directory in binary mode or run the following
4066 commands before running any configure script:
4072 host_makefile_frag
="config/mh-cygwin"
4075 host_makefile_frag
="config/mh-mingw"
4078 host_makefile_frag
="config/mh-alpha-linux"
4081 host_makefile_frag
="config/mh-pa-hpux10"
4084 host_makefile_frag
="config/mh-pa"
4087 host_makefile_frag
="config/mh-pa"
4089 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4090 host_makefile_frag
="config/mh-darwin"
4093 host_makefile_frag
="config/mh-ppc-aix"
4096 host_makefile_frag
="config/mh-ppc-aix"
4101 if test "${build}" != "${host}" ; then
4102 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4103 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4104 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4105 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4106 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4107 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4108 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4109 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4110 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4111 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4112 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4113 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4114 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4115 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4116 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4118 AR_FOR_BUILD
="\$(AR)"
4119 AS_FOR_BUILD
="\$(AS)"
4120 CC_FOR_BUILD
="\$(CC)"
4121 CXX_FOR_BUILD
="\$(CXX)"
4122 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4123 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4124 GOC_FOR_BUILD
="\$(GOC)"
4125 GDC_FOR_BUILD
="\$(GDC)"
4126 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4127 LD_FOR_BUILD
="\$(LD)"
4128 NM_FOR_BUILD
="\$(NM)"
4129 RANLIB_FOR_BUILD
="\$(RANLIB)"
4130 WINDRES_FOR_BUILD
="\$(WINDRES)"
4131 WINDMC_FOR_BUILD
="\$(WINDMC)"
4135 ac_cpp
='$CPP $CPPFLAGS'
4136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4141 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_CC+:} false
; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC
="$CC" # Let the user override the test.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 if test -n "$CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4178 if test -z "$ac_cv_prog_CC"; then
4180 # Extract the first word of "gcc", so it can be a program name with args.
4181 set dummy gcc
; ac_word
=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -n "$ac_ct_CC"; then
4188 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_CC
="gcc"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4208 if test -n "$ac_ct_CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4210 $as_echo "$ac_ct_CC" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4216 if test "x$ac_ct_CC" = x
; then
4219 case $cross_compiling:$ac_tool_warned in
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223 ac_tool_warned
=yes ;;
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4234 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC
="$CC" # Let the user override the test.
4243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir
=.
4248 for ac_exec_ext
in '' $ac_executable_extensions; do
4249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4272 if test -z "$CC"; then
4273 # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc
; ac_word
=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false
; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC
="$CC" # Let the user override the test.
4284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir
=.
4289 for ac_exec_ext
in '' $ac_executable_extensions; do
4290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292 ac_prog_rejected
=yes
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test $ac_prog_rejected = yes; then
4304 # We found a bogon in the path, so make sure we never use it.
4305 set dummy
$ac_cv_prog_CC
4307 if test $# != 0; then
4308 # We chose a different compiler from the bogus one.
4309 # However, it has the same basename, so the bogon will be chosen
4310 # first if we set CC to just the basename; use the full file name.
4312 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4318 if test -n "$CC"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4320 $as_echo "$CC" >&6; }
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4328 if test -z "$CC"; then
4329 if test -n "$ac_tool_prefix"; then
4330 for ac_prog
in cl.exe
4332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_CC+:} false
; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$CC"; then
4340 ac_cv_prog_CC
="$CC" # Let the user override the test.
4342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir
=.
4347 for ac_exec_ext
in '' $ac_executable_extensions; do
4348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 if test -n "$CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$CC" && break
4372 if test -z "$CC"; then
4374 for ac_prog
in cl.exe
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377 set dummy
$ac_prog; ac_word
=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4381 $as_echo_n "(cached) " >&6
4383 if test -n "$ac_ct_CC"; then
4384 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir
=.
4391 for ac_exec_ext
in '' $ac_executable_extensions; do
4392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_ac_ct_CC
="$ac_prog"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4404 if test -n "$ac_ct_CC"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406 $as_echo "$ac_ct_CC" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4413 test -n "$ac_ct_CC" && break
4416 if test "x$ac_ct_CC" = x
; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned
=yes ;;
4432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434 as_fn_error $?
"no acceptable C compiler found in \$PATH
4435 See \`config.log' for more details" "$LINENO" 5; }
4437 # Provide some information about the compiler.
4438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4441 for ac_option
in --version -v -V -qversion; do
4442 { { ac_try
="$ac_compiler $ac_option >&5"
4444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 if test -s conftest.err; then
4453 ... rest of stderr output deleted ...
4454 10q' conftest.err >conftest.er1
4455 cat conftest.er1 >&5
4457 rm -f conftest.er1 conftest.err
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4473 ac_clean_files_save=$ac_clean_files
4474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4475 # Try to create an executable without -o first, disregard a.out.
4476 # It will help us diagnose broken compilers, and finding out an intuition
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4479 $as_echo_n "checking whether the C compiler works... " >&6; }
4480 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4482 # The possible output files:
4483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4486 for ac_file in $ac_files
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4495 if { { ac_try="$ac_link_default"
4497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4498 *) ac_try_echo
=$ac_try;;
4500 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link_default") 2>&5
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4509 # so that the user can short-circuit this test for compilers unknown to
4511 for ac_file
in $ac_files ''
4513 test -f "$ac_file" ||
continue
4515 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4518 # We found the default executable, but exeext='' is most
4522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4524 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 # We set ac_cv_exeext here because the later test for it is not
4527 # safe: cross compilers may not add the suffix if given an `-o'
4528 # argument, so we may need to know it at that point already.
4529 # Even if this section looks crufty: it has the advantage of
4536 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4541 if test -z "$ac_file"; then :
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.
$ac_ext >&5
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error
77 "C compiler cannot create executables
4550 See \`config.log' for more details" "$LINENO" 5; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4556 $as_echo_n "checking for C compiler default output file name... " >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4558 $as_echo "$ac_file" >&6; }
4559 ac_exeext
=$ac_cv_exeext
4561 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4562 ac_clean_files
=$ac_clean_files_save
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4564 $as_echo_n "checking for suffix of executables... " >&6; }
4565 if { { ac_try
="$ac_link"
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }; then :
4576 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4577 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4578 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 for ac_file
in conftest.exe conftest conftest.
*; do
4581 test -f "$ac_file" ||
continue
4583 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4584 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4593 See \`config.log' for more details" "$LINENO" 5; }
4595 rm -f conftest conftest
$ac_cv_exeext
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4597 $as_echo "$ac_cv_exeext" >&6; }
4599 rm -f conftest.
$ac_ext
4600 EXEEXT
=$ac_cv_exeext
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4608 FILE *f = fopen ("conftest.out", "w");
4609 return ferror (f) || fclose (f) != 0;
4615 ac_clean_files
="$ac_clean_files conftest.out"
4616 # Check that the compiler produces executables we can run. If not, either
4617 # the compiler is broken, or we cross compile.
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4619 $as_echo_n "checking whether we are cross compiling... " >&6; }
4620 if test "$cross_compiling" != yes; then
4621 { { ac_try
="$ac_link"
4623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 $as_echo "$ac_try_echo"; } >&5
4628 (eval "$ac_link") 2>&5
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 if { ac_try='./conftest$ac_cv_exeext'
4633 { { case "(($ac_try" in
4634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4635 *) ac_try_echo
=$ac_try;;
4637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_try") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; }; then
4645 if test "$cross_compiling" = maybe
; then
4648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4650 as_fn_error $?
"cannot run C compiled programs.
4651 If you meant to cross compile, use \`--host'.
4652 See \`config.log' for more details" "$LINENO" 5; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4657 $as_echo "$cross_compiling" >&6; }
4659 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4660 ac_clean_files
=$ac_clean_files_save
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4662 $as_echo_n "checking for suffix of object files... " >&6; }
4663 if ${ac_cv_objext+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 rm -f conftest.o conftest.obj
4678 if { { ac_try
="$ac_compile"
4680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4684 $as_echo "$ac_try_echo"; } >&5
4685 (eval "$ac_compile") 2>&5
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }; then :
4689 for ac_file in conftest.o conftest.obj conftest.*; do
4690 test -f "$ac_file" || continue;
4692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4703 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4704 See \
`config.log' for more details" "$LINENO" 5; }
4706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4709 $as_echo "$ac_cv_objext" >&6; }
4710 OBJEXT=$ac_cv_objext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4714 if ${ac_cv_c_compiler_gnu+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4731 if ac_fn_c_try_compile "$LINENO"; then :
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4742 if test $ac_compiler_gnu = yes; then
4747 ac_test_CFLAGS=${CFLAGS+set}
4748 ac_save_CFLAGS=$CFLAGS
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4751 if ${ac_cv_prog_cc_g+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 ac_save_c_werror_flag=$ac_c_werror_flag
4755 ac_c_werror_flag=yes
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4769 if ac_fn_c_try_compile "$LINENO"; then :
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4784 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_c_werror_flag=$ac_save_c_werror_flag
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4800 if ac_fn_c_try_compile "$LINENO"; then :
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811 $as_echo "$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813 CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815 if test "$GCC" = yes; then
4821 if test "$GCC" = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4829 if ${ac_cv_prog_cc_c89+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 ac_cv_prog_cc_c89=no
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4853 s = g (p, va_arg (v,int));
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4893 rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 rm -f conftest.$ac_ext
4901 case "x$ac_cv_prog_cc_c89" in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4924 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4925 if ${ac_cv_prog_cc_c99+:} false; then :
4926 $as_echo_n "(cached) " >&6
4928 ac_cv_prog_cc_c99=no
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4933 #include <stdbool.h>
4938 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4939 #define debug(...) fprintf (stderr, __VA_ARGS__)
4940 #define showlist(...) puts (#__VA_ARGS__)
4941 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4943 test_varargs_macros (void)
4948 debug ("X = %d\n", x);
4949 showlist (The first, second, and third items.);
4950 report (x>y, "x is %d but y is %d", x, y);
4953 // Check long long types.
4954 #define BIG64 18446744073709551615ull
4955 #define BIG32 4294967295ul
4956 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4958 your preprocessor is broken;
4962 your preprocessor is broken;
4964 static long long int bignum = -9223372036854775807LL;
4965 static unsigned long long int ubignum = BIG64;
4967 struct incomplete_array
4975 const wchar_t *name;
4979 typedef const char *ccp;
4982 test_restrict (ccp restrict text)
4984 // See if C++-style comments work.
4985 // Iterate through items via the restricted pointer.
4986 // Also check for declarations in for loops.
4987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4992 // Check varargs and va_copy.
4994 test_varargs (const char *format, ...)
4997 va_start (args, format);
4999 va_copy (args_copy, args);
5010 str = va_arg (args_copy, const char *);
5013 number = va_arg (args_copy, int);
5016 fnumber = va_arg (args_copy, double);
5031 _Bool success = false;
5034 if (test_restrict ("String literal") == 0)
5036 char *restrict newvar = "Another string";
5039 test_varargs ("s, d' f .", "string", 65, 34.234);
5040 test_varargs_macros ();
5042 // Check flexible array members.
5043 struct incomplete_array *ia =
5044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5046 for (int i = 0; i < ia->datasize; ++i)
5047 ia->data[i] = i * 1.234;
5049 // Check named initializers.
5050 struct named_init ni = {
5052 .name = L"Test wide string",
5053 .average = 543.34343,
5058 int dynamic_array[ni.number];
5059 dynamic_array[ni.number - 1] = 543;
5061 // work around unused variable warnings
5062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5063 || dynamic_array[ni.number - 1] != 543);
5069 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5071 CC="$ac_save_CC $ac_arg"
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_prog_cc_c99=$ac_arg
5075 rm -f core conftest.err conftest.$ac_objext
5076 test "x$ac_cv_prog_cc_c99" != "xno" && break
5078 rm -f conftest.$ac_ext
5083 case "x$ac_cv_prog_cc_c99" in
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5086 $as_echo "none needed" >&6; } ;;
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5089 $as_echo "unsupported" >&6; } ;;
5091 CC="$CC $ac_cv_prog_cc_c99"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5093 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5095 if test "x$ac_cv_prog_cc_c99" != xno; then :
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 if test -z "$CXX"; then
5106 if test -n "$CCC"; then
5109 if test -n "$ac_tool_prefix"; then
5110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_CXX+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$CXX"; then
5120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$CXX"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5142 $as_echo "$CXX" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$CXX" && break
5152 if test -z "$CXX"; then
5154 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156 # Extract the first word of "$ac_prog", so it can be a program name with args.
5157 set dummy $ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$ac_ct_CXX"; then
5164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_ac_ct_CXX="$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184 if test -n "$ac_ct_CXX"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186 $as_echo "$ac_ct_CXX" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$ac_ct_CXX" && break
5196 if test "x$ac_ct_CXX" = x; then
5199 case $cross_compiling:$ac_tool_warned in
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5211 # Provide some information about the compiler.
5212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5215 for ac_option in --version -v -V -qversion; do
5216 { { ac_try="$ac_compiler $ac_option >&5"
5218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5219 *) ac_try_echo
=$ac_try;;
5221 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 $as_echo "$ac_try_echo"; } >&5
5223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 if test -s conftest.err
; then
5227 ... rest of stderr output deleted ...
5228 10q' conftest.err
>conftest.er1
5229 cat conftest.er1
>&5
5231 rm -f conftest.er1 conftest.err
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5237 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5238 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5255 if ac_fn_cxx_try_compile
"$LINENO"; then :
5260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5261 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5265 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5266 if test $ac_compiler_gnu = yes; then
5271 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5272 ac_save_CXXFLAGS
=$CXXFLAGS
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5274 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5275 if ${ac_cv_prog_cxx_g+:} false
; then :
5276 $as_echo_n "(cached) " >&6
5278 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5279 ac_cxx_werror_flag
=yes
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5293 if ac_fn_cxx_try_compile
"$LINENO"; then :
5294 ac_cv_prog_cxx_g
=yes
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5308 if ac_fn_cxx_try_compile
"$LINENO"; then :
5311 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5324 if ac_fn_cxx_try_compile
"$LINENO"; then :
5325 ac_cv_prog_cxx_g
=yes
5327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5332 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5335 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5336 if test "$ac_test_CXXFLAGS" = set; then
5337 CXXFLAGS
=$ac_save_CXXFLAGS
5338 elif test $ac_cv_prog_cxx_g = yes; then
5339 if test "$GXX" = yes; then
5345 if test "$GXX" = yes; then
5352 ac_cpp
='$CPP $CPPFLAGS'
5353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5358 # We must set the default linker to the linker used by gcc for the correct
5359 # operation of libtool. If LD is not defined and we are using gcc, try to
5360 # set the LD default to the ld used by gcc.
5361 if test -z "$LD"; then
5362 if test "$GCC" = yes; then
5365 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5367 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5369 case $gcc_prog_ld in
5370 # Accept absolute paths.
5371 [\\/]* |
[A-Za-z
]:[\\/]*)
5372 LD
="$gcc_prog_ld" ;;
5377 # Check whether -static-libstdc++ -static-libgcc is supported.
5379 if test "$GCC" = yes; then
5380 saved_LDFLAGS
="$LDFLAGS"
5382 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5384 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5386 ac_cpp
='$CXXCPP $CPPFLAGS'
5387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5396 #error -static-libstdc++ not implemented
5400 if ac_fn_cxx_try_link
"$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }; have_static_libs
=yes
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5407 rm -f core conftest.err conftest.
$ac_objext \
5408 conftest
$ac_exeext conftest.
$ac_ext
5410 ac_cpp
='$CPP $CPPFLAGS'
5411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5416 LDFLAGS
="$saved_LDFLAGS"
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5424 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_GNATBIND+:} false
; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$GNATBIND"; then
5431 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_exec_ext
in '' $ac_executable_extensions; do
5439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 GNATBIND
=$ac_cv_prog_GNATBIND
5451 if test -n "$GNATBIND"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5453 $as_echo "$GNATBIND" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5461 if test -z "$ac_cv_prog_GNATBIND"; then
5462 ac_ct_GNATBIND
=$GNATBIND
5463 # Extract the first word of "gnatbind", so it can be a program name with args.
5464 set dummy gnatbind
; ac_word
=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$ac_ct_GNATBIND"; then
5471 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5491 if test -n "$ac_ct_GNATBIND"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5493 $as_echo "$ac_ct_GNATBIND" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5499 if test "x$ac_ct_GNATBIND" = x
; then
5502 case $cross_compiling:$ac_tool_warned in
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned
=yes ;;
5508 GNATBIND
=$ac_ct_GNATBIND
5511 GNATBIND
="$ac_cv_prog_GNATBIND"
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5516 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$GNATMAKE"; then
5523 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 GNATMAKE
=$ac_cv_prog_GNATMAKE
5543 if test -n "$GNATMAKE"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5545 $as_echo "$GNATMAKE" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test -z "$ac_cv_prog_GNATMAKE"; then
5554 ac_ct_GNATMAKE
=$GNATMAKE
5555 # Extract the first word of "gnatmake", so it can be a program name with args.
5556 set dummy gnatmake
; ac_word
=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$ac_ct_GNATMAKE"; then
5563 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5583 if test -n "$ac_ct_GNATMAKE"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5585 $as_echo "$ac_ct_GNATMAKE" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5591 if test "x$ac_ct_GNATMAKE" = x
; then
5594 case $cross_compiling:$ac_tool_warned in
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned
=yes ;;
5600 GNATMAKE
=$ac_ct_GNATMAKE
5603 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5607 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5608 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 cat >conftest.adb
<<EOF
5612 procedure conftest is begin null; end conftest;
5614 acx_cv_cc_gcc_supports_ada
=no
5615 # There is a bug in old released versions of GCC which causes the
5616 # driver to exit successfully when the appropriate language module
5617 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5618 # Therefore we must check for the error message as well as an
5619 # unsuccessful exit.
5620 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5621 # given a .adb file, but produce no object file. So we must check
5622 # if an object file was really produced to guard against this.
5623 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5624 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5625 acx_cv_cc_gcc_supports_ada
=yes
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5630 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5632 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5642 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_GDC+:} false
; then :
5646 $as_echo_n "(cached) " >&6
5648 if test -n "$GDC"; then
5649 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir
=.
5656 for ac_exec_ext
in '' $ac_executable_extensions; do
5657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 if test -n "$GDC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5671 $as_echo "$GDC" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5679 if test -z "$ac_cv_prog_GDC"; then
5681 # Extract the first word of "gdc", so it can be a program name with args.
5682 set dummy gdc
; ac_word
=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -n "$ac_ct_GDC"; then
5689 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir
=.
5696 for ac_exec_ext
in '' $ac_executable_extensions; do
5697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_GDC
="gdc"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5709 if test -n "$ac_ct_GDC"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5711 $as_echo "$ac_ct_GDC" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5717 if test "x$ac_ct_GDC" = x
; then
5720 case $cross_compiling:$ac_tool_warned in
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned
=yes ;;
5729 GDC
="$ac_cv_prog_GDC"
5732 if test "x$GDC" != xno
; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5739 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5740 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5745 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5746 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5747 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5750 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5753 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5754 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5757 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5764 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5765 do_compare
="$gcc_cv_prog_cmp_skip"
5769 # Check whether --enable-bootstrap was given.
5770 if test "${enable_bootstrap+set}" = set; then :
5771 enableval
=$enable_bootstrap;
5773 enable_bootstrap
=default
5777 # Issue errors and warnings for invalid/strange bootstrap combinations.
5778 if test -r $srcdir/gcc
/configure
; then
5784 case "$have_compiler:$host:$target:$enable_bootstrap" in
5787 # Default behavior. Enable bootstrap if we have a compiler
5788 # and we are in a native configuration.
5789 yes:$build:$build:default
)
5790 enable_bootstrap
=yes ;;
5793 enable_bootstrap
=no
;;
5795 # We have a compiler and we are in a native configuration, bootstrap is ok
5796 yes:$build:$build:yes)
5799 # Other configurations, but we have a compiler. Assume the user knows
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5803 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5806 # No compiler: if they passed --enable-bootstrap explicitly, fail
5808 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5810 # Fail if wrong command line
5812 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5816 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5817 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5818 # require C++11 (or higher).
5819 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5820 CXX
="$CXX -std=c++11"
5821 elif test "$have_compiler" = yes; then
5822 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5824 ac_cpp
='$CXXCPP $CPPFLAGS'
5825 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5831 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5832 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5833 $as_echo_n "(cached) " >&6
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5839 // If the compiler admits that it is not ready for C++11, why torture it?
5840 // Hopefully, this will speed up the test.
5844 #error "This is not a C++ compiler"
5846 #elif __cplusplus < 201103L
5848 #error "This is not a C++11 compiler"
5855 namespace test_static_assert
5858 template <typename T>
5861 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5866 namespace test_final_override
5875 struct Derived : public Base
5877 virtual ~Derived() override {}
5878 virtual void f() override {}
5883 namespace test_double_right_angle_brackets
5886 template < typename T >
5889 typedef check<void> single_type;
5890 typedef check<check<void>> double_type;
5891 typedef check<check<check<void>>> triple_type;
5892 typedef check<check<check<check<void>>>> quadruple_type;
5896 namespace test_decltype
5909 namespace test_type_deduction
5912 template < typename T1, typename T2 >
5915 static const bool value = false;
5918 template < typename T >
5919 struct is_same<T, T>
5921 static const bool value = true;
5924 template < typename T1, typename T2 >
5926 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5932 test(const int c, volatile int v)
5934 static_assert(is_same<int, decltype(0)>::value == true, "");
5935 static_assert(is_same<int, decltype(c)>::value == false, "");
5936 static_assert(is_same<int, decltype(v)>::value == false, "");
5939 auto sumi = ac + av + 'x';
5940 auto sumf = ac + av + 1.0;
5941 static_assert(is_same<int, decltype(ac)>::value == true, "");
5942 static_assert(is_same<int, decltype(av)>::value == true, "");
5943 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5944 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5945 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5946 return (sumf > 0.0) ? sumi : add(c, v);
5951 namespace test_noexcept
5954 int f() { return 0; }
5955 int g() noexcept { return 0; }
5957 static_assert(noexcept(f()) == false, "");
5958 static_assert(noexcept(g()) == true, "");
5962 namespace test_constexpr
5965 template < typename CharT >
5966 unsigned long constexpr
5967 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5969 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5972 template < typename CharT >
5973 unsigned long constexpr
5974 strlen_c(const CharT *const s) noexcept
5976 return strlen_c_r(s, 0UL);
5979 static_assert(strlen_c("") == 0UL, "");
5980 static_assert(strlen_c("1") == 1UL, "");
5981 static_assert(strlen_c("example") == 7UL, "");
5982 static_assert(strlen_c("another\0example") == 7UL, "");
5986 namespace test_rvalue_references
5992 static constexpr int value = N;
5995 answer<1> f(int&) { return answer<1>(); }
5996 answer<2> f(const int&) { return answer<2>(); }
5997 answer<3> f(int&&) { return answer<3>(); }
6004 static_assert(decltype(f(i))::value == 1, "");
6005 static_assert(decltype(f(c))::value == 2, "");
6006 static_assert(decltype(f(0))::value == 3, "");
6011 namespace test_uniform_initialization
6016 static const int zero {};
6017 static const int one {1};
6020 static_assert(test::zero == 0, "");
6021 static_assert(test::one == 1, "");
6025 namespace test_lambdas
6031 auto lambda1 = [](){};
6032 auto lambda2 = lambda1;
6040 auto a = [](int i, int j){ return i + j; }(1, 2);
6041 auto b = []() -> int { return '0'; }();
6042 auto c = [=](){ return a + b; }();
6043 auto d = [&](){ return c; }();
6044 auto e = [a, &b](int x) mutable {
6045 const auto identity = [](int y){ return y; };
6046 for (auto i = 0; i < a; ++i)
6048 return x + identity(a + b);
6050 return a + b + c + d + e;
6056 const auto nullary = [](){ return 0; };
6057 const auto unary = [](int x){ return x; };
6058 using nullary_t = decltype(nullary);
6059 using unary_t = decltype(unary);
6060 const auto higher1st = [](nullary_t f){ return f(); };
6061 const auto higher2nd = [unary](nullary_t f1){
6062 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6064 return higher1st(nullary) + higher2nd(nullary)(unary);
6069 namespace test_variadic_templates
6075 template <int N0, int... N1toN>
6076 struct sum<N0, N1toN...>
6078 static constexpr auto value = N0 + sum<N1toN...>::value;
6084 static constexpr auto value = 0;
6087 static_assert(sum<>::value == 0, "");
6088 static_assert(sum<1>::value == 1, "");
6089 static_assert(sum<23>::value == 23, "");
6090 static_assert(sum<1, 2>::value == 3, "");
6091 static_assert(sum<5, 5, 11>::value == 21, "");
6092 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6096 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6097 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6099 namespace test_template_alias_sfinae
6104 template<typename T>
6105 using member = typename T::member_type;
6107 template<typename T>
6110 template<typename T>
6111 void func(member<T>*) {}
6115 void test() { func<foo>(0); }
6119 } // namespace cxx11
6121 #endif // __cplusplus >= 201103L
6126 if ac_fn_cxx_try_compile
"$LINENO"; then :
6127 ax_cv_cxx_compile_cxx11
=yes
6129 ax_cv_cxx_compile_cxx11
=no
6131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6134 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6135 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6139 if test x
$ac_success = xno
; then
6140 for alternative
in ${ax_cxx_compile_alternatives}; do
6141 switch
="-std=gnu++${alternative}"
6142 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6144 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6145 if eval \
${$cachevar+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6154 // If the compiler admits that it is not ready for C++11, why torture it?
6155 // Hopefully, this will speed up the test.
6159 #error "This is not a C++ compiler"
6161 #elif __cplusplus < 201103L
6163 #error "This is not a C++11 compiler"
6170 namespace test_static_assert
6173 template <typename T>
6176 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6181 namespace test_final_override
6190 struct Derived : public Base
6192 virtual ~Derived() override {}
6193 virtual void f() override {}
6198 namespace test_double_right_angle_brackets
6201 template < typename T >
6204 typedef check<void> single_type;
6205 typedef check<check<void>> double_type;
6206 typedef check<check<check<void>>> triple_type;
6207 typedef check<check<check<check<void>>>> quadruple_type;
6211 namespace test_decltype
6224 namespace test_type_deduction
6227 template < typename T1, typename T2 >
6230 static const bool value = false;
6233 template < typename T >
6234 struct is_same<T, T>
6236 static const bool value = true;
6239 template < typename T1, typename T2 >
6241 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6247 test(const int c, volatile int v)
6249 static_assert(is_same<int, decltype(0)>::value == true, "");
6250 static_assert(is_same<int, decltype(c)>::value == false, "");
6251 static_assert(is_same<int, decltype(v)>::value == false, "");
6254 auto sumi = ac + av + 'x';
6255 auto sumf = ac + av + 1.0;
6256 static_assert(is_same<int, decltype(ac)>::value == true, "");
6257 static_assert(is_same<int, decltype(av)>::value == true, "");
6258 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6259 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6260 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6261 return (sumf > 0.0) ? sumi : add(c, v);
6266 namespace test_noexcept
6269 int f() { return 0; }
6270 int g() noexcept { return 0; }
6272 static_assert(noexcept(f()) == false, "");
6273 static_assert(noexcept(g()) == true, "");
6277 namespace test_constexpr
6280 template < typename CharT >
6281 unsigned long constexpr
6282 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6284 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6287 template < typename CharT >
6288 unsigned long constexpr
6289 strlen_c(const CharT *const s) noexcept
6291 return strlen_c_r(s, 0UL);
6294 static_assert(strlen_c("") == 0UL, "");
6295 static_assert(strlen_c("1") == 1UL, "");
6296 static_assert(strlen_c("example") == 7UL, "");
6297 static_assert(strlen_c("another\0example") == 7UL, "");
6301 namespace test_rvalue_references
6307 static constexpr int value = N;
6310 answer<1> f(int&) { return answer<1>(); }
6311 answer<2> f(const int&) { return answer<2>(); }
6312 answer<3> f(int&&) { return answer<3>(); }
6319 static_assert(decltype(f(i))::value == 1, "");
6320 static_assert(decltype(f(c))::value == 2, "");
6321 static_assert(decltype(f(0))::value == 3, "");
6326 namespace test_uniform_initialization
6331 static const int zero {};
6332 static const int one {1};
6335 static_assert(test::zero == 0, "");
6336 static_assert(test::one == 1, "");
6340 namespace test_lambdas
6346 auto lambda1 = [](){};
6347 auto lambda2 = lambda1;
6355 auto a = [](int i, int j){ return i + j; }(1, 2);
6356 auto b = []() -> int { return '0'; }();
6357 auto c = [=](){ return a + b; }();
6358 auto d = [&](){ return c; }();
6359 auto e = [a, &b](int x) mutable {
6360 const auto identity = [](int y){ return y; };
6361 for (auto i = 0; i < a; ++i)
6363 return x + identity(a + b);
6365 return a + b + c + d + e;
6371 const auto nullary = [](){ return 0; };
6372 const auto unary = [](int x){ return x; };
6373 using nullary_t = decltype(nullary);
6374 using unary_t = decltype(unary);
6375 const auto higher1st = [](nullary_t f){ return f(); };
6376 const auto higher2nd = [unary](nullary_t f1){
6377 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6379 return higher1st(nullary) + higher2nd(nullary)(unary);
6384 namespace test_variadic_templates
6390 template <int N0, int... N1toN>
6391 struct sum<N0, N1toN...>
6393 static constexpr auto value = N0 + sum<N1toN...>::value;
6399 static constexpr auto value = 0;
6402 static_assert(sum<>::value == 0, "");
6403 static_assert(sum<1>::value == 1, "");
6404 static_assert(sum<23>::value == 23, "");
6405 static_assert(sum<1, 2>::value == 3, "");
6406 static_assert(sum<5, 5, 11>::value == 21, "");
6407 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6411 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6412 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6414 namespace test_template_alias_sfinae
6419 template<typename T>
6420 using member = typename T::member_type;
6422 template<typename T>
6425 template<typename T>
6426 void func(member<T>*) {}
6430 void test() { func<foo>(0); }
6434 } // namespace cxx11
6436 #endif // __cplusplus >= 201103L
6441 if ac_fn_cxx_try_compile
"$LINENO"; then :
6446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6449 eval ac_res
=\$
$cachevar
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6451 $as_echo "$ac_res" >&6; }
6452 if eval test x\$
$cachevar = xyes
; then
6454 if test -n "$CXXCPP" ; then
6455 CXXCPP
="$CXXCPP $switch"
6463 if test x
$ac_success = xno
; then
6464 for alternative
in ${ax_cxx_compile_alternatives}; do
6465 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6466 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6468 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6469 if eval \${$cachevar+:} false; then :
6470 $as_echo_n "(cached
) " >&6
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6478 // If the compiler admits that it is not ready for C++11, why torture it?
6479 // Hopefully, this will speed up the test.
6483 #error "This is not a C
++ compiler
"
6485 #elif __cplusplus < 201103L
6487 #error "This is not a C
++11 compiler
"
6494 namespace test_static_assert
6497 template <typename T>
6500 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6505 namespace test_final_override
6514 struct Derived : public Base
6516 virtual ~Derived() override {}
6517 virtual void f() override {}
6522 namespace test_double_right_angle_brackets
6525 template < typename T >
6528 typedef check<void> single_type;
6529 typedef check<check<void>> double_type;
6530 typedef check<check<check<void>>> triple_type;
6531 typedef check<check<check<check<void>>>> quadruple_type;
6535 namespace test_decltype
6548 namespace test_type_deduction
6551 template < typename T1, typename T2 >
6554 static const bool value = false;
6557 template < typename T >
6558 struct is_same<T, T>
6560 static const bool value = true;
6563 template < typename T1, typename T2 >
6565 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6571 test(const int c, volatile int v)
6573 static_assert(is_same<int, decltype(0)>::value == true, "");
6574 static_assert(is_same<int, decltype(c)>::value == false, "");
6575 static_assert(is_same<int, decltype(v)>::value == false, "");
6578 auto sumi = ac + av + 'x';
6579 auto sumf = ac + av + 1.0;
6580 static_assert(is_same<int, decltype(ac)>::value == true, "");
6581 static_assert(is_same<int, decltype(av)>::value == true, "");
6582 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6583 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6584 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6585 return (sumf > 0.0) ? sumi : add(c, v);
6590 namespace test_noexcept
6593 int f() { return 0; }
6594 int g() noexcept { return 0; }
6596 static_assert(noexcept(f()) == false, "");
6597 static_assert(noexcept(g()) == true, "");
6601 namespace test_constexpr
6604 template < typename CharT >
6605 unsigned long constexpr
6606 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6608 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6611 template < typename CharT >
6612 unsigned long constexpr
6613 strlen_c(const CharT *const s) noexcept
6615 return strlen_c_r(s, 0UL);
6618 static_assert(strlen_c("") == 0UL, "");
6619 static_assert(strlen_c("1") == 1UL, "");
6620 static_assert(strlen_c("example
") == 7UL, "");
6621 static_assert(strlen_c("another\
0example
") == 7UL, "");
6625 namespace test_rvalue_references
6631 static constexpr int value = N;
6634 answer<1> f(int&) { return answer<1>(); }
6635 answer<2> f(const int&) { return answer<2>(); }
6636 answer<3> f(int&&) { return answer<3>(); }
6643 static_assert(decltype(f(i))::value == 1, "");
6644 static_assert(decltype(f(c))::value == 2, "");
6645 static_assert(decltype(f(0))::value == 3, "");
6650 namespace test_uniform_initialization
6655 static const int zero {};
6656 static const int one {1};
6659 static_assert(test::zero == 0, "");
6660 static_assert(test::one == 1, "");
6664 namespace test_lambdas
6670 auto lambda1 = [](){};
6671 auto lambda2 = lambda1;
6679 auto a = [](int i, int j){ return i + j; }(1, 2);
6680 auto b = []() -> int { return '0'; }();
6681 auto c = [=](){ return a + b; }();
6682 auto d = [&](){ return c; }();
6683 auto e = [a, &b](int x) mutable {
6684 const auto identity = [](int y){ return y; };
6685 for (auto i = 0; i < a; ++i)
6687 return x + identity(a + b);
6689 return a + b + c + d + e;
6695 const auto nullary = [](){ return 0; };
6696 const auto unary = [](int x){ return x; };
6697 using nullary_t = decltype(nullary);
6698 using unary_t = decltype(unary);
6699 const auto higher1st = [](nullary_t f){ return f(); };
6700 const auto higher2nd = [unary](nullary_t f1){
6701 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6703 return higher1st(nullary) + higher2nd(nullary)(unary);
6708 namespace test_variadic_templates
6714 template <int N0, int... N1toN>
6715 struct sum<N0, N1toN...>
6717 static constexpr auto value = N0 + sum<N1toN...>::value;
6723 static constexpr auto value = 0;
6726 static_assert(sum<>::value == 0, "");
6727 static_assert(sum<1>::value == 1, "");
6728 static_assert(sum<23>::value == 23, "");
6729 static_assert(sum<1, 2>::value == 3, "");
6730 static_assert(sum<5, 5, 11>::value == 21, "");
6731 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6735 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6736 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6738 namespace test_template_alias_sfinae
6743 template<typename T>
6744 using member = typename T::member_type;
6746 template<typename T>
6749 template<typename T>
6750 void func(member<T>*) {}
6754 void test() { func<foo>(0); }
6758 } // namespace cxx11
6760 #endif // __cplusplus >= 201103L
6765 if ac_fn_cxx_try_compile "$LINENO"; then :
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 eval ac_res=\$$cachevar
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6775 $as_echo "$ac_res" >&6; }
6776 if eval test x\$$cachevar = xyes; then
6778 if test -n "$CXXCPP" ; then
6779 CXXCPP="$CXXCPP $switch"
6785 if test x$ac_success = xyes; then
6792 ac_cpp='$CPP $CPPFLAGS'
6793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6798 if test x$ac_success = xno; then
6799 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6802 if test x$ac_success = xno; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6805 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6809 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6815 if test "${build}" != "${host}"; then
6816 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6818 ac_cpp
='$CXXCPP $CPPFLAGS'
6819 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6823 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6824 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6825 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6826 CXX
="$CXX_FOR_BUILD"
6827 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6828 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6830 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6831 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6832 $as_echo_n "(cached) " >&6
6834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6838 // If the compiler admits that it is not ready for C++11, why torture it?
6839 // Hopefully, this will speed up the test.
6843 #error "This is not a C++ compiler"
6845 #elif __cplusplus < 201103L
6847 #error "This is not a C++11 compiler"
6854 namespace test_static_assert
6857 template <typename T>
6860 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6865 namespace test_final_override
6874 struct Derived : public Base
6876 virtual ~Derived() override {}
6877 virtual void f() override {}
6882 namespace test_double_right_angle_brackets
6885 template < typename T >
6888 typedef check<void> single_type;
6889 typedef check<check<void>> double_type;
6890 typedef check<check<check<void>>> triple_type;
6891 typedef check<check<check<check<void>>>> quadruple_type;
6895 namespace test_decltype
6908 namespace test_type_deduction
6911 template < typename T1, typename T2 >
6914 static const bool value = false;
6917 template < typename T >
6918 struct is_same<T, T>
6920 static const bool value = true;
6923 template < typename T1, typename T2 >
6925 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6931 test(const int c, volatile int v)
6933 static_assert(is_same<int, decltype(0)>::value == true, "");
6934 static_assert(is_same<int, decltype(c)>::value == false, "");
6935 static_assert(is_same<int, decltype(v)>::value == false, "");
6938 auto sumi = ac + av + 'x';
6939 auto sumf = ac + av + 1.0;
6940 static_assert(is_same<int, decltype(ac)>::value == true, "");
6941 static_assert(is_same<int, decltype(av)>::value == true, "");
6942 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6943 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6944 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6945 return (sumf > 0.0) ? sumi : add(c, v);
6950 namespace test_noexcept
6953 int f() { return 0; }
6954 int g() noexcept { return 0; }
6956 static_assert(noexcept(f()) == false, "");
6957 static_assert(noexcept(g()) == true, "");
6961 namespace test_constexpr
6964 template < typename CharT >
6965 unsigned long constexpr
6966 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6968 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6971 template < typename CharT >
6972 unsigned long constexpr
6973 strlen_c(const CharT *const s) noexcept
6975 return strlen_c_r(s, 0UL);
6978 static_assert(strlen_c("") == 0UL, "");
6979 static_assert(strlen_c("1") == 1UL, "");
6980 static_assert(strlen_c("example") == 7UL, "");
6981 static_assert(strlen_c("another\0example") == 7UL, "");
6985 namespace test_rvalue_references
6991 static constexpr int value = N;
6994 answer<1> f(int&) { return answer<1>(); }
6995 answer<2> f(const int&) { return answer<2>(); }
6996 answer<3> f(int&&) { return answer<3>(); }
7003 static_assert(decltype(f(i))::value == 1, "");
7004 static_assert(decltype(f(c))::value == 2, "");
7005 static_assert(decltype(f(0))::value == 3, "");
7010 namespace test_uniform_initialization
7015 static const int zero {};
7016 static const int one {1};
7019 static_assert(test::zero == 0, "");
7020 static_assert(test::one == 1, "");
7024 namespace test_lambdas
7030 auto lambda1 = [](){};
7031 auto lambda2 = lambda1;
7039 auto a = [](int i, int j){ return i + j; }(1, 2);
7040 auto b = []() -> int { return '0'; }();
7041 auto c = [=](){ return a + b; }();
7042 auto d = [&](){ return c; }();
7043 auto e = [a, &b](int x) mutable {
7044 const auto identity = [](int y){ return y; };
7045 for (auto i = 0; i < a; ++i)
7047 return x + identity(a + b);
7049 return a + b + c + d + e;
7055 const auto nullary = [](){ return 0; };
7056 const auto unary = [](int x){ return x; };
7057 using nullary_t = decltype(nullary);
7058 using unary_t = decltype(unary);
7059 const auto higher1st = [](nullary_t f){ return f(); };
7060 const auto higher2nd = [unary](nullary_t f1){
7061 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7063 return higher1st(nullary) + higher2nd(nullary)(unary);
7068 namespace test_variadic_templates
7074 template <int N0, int... N1toN>
7075 struct sum<N0, N1toN...>
7077 static constexpr auto value = N0 + sum<N1toN...>::value;
7083 static constexpr auto value = 0;
7086 static_assert(sum<>::value == 0, "");
7087 static_assert(sum<1>::value == 1, "");
7088 static_assert(sum<23>::value == 23, "");
7089 static_assert(sum<1, 2>::value == 3, "");
7090 static_assert(sum<5, 5, 11>::value == 21, "");
7091 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7095 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7096 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7098 namespace test_template_alias_sfinae
7103 template<typename T>
7104 using member = typename T::member_type;
7106 template<typename T>
7109 template<typename T>
7110 void func(member<T>*) {}
7114 void test() { func<foo>(0); }
7118 } // namespace cxx11
7120 #endif // __cplusplus >= 201103L
7125 if ac_fn_cxx_try_compile
"$LINENO"; then :
7126 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7128 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7133 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7134 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7138 if test x
$ac_success = xno
; then
7139 for alternative
in ${ax_cxx_compile_alternatives}; do
7140 switch
="-std=gnu++${alternative}"
7141 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7143 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7144 if eval \
${$cachevar+:} false
; then :
7145 $as_echo_n "(cached) " >&6
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7153 // If the compiler admits that it is not ready for C++11, why torture it?
7154 // Hopefully, this will speed up the test.
7158 #error "This is not a C++ compiler"
7160 #elif __cplusplus < 201103L
7162 #error "This is not a C++11 compiler"
7169 namespace test_static_assert
7172 template <typename T>
7175 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7180 namespace test_final_override
7189 struct Derived : public Base
7191 virtual ~Derived() override {}
7192 virtual void f() override {}
7197 namespace test_double_right_angle_brackets
7200 template < typename T >
7203 typedef check<void> single_type;
7204 typedef check<check<void>> double_type;
7205 typedef check<check<check<void>>> triple_type;
7206 typedef check<check<check<check<void>>>> quadruple_type;
7210 namespace test_decltype
7223 namespace test_type_deduction
7226 template < typename T1, typename T2 >
7229 static const bool value = false;
7232 template < typename T >
7233 struct is_same<T, T>
7235 static const bool value = true;
7238 template < typename T1, typename T2 >
7240 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7246 test(const int c, volatile int v)
7248 static_assert(is_same<int, decltype(0)>::value == true, "");
7249 static_assert(is_same<int, decltype(c)>::value == false, "");
7250 static_assert(is_same<int, decltype(v)>::value == false, "");
7253 auto sumi = ac + av + 'x';
7254 auto sumf = ac + av + 1.0;
7255 static_assert(is_same<int, decltype(ac)>::value == true, "");
7256 static_assert(is_same<int, decltype(av)>::value == true, "");
7257 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7258 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7259 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7260 return (sumf > 0.0) ? sumi : add(c, v);
7265 namespace test_noexcept
7268 int f() { return 0; }
7269 int g() noexcept { return 0; }
7271 static_assert(noexcept(f()) == false, "");
7272 static_assert(noexcept(g()) == true, "");
7276 namespace test_constexpr
7279 template < typename CharT >
7280 unsigned long constexpr
7281 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7283 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7286 template < typename CharT >
7287 unsigned long constexpr
7288 strlen_c(const CharT *const s) noexcept
7290 return strlen_c_r(s, 0UL);
7293 static_assert(strlen_c("") == 0UL, "");
7294 static_assert(strlen_c("1") == 1UL, "");
7295 static_assert(strlen_c("example") == 7UL, "");
7296 static_assert(strlen_c("another\0example") == 7UL, "");
7300 namespace test_rvalue_references
7306 static constexpr int value = N;
7309 answer<1> f(int&) { return answer<1>(); }
7310 answer<2> f(const int&) { return answer<2>(); }
7311 answer<3> f(int&&) { return answer<3>(); }
7318 static_assert(decltype(f(i))::value == 1, "");
7319 static_assert(decltype(f(c))::value == 2, "");
7320 static_assert(decltype(f(0))::value == 3, "");
7325 namespace test_uniform_initialization
7330 static const int zero {};
7331 static const int one {1};
7334 static_assert(test::zero == 0, "");
7335 static_assert(test::one == 1, "");
7339 namespace test_lambdas
7345 auto lambda1 = [](){};
7346 auto lambda2 = lambda1;
7354 auto a = [](int i, int j){ return i + j; }(1, 2);
7355 auto b = []() -> int { return '0'; }();
7356 auto c = [=](){ return a + b; }();
7357 auto d = [&](){ return c; }();
7358 auto e = [a, &b](int x) mutable {
7359 const auto identity = [](int y){ return y; };
7360 for (auto i = 0; i < a; ++i)
7362 return x + identity(a + b);
7364 return a + b + c + d + e;
7370 const auto nullary = [](){ return 0; };
7371 const auto unary = [](int x){ return x; };
7372 using nullary_t = decltype(nullary);
7373 using unary_t = decltype(unary);
7374 const auto higher1st = [](nullary_t f){ return f(); };
7375 const auto higher2nd = [unary](nullary_t f1){
7376 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7378 return higher1st(nullary) + higher2nd(nullary)(unary);
7383 namespace test_variadic_templates
7389 template <int N0, int... N1toN>
7390 struct sum<N0, N1toN...>
7392 static constexpr auto value = N0 + sum<N1toN...>::value;
7398 static constexpr auto value = 0;
7401 static_assert(sum<>::value == 0, "");
7402 static_assert(sum<1>::value == 1, "");
7403 static_assert(sum<23>::value == 23, "");
7404 static_assert(sum<1, 2>::value == 3, "");
7405 static_assert(sum<5, 5, 11>::value == 21, "");
7406 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7410 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7411 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7413 namespace test_template_alias_sfinae
7418 template<typename T>
7419 using member = typename T::member_type;
7421 template<typename T>
7424 template<typename T>
7425 void func(member<T>*) {}
7429 void test() { func<foo>(0); }
7433 } // namespace cxx11
7435 #endif // __cplusplus >= 201103L
7440 if ac_fn_cxx_try_compile
"$LINENO"; then :
7445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7448 eval ac_res
=\$
$cachevar
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7450 $as_echo "$ac_res" >&6; }
7451 if eval test x\$
$cachevar = xyes
; then
7453 if test -n "$CXXCPP" ; then
7454 CXXCPP
="$CXXCPP $switch"
7462 if test x
$ac_success = xno
; then
7463 for alternative
in ${ax_cxx_compile_alternatives}; do
7464 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7465 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7467 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7468 if eval \${$cachevar+:} false; then :
7469 $as_echo_n "(cached
) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7477 // If the compiler admits that it is not ready for C++11, why torture it?
7478 // Hopefully, this will speed up the test.
7482 #error "This is not a C
++ compiler
"
7484 #elif __cplusplus < 201103L
7486 #error "This is not a C
++11 compiler
"
7493 namespace test_static_assert
7496 template <typename T>
7499 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7504 namespace test_final_override
7513 struct Derived : public Base
7515 virtual ~Derived() override {}
7516 virtual void f() override {}
7521 namespace test_double_right_angle_brackets
7524 template < typename T >
7527 typedef check<void> single_type;
7528 typedef check<check<void>> double_type;
7529 typedef check<check<check<void>>> triple_type;
7530 typedef check<check<check<check<void>>>> quadruple_type;
7534 namespace test_decltype
7547 namespace test_type_deduction
7550 template < typename T1, typename T2 >
7553 static const bool value = false;
7556 template < typename T >
7557 struct is_same<T, T>
7559 static const bool value = true;
7562 template < typename T1, typename T2 >
7564 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7570 test(const int c, volatile int v)
7572 static_assert(is_same<int, decltype(0)>::value == true, "");
7573 static_assert(is_same<int, decltype(c)>::value == false, "");
7574 static_assert(is_same<int, decltype(v)>::value == false, "");
7577 auto sumi = ac + av + 'x';
7578 auto sumf = ac + av + 1.0;
7579 static_assert(is_same<int, decltype(ac)>::value == true, "");
7580 static_assert(is_same<int, decltype(av)>::value == true, "");
7581 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7582 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7583 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7584 return (sumf > 0.0) ? sumi : add(c, v);
7589 namespace test_noexcept
7592 int f() { return 0; }
7593 int g() noexcept { return 0; }
7595 static_assert(noexcept(f()) == false, "");
7596 static_assert(noexcept(g()) == true, "");
7600 namespace test_constexpr
7603 template < typename CharT >
7604 unsigned long constexpr
7605 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7607 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7610 template < typename CharT >
7611 unsigned long constexpr
7612 strlen_c(const CharT *const s) noexcept
7614 return strlen_c_r(s, 0UL);
7617 static_assert(strlen_c("") == 0UL, "");
7618 static_assert(strlen_c("1") == 1UL, "");
7619 static_assert(strlen_c("example
") == 7UL, "");
7620 static_assert(strlen_c("another\
0example
") == 7UL, "");
7624 namespace test_rvalue_references
7630 static constexpr int value = N;
7633 answer<1> f(int&) { return answer<1>(); }
7634 answer<2> f(const int&) { return answer<2>(); }
7635 answer<3> f(int&&) { return answer<3>(); }
7642 static_assert(decltype(f(i))::value == 1, "");
7643 static_assert(decltype(f(c))::value == 2, "");
7644 static_assert(decltype(f(0))::value == 3, "");
7649 namespace test_uniform_initialization
7654 static const int zero {};
7655 static const int one {1};
7658 static_assert(test::zero == 0, "");
7659 static_assert(test::one == 1, "");
7663 namespace test_lambdas
7669 auto lambda1 = [](){};
7670 auto lambda2 = lambda1;
7678 auto a = [](int i, int j){ return i + j; }(1, 2);
7679 auto b = []() -> int { return '0'; }();
7680 auto c = [=](){ return a + b; }();
7681 auto d = [&](){ return c; }();
7682 auto e = [a, &b](int x) mutable {
7683 const auto identity = [](int y){ return y; };
7684 for (auto i = 0; i < a; ++i)
7686 return x + identity(a + b);
7688 return a + b + c + d + e;
7694 const auto nullary = [](){ return 0; };
7695 const auto unary = [](int x){ return x; };
7696 using nullary_t = decltype(nullary);
7697 using unary_t = decltype(unary);
7698 const auto higher1st = [](nullary_t f){ return f(); };
7699 const auto higher2nd = [unary](nullary_t f1){
7700 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7702 return higher1st(nullary) + higher2nd(nullary)(unary);
7707 namespace test_variadic_templates
7713 template <int N0, int... N1toN>
7714 struct sum<N0, N1toN...>
7716 static constexpr auto value = N0 + sum<N1toN...>::value;
7722 static constexpr auto value = 0;
7725 static_assert(sum<>::value == 0, "");
7726 static_assert(sum<1>::value == 1, "");
7727 static_assert(sum<23>::value == 23, "");
7728 static_assert(sum<1, 2>::value == 3, "");
7729 static_assert(sum<5, 5, 11>::value == 21, "");
7730 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7734 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7735 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7737 namespace test_template_alias_sfinae
7742 template<typename T>
7743 using member = typename T::member_type;
7745 template<typename T>
7748 template<typename T>
7749 void func(member<T>*) {}
7753 void test() { func<foo>(0); }
7757 } // namespace cxx11
7759 #endif // __cplusplus >= 201103L
7764 if ac_fn_cxx_try_compile "$LINENO"; then :
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 eval ac_res=\$$cachevar
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7774 $as_echo "$ac_res" >&6; }
7775 if eval test x\$$cachevar = xyes; then
7777 if test -n "$CXXCPP" ; then
7778 CXXCPP="$CXXCPP $switch"
7784 if test x$ac_success = xyes; then
7789 CXX_FOR_BUILD="$CXX"
7790 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7791 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7792 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7793 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7794 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7802 if test x$ac_success = xno; then
7803 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7806 if test x$ac_success = xno; then
7807 HAVE_CXX11_FOR_BUILD=0
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7809 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7811 HAVE_CXX11_FOR_BUILD=1
7813 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7821 # Check whether --enable-pgo-build was given.
7822 if test "${enable_pgo_build+set}" = set; then :
7823 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7829 # Issue errors and warnings for invalid/strange PGO build combinations.
7830 case "$have_compiler:$host:$target:$enable_pgo_build" in
7833 # Allow the PGO build only if we aren't building a compiler and
7834 # we are in a native configuration.
7835 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7837 # Disallow the PGO bootstrap if we are building a compiler.
7838 yes:*:*:yes |
yes:*:*:lto
)
7839 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7842 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7846 if test "$enable_pgo_build" != "no"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7848 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7849 old_CFLAGS
="$CFLAGS"
7850 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7851 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7857 if ac_fn_c_try_compile
"$LINENO"; then :
7860 PGO_BUILD_GEN_CFLAGS
=
7862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7863 CFLAGS
="$old_CFLAGS"
7864 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7874 if test "$enable_pgo_build" = "lto"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7876 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7877 old_CFLAGS
="$CFLAGS"
7878 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7879 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7884 if ac_fn_c_try_compile
"$LINENO"; then :
7887 PGO_BUILD_LTO_CFLAGS
=
7889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 CFLAGS
="$old_CFLAGS"
7891 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 $as_echo "yes" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7898 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7906 # Used for setting $lt_cv_objdir
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7908 $as_echo_n "checking for objdir... " >&6; }
7909 if ${lt_cv_objdir+:} false
; then :
7910 $as_echo_n "(cached) " >&6
7912 rm -f .libs
2>/dev
/null
7913 mkdir .libs
2>/dev
/null
7914 if test -d .libs
; then
7917 # MS-DOS does not allow filenames that begin with a dot.
7920 rmdir .libs
2>/dev
/null
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7923 $as_echo "$lt_cv_objdir" >&6; }
7924 objdir
=$lt_cv_objdir
7930 cat >>confdefs.h
<<_ACEOF
7931 #define LT_OBJDIR "$lt_cv_objdir/"
7936 # Check for GMP, MPFR and MPC
7937 gmplibs
="-lmpc -lmpfr -lgmp"
7941 # Specify a location for mpc
7942 # check for this first so it ends up on the link line before mpfr.
7944 # Check whether --with-mpc was given.
7945 if test "${with_mpc+set}" = set; then :
7950 # Check whether --with-mpc-include was given.
7951 if test "${with_mpc_include+set}" = set; then :
7952 withval
=$with_mpc_include;
7956 # Check whether --with-mpc-lib was given.
7957 if test "${with_mpc_lib+set}" = set; then :
7958 withval
=$with_mpc_lib;
7962 if test "x$with_mpc" != x
; then
7963 gmplibs
="-L$with_mpc/lib $gmplibs"
7964 gmpinc
="-I$with_mpc/include $gmpinc"
7966 if test "x$with_mpc_include" != x
; then
7967 gmpinc
="-I$with_mpc_include $gmpinc"
7969 if test "x$with_mpc_lib" != x
; then
7970 gmplibs
="-L$with_mpc_lib $gmplibs"
7972 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7973 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7974 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7975 # Do not test the mpc version. Assume that it is sufficient, since
7976 # it is in the source tree, and the library has not been built yet
7977 # but it would be included on the link line in the version check below
7978 # hence making the test fail.
7982 # Specify a location for mpfr
7983 # check for this first so it ends up on the link line before gmp.
7985 # Check whether --with-mpfr-dir was given.
7986 if test "${with_mpfr_dir+set}" = set; then :
7987 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
7988 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7993 # Check whether --with-mpfr was given.
7994 if test "${with_mpfr+set}" = set; then :
7999 # Check whether --with-mpfr-include was given.
8000 if test "${with_mpfr_include+set}" = set; then :
8001 withval
=$with_mpfr_include;
8005 # Check whether --with-mpfr-lib was given.
8006 if test "${with_mpfr_lib+set}" = set; then :
8007 withval
=$with_mpfr_lib;
8011 if test "x$with_mpfr" != x
; then
8012 gmplibs
="-L$with_mpfr/lib $gmplibs"
8013 gmpinc
="-I$with_mpfr/include $gmpinc"
8015 if test "x$with_mpfr_include" != x
; then
8016 gmpinc
="-I$with_mpfr_include $gmpinc"
8018 if test "x$with_mpfr_lib" != x
; then
8019 gmplibs
="-L$with_mpfr_lib $gmplibs"
8021 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8022 # MPFR v3.1.0 moved the sources into a src sub-directory.
8023 if ! test -d ${srcdir}/mpfr
/src
; then
8024 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8026 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8027 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8028 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8029 # Do not test the mpfr version. Assume that it is sufficient, since
8030 # it is in the source tree, and the library has not been built yet
8031 # but it would be included on the link line in the version check below
8032 # hence making the test fail.
8036 # Specify a location for gmp
8038 # Check whether --with-gmp-dir was given.
8039 if test "${with_gmp_dir+set}" = set; then :
8040 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
8041 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8046 # Check whether --with-gmp was given.
8047 if test "${with_gmp+set}" = set; then :
8052 # Check whether --with-gmp-include was given.
8053 if test "${with_gmp_include+set}" = set; then :
8054 withval
=$with_gmp_include;
8058 # Check whether --with-gmp-lib was given.
8059 if test "${with_gmp_lib+set}" = set; then :
8060 withval
=$with_gmp_lib;
8065 if test "x$with_gmp" != x
; then
8066 gmplibs
="-L$with_gmp/lib $gmplibs"
8067 gmpinc
="-I$with_gmp/include $gmpinc"
8069 if test "x$with_gmp_include" != x
; then
8070 gmpinc
="-I$with_gmp_include $gmpinc"
8072 if test "x$with_gmp_lib" != x
; then
8073 gmplibs
="-L$with_gmp_lib $gmplibs"
8075 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8076 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8077 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8078 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8079 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8080 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8081 # Do not test the gmp version. Assume that it is sufficient, since
8082 # it is in the source tree, and the library has not been built yet
8083 # but it would be included on the link line in the version check below
8084 # hence making the test fail.
8088 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8090 saved_CFLAGS
="$CFLAGS"
8091 CFLAGS
="$CFLAGS $gmpinc"
8092 # Check for the recommended and required versions of GMP.
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8094 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8102 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8103 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8104 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8112 if ac_fn_c_try_compile
"$LINENO"; then :
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8120 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8121 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8122 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8130 if ac_fn_c_try_compile
"$LINENO"; then :
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132 $as_echo "yes" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8135 $as_echo "buggy but acceptable" >&6; }
8137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }; have_gmp
=no
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8144 # If we have GMP, check the MPFR version.
8145 if test x
"$have_gmp" = xyes
; then
8146 # Check for the recommended and required versions of MPFR.
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8148 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8157 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8165 if ac_fn_c_try_compile
"$LINENO"; then :
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8174 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8182 if ac_fn_c_try_compile
"$LINENO"; then :
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184 $as_echo "yes" >&6; }
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8187 $as_echo "buggy but acceptable" >&6; }
8189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }; have_gmp
=no
8194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8197 # Check for the MPC header version.
8198 if test x
"$have_gmp" = xyes
; then
8199 # Check for the recommended and required versions of MPC.
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8201 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8209 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8217 if ac_fn_c_try_compile
"$LINENO"; then :
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8225 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8233 if ac_fn_c_try_compile
"$LINENO"; then :
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8238 $as_echo "buggy but acceptable" >&6; }
8240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }; have_gmp
=no
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8248 # Now check the MPFR library.
8249 if test x
"$have_gmp" = xyes
; then
8251 LIBS
="$LIBS $gmplibs"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8253 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8267 mpfr_atan2 (n, n, x, MPFR_RNDN);
8268 mpfr_erfc (n, x, MPFR_RNDN);
8269 mpfr_subnormalize (x, t, MPFR_RNDN);
8273 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8274 mpc_cosh (c, c, MPC_RNDNN);
8275 mpc_pow (c, c, c, MPC_RNDNN);
8276 mpc_acosh (c, c, MPC_RNDNN);
8283 if ac_fn_c_try_link
"$LINENO"; then :
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8285 $as_echo "yes" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }; have_gmp
=no
8290 rm -f core conftest.err conftest.
$ac_objext \
8291 conftest
$ac_exeext conftest.
$ac_ext
8295 CFLAGS
="$saved_CFLAGS"
8297 # The library versions listed in the error message below should match
8298 # the HARD-minimums enforced above.
8299 if test x
$have_gmp != xyes
; then
8300 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8301 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8302 their locations. Source code for these libraries can be found at
8303 their respective hosting sites as well as at
8304 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8305 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8306 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8307 make sure that you have installed both the libraries and the header
8308 files. They may be located in separate packages." "$LINENO" 5
8312 # Flags needed for both GMP, MPFR and/or MPC.
8320 # Libraries to use for stage1 or when not bootstrapping.
8322 # Check whether --with-stage1-libs was given.
8323 if test "${with_stage1_libs+set}" = set; then :
8324 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8327 stage1_libs
=$withval
8335 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8336 # default is yes if gcc is being built; no otherwise. The reason for
8337 # this default is that gdb is sometimes linked against GNU Source
8338 # Highlight, which is a shared library that uses C++ exceptions. In
8339 # this case, -static-libstdc++ will cause crashes.
8341 # Check whether --with-static-standard-libraries was given.
8342 if test "${with_static_standard_libraries+set}" = set; then :
8343 withval
=$with_static_standard_libraries;
8345 with_static_standard_libraries
=auto
8348 if test "$with_static_standard_libraries" = auto
; then
8349 with_static_standard_libraries
=$have_compiler
8352 # Linker flags to use for stage1 or when not bootstrapping.
8354 # Check whether --with-stage1-ldflags was given.
8355 if test "${with_stage1_ldflags+set}" = set; then :
8356 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8359 stage1_ldflags
=$withval
8363 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8364 # if supported. But if the user explicitly specified the libraries to use,
8365 # trust that they are doing what they want.
8366 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8367 -a "$have_static_libs" = yes; then
8368 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8374 # Libraries to use for stage2 and later builds.
8376 # Check whether --with-boot-libs was given.
8377 if test "${with_boot_libs+set}" = set; then :
8378 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8381 poststage1_libs
=$withval
8389 # Linker flags to use for stage2 and later builds.
8391 # Check whether --with-boot-ldflags was given.
8392 if test "${with_boot_ldflags+set}" = set; then :
8393 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8396 poststage1_ldflags
=$withval
8400 # In stages 2 and 3, default to linking libstdc++ and libgcc
8401 # statically. But if the user explicitly specified the libraries to
8402 # use, trust that they are doing what they want.
8403 if test "$poststage1_libs" = ""; then
8404 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8410 # GCC GRAPHITE dependency isl.
8411 # Basic setup is inlined here, actual checks are in config/isl.m4
8414 # Check whether --with-isl was given.
8415 if test "${with_isl+set}" = set; then :
8420 # Treat --without-isl as a request to disable
8421 # GRAPHITE support and skip all following checks.
8422 if test "x$with_isl" != "xno"; then
8426 # Check whether --with-isl-include was given.
8427 if test "${with_isl_include+set}" = set; then :
8428 withval
=$with_isl_include;
8432 # Check whether --with-isl-lib was given.
8433 if test "${with_isl_lib+set}" = set; then :
8434 withval
=$with_isl_lib;
8438 # Check whether --enable-isl-version-check was given.
8439 if test "${enable_isl_version_check+set}" = set; then :
8440 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8442 ENABLE_ISL_CHECK
=yes
8446 # Initialize isllibs and islinc.
8455 isllibs
="-L$with_isl/lib"
8456 islinc
="-I$with_isl/include"
8459 if test "x${with_isl_include}" != x
; then
8460 islinc
="-I$with_isl_include"
8462 if test "x${with_isl_lib}" != x
; then
8463 isllibs
="-L$with_isl_lib"
8465 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8466 && test -d ${srcdir}/isl
; then
8467 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8468 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8471 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8474 isllibs
="${isllibs} -lisl"
8478 if test "${ENABLE_ISL_CHECK}" = yes ; then
8479 _isl_saved_CFLAGS
=$CFLAGS
8480 _isl_saved_LDFLAGS
=$LDFLAGS
8481 _isl_saved_LIBS
=$LIBS
8483 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8484 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8485 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8488 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #include <isl/schedule.h>
8495 isl_options_set_schedule_serialize_sccs (NULL, 0);
8500 if ac_fn_c_try_link
"$LINENO"; then :
8505 rm -f core conftest.err conftest.
$ac_objext \
8506 conftest
$ac_exeext conftest.
$ac_ext
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8508 $as_echo "$gcc_cv_isl" >&6; }
8510 if test "${gcc_cv_isl}" = no
; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8512 $as_echo "required isl version is 0.15 or later" >&6; }
8515 CFLAGS
=$_isl_saved_CFLAGS
8516 LDFLAGS
=$_isl_saved_LDFLAGS
8517 LIBS
=$_isl_saved_LIBS
8525 if test "x${with_isl}" = xno
; then
8526 graphite_requested
=no
8527 elif test "x${with_isl}" != x \
8528 ||
test "x${with_isl_include}" != x \
8529 ||
test "x${with_isl_lib}" != x
; then
8530 graphite_requested
=yes
8532 graphite_requested
=no
8537 if test "${gcc_cv_isl}" = no
; then
8542 if test "${graphite_requested}" = yes \
8543 && test "x${isllibs}" = x \
8544 && test "x${islinc}" = x
; then
8546 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8552 # If the isl check failed, disable builds of in-tree variant of isl
8553 if test "x$with_isl" = xno ||
8554 test "x$gcc_cv_isl" = xno
; then
8555 noconfigdirs
="$noconfigdirs isl"
8562 # Check for LTO support.
8563 # Check whether --enable-lto was given.
8564 if test "${enable_lto+set}" = set; then :
8565 enableval
=$enable_lto; enable_lto
=$enableval
8567 enable_lto
=yes; default_enable_lto
=yes
8576 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8577 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8578 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8587 if test $target_elf = yes; then :
8588 # ELF platforms build the lto-plugin always.
8589 build_lto_plugin
=yes
8592 if test x
"$default_enable_lto" = x
"yes" ; then
8594 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8595 # On other non-ELF platforms, LTO has yet to be validated.
8599 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8600 # It would also be nice to check the binutils support, but we don't
8601 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8602 # warn during gcc/ subconfigure; unless you're bootstrapping with
8603 # -flto it won't be needed until after installation anyway.
8605 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8606 *) if test x
"$enable_lto" = x
"yes"; then
8607 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8612 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8613 # Build it unless LTO was explicitly disabled.
8615 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8622 # Check whether --enable-linker-plugin-configure-flags was given.
8623 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8624 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8626 extra_linker_plugin_configure_flags
=
8630 # Check whether --enable-linker-plugin-flags was given.
8631 if test "${enable_linker_plugin_flags+set}" = set; then :
8632 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8634 extra_linker_plugin_flags
=
8639 # Enable --enable-host-shared.
8640 # Checked early to determine whether jit is an 'all' language
8641 # Check whether --enable-host-shared was given.
8642 if test "${enable_host_shared+set}" = set; then :
8643 enableval
=$enable_host_shared; host_shared
=$enableval
8645 x86_64-
*-darwin* | aarch64-
*-darwin*)
8646 if test x
$host_shared != xyes
; then
8647 # PIC is the default, and actually cannot be switched off.
8648 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8655 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8656 *) host_shared
=no
;;
8662 # By default, C and C++ are the only stage 1 languages.
8663 stage1_languages
=,c
,
8665 # Target libraries that we bootstrap.
8666 bootstrap_target_libs
=,target-libgcc
,
8668 # Figure out what language subdirectories are present.
8669 # Look if the user specified --enable-languages="..."; if not, use
8670 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8672 # NB: embedded tabs in this IF block -- do not untabify
8673 if test -d ${srcdir}/gcc
; then
8674 if test x
"${enable_languages+set}" != xset
; then
8675 if test x
"${LANGUAGES+set}" = xset
; then
8676 enable_languages
="${LANGUAGES}"
8677 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8679 enable_languages
=default
8682 if test x
"${enable_languages}" = x ||
8683 test x
"${enable_languages}" = xyes
;
8685 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8689 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8691 # 'f95' is the old name for the 'fortran' language. We issue a warning
8692 # and make the substitution.
8693 case ,${enable_languages}, in
8695 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8696 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8700 # If bootstrapping, C++ must be enabled.
8701 case ",$enable_languages,:$enable_bootstrap" in
8704 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8705 enable_languages
="${enable_languages},c++"
8707 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8712 # First scan to see if an enabled language requires some other language.
8713 # We assume that a given config-lang.in will list all the language
8714 # front ends it requires, even if some are required indirectly.
8715 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8716 case ${lang_frag} in
8718 # The odd quoting in the next line works around
8719 # an apparent bug in bash 1.12 on linux.
8720 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8722 # From the config-lang.in, get $language, $lang_requires, and
8723 # $lang_requires_boot_languages.
8726 lang_requires_boot_languages
=
8727 # set srcdir during sourcing lang_frag to the gcc dir.
8728 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8729 # polutes this shell
8730 saved_srcdir
=${srcdir}
8731 srcdir
=${srcdir}/gcc .
${lang_frag}
8732 srcdir
=${saved_srcdir}
8733 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8734 case ,${enable_languages}, in
8739 echo " \`$other' language required by \`$language'; enabling" 1>&2
8740 enable_languages
="${enable_languages},${other}"
8744 for other
in ${lang_requires_boot_languages} ; do
8745 if test "$other" != "c"; then
8746 case ,${enable_stage1_languages}, in
8751 case ,${enable_languages}, in
8753 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8754 enable_stage1_languages
="$enable_stage1_languages,${other}"
8765 new_enable_languages
=,c
,
8767 # If LTO is enabled, add the LTO front end.
8768 if test "$enable_lto" = "yes" ; then
8769 case ,${enable_languages}, in
8771 *) enable_languages
="${enable_languages},lto" ;;
8773 if test "${build_lto_plugin}" = "yes" ; then
8774 configdirs
="$configdirs lto-plugin"
8778 # If we're building an offloading compiler, add the LTO front end.
8779 if test x
"$enable_as_accelerator_for" != x
; then
8780 case ,${enable_languages}, in
8782 *) enable_languages
="${enable_languages},lto" ;;
8786 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8787 potential_languages
=,c
,
8789 enabled_target_libs
=
8790 disabled_target_libs
=
8792 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8793 case ${lang_frag} in
8795 # The odd quoting in the next line works around
8796 # an apparent bug in bash 1.12 on linux.
8797 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8799 # From the config-lang.in, get $language, $target_libs,
8800 # $lang_dirs, $boot_language, and $build_by_default
8806 build_by_default
=yes
8807 # set srcdir during sourcing. See above about save & restore
8808 saved_srcdir
=${srcdir}
8809 srcdir
=${srcdir}/gcc .
${lang_frag}
8810 srcdir
=${saved_srcdir}
8811 if test x
${language} = x
; then
8812 echo "${lang_frag} doesn't set \$language." 1>&2
8816 if test "$language" = "c++"; then
8821 # C is always enabled, so no need to add it again
8822 if test "$language" != "c"; then
8823 case ,${enable_languages}, in
8825 # Language was explicitly selected; include it
8829 # All languages are enabled
8833 # 'default' was selected, select it if it is a default language
8834 add_this_lang
=${build_by_default}
8839 # Disable languages that need other directories if these aren't available.
8840 for i
in $subdir_requires; do
8841 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8842 case ${add_this_lang} in
8844 # Specifically requested language; tell them.
8845 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8849 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8850 add_this_lang
=unsupported
8854 add_this_lang
=unsupported
8859 # Disable Ada if no preexisting GNAT is available.
8860 case ${add_this_lang}:${language}:${have_gnat} in
8862 # Specifically requested language; tell them.
8863 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8867 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8868 add_this_lang
=unsupported
8872 add_this_lang
=unsupported
8876 # Disable D if no preexisting GDC is available.
8877 case ${add_this_lang}:${language}:${have_gdc} in
8879 # Specifically requested language; tell them.
8880 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8884 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8885 add_this_lang
=unsupported
8889 add_this_lang
=unsupported
8893 # Disable jit if -enable-host-shared not specified
8894 # but not if building for Mingw. All code in Windows
8895 # is position independent code (PIC).
8899 case ${add_this_lang}:${language}:${host_shared} in
8901 # PR jit/64780: explicitly specify --enable-host-shared
8903 Enabling language \"jit\" requires --enable-host-shared.
8905 --enable-host-shared typically slows the rest of the compiler down by
8906 a few %, so you must explicitly enable it.
8908 If you want to build both the jit and the regular compiler, it is often
8909 best to do this via two separate configure/builds, in separate
8910 directories, to avoid imposing the performance cost of
8911 --enable-host-shared on the regular compiler." "$LINENO" 5
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8915 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8916 add_this_lang
=unsupported
8920 add_this_lang
=unsupported
8926 # Disable a language that is unsupported by the target.
8927 case "${add_this_lang}: $unsupported_languages " in
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8932 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8933 add_this_lang
=unsupported
8937 case $add_this_lang in
8939 # Remove language-dependent dirs.
8940 disabled_target_libs
="$disabled_target_libs $target_libs"
8941 noconfigdirs
="$noconfigdirs $lang_dirs"
8944 # Remove language-dependent dirs; still show language as supported.
8945 disabled_target_libs
="$disabled_target_libs $target_libs"
8946 noconfigdirs
="$noconfigdirs $lang_dirs"
8947 potential_languages
="${potential_languages}${language},"
8950 new_enable_languages
="${new_enable_languages}${language},"
8951 potential_languages
="${potential_languages}${language},"
8952 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8953 enabled_target_libs
="$enabled_target_libs $target_libs"
8954 case "${boot_language}:,$enable_stage1_languages," in
8955 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8956 # Add to (comma-separated) list of stage 1 languages.
8957 case ",$stage1_languages," in
8958 *,$language,* |
,yes, |
,all
,) ;;
8959 *) stage1_languages
="${stage1_languages}${language}," ;;
8961 # We need to bootstrap any supporting libraries.
8962 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8971 # Add target libraries which are only needed for disabled languages
8973 if test -n "$disabled_target_libs"; then
8974 for dir
in $disabled_target_libs; do
8975 case " $enabled_target_libs " in
8977 *) noconfigdirs
="$noconfigdirs $dir" ;;
8982 # Check whether --enable-stage1-languages was given.
8983 if test "${enable_stage1_languages+set}" = set; then :
8984 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8986 # Set it to something that will have no effect in the loop below
8987 enable_stage1_languages
=c
;;
8989 enable_stage1_languages
=`echo $new_enable_languages | \
8990 sed -e "s/^,//" -e "s/,$//" ` ;;
8992 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8993 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8996 # Add "good" languages from enable_stage1_languages to stage1_languages,
8997 # while "bad" languages go in missing_languages. Leave no duplicates.
8998 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8999 case $potential_languages in
9001 case $stage1_languages in
9003 *) stage1_languages
="$stage1_languages$i," ;;
9006 case $missing_languages in
9008 *) missing_languages
="$missing_languages$i," ;;
9015 # Remove leading/trailing commas that were added for simplicity
9016 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9017 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9018 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9019 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9021 if test "x$missing_languages" != x
; then
9023 The following requested languages could not be built: ${missing_languages}
9024 Supported languages are: ${potential_languages}" "$LINENO" 5
9026 if test "x$new_enable_languages" != "x$enable_languages"; then
9027 echo The following languages will be built
: ${new_enable_languages}
9028 enable_languages
="$new_enable_languages"
9032 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9035 # Handle --disable-<component> generically.
9036 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9037 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9038 varname
=`echo $dirname | sed -e s/+/_/g`
9039 if eval test x\
${enable_${varname}} "=" xno
; then
9040 noconfigdirs
="$noconfigdirs $dir"
9044 # Check for Boehm's garbage collector
9045 # Check whether --enable-objc-gc was given.
9046 if test "${enable_objc_gc+set}" = set; then :
9047 enableval
=$enable_objc_gc;
9051 # Check whether --with-target-bdw-gc was given.
9052 if test "${with_target_bdw_gc+set}" = set; then :
9053 withval
=$with_target_bdw_gc;
9057 # Check whether --with-target-bdw-gc-include was given.
9058 if test "${with_target_bdw_gc_include+set}" = set; then :
9059 withval
=$with_target_bdw_gc_include;
9063 # Check whether --with-target-bdw-gc-lib was given.
9064 if test "${with_target_bdw_gc_lib+set}" = set; then :
9065 withval
=$with_target_bdw_gc_lib;
9069 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9071 $as_echo_n "checking for bdw garbage collector... " >&6; }
9072 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9074 $as_echo "using bdw-gc in default locations" >&6; }
9076 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9077 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9078 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9079 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9082 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9087 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9088 case ,${enable_languages}, in
9090 # Disable libitm, libsanitizer if we're not building libstdc++
9091 case "${noconfigdirs}" in
9092 *target-libstdc
++-v3*)
9093 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9099 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9103 # If gcc/ is not in the source tree then we'll not be building a
9104 # target compiler, assume in that case we don't want to build any
9105 # target libraries or tools.
9107 # This was added primarily for the benefit for binutils-gdb who reuse
9108 # this configure script, but don't always have target tools available.
9109 if test ! -d ${srcdir}/gcc
; then
9110 skipdirs
="${skipdirs} ${target_configdirs}"
9113 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9114 # $build_configdirs and $target_configdirs.
9115 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9118 for dir
in .
$skipdirs $noconfigdirs ; do
9119 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9120 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9121 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9122 if test -r $srcdir/$dirname/configure
; then
9123 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9126 notsupp
="$notsupp $dir"
9130 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9131 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9132 if test -r $srcdir/$dirname/configure
; then
9133 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9136 notsupp
="$notsupp $dir"
9140 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9141 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9142 if test -r $srcdir/$dirname/configure
; then
9143 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9146 notsupp
="$notsupp $dir"
9152 # Quietly strip out all directories which aren't configurable in this tree.
9153 # This relies on all configurable subdirectories being autoconfiscated, which
9155 build_configdirs_all
="$build_configdirs"
9157 for i
in ${build_configdirs_all} ; do
9158 j
=`echo $i | sed -e s/build-//g`
9159 if test -f ${srcdir}/$j/configure
; then
9160 build_configdirs
="${build_configdirs} $i"
9164 configdirs_all
="$configdirs"
9166 for i
in ${configdirs_all} ; do
9167 if test -f ${srcdir}/$i/configure
; then
9168 configdirs
="${configdirs} $i"
9172 target_configdirs_all
="$target_configdirs"
9174 for i
in ${target_configdirs_all} ; do
9175 j
=`echo $i | sed -e s/target-//g`
9176 if test -f ${srcdir}/$j/configure
; then
9177 target_configdirs
="${target_configdirs} $i"
9181 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9182 # so we have to add it after the preceding checks.
9183 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9185 case " $configdirs " in
9187 # If we can build libiberty, we can also build libiberty-linker-plugin.
9188 configdirs
="$configdirs libiberty-linker-plugin"
9189 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9190 --with-libiberty=../libiberty-linker-plugin";;
9192 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9196 # Sometimes we have special requirements for the host libiberty.
9197 extra_host_libiberty_configure_flags
=
9198 extra_host_zlib_configure_flags
=
9199 case " $configdirs " in
9200 *" lto-plugin "* |
*" libcc1 "*)
9201 # When these are to be built as shared libraries, the same applies to
9203 extra_host_libiberty_configure_flags
=--enable-shared
9206 # When bfd is to be built as a shared library, the same applies to
9208 if test "$enable_shared" = "yes"; then
9209 extra_host_zlib_configure_flags
=--enable-host-shared
9216 # Produce a warning message for the subdirs we can't configure.
9217 # This isn't especially interesting in the Cygnus tree, but in the individual
9218 # FSF releases, it's important to let people know when their machine isn't
9219 # supported by the one or two programs in a package.
9221 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9222 # If $appdirs is non-empty, at least one of those directories must still
9223 # be configured, or we error out. (E.g., if the gas release supports a
9224 # specified target in some subdirs but not the gas subdir, we shouldn't
9225 # pretend that all is well.)
9226 if test -n "$appdirs" ; then
9227 for dir
in $appdirs ; do
9228 if test -r $dir/Makefile.
in ; then
9229 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9233 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9239 if test -n "$appdirs" ; then
9240 echo "*** This configuration is not supported by this package." 1>&2
9244 # Okay, some application will build, or we don't care to check. Still
9245 # notify of subdirs not getting built.
9246 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9247 echo " ${notsupp}" 1>&2
9248 echo " (Any other directories should still work fine.)" 1>&2
9256 # To find our prefix, in gcc_cv_tool_prefix.
9258 # The user is always right.
9259 if test "${PATH_SEPARATOR+set}" != set; then
9260 echo "#! /bin/sh" >conf$$.sh
9261 echo "exit 0" >>conf$$.sh
9263 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9272 get_gcc_base_ver
="cat"
9274 # Check whether --with-gcc-major-version-only was given.
9275 if test "${with_gcc_major_version_only+set}" = set; then :
9276 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9277 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9287 if test "x$exec_prefix" = xNONE
; then
9288 if test "x$prefix" = xNONE
; then
9289 gcc_cv_tool_prefix
=$ac_default_prefix
9291 gcc_cv_tool_prefix
=$prefix
9294 gcc_cv_tool_prefix
=$exec_prefix
9297 # If there is no compiler in the tree, use the PATH only. In any
9298 # case, if there is no compiler in the tree nobody should use
9299 # AS_FOR_TARGET and LD_FOR_TARGET.
9300 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9301 if test x
$with_gcc_major_version_only = xyes
; then
9302 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9304 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9306 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9307 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9308 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9309 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9310 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9311 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9316 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9317 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9325 # Check whether --with-build-sysroot was given.
9326 if test "${with_build_sysroot+set}" = set; then :
9327 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9328 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9331 SYSROOT_CFLAGS_FOR_TARGET
=
9337 # Check whether --with-debug-prefix-map was given.
9338 if test "${with_debug_prefix_map+set}" = set; then :
9339 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9340 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9341 for debug_map
in $withval; do
9342 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9346 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9351 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9352 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9353 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9354 # We want to ensure that TARGET libraries (which we know are built with
9355 # gcc) are built with "-O2 -g", so include those options when setting
9356 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9357 if test "x$CFLAGS_FOR_TARGET" = x
; then
9358 if test "x${is_cross_compiler}" = xyes
; then
9359 CFLAGS_FOR_TARGET
="-g -O2"
9361 CFLAGS_FOR_TARGET
=$CFLAGS
9364 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9367 *" -g "* |
*" -g3 "*) ;;
9368 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9374 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9375 if test "x${is_cross_compiler}" = xyes
; then
9376 CXXFLAGS_FOR_TARGET
="-g -O2"
9378 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9379 case " $CXXFLAGS " in
9381 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9383 case " $CXXFLAGS " in
9384 *" -g "* |
*" -g3 "*) ;;
9385 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9393 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9394 # the named directory are copied to $(tooldir)/sys-include.
9395 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9396 if test x
${is_cross_compiler} = xno
; then
9397 echo 1>&2 '***' --with-headers is only supported when cross compiling
9400 if test x
"${with_headers}" != xyes
; then
9401 x
=${gcc_cv_tool_prefix}
9402 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9406 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9407 # the name directories are copied to $(tooldir)/lib. Multiple directories
9409 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9410 if test x
${is_cross_compiler} = xno
; then
9411 echo 1>&2 '***' --with-libs is only supported when cross compiling
9414 if test x
"${with_libs}" != xyes
; then
9415 # Copy the libraries in reverse order, so that files in the first named
9416 # library override files in subsequent libraries.
9417 x
=${gcc_cv_tool_prefix}
9418 for l
in ${with_libs}; do
9419 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9424 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9426 # This is done by determining whether or not the appropriate directory
9427 # is available, and by checking whether or not specific configurations
9428 # have requested that this magic not happen.
9430 # The command line options always override the explicit settings in
9431 # configure.ac, and the settings in configure.ac override this magic.
9433 # If the default for a toolchain is to use GNU as and ld, and you don't
9434 # want to do that, then you should use the --without-gnu-as and
9435 # --without-gnu-ld options for the configure script. Similarly, if
9436 # the default is to use the included zlib and you don't want to do that,
9437 # you should use the --with-system-zlib option for the configure script.
9439 if test x
${use_gnu_as} = x
&&
9440 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9442 extra_host_args
="$extra_host_args --with-gnu-as"
9445 if test x
${use_gnu_ld} = x
&&
9446 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9448 extra_host_args
="$extra_host_args --with-gnu-ld"
9451 if test x
${use_included_zlib} = x
&&
9452 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9455 with_system_zlib
=yes
9456 extra_host_args
="$extra_host_args --with-system-zlib"
9459 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9460 # can detect this case.
9462 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9464 extra_host_args
="$extra_host_args --with-newlib"
9467 # Handle ${copy_dirs}
9468 set fnord
${copy_dirs}
9470 while test $# != 0 ; do
9471 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9474 echo Copying
$1 to
$2
9476 # Use the install script to create the directory and all required
9477 # parent directories.
9478 if test -d $2 ; then
9482 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9485 # Copy the directory, assuming we have tar.
9486 # FIXME: Should we use B in the second tar? Not all systems support it.
9487 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9489 # It is the responsibility of the user to correctly adjust all
9490 # symlinks. If somebody can figure out how to handle them correctly
9491 # here, feel free to add the code.
9498 # Determine a target-dependent exec_prefix that the installed
9499 # gcc will search in. Keep this list sorted by triplet, with
9500 # the *-*-osname triplets last.
9503 i
[34567]86-pc-msdosdjgpp*)
9504 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9509 md_exec_prefix
=/usr
/ccs
/bin
9513 extra_arflags_for_target
=
9514 extra_nmflags_for_target
=
9515 extra_ranlibflags_for_target
=
9516 target_makefile_frag
=/dev
/null
9519 target_makefile_frag
="config/mt-spu"
9521 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9522 target_makefile_frag
="config/mt-sde"
9524 mipsisa
*-*-elfoabi*)
9525 target_makefile_frag
="config/mt-mips-elfoabi"
9527 mips
*-*-*linux
* | mips
*-*-gnu*)
9528 target_makefile_frag
="config/mt-mips-gnu"
9531 target_makefile_frag
="config/mt-nios2-elf"
9534 target_makefile_frag
="config/mt-android"
9536 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9537 target_makefile_frag
="config/mt-gnu"
9539 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9540 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9541 # commands to handle both 32-bit and 64-bit objects. These flags are
9542 # harmless if we're using GNU nm or ar.
9543 extra_arflags_for_target
=" -X32_64"
9544 extra_nmflags_for_target
=" -B -X32_64"
9548 alphaieee_frag
=/dev
/null
9551 # This just makes sure to use the -mieee option to build target libs.
9552 # This should probably be set individually by each library.
9553 alphaieee_frag
="config/mt-alphaieee"
9557 # If --enable-target-optspace always use -Os instead of -O2 to build
9558 # the target libraries, similarly if it is not specified, use -Os
9559 # on selected platforms.
9560 ospace_frag
=/dev
/null
9561 case "${enable_target_optspace}:${target}" in
9563 ospace_frag
="config/mt-ospace"
9566 ospace_frag
="config/mt-d30v"
9568 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9569 ospace_frag
="config/mt-ospace"
9574 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9578 # Some systems (e.g., one of the i386-aix systems the gas testers are
9579 # using) don't handle "\$" correctly, so don't use it here.
9580 tooldir
='${exec_prefix}'/${target_noncanonical}
9581 build_tooldir
=${tooldir}
9583 # Create a .gdbinit file which runs the one in srcdir
9584 # and tells GDB to look there for source files.
9586 if test -r ${srcdir}/.gdbinit
; then
9589 *) cat > .
/.gdbinit
<<EOF
9593 source ${srcdir}/.gdbinit
9599 # Make sure that the compiler is able to generate an executable. If it
9600 # can't, we are probably in trouble. We don't care whether we can run the
9601 # executable--we might be using a cross compiler--we only care whether it
9602 # can be created. At this point the main configure script has set CC.
9604 echo "int main () { return 0; }" > conftest.c
9605 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9606 if test $?
= 0 ; then
9607 if test -s conftest ||
test -s conftest.exe
; then
9613 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9614 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9621 # Decide which environment variable is used to find dynamic libraries.
9623 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9624 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9625 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9626 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9629 # On systems where the dynamic library environment variable is PATH,
9630 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9631 # built executables to PATH.
9632 if test "$RPATH_ENVVAR" = PATH
; then
9633 GCC_SHLIB_SUBDIR
=/shlib
9638 # Adjust the toplevel makefile according to whether bootstrap was selected.
9639 case $enable_bootstrap in
9641 bootstrap_suffix
=bootstrap
9642 BUILD_CONFIG
=bootstrap-debug
9645 bootstrap_suffix
=no-bootstrap
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9651 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9654 # Check whether --with-build-config was given.
9655 if test "${with_build_config+set}" = set; then :
9656 withval
=$with_build_config; case $with_build_config in
9657 yes) with_build_config
= ;;
9658 no
) with_build_config
= BUILD_CONFIG
= ;;
9663 if test "x${with_build_config}" != x
; then
9664 BUILD_CONFIG
=$with_build_config
9666 case $BUILD_CONFIG in
9668 if echo "int f (void) { return 0; }" > conftest.c
&&
9669 ${CC} -c conftest.c
&&
9670 mv conftest.o conftest.o.g0
&&
9671 ${CC} -c -g conftest.c
&&
9672 mv conftest.o conftest.o.g
&&
9673 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9678 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9683 $as_echo "$BUILD_CONFIG" >&6; }
9686 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9688 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9689 # Check whether --enable-vtable-verify was given.
9690 if test "${enable_vtable_verify+set}" = set; then :
9691 enableval
=$enable_vtable_verify; case "$enableval" in
9692 yes) enable_vtable_verify
=yes ;;
9693 no
) enable_vtable_verify
=no
;;
9694 *) enable_vtable_verify
=no
;;
9697 enable_vtable_verify
=no
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9701 $as_echo "$enable_vtable_verify" >&6; }
9703 # Record target_configdirs and the configure arguments for target and
9704 # build configuration in Makefile.
9705 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9706 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9707 bootstrap_fixincludes
=no
9709 # If we are building libgomp, bootstrap it.
9710 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9711 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9714 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9715 # or bootstrap-ubsan, bootstrap it.
9716 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9717 case "$BUILD_CONFIG" in
9718 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9719 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9720 bootstrap_fixincludes
=yes
9725 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9726 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9727 test "$enable_vtable_verify" != no
; then
9728 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9731 # If we are building libatomic and the list of enabled languages includes the
9732 # D frontend, bootstrap it.
9733 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9734 case ,${enable_languages}, in
9736 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9741 # Determine whether gdb needs tk/tcl or not.
9742 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9743 # and in that case we want gdb to be built without tk. Ugh!
9744 # In fact I believe gdb is the *only* package directly dependent on tk,
9745 # so we should be able to put the 'maybe's in unconditionally and
9746 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9747 # 100% sure that that's safe though.
9749 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9750 case "$enable_gdbtk" in
9754 GDB_TK
="${gdb_tk}" ;;
9756 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9757 # distro. Eventually someone will fix this and move Insight, nee
9758 # gdbtk to a separate directory.
9759 if test -d ${srcdir}/gdb
/gdbtk
; then
9766 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9767 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9769 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9770 # else does, only include them if one of these is built. The Makefile
9771 # provides the ordering, so it's enough here to add to the list.
9772 case " ${configdirs} " in
9774 configdirs
="${configdirs} gnulib gdbsupport"
9777 configdirs
="${configdirs} gnulib gdbsupport"
9780 configdirs
="${configdirs} gnulib"
9784 # Strip out unwanted targets.
9786 # While at that, we remove Makefiles if we were started for recursive
9787 # configuration, so that the top-level Makefile reconfigures them,
9788 # like we used to do when configure itself was recursive.
9790 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9791 # but now we're fixing up the Makefile ourselves with the additional
9792 # commands passed to AC_CONFIG_FILES. Use separate variables
9793 # extrasub-{build,host,target} not because there is any reason to split
9794 # the substitutions up that way, but only to remain below the limit of
9795 # 99 commands in a script, for HP-UX sed.
9797 # Do not nest @if/@endif or @unless/@endunless pairs, because
9798 # configure will not warn you at all.
9800 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9801 yes:yes:*\ gold\
*:*,c
++,*) ;;
9802 yes:yes:*\ gold\
*:*)
9803 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9808 for module
in ${build_configdirs} ; do
9809 if test -z "${no_recursion}" \
9810 && test -f ${build_subdir}/${module}/Makefile
; then
9811 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9812 rm -f ${build_subdir}/${module}/Makefile
9814 extrasub_build
="$extrasub_build
9815 /^@if build-$module\$/d
9816 /^@endif build-$module\$/d
9817 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9818 /^@if build-$module-$bootstrap_suffix\$/d
9819 /^@endif build-$module-$bootstrap_suffix\$/d
9820 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9823 for module
in ${configdirs} ; do
9824 if test -z "${no_recursion}"; then
9825 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9826 if test -f ${file}; then
9827 echo 1>&2 "*** removing ${file} to force reconfigure"
9832 case ${module},${bootstrap_fixincludes} in
9833 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9834 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9836 extrasub_host
="$extrasub_host
9838 /^@endif $module\$/d
9839 /^@unless $module\$/,/^@endunless $module\$/d
9840 /^@if $module-$host_bootstrap_suffix\$/d
9841 /^@endif $module-$host_bootstrap_suffix\$/d
9842 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9845 for module
in ${target_configdirs} ; do
9846 if test -z "${no_recursion}" \
9847 && test -f ${target_subdir}/${module}/Makefile
; then
9848 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9849 rm -f ${target_subdir}/${module}/Makefile
9852 # We only bootstrap target libraries listed in bootstrap_target_libs.
9853 case $bootstrap_target_libs in
9854 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9855 *) target_bootstrap_suffix
=no-bootstrap
;;
9858 extrasub_target
="$extrasub_target
9859 /^@if target-$module\$/d
9860 /^@endif target-$module\$/d
9861 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9862 /^@if target-$module-$target_bootstrap_suffix\$/d
9863 /^@endif target-$module-$target_bootstrap_suffix\$/d
9864 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9867 # Do the final fixup along with target modules.
9868 extrasub_target
="$extrasub_target
9873 if test "$enable_pgo_build" != "no"; then
9874 extrasub_build
="$extrasub_build
9876 /^@endif pgo-build\$/d"
9879 # Create the serialization dependencies. This uses a temporary file.
9881 # Check whether --enable-serial-configure was given.
9882 if test "${enable_serial_configure+set}" = set; then :
9883 enableval
=$enable_serial_configure;
9887 case ${enable_serial_configure} in
9889 enable_serial_build_configure
=yes
9890 enable_serial_host_configure
=yes
9891 enable_serial_target_configure
=yes
9895 # These force 'configure's to be done one at a time, to avoid problems
9896 # with contention over a shared config.cache.
9898 echo '# serdep.tmp' > serdep.tmp
9900 test "x${enable_serial_build_configure}" = xyes
&&
9901 for item
in ${build_configdirs} ; do
9904 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9909 test "x${enable_serial_host_configure}" = xyes
&&
9910 for item
in ${configdirs} ; do
9913 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9918 test "x${enable_serial_target_configure}" = xyes
&&
9919 for item
in ${target_configdirs} ; do
9922 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9926 serialization_dependencies
=serdep.tmp
9929 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9930 # target, nonopt, and variable assignments. These are the ones we
9931 # might not want to pass down to subconfigures. The exception being
9932 # --cache-file=/dev/null, which is used to turn off the use of cache
9933 # files altogether, and which should be passed on to subconfigures.
9934 # Also strip program-prefix, program-suffix, and program-transform-name,
9935 # so that we can pass down a consistent program-transform-name.
9940 eval "set -- $ac_configure_args"
9943 if test X
"$skip_next" = X
"yes"; then
9947 if test X
"$keep_next" = X
"yes"; then
9950 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9952 baseargs
="$baseargs '$ac_arg'"
9953 tbaseargs
="$tbaseargs '$ac_arg'"
9958 # Handle separated arguments. Based on the logic generated by
9961 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9962 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9963 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9964 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9978 --with-* |
--without-*)
9979 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9983 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9986 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9995 mpc | mpfr | gmp | isl
)
9996 # If we're processing --with-$lib, --with-$lib-include or
9997 # --with-$lib-lib, for one of the libs above, and target is
9998 # different from host, don't pass the current argument to any
9999 # target library's configure.
10000 if test x
$is_cross_compiler = xyes
; then
10009 --cache-file=/dev
/null | \
10010 -cache-file=/dev
/null
)
10011 # Handled here to avoid the test to skip args below.
10012 baseargs
="$baseargs '$ac_arg'"
10013 tbaseargs
="$tbaseargs '$ac_arg'"
10014 # Assert: $separate_arg should always be no.
10015 keep_next
=$separate_arg
10031 -program-prefix* | \
10032 -program-suffix* | \
10033 -program-transform-name* )
10034 skip_next
=$separate_arg
10038 # An option. Add it.
10041 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10043 baseargs
="$baseargs '$ac_arg'"
10044 if test X
"$skip_targ" = Xno
; then
10045 tbaseargs
="$tbaseargs '$ac_arg'"
10047 keep_next
=$separate_arg
10050 # Either a variable assignment, or a nonopt (triplet). Don't
10051 # pass it down; let the Makefile handle this.
10056 # Remove the initial space we just introduced and, as these will be
10057 # expanded by make, quote '$'.
10058 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10060 # Add in --program-transform-name, after --program-prefix and
10061 # --program-suffix have been applied to it. Autoconf has already
10062 # doubled dollar signs and backslashes in program_transform_name; we want
10063 # the backslashes un-doubled, and then the entire thing wrapped in single
10064 # quotes, because this will be expanded first by make and then by the shell.
10065 # Also, because we want to override the logic in subdir configure scripts to
10066 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10067 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10068 ${program_transform_name}
10070 gcc_transform_name
=`cat conftestsed.out`
10071 rm -f conftestsed.out
10072 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10073 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10074 if test "$silent" = yes; then
10075 baseargs
="$baseargs --silent"
10076 tbaseargs
="$tbaseargs --silent"
10078 baseargs
="$baseargs --disable-option-checking"
10079 tbaseargs
="$tbaseargs --disable-option-checking"
10081 # Record and document user additions to sub configure arguments.
10086 # For the build-side libraries, we just need to pretend we're native,
10087 # and not use the same cache file. Multilibs are neither needed nor
10088 # desired. We can't even use the same cache file for all build-side
10089 # libraries, as they're compiled differently; some with C, some with
10090 # C++ or with different feature-enabling options.
10091 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10093 # For host modules, accept cache file option, or specification as blank.
10094 case "${cache_file}" in
10096 cache_file_option
="" ;;
10097 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10098 cache_file_option
="--cache-file=${cache_file}" ;;
10100 cache_file_option
="--cache-file=../${cache_file}" ;;
10103 # Host dirs don't like to share a cache file either, horribly enough.
10104 # This seems to be due to autoconf 2.5x stupidity.
10105 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10107 target_configargs
="$target_configargs ${tbaseargs}"
10109 # Passing a --with-cross-host argument lets the target libraries know
10110 # whether they are being built with a cross-compiler or being built
10111 # native. However, it would be better to use other mechanisms to make the
10112 # sorts of decisions they want to make on this basis. Please consider
10113 # this option to be deprecated. FIXME.
10114 if test x
${is_cross_compiler} = xyes
; then
10115 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10118 # Special user-friendly check for native x86_64-linux build, if
10119 # multilib is not explicitly enabled.
10120 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10121 x86_64-
*linux
*:yes:$build:$build:)
10122 # Make sure we have a development environment that handles 32-bit
10124 echo "int main () { return 0; }" > conftest.c
10125 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10126 if test $?
= 0 ; then
10127 if test -s conftest ||
test -s conftest.exe
; then
10132 if test x
${dev64} != xyes
; then
10133 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
10138 # Default to --enable-multilib.
10139 if test x
${enable_multilib} = x
; then
10140 target_configargs
="--enable-multilib ${target_configargs}"
10143 # Pass --with-newlib if appropriate. Note that target_configdirs has
10144 # changed from the earlier setting of with_newlib.
10145 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10146 target_configargs
="--with-newlib ${target_configargs}"
10149 # Different target subdirs use different values of certain variables
10150 # (notably CXX). Worse, multilibs use *lots* of different values.
10151 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10152 # it doesn't automatically accept command-line overrides of them.
10153 # This means it's not safe for target subdirs to share a cache file,
10154 # which is disgusting, but there you have it. Hopefully this can be
10155 # fixed in future. It's still worthwhile to use a cache file for each
10156 # directory. I think.
10158 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10159 # We need to pass --target, as newer autoconf's requires consistency
10160 # for target_alias and gcc doesn't manage it consistently.
10161 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10164 case " $target_configdirs " in
10166 case " $target_configargs " in
10167 *" --with-newlib "*)
10170 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10174 # If we're not building GCC, don't discard standard headers.
10175 if test -d ${srcdir}/gcc
; then
10176 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10178 if test "${build}" != "${host}"; then
10179 # On Canadian crosses, CC_FOR_TARGET will have already been set
10180 # by `configure', so we won't have an opportunity to add -Bgcc/
10181 # to it. This is right: we don't want to search that directory
10182 # for binaries, but we want the header files in there, so add
10184 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10186 # Someone might think of using the pre-installed headers on
10187 # Canadian crosses, in case the installed compiler is not fully
10188 # compatible with the compiler being built. In this case, it
10189 # would be better to flag an error than risking having
10190 # incompatible object files being constructed. We can't
10191 # guarantee that an error will be flagged, but let's hope the
10192 # compiler will do it, when presented with incompatible header
10197 case "${target}-${is_cross_compiler}" in
10198 i
[3456789]86-*-linux*-no)
10199 # Here host == target, so we don't need to build gcc,
10200 # so we don't want to discard standard headers.
10201 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10204 # If we're building newlib, use its generic headers last, but search
10205 # for any libc-related directories first (so make it the last -B
10207 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10209 # If we're building libgloss, find the startup file, simulator library
10210 # and linker script.
10211 case " $target_configdirs " in
10213 # Look for startup file, simulator library and maybe linker script.
10214 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10215 # Look for libnosys.a in case the target needs it.
10216 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10217 # Most targets have the linker script in the source directory.
10218 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10229 x86_64-
*mingw
* |
*-w64-mingw*)
10230 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10231 # however, use a symlink named 'mingw' in ${prefix} .
10232 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10235 # MinGW can't be handled as Cygwin above since it does not use newlib.
10236 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'
10240 # Allow the user to override the flags for
10241 # our build compiler if desired.
10242 if test x
"${build}" = x
"${host}" ; then
10243 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10244 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10245 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10246 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10249 # On Canadian crosses, we'll be searching the right directories for
10250 # the previously-installed cross compiler, so don't bother to add
10251 # flags for directories within the install tree of the compiler
10252 # being built; programs in there won't even run.
10253 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10254 # Search for pre-installed headers if nothing else fits.
10255 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10258 if test "x
${use_gnu_ld}" = x &&
10259 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10260 # Arrange for us to find uninstalled linker scripts.
10261 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10264 # Search for other target-specific linker scripts and such.
10265 case "${target}" in
10267 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10271 # Makefile fragments.
10272 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10274 eval fragval=\$$frag
10275 if test $fragval != /dev/null; then
10276 eval $frag=${srcdir}/$fragval
10284 # Miscellanea: directories, flags, etc.
10293 # Build module lists & subconfigure args.
10297 # Host module lists & subconfigure args.
10302 # Target module lists & subconfigure args.
10327 # Generate default definitions for YACC, M4, LEX and other programs that run
10328 # on the build machine. These are used if the Makefile can't locate these
10329 # programs in objdir.
10330 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10332 for ac_prog in 'bison -y' byacc yacc
10334 # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy $ac_prog; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10337 $as_echo_n "checking
for $ac_word...
" >&6; }
10338 if ${ac_cv_prog_YACC+:} false; then :
10339 $as_echo_n "(cached
) " >&6
10341 if test -n "$YACC"; then
10342 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351 ac_cv_prog_YACC="$ac_prog"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10361 YACC=$ac_cv_prog_YACC
10362 if test -n "$YACC"; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10364 $as_echo "$YACC" >&6; }
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10367 $as_echo "no
" >&6; }
10371 test -n "$YACC" && break
10373 test -n "$YACC" || YACC="$MISSING bison
-y"
10375 case " $build_configdirs " in
10376 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10379 for ac_prog in bison
10381 # Extract the first word of "$ac_prog", so it can be a program name with args.
10382 set dummy $ac_prog; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10384 $as_echo_n "checking
for $ac_word...
" >&6; }
10385 if ${ac_cv_prog_BISON+:} false; then :
10386 $as_echo_n "(cached
) " >&6
10388 if test -n "$BISON"; then
10389 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_prog_BISON="$ac_prog"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10408 BISON=$ac_cv_prog_BISON
10409 if test -n "$BISON"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10411 $as_echo "$BISON" >&6; }
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10414 $as_echo "no
" >&6; }
10418 test -n "$BISON" && break
10420 test -n "$BISON" || BISON="$MISSING bison
"
10422 case " $build_configdirs " in
10423 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10426 for ac_prog in gm4 gnum4 m4
10428 # Extract the first word of "$ac_prog", so it can be a program name with args.
10429 set dummy $ac_prog; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10431 $as_echo_n "checking
for $ac_word...
" >&6; }
10432 if ${ac_cv_prog_M4+:} false; then :
10433 $as_echo_n "(cached
) " >&6
10435 if test -n "$M4"; then
10436 ac_cv_prog_M4="$M4" # Let the user override the test.
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445 ac_cv_prog_M4="$ac_prog"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10456 if test -n "$M4"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10458 $as_echo "$M4" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10461 $as_echo "no
" >&6; }
10465 test -n "$M4" && break
10467 test -n "$M4" || M4="$MISSING m4"
10469 case " $build_configdirs " in
10470 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10473 for ac_prog in flex lex
10475 # Extract the first word of "$ac_prog", so it can be a program name with args.
10476 set dummy $ac_prog; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10478 $as_echo_n "checking
for $ac_word...
" >&6; }
10479 if ${ac_cv_prog_LEX+:} false; then :
10480 $as_echo_n "(cached
) " >&6
10482 if test -n "$LEX"; then
10483 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492 ac_cv_prog_LEX="$ac_prog"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10502 LEX=$ac_cv_prog_LEX
10503 if test -n "$LEX"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10505 $as_echo "$LEX" >&6; }
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10508 $as_echo "no
" >&6; }
10512 test -n "$LEX" && break
10514 test -n "$LEX" || LEX="$MISSING flex
"
10516 case " $build_configdirs " in
10517 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10518 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10521 for ac_prog in flex
10523 # Extract the first word of "$ac_prog", so it can be a program name with args.
10524 set dummy $ac_prog; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10526 $as_echo_n "checking
for $ac_word...
" >&6; }
10527 if ${ac_cv_prog_FLEX+:} false; then :
10528 $as_echo_n "(cached
) " >&6
10530 if test -n "$FLEX"; then
10531 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_prog_FLEX="$ac_prog"
10541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10550 FLEX=$ac_cv_prog_FLEX
10551 if test -n "$FLEX"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10553 $as_echo "$FLEX" >&6; }
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10556 $as_echo "no
" >&6; }
10560 test -n "$FLEX" && break
10562 test -n "$FLEX" || FLEX="$MISSING flex
"
10564 case " $build_configdirs " in
10565 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10568 for ac_prog in makeinfo
10570 # Extract the first word of "$ac_prog", so it can be a program name with args.
10571 set dummy $ac_prog; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10573 $as_echo_n "checking
for $ac_word...
" >&6; }
10574 if ${ac_cv_prog_MAKEINFO+:} false; then :
10575 $as_echo_n "(cached
) " >&6
10577 if test -n "$MAKEINFO"; then
10578 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587 ac_cv_prog_MAKEINFO="$ac_prog"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10597 MAKEINFO=$ac_cv_prog_MAKEINFO
10598 if test -n "$MAKEINFO"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10600 $as_echo "$MAKEINFO" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10603 $as_echo "no
" >&6; }
10607 test -n "$MAKEINFO" && break
10609 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10611 case " $build_configdirs " in
10612 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10615 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10616 # higher, else we use the "missing
" dummy.
10617 if ${MAKEINFO} --version \
10618 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10621 MAKEINFO="$MISSING makeinfo
"
10627 # FIXME: expect and dejagnu may become build tools?
10629 for ac_prog in expect
10631 # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10634 $as_echo_n "checking
for $ac_word...
" >&6; }
10635 if ${ac_cv_prog_EXPECT+:} false; then :
10636 $as_echo_n "(cached
) " >&6
10638 if test -n "$EXPECT"; then
10639 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10648 ac_cv_prog_EXPECT="$ac_prog"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10658 EXPECT=$ac_cv_prog_EXPECT
10659 if test -n "$EXPECT"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10661 $as_echo "$EXPECT" >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10664 $as_echo "no
" >&6; }
10668 test -n "$EXPECT" && break
10670 test -n "$EXPECT" || EXPECT="expect
"
10672 case " $configdirs " in
10674 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10678 for ac_prog in runtest
10680 # Extract the first word of "$ac_prog", so it can be a program name with args.
10681 set dummy $ac_prog; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10683 $as_echo_n "checking
for $ac_word...
" >&6; }
10684 if ${ac_cv_prog_RUNTEST+:} false; then :
10685 $as_echo_n "(cached
) " >&6
10687 if test -n "$RUNTEST"; then
10688 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_RUNTEST="$ac_prog"
10698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10707 RUNTEST=$ac_cv_prog_RUNTEST
10708 if test -n "$RUNTEST"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10710 $as_echo "$RUNTEST" >&6; }
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10713 $as_echo "no
" >&6; }
10717 test -n "$RUNTEST" && break
10719 test -n "$RUNTEST" || RUNTEST="runtest
"
10721 case " $configdirs " in
10723 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10730 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10731 ncn_target_tool_prefix=
10732 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10736 if test -n "$AR"; then
10738 elif test -n "$ac_cv_prog_AR"; then
10742 if test -n "$ac_cv_prog_AR"; then
10743 for ncn_progname in ar; do
10744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10747 $as_echo_n "checking
for $ac_word...
" >&6; }
10748 if ${ac_cv_prog_AR+:} false; then :
10749 $as_echo_n "(cached
) " >&6
10751 if test -n "$AR"; then
10752 ac_cv_prog_AR="$AR" # Let the user override the test.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_AR="${ncn_progname}"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10772 if test -n "$AR"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10774 $as_echo "$AR" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10777 $as_echo "no
" >&6; }
10784 for ncn_progname in ar; do
10785 if test -n "$ncn_tool_prefix"; then
10786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10787 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10789 $as_echo_n "checking
for $ac_word...
" >&6; }
10790 if ${ac_cv_prog_AR+:} false; then :
10791 $as_echo_n "(cached
) " >&6
10793 if test -n "$AR"; then
10794 ac_cv_prog_AR="$AR" # Let the user override the test.
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10814 if test -n "$AR"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10816 $as_echo "$AR" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10819 $as_echo "no
" >&6; }
10824 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
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; }
10863 test -n "$ac_cv_prog_AR" && break
10866 if test -z "$ac_cv_prog_AR" ; then
10868 if test $build = $host ; then
10871 AR="${ncn_tool_prefix}$2"
10877 if test -n "$AS"; then
10879 elif test -n "$ac_cv_prog_AS"; then
10883 if test -n "$ac_cv_prog_AS"; then
10884 for ncn_progname in as; do
10885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10886 set dummy ${ncn_progname}; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10888 $as_echo_n "checking
for $ac_word...
" >&6; }
10889 if ${ac_cv_prog_AS+:} false; then :
10890 $as_echo_n "(cached
) " >&6
10892 if test -n "$AS"; then
10893 ac_cv_prog_AS="$AS" # Let the user override the test.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_prog_AS="${ncn_progname}"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10913 if test -n "$AS"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10915 $as_echo "$AS" >&6; }
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10918 $as_echo "no
" >&6; }
10925 for ncn_progname in as; do
10926 if test -n "$ncn_tool_prefix"; then
10927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10930 $as_echo_n "checking
for $ac_word...
" >&6; }
10931 if ${ac_cv_prog_AS+:} false; then :
10932 $as_echo_n "(cached
) " >&6
10934 if test -n "$AS"; then
10935 ac_cv_prog_AS="$AS" # Let the user override the test.
10937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10941 test -z "$as_dir" && as_dir=.
10942 for ac_exec_ext in '' $ac_executable_extensions; do
10943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10944 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10955 if test -n "$AS"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10957 $as_echo "$AS" >&6; }
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10960 $as_echo "no
" >&6; }
10965 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
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; }
11004 test -n "$ac_cv_prog_AS" && break
11007 if test -z "$ac_cv_prog_AS" ; then
11009 if test $build = $host ; then
11012 AS="${ncn_tool_prefix}$2"
11018 if test -n "$DLLTOOL"; then
11019 ac_cv_prog_DLLTOOL=$DLLTOOL
11020 elif test -n "$ac_cv_prog_DLLTOOL"; then
11021 DLLTOOL=$ac_cv_prog_DLLTOOL
11024 if test -n "$ac_cv_prog_DLLTOOL"; then
11025 for ncn_progname in dlltool; do
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027 set dummy ${ncn_progname}; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11029 $as_echo_n "checking
for $ac_word...
" >&6; }
11030 if ${ac_cv_prog_DLLTOOL+:} false; then :
11031 $as_echo_n "(cached
) " >&6
11033 if test -n "$DLLTOOL"; then
11034 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_DLLTOOL="${ncn_progname}"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11053 DLLTOOL=$ac_cv_prog_DLLTOOL
11054 if test -n "$DLLTOOL"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11056 $as_echo "$DLLTOOL" >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11059 $as_echo "no
" >&6; }
11066 for ncn_progname in dlltool; do
11067 if test -n "$ncn_tool_prefix"; then
11068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11071 $as_echo_n "checking
for $ac_word...
" >&6; }
11072 if ${ac_cv_prog_DLLTOOL+:} false; then :
11073 $as_echo_n "(cached
) " >&6
11075 if test -n "$DLLTOOL"; then
11076 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11095 DLLTOOL=$ac_cv_prog_DLLTOOL
11096 if test -n "$DLLTOOL"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11098 $as_echo "$DLLTOOL" >&6; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11101 $as_echo "no
" >&6; }
11106 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
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; }
11145 test -n "$ac_cv_prog_DLLTOOL" && break
11148 if test -z "$ac_cv_prog_DLLTOOL" ; then
11150 if test $build = $host ; then
11153 DLLTOOL="${ncn_tool_prefix}$2"
11159 if test -n "$DSYMUTIL"; then
11160 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11161 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11162 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11165 if test -n "$ac_cv_prog_DSYMUTIL"; then
11166 for ncn_progname in dsymutil; do
11167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11168 set dummy ${ncn_progname}; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11170 $as_echo_n "checking
for $ac_word...
" >&6; }
11171 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11172 $as_echo_n "(cached
) " >&6
11174 if test -n "$DSYMUTIL"; then
11175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11195 if test -n "$DSYMUTIL"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11197 $as_echo "$DSYMUTIL" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11200 $as_echo "no
" >&6; }
11207 for ncn_progname in dsymutil; do
11208 if test -n "$ncn_tool_prefix"; then
11209 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11210 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11212 $as_echo_n "checking
for $ac_word...
" >&6; }
11213 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11214 $as_echo_n "(cached
) " >&6
11216 if test -n "$DSYMUTIL"; then
11217 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11236 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11237 if test -n "$DSYMUTIL"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11239 $as_echo "$DSYMUTIL" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11242 $as_echo "no
" >&6; }
11247 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
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; }
11286 test -n "$ac_cv_prog_DSYMUTIL" && break
11289 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11291 if test $build = $host ; then
11294 DSYMUTIL="${ncn_tool_prefix}$2"
11300 if test -n "$LD"; then
11302 elif test -n "$ac_cv_prog_LD"; then
11306 if test -n "$ac_cv_prog_LD"; then
11307 for ncn_progname in ld; do
11308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11309 set dummy ${ncn_progname}; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11311 $as_echo_n "checking
for $ac_word...
" >&6; }
11312 if ${ac_cv_prog_LD+:} false; then :
11313 $as_echo_n "(cached
) " >&6
11315 if test -n "$LD"; then
11316 ac_cv_prog_LD="$LD" # Let the user override the test.
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325 ac_cv_prog_LD="${ncn_progname}"
11326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11336 if test -n "$LD"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11338 $as_echo "$LD" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11341 $as_echo "no
" >&6; }
11348 for ncn_progname in ld; do
11349 if test -n "$ncn_tool_prefix"; then
11350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11353 $as_echo_n "checking
for $ac_word...
" >&6; }
11354 if ${ac_cv_prog_LD+:} false; then :
11355 $as_echo_n "(cached
) " >&6
11357 if test -n "$LD"; then
11358 ac_cv_prog_LD="$LD" # Let the user override the test.
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11367 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11378 if test -n "$LD"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11380 $as_echo "$LD" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11383 $as_echo "no
" >&6; }
11388 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
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; }
11427 test -n "$ac_cv_prog_LD" && break
11430 if test -z "$ac_cv_prog_LD" ; then
11432 if test $build = $host ; then
11435 LD="${ncn_tool_prefix}$2"
11441 if test -n "$LIPO"; then
11442 ac_cv_prog_LIPO=$LIPO
11443 elif test -n "$ac_cv_prog_LIPO"; then
11444 LIPO=$ac_cv_prog_LIPO
11447 if test -n "$ac_cv_prog_LIPO"; then
11448 for ncn_progname in lipo; do
11449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11450 set dummy ${ncn_progname}; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11452 $as_echo_n "checking
for $ac_word...
" >&6; }
11453 if ${ac_cv_prog_LIPO+:} false; then :
11454 $as_echo_n "(cached
) " >&6
11456 if test -n "$LIPO"; then
11457 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11466 ac_cv_prog_LIPO="${ncn_progname}"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11476 LIPO=$ac_cv_prog_LIPO
11477 if test -n "$LIPO"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11479 $as_echo "$LIPO" >&6; }
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11482 $as_echo "no
" >&6; }
11489 for ncn_progname in lipo; do
11490 if test -n "$ncn_tool_prefix"; then
11491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11494 $as_echo_n "checking
for $ac_word...
" >&6; }
11495 if ${ac_cv_prog_LIPO+:} false; then :
11496 $as_echo_n "(cached
) " >&6
11498 if test -n "$LIPO"; then
11499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11518 LIPO=$ac_cv_prog_LIPO
11519 if test -n "$LIPO"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11521 $as_echo "$LIPO" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11524 $as_echo "no
" >&6; }
11529 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
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; }
11568 test -n "$ac_cv_prog_LIPO" && break
11571 if test -z "$ac_cv_prog_LIPO" ; then
11573 if test $build = $host ; then
11576 LIPO="${ncn_tool_prefix}$2"
11582 if test -n "$NM"; then
11584 elif test -n "$ac_cv_prog_NM"; then
11588 if test -n "$ac_cv_prog_NM"; then
11589 for ncn_progname in nm; do
11590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11591 set dummy ${ncn_progname}; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11593 $as_echo_n "checking
for $ac_word...
" >&6; }
11594 if ${ac_cv_prog_NM+:} false; then :
11595 $as_echo_n "(cached
) " >&6
11597 if test -n "$NM"; then
11598 ac_cv_prog_NM="$NM" # Let the user override the test.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_prog_NM="${ncn_progname}"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11618 if test -n "$NM"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11620 $as_echo "$NM" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11623 $as_echo "no
" >&6; }
11630 for ncn_progname in nm; do
11631 if test -n "$ncn_tool_prefix"; then
11632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11635 $as_echo_n "checking
for $ac_word...
" >&6; }
11636 if ${ac_cv_prog_NM+:} false; then :
11637 $as_echo_n "(cached
) " >&6
11639 if test -n "$NM"; then
11640 ac_cv_prog_NM="$NM" # Let the user override the test.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11660 if test -n "$NM"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11662 $as_echo "$NM" >&6; }
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11665 $as_echo "no
" >&6; }
11670 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
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; }
11709 test -n "$ac_cv_prog_NM" && break
11712 if test -z "$ac_cv_prog_NM" ; then
11714 if test $build = $host ; then
11717 NM="${ncn_tool_prefix}$2"
11723 if test -n "$RANLIB"; then
11724 ac_cv_prog_RANLIB=$RANLIB
11725 elif test -n "$ac_cv_prog_RANLIB"; then
11726 RANLIB=$ac_cv_prog_RANLIB
11729 if test -n "$ac_cv_prog_RANLIB"; then
11730 for ncn_progname in ranlib; do
11731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11732 set dummy ${ncn_progname}; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11734 $as_echo_n "checking
for $ac_word...
" >&6; }
11735 if ${ac_cv_prog_RANLIB+:} false; then :
11736 $as_echo_n "(cached
) " >&6
11738 if test -n "$RANLIB"; then
11739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_RANLIB="${ncn_progname}"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11758 RANLIB=$ac_cv_prog_RANLIB
11759 if test -n "$RANLIB"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11761 $as_echo "$RANLIB" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11764 $as_echo "no
" >&6; }
11771 for ncn_progname in ranlib; do
11772 if test -n "$ncn_tool_prefix"; then
11773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11776 $as_echo_n "checking
for $ac_word...
" >&6; }
11777 if ${ac_cv_prog_RANLIB+:} false; then :
11778 $as_echo_n "(cached
) " >&6
11780 if test -n "$RANLIB"; then
11781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11800 RANLIB=$ac_cv_prog_RANLIB
11801 if test -n "$RANLIB"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11803 $as_echo "$RANLIB" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11806 $as_echo "no
" >&6; }
11811 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
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; }
11850 test -n "$ac_cv_prog_RANLIB" && break
11853 if test -z "$ac_cv_prog_RANLIB" ; then
11859 if test -n "$STRIP"; then
11860 ac_cv_prog_STRIP=$STRIP
11861 elif test -n "$ac_cv_prog_STRIP"; then
11862 STRIP=$ac_cv_prog_STRIP
11865 if test -n "$ac_cv_prog_STRIP"; then
11866 for ncn_progname in strip; do
11867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11868 set dummy ${ncn_progname}; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11870 $as_echo_n "checking
for $ac_word...
" >&6; }
11871 if ${ac_cv_prog_STRIP+:} false; then :
11872 $as_echo_n "(cached
) " >&6
11874 if test -n "$STRIP"; then
11875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_STRIP="${ncn_progname}"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11894 STRIP=$ac_cv_prog_STRIP
11895 if test -n "$STRIP"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11897 $as_echo "$STRIP" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11900 $as_echo "no
" >&6; }
11907 for ncn_progname in strip; do
11908 if test -n "$ncn_tool_prefix"; then
11909 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11910 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11912 $as_echo_n "checking
for $ac_word...
" >&6; }
11913 if ${ac_cv_prog_STRIP+:} false; then :
11914 $as_echo_n "(cached
) " >&6
11916 if test -n "$STRIP"; then
11917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11926 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11936 STRIP=$ac_cv_prog_STRIP
11937 if test -n "$STRIP"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11939 $as_echo "$STRIP" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11942 $as_echo "no
" >&6; }
11947 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
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; }
11986 test -n "$ac_cv_prog_STRIP" && break
11989 if test -z "$ac_cv_prog_STRIP" ; then
11995 if test -n "$WINDRES"; then
11996 ac_cv_prog_WINDRES=$WINDRES
11997 elif test -n "$ac_cv_prog_WINDRES"; then
11998 WINDRES=$ac_cv_prog_WINDRES
12001 if test -n "$ac_cv_prog_WINDRES"; then
12002 for ncn_progname in windres; do
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12006 $as_echo_n "checking
for $ac_word...
" >&6; }
12007 if ${ac_cv_prog_WINDRES+:} false; then :
12008 $as_echo_n "(cached
) " >&6
12010 if test -n "$WINDRES"; then
12011 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_WINDRES="${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12030 WINDRES=$ac_cv_prog_WINDRES
12031 if test -n "$WINDRES"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12033 $as_echo "$WINDRES" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12036 $as_echo "no
" >&6; }
12043 for ncn_progname in windres; do
12044 if test -n "$ncn_tool_prefix"; then
12045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12046 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12048 $as_echo_n "checking
for $ac_word...
" >&6; }
12049 if ${ac_cv_prog_WINDRES+:} false; then :
12050 $as_echo_n "(cached
) " >&6
12052 if test -n "$WINDRES"; then
12053 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12072 WINDRES=$ac_cv_prog_WINDRES
12073 if test -n "$WINDRES"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12075 $as_echo "$WINDRES" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12078 $as_echo "no
" >&6; }
12083 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
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; }
12122 test -n "$ac_cv_prog_WINDRES" && break
12125 if test -z "$ac_cv_prog_WINDRES" ; then
12127 if test $build = $host ; then
12130 WINDRES="${ncn_tool_prefix}$2"
12136 if test -n "$WINDMC"; then
12137 ac_cv_prog_WINDMC=$WINDMC
12138 elif test -n "$ac_cv_prog_WINDMC"; then
12139 WINDMC=$ac_cv_prog_WINDMC
12142 if test -n "$ac_cv_prog_WINDMC"; then
12143 for ncn_progname in windmc; do
12144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12147 $as_echo_n "checking
for $ac_word...
" >&6; }
12148 if ${ac_cv_prog_WINDMC+:} false; then :
12149 $as_echo_n "(cached
) " >&6
12151 if test -n "$WINDMC"; then
12152 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_prog_WINDMC="${ncn_progname}"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12171 WINDMC=$ac_cv_prog_WINDMC
12172 if test -n "$WINDMC"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12174 $as_echo "$WINDMC" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12177 $as_echo "no
" >&6; }
12184 for ncn_progname in windmc; do
12185 if test -n "$ncn_tool_prefix"; then
12186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12187 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12189 $as_echo_n "checking
for $ac_word...
" >&6; }
12190 if ${ac_cv_prog_WINDMC+:} false; then :
12191 $as_echo_n "(cached
) " >&6
12193 if test -n "$WINDMC"; then
12194 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12213 WINDMC=$ac_cv_prog_WINDMC
12214 if test -n "$WINDMC"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12216 $as_echo "$WINDMC" >&6; }
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12219 $as_echo "no
" >&6; }
12224 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
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; }
12263 test -n "$ac_cv_prog_WINDMC" && break
12266 if test -z "$ac_cv_prog_WINDMC" ; then
12268 if test $build = $host ; then
12271 WINDMC="${ncn_tool_prefix}$2"
12277 if test -n "$OBJCOPY"; then
12278 ac_cv_prog_OBJCOPY=$OBJCOPY
12279 elif test -n "$ac_cv_prog_OBJCOPY"; then
12280 OBJCOPY=$ac_cv_prog_OBJCOPY
12283 if test -n "$ac_cv_prog_OBJCOPY"; then
12284 for ncn_progname in objcopy; do
12285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12286 set dummy ${ncn_progname}; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12288 $as_echo_n "checking
for $ac_word...
" >&6; }
12289 if ${ac_cv_prog_OBJCOPY+:} false; then :
12290 $as_echo_n "(cached
) " >&6
12292 if test -n "$OBJCOPY"; then
12293 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_OBJCOPY="${ncn_progname}"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12312 OBJCOPY=$ac_cv_prog_OBJCOPY
12313 if test -n "$OBJCOPY"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12315 $as_echo "$OBJCOPY" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12318 $as_echo "no
" >&6; }
12325 for ncn_progname in objcopy; do
12326 if test -n "$ncn_tool_prefix"; then
12327 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12328 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12330 $as_echo_n "checking
for $ac_word...
" >&6; }
12331 if ${ac_cv_prog_OBJCOPY+:} false; then :
12332 $as_echo_n "(cached
) " >&6
12334 if test -n "$OBJCOPY"; then
12335 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12354 OBJCOPY=$ac_cv_prog_OBJCOPY
12355 if test -n "$OBJCOPY"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12357 $as_echo "$OBJCOPY" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12360 $as_echo "no
" >&6; }
12365 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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; }
12404 test -n "$ac_cv_prog_OBJCOPY" && break
12407 if test -z "$ac_cv_prog_OBJCOPY" ; then
12409 if test $build = $host ; then
12412 OBJCOPY="${ncn_tool_prefix}$2"
12418 if test -n "$OBJDUMP"; then
12419 ac_cv_prog_OBJDUMP=$OBJDUMP
12420 elif test -n "$ac_cv_prog_OBJDUMP"; then
12421 OBJDUMP=$ac_cv_prog_OBJDUMP
12424 if test -n "$ac_cv_prog_OBJDUMP"; then
12425 for ncn_progname in objdump; do
12426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12427 set dummy ${ncn_progname}; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12429 $as_echo_n "checking
for $ac_word...
" >&6; }
12430 if ${ac_cv_prog_OBJDUMP+:} false; then :
12431 $as_echo_n "(cached
) " >&6
12433 if test -n "$OBJDUMP"; then
12434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443 ac_cv_prog_OBJDUMP="${ncn_progname}"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12453 OBJDUMP=$ac_cv_prog_OBJDUMP
12454 if test -n "$OBJDUMP"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12456 $as_echo "$OBJDUMP" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12459 $as_echo "no
" >&6; }
12466 for ncn_progname in objdump; do
12467 if test -n "$ncn_tool_prefix"; then
12468 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12469 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12471 $as_echo_n "checking
for $ac_word...
" >&6; }
12472 if ${ac_cv_prog_OBJDUMP+:} false; then :
12473 $as_echo_n "(cached
) " >&6
12475 if test -n "$OBJDUMP"; then
12476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12495 OBJDUMP=$ac_cv_prog_OBJDUMP
12496 if test -n "$OBJDUMP"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12498 $as_echo "$OBJDUMP" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12501 $as_echo "no
" >&6; }
12506 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
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; }
12545 test -n "$ac_cv_prog_OBJDUMP" && break
12548 if test -z "$ac_cv_prog_OBJDUMP" ; then
12550 if test $build = $host ; then
12553 OBJDUMP="${ncn_tool_prefix}$2"
12559 if test -n "$OTOOL"; then
12560 ac_cv_prog_OTOOL=$OTOOL
12561 elif test -n "$ac_cv_prog_OTOOL"; then
12562 OTOOL=$ac_cv_prog_OTOOL
12565 if test -n "$ac_cv_prog_OTOOL"; then
12566 for ncn_progname in otool; do
12567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12568 set dummy ${ncn_progname}; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12570 $as_echo_n "checking
for $ac_word...
" >&6; }
12571 if ${ac_cv_prog_OTOOL+:} false; then :
12572 $as_echo_n "(cached
) " >&6
12574 if test -n "$OTOOL"; then
12575 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_prog_OTOOL="${ncn_progname}"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12594 OTOOL=$ac_cv_prog_OTOOL
12595 if test -n "$OTOOL"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12597 $as_echo "$OTOOL" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12600 $as_echo "no
" >&6; }
12607 for ncn_progname in otool; do
12608 if test -n "$ncn_tool_prefix"; then
12609 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12610 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12612 $as_echo_n "checking
for $ac_word...
" >&6; }
12613 if ${ac_cv_prog_OTOOL+:} false; then :
12614 $as_echo_n "(cached
) " >&6
12616 if test -n "$OTOOL"; then
12617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12623 test -z "$as_dir" && as_dir=.
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12626 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12636 OTOOL=$ac_cv_prog_OTOOL
12637 if test -n "$OTOOL"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12639 $as_echo "$OTOOL" >&6; }
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12642 $as_echo "no
" >&6; }
12647 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
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; }
12686 test -n "$ac_cv_prog_OTOOL" && break
12689 if test -z "$ac_cv_prog_OTOOL" ; then
12691 if test $build = $host ; then
12694 OTOOL="${ncn_tool_prefix}$2"
12700 if test -n "$READELF"; then
12701 ac_cv_prog_READELF=$READELF
12702 elif test -n "$ac_cv_prog_READELF"; then
12703 READELF=$ac_cv_prog_READELF
12706 if test -n "$ac_cv_prog_READELF"; then
12707 for ncn_progname in readelf; do
12708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12709 set dummy ${ncn_progname}; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12711 $as_echo_n "checking
for $ac_word...
" >&6; }
12712 if ${ac_cv_prog_READELF+:} false; then :
12713 $as_echo_n "(cached
) " >&6
12715 if test -n "$READELF"; then
12716 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725 ac_cv_prog_READELF="${ncn_progname}"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12735 READELF=$ac_cv_prog_READELF
12736 if test -n "$READELF"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12738 $as_echo "$READELF" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12741 $as_echo "no
" >&6; }
12748 for ncn_progname in readelf; do
12749 if test -n "$ncn_tool_prefix"; then
12750 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12753 $as_echo_n "checking
for $ac_word...
" >&6; }
12754 if ${ac_cv_prog_READELF+:} false; then :
12755 $as_echo_n "(cached
) " >&6
12757 if test -n "$READELF"; then
12758 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12767 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12777 READELF=$ac_cv_prog_READELF
12778 if test -n "$READELF"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12780 $as_echo "$READELF" >&6; }
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12783 $as_echo "no
" >&6; }
12788 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
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; }
12827 test -n "$ac_cv_prog_READELF" && break
12830 if test -z "$ac_cv_prog_READELF" ; then
12832 if test $build = $host ; then
12835 READELF="${ncn_tool_prefix}$2"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12847 $as_echo_n "checking
for -plugin option...
" >&6; }
12849 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12851 for plugin in $plugin_names; do
12852 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12853 if test x$plugin_so = x$plugin; then
12854 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12856 if test x$plugin_so != x$plugin; then
12857 plugin_option="--plugin $plugin_so"
12861 if test -n "$plugin_option"; then
12862 PLUGIN_OPTION="$plugin_option"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
12864 $as_echo "$plugin_option" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12867 $as_echo "no
" >&6; }
12871 RANLIB_PLUGIN_OPTION=
12872 if test -n "$PLUGIN_OPTION"; then
12873 if $AR --help 2>&1 | grep -q "\
--plugin"; then
12874 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12876 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
12877 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12885 # Check whether --with-build-time-tools was given.
12886 if test "${with_build_time_tools+set}" = set; then :
12887 withval=$with_build_time_tools; case x"$withval" in
12890 with_build_time_tools=
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12892 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12896 with_build_time_tools=
12902 if test -n "$CC_FOR_TARGET"; then
12903 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12904 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12905 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12908 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12909 for ncn_progname in cc gcc; do
12910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12911 set dummy ${ncn_progname}; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12913 $as_echo_n "checking
for $ac_word...
" >&6; }
12914 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12915 $as_echo_n "(cached
) " >&6
12917 if test -n "$CC_FOR_TARGET"; then
12918 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12927 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12937 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12938 if test -n "$CC_FOR_TARGET"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12940 $as_echo "$CC_FOR_TARGET" >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12943 $as_echo "no
" >&6; }
12950 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12951 for ncn_progname in cc gcc; do
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12953 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12954 if test -x $with_build_time_tools/${ncn_progname}; then
12955 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12957 $as_echo "yes" >&6; }
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12961 $as_echo "no
" >&6; }
12966 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12967 for ncn_progname in cc gcc; do
12968 if test -n "$ncn_target_tool_prefix"; then
12969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12972 $as_echo_n "checking
for $ac_word...
" >&6; }
12973 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12974 $as_echo_n "(cached
) " >&6
12976 if test -n "$CC_FOR_TARGET"; then
12977 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12996 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12997 if test -n "$CC_FOR_TARGET"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12999 $as_echo "$CC_FOR_TARGET" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13002 $as_echo "no
" >&6; }
13007 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13011 $as_echo_n "checking
for $ac_word...
" >&6; }
13012 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13013 $as_echo_n "(cached
) " >&6
13015 if test -n "$CC_FOR_TARGET"; then
13016 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13035 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13036 if test -n "$CC_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13038 $as_echo "$CC_FOR_TARGET" >&6; }
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13041 $as_echo "no
" >&6; }
13046 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13050 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13052 if test $build = $target ; then
13055 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13058 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13063 if test -n "$CXX_FOR_TARGET"; then
13064 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13065 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13066 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13069 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13070 for ncn_progname in c++ g++ cxx gxx; do
13071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13072 set dummy ${ncn_progname}; ac_word=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13074 $as_echo_n "checking
for $ac_word...
" >&6; }
13075 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13076 $as_echo_n "(cached
) " >&6
13078 if test -n "$CXX_FOR_TARGET"; then
13079 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13098 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13099 if test -n "$CXX_FOR_TARGET"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13101 $as_echo "$CXX_FOR_TARGET" >&6; }
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13104 $as_echo "no
" >&6; }
13111 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13112 for ncn_progname in c++ g++ cxx gxx; do
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13114 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13115 if test -x $with_build_time_tools/${ncn_progname}; then
13116 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13118 $as_echo "yes" >&6; }
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13122 $as_echo "no
" >&6; }
13127 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13128 for ncn_progname in c++ g++ cxx gxx; do
13129 if test -n "$ncn_target_tool_prefix"; then
13130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13133 $as_echo_n "checking
for $ac_word...
" >&6; }
13134 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13135 $as_echo_n "(cached
) " >&6
13137 if test -n "$CXX_FOR_TARGET"; then
13138 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13157 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13158 if test -n "$CXX_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13160 $as_echo "$CXX_FOR_TARGET" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13163 $as_echo "no
" >&6; }
13168 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13170 set dummy ${ncn_progname}; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13172 $as_echo_n "checking
for $ac_word...
" >&6; }
13173 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13174 $as_echo_n "(cached
) " >&6
13176 if test -n "$CXX_FOR_TARGET"; then
13177 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13196 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13197 if test -n "$CXX_FOR_TARGET"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13199 $as_echo "$CXX_FOR_TARGET" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13202 $as_echo "no
" >&6; }
13207 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13211 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13212 set dummy c++ g++ cxx gxx
13213 if test $build = $target ; then
13214 CXX_FOR_TARGET="$2"
13216 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13219 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13224 if test -n "$GCC_FOR_TARGET"; then
13225 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13226 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13227 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13230 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13231 for ncn_progname in gcc; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13235 $as_echo_n "checking
for $ac_word...
" >&6; }
13236 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13237 $as_echo_n "(cached
) " >&6
13239 if test -n "$GCC_FOR_TARGET"; then
13240 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13259 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13260 if test -n "$GCC_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13262 $as_echo "$GCC_FOR_TARGET" >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13265 $as_echo "no
" >&6; }
13272 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273 for ncn_progname in gcc; do
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13279 $as_echo "yes" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13283 $as_echo "no
" >&6; }
13288 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13289 for ncn_progname in gcc; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13294 $as_echo_n "checking
for $ac_word...
" >&6; }
13295 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13296 $as_echo_n "(cached
) " >&6
13298 if test -n "$GCC_FOR_TARGET"; then
13299 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13318 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13319 if test -n "$GCC_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13321 $as_echo "$GCC_FOR_TARGET" >&6; }
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13324 $as_echo "no
" >&6; }
13329 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13333 $as_echo_n "checking
for $ac_word...
" >&6; }
13334 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13335 $as_echo_n "(cached
) " >&6
13337 if test -n "$GCC_FOR_TARGET"; then
13338 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13347 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13357 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13358 if test -n "$GCC_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13360 $as_echo "$GCC_FOR_TARGET" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13363 $as_echo "no
" >&6; }
13368 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13372 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13373 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13375 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13380 if test -n "$GFORTRAN_FOR_TARGET"; then
13381 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13382 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13383 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13386 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13387 for ncn_progname in gfortran; do
13388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13389 set dummy ${ncn_progname}; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13391 $as_echo_n "checking
for $ac_word...
" >&6; }
13392 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13393 $as_echo_n "(cached
) " >&6
13395 if test -n "$GFORTRAN_FOR_TARGET"; then
13396 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13415 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13416 if test -n "$GFORTRAN_FOR_TARGET"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13418 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13421 $as_echo "no
" >&6; }
13428 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13429 for ncn_progname in gfortran; do
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13431 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13432 if test -x $with_build_time_tools/${ncn_progname}; then
13433 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13435 $as_echo "yes" >&6; }
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13439 $as_echo "no
" >&6; }
13444 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13445 for ncn_progname in gfortran; do
13446 if test -n "$ncn_target_tool_prefix"; then
13447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13450 $as_echo_n "checking
for $ac_word...
" >&6; }
13451 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13452 $as_echo_n "(cached
) " >&6
13454 if test -n "$GFORTRAN_FOR_TARGET"; then
13455 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13474 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13475 if test -n "$GFORTRAN_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13477 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13480 $as_echo "no
" >&6; }
13485 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13489 $as_echo_n "checking
for $ac_word...
" >&6; }
13490 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13491 $as_echo_n "(cached
) " >&6
13493 if test -n "$GFORTRAN_FOR_TARGET"; then
13494 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13513 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13514 if test -n "$GFORTRAN_FOR_TARGET"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13516 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13519 $as_echo "no
" >&6; }
13524 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13528 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13530 if test $build = $target ; then
13531 GFORTRAN_FOR_TARGET="$2"
13533 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13536 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13541 if test -n "$GOC_FOR_TARGET"; then
13542 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13543 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13544 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13547 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13548 for ncn_progname in gccgo; do
13549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13552 $as_echo_n "checking
for $ac_word...
" >&6; }
13553 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13554 $as_echo_n "(cached
) " >&6
13556 if test -n "$GOC_FOR_TARGET"; then
13557 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13576 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13577 if test -n "$GOC_FOR_TARGET"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13579 $as_echo "$GOC_FOR_TARGET" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13582 $as_echo "no
" >&6; }
13589 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13590 for ncn_progname in gccgo; do
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13592 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13593 if test -x $with_build_time_tools/${ncn_progname}; then
13594 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13596 $as_echo "yes" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13600 $as_echo "no
" >&6; }
13605 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13606 for ncn_progname in gccgo; do
13607 if test -n "$ncn_target_tool_prefix"; then
13608 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13609 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13611 $as_echo_n "checking
for $ac_word...
" >&6; }
13612 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13613 $as_echo_n "(cached
) " >&6
13615 if test -n "$GOC_FOR_TARGET"; then
13616 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13635 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13636 if test -n "$GOC_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13638 $as_echo "$GOC_FOR_TARGET" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13641 $as_echo "no
" >&6; }
13646 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13648 set dummy ${ncn_progname}; ac_word=$2
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13650 $as_echo_n "checking
for $ac_word...
" >&6; }
13651 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13652 $as_echo_n "(cached
) " >&6
13654 if test -n "$GOC_FOR_TARGET"; then
13655 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
13663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13664 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13674 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13675 if test -n "$GOC_FOR_TARGET"; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13677 $as_echo "$GOC_FOR_TARGET" >&6; }
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13680 $as_echo "no
" >&6; }
13685 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13689 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13691 if test $build = $target ; then
13692 GOC_FOR_TARGET="$2"
13694 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13697 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13702 if test -n "$GDC_FOR_TARGET"; then
13703 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13704 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13705 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13708 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13709 for ncn_progname in gdc; do
13710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13711 set dummy ${ncn_progname}; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13713 $as_echo_n "checking
for $ac_word...
" >&6; }
13714 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13715 $as_echo_n "(cached
) " >&6
13717 if test -n "$GDC_FOR_TARGET"; then
13718 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13737 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13738 if test -n "$GDC_FOR_TARGET"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13740 $as_echo "$GDC_FOR_TARGET" >&6; }
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13743 $as_echo "no
" >&6; }
13750 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13751 for ncn_progname in gdc; do
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13753 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13754 if test -x $with_build_time_tools/${ncn_progname}; then
13755 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13757 $as_echo "yes" >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13761 $as_echo "no
" >&6; }
13766 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13767 for ncn_progname in gdc; do
13768 if test -n "$ncn_target_tool_prefix"; then
13769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13772 $as_echo_n "checking
for $ac_word...
" >&6; }
13773 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13774 $as_echo_n "(cached
) " >&6
13776 if test -n "$GDC_FOR_TARGET"; then
13777 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13796 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13797 if test -n "$GDC_FOR_TARGET"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13799 $as_echo "$GDC_FOR_TARGET" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13802 $as_echo "no
" >&6; }
13807 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13809 set dummy ${ncn_progname}; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13811 $as_echo_n "checking
for $ac_word...
" >&6; }
13812 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13813 $as_echo_n "(cached
) " >&6
13815 if test -n "$GDC_FOR_TARGET"; then
13816 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13835 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13836 if test -n "$GDC_FOR_TARGET"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13838 $as_echo "$GDC_FOR_TARGET" >&6; }
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13841 $as_echo "no
" >&6; }
13846 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13850 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13852 if test $build = $target ; then
13853 GDC_FOR_TARGET="$2"
13855 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13858 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13863 cat > conftest.c << \EOF
13868 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13869 have_gcc_for_target=yes
13871 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13872 have_gcc_for_target=no
13879 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13880 if test -n "$with_build_time_tools"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13882 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13883 if test -x $with_build_time_tools/ar; then
13884 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13885 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13887 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13890 $as_echo "no
" >&6; }
13892 elif test $build != $host && test $have_gcc_for_target = yes; then
13893 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13894 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13895 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13898 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13899 # Extract the first word of "ar", so it can be a program name with args.
13900 set dummy ar; ac_word=$2
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13902 $as_echo_n "checking
for $ac_word...
" >&6; }
13903 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13904 $as_echo_n "(cached
) " >&6
13906 case $AR_FOR_TARGET in
13908 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912 for as_dir in $gcc_cv_tool_dirs
13915 test -z "$as_dir" && as_dir=.
13916 for ac_exec_ext in '' $ac_executable_extensions; do
13917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13918 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13929 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13930 if test -n "$AR_FOR_TARGET"; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13932 $as_echo "$AR_FOR_TARGET" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13935 $as_echo "no
" >&6; }
13940 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13943 if test -n "$AR_FOR_TARGET"; then
13944 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13945 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13946 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13949 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13950 for ncn_progname in ar; do
13951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13952 set dummy ${ncn_progname}; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13954 $as_echo_n "checking
for $ac_word...
" >&6; }
13955 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13956 $as_echo_n "(cached
) " >&6
13958 if test -n "$AR_FOR_TARGET"; then
13959 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13968 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13978 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13979 if test -n "$AR_FOR_TARGET"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13981 $as_echo "$AR_FOR_TARGET" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13984 $as_echo "no
" >&6; }
13991 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13992 for ncn_progname in ar; do
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13994 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13995 if test -x $with_build_time_tools/${ncn_progname}; then
13996 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13998 $as_echo "yes" >&6; }
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14002 $as_echo "no
" >&6; }
14007 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14008 for ncn_progname in ar; do
14009 if test -n "$ncn_target_tool_prefix"; then
14010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14013 $as_echo_n "checking
for $ac_word...
" >&6; }
14014 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14015 $as_echo_n "(cached
) " >&6
14017 if test -n "$AR_FOR_TARGET"; then
14018 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14037 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14038 if test -n "$AR_FOR_TARGET"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14040 $as_echo "$AR_FOR_TARGET" >&6; }
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14043 $as_echo "no
" >&6; }
14048 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14050 set dummy ${ncn_progname}; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14052 $as_echo_n "checking
for $ac_word...
" >&6; }
14053 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14054 $as_echo_n "(cached
) " >&6
14056 if test -n "$AR_FOR_TARGET"; then
14057 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14066 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14076 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14077 if test -n "$AR_FOR_TARGET"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14079 $as_echo "$AR_FOR_TARGET" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14082 $as_echo "no
" >&6; }
14087 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14091 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14093 if test $build = $target ; then
14096 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14099 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14103 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14109 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14110 if test -n "$with_build_time_tools"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14112 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14113 if test -x $with_build_time_tools/as; then
14114 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14115 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14117 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14120 $as_echo "no
" >&6; }
14122 elif test $build != $host && test $have_gcc_for_target = yes; then
14123 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14124 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14125 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14128 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14129 # Extract the first word of "as
", so it can be a program name with args.
14130 set dummy as; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14132 $as_echo_n "checking
for $ac_word...
" >&6; }
14133 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14134 $as_echo_n "(cached
) " >&6
14136 case $AS_FOR_TARGET in
14138 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $gcc_cv_tool_dirs
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14159 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14160 if test -n "$AS_FOR_TARGET"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14162 $as_echo "$AS_FOR_TARGET" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14165 $as_echo "no
" >&6; }
14170 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14173 if test -n "$AS_FOR_TARGET"; then
14174 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14175 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14176 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14179 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14180 for ncn_progname in as; do
14181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14182 set dummy ${ncn_progname}; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14184 $as_echo_n "checking
for $ac_word...
" >&6; }
14185 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14186 $as_echo_n "(cached
) " >&6
14188 if test -n "$AS_FOR_TARGET"; then
14189 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14208 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14209 if test -n "$AS_FOR_TARGET"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14211 $as_echo "$AS_FOR_TARGET" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14214 $as_echo "no
" >&6; }
14221 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14222 for ncn_progname in as; do
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14224 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14225 if test -x $with_build_time_tools/${ncn_progname}; then
14226 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14228 $as_echo "yes" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14232 $as_echo "no
" >&6; }
14237 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14238 for ncn_progname in as; do
14239 if test -n "$ncn_target_tool_prefix"; then
14240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14243 $as_echo_n "checking
for $ac_word...
" >&6; }
14244 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14245 $as_echo_n "(cached
) " >&6
14247 if test -n "$AS_FOR_TARGET"; then
14248 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14267 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14268 if test -n "$AS_FOR_TARGET"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14270 $as_echo "$AS_FOR_TARGET" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14273 $as_echo "no
" >&6; }
14278 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$AS_FOR_TARGET"; then
14287 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14307 if test -n "$AS_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14309 $as_echo "$AS_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14317 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14321 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14323 if test $build = $target ; then
14326 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14329 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14333 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14339 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14340 if test -n "$with_build_time_tools"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14342 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14343 if test -x $with_build_time_tools/dlltool; then
14344 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14345 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14347 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14350 $as_echo "no
" >&6; }
14352 elif test $build != $host && test $have_gcc_for_target = yes; then
14353 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14354 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14355 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14358 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14359 # Extract the first word of "dlltool
", so it can be a program name with args.
14360 set dummy dlltool; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14362 $as_echo_n "checking
for $ac_word...
" >&6; }
14363 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14364 $as_echo_n "(cached
) " >&6
14366 case $DLLTOOL_FOR_TARGET in
14368 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $gcc_cv_tool_dirs
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14389 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14390 if test -n "$DLLTOOL_FOR_TARGET"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14392 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14395 $as_echo "no
" >&6; }
14400 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14403 if test -n "$DLLTOOL_FOR_TARGET"; then
14404 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14405 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14406 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14409 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14410 for ncn_progname in dlltool; do
14411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14412 set dummy ${ncn_progname}; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14414 $as_echo_n "checking
for $ac_word...
" >&6; }
14415 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14416 $as_echo_n "(cached
) " >&6
14418 if test -n "$DLLTOOL_FOR_TARGET"; then
14419 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14428 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14438 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14439 if test -n "$DLLTOOL_FOR_TARGET"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14441 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14444 $as_echo "no
" >&6; }
14451 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14452 for ncn_progname in dlltool; do
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14454 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14455 if test -x $with_build_time_tools/${ncn_progname}; then
14456 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14458 $as_echo "yes" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14462 $as_echo "no
" >&6; }
14467 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14468 for ncn_progname in dlltool; do
14469 if test -n "$ncn_target_tool_prefix"; then
14470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$DLLTOOL_FOR_TARGET"; then
14478 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14497 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14498 if test -n "$DLLTOOL_FOR_TARGET"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14508 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14512 $as_echo_n "checking
for $ac_word...
" >&6; }
14513 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached
) " >&6
14516 if test -n "$DLLTOOL_FOR_TARGET"; then
14517 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14536 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14537 if test -n "$DLLTOOL_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14539 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14542 $as_echo "no
" >&6; }
14547 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14551 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14553 if test $build = $target ; then
14554 DLLTOOL_FOR_TARGET="$2"
14556 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14559 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14563 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14569 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14570 if test -n "$with_build_time_tools"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14572 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14573 if test -x $with_build_time_tools/dsymutil; then
14574 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14575 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14577 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14580 $as_echo "no
" >&6; }
14582 elif test $build != $host && test $have_gcc_for_target = yes; then
14583 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14584 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14585 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14588 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14589 # Extract the first word of "dsymutil
", so it can be a program name with args.
14590 set dummy dsymutil; ac_word=$2
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14592 $as_echo_n "checking
for $ac_word...
" >&6; }
14593 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14594 $as_echo_n "(cached
) " >&6
14596 case $DSYMUTIL_FOR_TARGET in
14598 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $gcc_cv_tool_dirs
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14619 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14620 if test -n "$DSYMUTIL_FOR_TARGET"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14622 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14625 $as_echo "no
" >&6; }
14630 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14633 if test -n "$DSYMUTIL_FOR_TARGET"; then
14634 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14635 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14636 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14639 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14640 for ncn_progname in dsymutil; do
14641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14642 set dummy ${ncn_progname}; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14644 $as_echo_n "checking
for $ac_word...
" >&6; }
14645 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14646 $as_echo_n "(cached
) " >&6
14648 if test -n "$DSYMUTIL_FOR_TARGET"; then
14649 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14655 test -z "$as_dir" && as_dir=.
14656 for ac_exec_ext in '' $ac_executable_extensions; do
14657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14659 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14668 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14669 if test -n "$DSYMUTIL_FOR_TARGET"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14671 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14674 $as_echo "no
" >&6; }
14681 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14682 for ncn_progname in dsymutil; do
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14684 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14685 if test -x $with_build_time_tools/${ncn_progname}; then
14686 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14688 $as_echo "yes" >&6; }
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14692 $as_echo "no
" >&6; }
14697 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14698 for ncn_progname in dsymutil; do
14699 if test -n "$ncn_target_tool_prefix"; then
14700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14703 $as_echo_n "checking
for $ac_word...
" >&6; }
14704 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached
) " >&6
14707 if test -n "$DSYMUTIL_FOR_TARGET"; then
14708 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14727 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14728 if test -n "$DSYMUTIL_FOR_TARGET"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14730 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14733 $as_echo "no
" >&6; }
14738 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14742 $as_echo_n "checking
for $ac_word...
" >&6; }
14743 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached
) " >&6
14746 if test -n "$DSYMUTIL_FOR_TARGET"; then
14747 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14766 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14767 if test -n "$DSYMUTIL_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14769 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14772 $as_echo "no
" >&6; }
14777 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14781 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14783 if test $build = $target ; then
14784 DSYMUTIL_FOR_TARGET="$2"
14786 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14789 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14793 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14799 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14800 if test -n "$with_build_time_tools"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14802 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14803 if test -x $with_build_time_tools/ld; then
14804 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14805 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14807 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14810 $as_echo "no
" >&6; }
14812 elif test $build != $host && test $have_gcc_for_target = yes; then
14813 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14814 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14815 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14818 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14819 # Extract the first word of "ld
", so it can be a program name with args.
14820 set dummy ld; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14822 $as_echo_n "checking
for $ac_word...
" >&6; }
14823 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14824 $as_echo_n "(cached
) " >&6
14826 case $LD_FOR_TARGET in
14828 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832 for as_dir in $gcc_cv_tool_dirs
14835 test -z "$as_dir" && as_dir=.
14836 for ac_exec_ext in '' $ac_executable_extensions; do
14837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14838 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14839 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14849 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14850 if test -n "$LD_FOR_TARGET"; then
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14852 $as_echo "$LD_FOR_TARGET" >&6; }
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14855 $as_echo "no
" >&6; }
14860 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14863 if test -n "$LD_FOR_TARGET"; then
14864 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14865 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14866 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14869 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14870 for ncn_progname in ld; do
14871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14872 set dummy ${ncn_progname}; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14874 $as_echo_n "checking
for $ac_word...
" >&6; }
14875 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14876 $as_echo_n "(cached
) " >&6
14878 if test -n "$LD_FOR_TARGET"; then
14879 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14898 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14899 if test -n "$LD_FOR_TARGET"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14901 $as_echo "$LD_FOR_TARGET" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14904 $as_echo "no
" >&6; }
14911 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14912 for ncn_progname in ld; do
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14914 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14915 if test -x $with_build_time_tools/${ncn_progname}; then
14916 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14918 $as_echo "yes" >&6; }
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14922 $as_echo "no
" >&6; }
14927 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14928 for ncn_progname in ld; do
14929 if test -n "$ncn_target_tool_prefix"; then
14930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14933 $as_echo_n "checking
for $ac_word...
" >&6; }
14934 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached
) " >&6
14937 if test -n "$LD_FOR_TARGET"; then
14938 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14958 if test -n "$LD_FOR_TARGET"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14960 $as_echo "$LD_FOR_TARGET" >&6; }
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14963 $as_echo "no
" >&6; }
14968 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14972 $as_echo_n "checking
for $ac_word...
" >&6; }
14973 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached
) " >&6
14976 if test -n "$LD_FOR_TARGET"; then
14977 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14997 if test -n "$LD_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14999 $as_echo "$LD_FOR_TARGET" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15007 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15011 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15013 if test $build = $target ; then
15016 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15019 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15023 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15029 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15030 if test -n "$with_build_time_tools"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15032 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15033 if test -x $with_build_time_tools/lipo; then
15034 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15035 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15037 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15040 $as_echo "no
" >&6; }
15042 elif test $build != $host && test $have_gcc_for_target = yes; then
15043 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15044 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15045 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15048 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15049 # Extract the first word of "lipo
", so it can be a program name with args.
15050 set dummy lipo; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15052 $as_echo_n "checking
for $ac_word...
" >&6; }
15053 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15054 $as_echo_n "(cached
) " >&6
15056 case $LIPO_FOR_TARGET in
15058 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $gcc_cv_tool_dirs
15065 test -z "$as_dir" && as_dir=.
15066 for ac_exec_ext in '' $ac_executable_extensions; do
15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15079 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15080 if test -n "$LIPO_FOR_TARGET"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15082 $as_echo "$LIPO_FOR_TARGET" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15085 $as_echo "no
" >&6; }
15090 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15093 if test -n "$LIPO_FOR_TARGET"; then
15094 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15095 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15096 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15099 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15100 for ncn_progname in lipo; do
15101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15102 set dummy ${ncn_progname}; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15104 $as_echo_n "checking
for $ac_word...
" >&6; }
15105 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15106 $as_echo_n "(cached
) " >&6
15108 if test -n "$LIPO_FOR_TARGET"; then
15109 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15128 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15129 if test -n "$LIPO_FOR_TARGET"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15131 $as_echo "$LIPO_FOR_TARGET" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15134 $as_echo "no
" >&6; }
15141 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15142 for ncn_progname in lipo; do
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15144 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15145 if test -x $with_build_time_tools/${ncn_progname}; then
15146 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15148 $as_echo "yes" >&6; }
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15152 $as_echo "no
" >&6; }
15157 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15158 for ncn_progname in lipo; do
15159 if test -n "$ncn_target_tool_prefix"; then
15160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15163 $as_echo_n "checking
for $ac_word...
" >&6; }
15164 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached
) " >&6
15167 if test -n "$LIPO_FOR_TARGET"; then
15168 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15188 if test -n "$LIPO_FOR_TARGET"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15190 $as_echo "$LIPO_FOR_TARGET" >&6; }
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15193 $as_echo "no
" >&6; }
15198 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15202 $as_echo_n "checking
for $ac_word...
" >&6; }
15203 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached
) " >&6
15206 if test -n "$LIPO_FOR_TARGET"; then
15207 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15226 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15227 if test -n "$LIPO_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15229 $as_echo "$LIPO_FOR_TARGET" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15232 $as_echo "no
" >&6; }
15237 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15241 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15243 if test $build = $target ; then
15244 LIPO_FOR_TARGET="$2"
15246 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15249 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15253 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15259 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15260 if test -n "$with_build_time_tools"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15262 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15263 if test -x $with_build_time_tools/nm; then
15264 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15265 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15267 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15270 $as_echo "no
" >&6; }
15272 elif test $build != $host && test $have_gcc_for_target = yes; then
15273 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15274 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15275 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15278 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15279 # Extract the first word of "nm
", so it can be a program name with args.
15280 set dummy nm; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15282 $as_echo_n "checking
for $ac_word...
" >&6; }
15283 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15284 $as_echo_n "(cached
) " >&6
15286 case $NM_FOR_TARGET in
15288 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $gcc_cv_tool_dirs
15295 test -z "$as_dir" && as_dir=.
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15298 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15309 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15310 if test -n "$NM_FOR_TARGET"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15312 $as_echo "$NM_FOR_TARGET" >&6; }
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15315 $as_echo "no
" >&6; }
15320 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15323 if test -n "$NM_FOR_TARGET"; then
15324 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15325 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15326 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15329 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15330 for ncn_progname in nm; do
15331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15332 set dummy ${ncn_progname}; ac_word=$2
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15334 $as_echo_n "checking
for $ac_word...
" >&6; }
15335 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15336 $as_echo_n "(cached
) " >&6
15338 if test -n "$NM_FOR_TARGET"; then
15339 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15345 test -z "$as_dir" && as_dir=.
15346 for ac_exec_ext in '' $ac_executable_extensions; do
15347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15348 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15358 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15359 if test -n "$NM_FOR_TARGET"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15361 $as_echo "$NM_FOR_TARGET" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15364 $as_echo "no
" >&6; }
15371 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15372 for ncn_progname in nm; do
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15374 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15375 if test -x $with_build_time_tools/${ncn_progname}; then
15376 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15378 $as_echo "yes" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15382 $as_echo "no
" >&6; }
15387 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15388 for ncn_progname in nm; do
15389 if test -n "$ncn_target_tool_prefix"; then
15390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15393 $as_echo_n "checking
for $ac_word...
" >&6; }
15394 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached
) " >&6
15397 if test -n "$NM_FOR_TARGET"; then
15398 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15418 if test -n "$NM_FOR_TARGET"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15420 $as_echo "$NM_FOR_TARGET" >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15423 $as_echo "no
" >&6; }
15428 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15432 $as_echo_n "checking
for $ac_word...
" >&6; }
15433 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached
) " >&6
15436 if test -n "$NM_FOR_TARGET"; then
15437 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15456 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15457 if test -n "$NM_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15459 $as_echo "$NM_FOR_TARGET" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15462 $as_echo "no
" >&6; }
15467 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15471 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15473 if test $build = $target ; then
15476 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15479 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15483 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15489 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15490 if test -n "$with_build_time_tools"; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15492 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15493 if test -x $with_build_time_tools/objcopy; then
15494 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15495 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15497 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15500 $as_echo "no
" >&6; }
15502 elif test $build != $host && test $have_gcc_for_target = yes; then
15503 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15504 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15505 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15508 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15509 # Extract the first word of "objcopy
", so it can be a program name with args.
15510 set dummy objcopy; ac_word=$2
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15512 $as_echo_n "checking
for $ac_word...
" >&6; }
15513 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15514 $as_echo_n "(cached
) " >&6
15516 case $OBJCOPY_FOR_TARGET in
15518 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522 for as_dir in $gcc_cv_tool_dirs
15525 test -z "$as_dir" && as_dir=.
15526 for ac_exec_ext in '' $ac_executable_extensions; do
15527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15528 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15539 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15540 if test -n "$OBJCOPY_FOR_TARGET"; then
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15542 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15545 $as_echo "no
" >&6; }
15550 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15553 if test -n "$OBJCOPY_FOR_TARGET"; then
15554 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15555 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15556 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15559 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15560 for ncn_progname in objcopy; do
15561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15562 set dummy ${ncn_progname}; ac_word=$2
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15564 $as_echo_n "checking
for $ac_word...
" >&6; }
15565 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15566 $as_echo_n "(cached
) " >&6
15568 if test -n "$OBJCOPY_FOR_TARGET"; then
15569 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 for as_dir in $PATH
15575 test -z "$as_dir" && as_dir=.
15576 for ac_exec_ext in '' $ac_executable_extensions; do
15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15578 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15579 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15588 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15589 if test -n "$OBJCOPY_FOR_TARGET"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15591 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15594 $as_echo "no
" >&6; }
15601 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15602 for ncn_progname in objcopy; do
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15604 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15605 if test -x $with_build_time_tools/${ncn_progname}; then
15606 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15608 $as_echo "yes" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15612 $as_echo "no
" >&6; }
15617 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15618 for ncn_progname in objcopy; do
15619 if test -n "$ncn_target_tool_prefix"; then
15620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15623 $as_echo_n "checking
for $ac_word...
" >&6; }
15624 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached
) " >&6
15627 if test -n "$OBJCOPY_FOR_TARGET"; then
15628 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15647 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15648 if test -n "$OBJCOPY_FOR_TARGET"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15650 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15653 $as_echo "no
" >&6; }
15658 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15662 $as_echo_n "checking
for $ac_word...
" >&6; }
15663 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached
) " >&6
15666 if test -n "$OBJCOPY_FOR_TARGET"; then
15667 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15686 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15687 if test -n "$OBJCOPY_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15689 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15692 $as_echo "no
" >&6; }
15697 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15701 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15703 if test $build = $target ; then
15704 OBJCOPY_FOR_TARGET="$2"
15706 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15709 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15713 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15719 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15720 if test -n "$with_build_time_tools"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15722 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15723 if test -x $with_build_time_tools/objdump; then
15724 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15725 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15727 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15730 $as_echo "no
" >&6; }
15732 elif test $build != $host && test $have_gcc_for_target = yes; then
15733 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15734 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15735 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15738 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15739 # Extract the first word of "objdump
", so it can be a program name with args.
15740 set dummy objdump; ac_word=$2
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15742 $as_echo_n "checking
for $ac_word...
" >&6; }
15743 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15744 $as_echo_n "(cached
) " >&6
15746 case $OBJDUMP_FOR_TARGET in
15748 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752 for as_dir in $gcc_cv_tool_dirs
15755 test -z "$as_dir" && as_dir=.
15756 for ac_exec_ext in '' $ac_executable_extensions; do
15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15769 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15770 if test -n "$OBJDUMP_FOR_TARGET"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15772 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15775 $as_echo "no
" >&6; }
15780 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15783 if test -n "$OBJDUMP_FOR_TARGET"; then
15784 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15785 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15786 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15789 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15790 for ncn_progname in objdump; do
15791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15792 set dummy ${ncn_progname}; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15794 $as_echo_n "checking
for $ac_word...
" >&6; }
15795 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15796 $as_echo_n "(cached
) " >&6
15798 if test -n "$OBJDUMP_FOR_TARGET"; then
15799 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15818 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15819 if test -n "$OBJDUMP_FOR_TARGET"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15821 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15824 $as_echo "no
" >&6; }
15831 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15832 for ncn_progname in objdump; do
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15834 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15835 if test -x $with_build_time_tools/${ncn_progname}; then
15836 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15838 $as_echo "yes" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15842 $as_echo "no
" >&6; }
15847 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15848 for ncn_progname in objdump; do
15849 if test -n "$ncn_target_tool_prefix"; then
15850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15853 $as_echo_n "checking
for $ac_word...
" >&6; }
15854 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached
) " >&6
15857 if test -n "$OBJDUMP_FOR_TARGET"; then
15858 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15864 test -z "$as_dir" && as_dir=.
15865 for ac_exec_ext in '' $ac_executable_extensions; do
15866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15868 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15877 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15878 if test -n "$OBJDUMP_FOR_TARGET"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15880 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15883 $as_echo "no
" >&6; }
15888 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15892 $as_echo_n "checking
for $ac_word...
" >&6; }
15893 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached
) " >&6
15896 if test -n "$OBJDUMP_FOR_TARGET"; then
15897 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15916 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15917 if test -n "$OBJDUMP_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15919 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15922 $as_echo "no
" >&6; }
15927 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15931 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15933 if test $build = $target ; then
15934 OBJDUMP_FOR_TARGET="$2"
15936 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15939 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15943 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15949 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15950 if test -n "$with_build_time_tools"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15952 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15953 if test -x $with_build_time_tools/otool; then
15954 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15955 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15957 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15960 $as_echo "no
" >&6; }
15962 elif test $build != $host && test $have_gcc_for_target = yes; then
15963 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15964 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15965 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15968 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15969 # Extract the first word of "otool
", so it can be a program name with args.
15970 set dummy otool; ac_word=$2
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15972 $as_echo_n "checking
for $ac_word...
" >&6; }
15973 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15974 $as_echo_n "(cached
) " >&6
15976 case $OTOOL_FOR_TARGET in
15978 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $gcc_cv_tool_dirs
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15999 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16000 if test -n "$OTOOL_FOR_TARGET"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16002 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16005 $as_echo "no
" >&6; }
16010 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16013 if test -n "$OTOOL_FOR_TARGET"; then
16014 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16015 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16016 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16019 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16020 for ncn_progname in otool; do
16021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16022 set dummy ${ncn_progname}; ac_word=$2
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16024 $as_echo_n "checking
for $ac_word...
" >&6; }
16025 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16026 $as_echo_n "(cached
) " >&6
16028 if test -n "$OTOOL_FOR_TARGET"; then
16029 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16048 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16049 if test -n "$OTOOL_FOR_TARGET"; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16051 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16054 $as_echo "no
" >&6; }
16061 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16062 for ncn_progname in otool; do
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16064 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16065 if test -x $with_build_time_tools/${ncn_progname}; then
16066 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16068 $as_echo "yes" >&6; }
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16072 $as_echo "no
" >&6; }
16077 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16078 for ncn_progname in otool; do
16079 if test -n "$ncn_target_tool_prefix"; then
16080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16083 $as_echo_n "checking
for $ac_word...
" >&6; }
16084 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached
) " >&6
16087 if test -n "$OTOOL_FOR_TARGET"; then
16088 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16094 test -z "$as_dir" && as_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16107 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16108 if test -n "$OTOOL_FOR_TARGET"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16110 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16113 $as_echo "no
" >&6; }
16118 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16122 $as_echo_n "checking
for $ac_word...
" >&6; }
16123 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached
) " >&6
16126 if test -n "$OTOOL_FOR_TARGET"; then
16127 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16146 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16147 if test -n "$OTOOL_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16149 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16152 $as_echo "no
" >&6; }
16157 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16161 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16163 if test $build = $target ; then
16164 OTOOL_FOR_TARGET="$2"
16166 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16169 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16173 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16179 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16180 if test -n "$with_build_time_tools"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16182 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16183 if test -x $with_build_time_tools/ranlib; then
16184 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16185 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16187 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16190 $as_echo "no
" >&6; }
16192 elif test $build != $host && test $have_gcc_for_target = yes; then
16193 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16194 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16195 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16198 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16199 # Extract the first word of "ranlib
", so it can be a program name with args.
16200 set dummy ranlib; ac_word=$2
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16202 $as_echo_n "checking
for $ac_word...
" >&6; }
16203 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16204 $as_echo_n "(cached
) " >&6
16206 case $RANLIB_FOR_TARGET in
16208 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $gcc_cv_tool_dirs
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16218 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16229 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16230 if test -n "$RANLIB_FOR_TARGET"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16232 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16235 $as_echo "no
" >&6; }
16240 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16243 if test -n "$RANLIB_FOR_TARGET"; then
16244 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16245 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16246 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16249 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16250 for ncn_progname in ranlib; do
16251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16252 set dummy ${ncn_progname}; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16254 $as_echo_n "checking
for $ac_word...
" >&6; }
16255 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16256 $as_echo_n "(cached
) " >&6
16258 if test -n "$RANLIB_FOR_TARGET"; then
16259 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16265 test -z "$as_dir" && as_dir=.
16266 for ac_exec_ext in '' $ac_executable_extensions; do
16267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16268 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16278 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16279 if test -n "$RANLIB_FOR_TARGET"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16281 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16284 $as_echo "no
" >&6; }
16291 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16292 for ncn_progname in ranlib; do
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16294 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16295 if test -x $with_build_time_tools/${ncn_progname}; then
16296 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16298 $as_echo "yes" >&6; }
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16302 $as_echo "no
" >&6; }
16307 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16308 for ncn_progname in ranlib; do
16309 if test -n "$ncn_target_tool_prefix"; then
16310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16313 $as_echo_n "checking
for $ac_word...
" >&6; }
16314 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached
) " >&6
16317 if test -n "$RANLIB_FOR_TARGET"; then
16318 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16337 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16338 if test -n "$RANLIB_FOR_TARGET"; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16340 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16343 $as_echo "no
" >&6; }
16348 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16352 $as_echo_n "checking
for $ac_word...
" >&6; }
16353 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached
) " >&6
16356 if test -n "$RANLIB_FOR_TARGET"; then
16357 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16376 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16377 if test -n "$RANLIB_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16379 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16382 $as_echo "no
" >&6; }
16387 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16391 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16393 if test $build = $target ; then
16394 RANLIB_FOR_TARGET="$2"
16396 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16399 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16403 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16409 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16410 if test -n "$with_build_time_tools"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16412 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16413 if test -x $with_build_time_tools/readelf; then
16414 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16415 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16417 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16420 $as_echo "no
" >&6; }
16422 elif test $build != $host && test $have_gcc_for_target = yes; then
16423 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16424 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16425 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16428 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16429 # Extract the first word of "readelf
", so it can be a program name with args.
16430 set dummy readelf; ac_word=$2
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16432 $as_echo_n "checking
for $ac_word...
" >&6; }
16433 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16434 $as_echo_n "(cached
) " >&6
16436 case $READELF_FOR_TARGET in
16438 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $gcc_cv_tool_dirs
16445 test -z "$as_dir" && as_dir=.
16446 for ac_exec_ext in '' $ac_executable_extensions; do
16447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16459 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16460 if test -n "$READELF_FOR_TARGET"; then
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16462 $as_echo "$READELF_FOR_TARGET" >&6; }
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16465 $as_echo "no
" >&6; }
16470 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16473 if test -n "$READELF_FOR_TARGET"; then
16474 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16475 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16476 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16479 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16480 for ncn_progname in readelf; do
16481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16482 set dummy ${ncn_progname}; ac_word=$2
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16484 $as_echo_n "checking
for $ac_word...
" >&6; }
16485 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16486 $as_echo_n "(cached
) " >&6
16488 if test -n "$READELF_FOR_TARGET"; then
16489 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16492 for as_dir in $PATH
16495 test -z "$as_dir" && as_dir=.
16496 for ac_exec_ext in '' $ac_executable_extensions; do
16497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16498 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16508 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16509 if test -n "$READELF_FOR_TARGET"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16511 $as_echo "$READELF_FOR_TARGET" >&6; }
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16514 $as_echo "no
" >&6; }
16521 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16522 for ncn_progname in readelf; do
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16524 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16525 if test -x $with_build_time_tools/${ncn_progname}; then
16526 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16528 $as_echo "yes" >&6; }
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16532 $as_echo "no
" >&6; }
16537 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16538 for ncn_progname in readelf; do
16539 if test -n "$ncn_target_tool_prefix"; then
16540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16543 $as_echo_n "checking
for $ac_word...
" >&6; }
16544 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached
) " >&6
16547 if test -n "$READELF_FOR_TARGET"; then
16548 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16567 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16568 if test -n "$READELF_FOR_TARGET"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16570 $as_echo "$READELF_FOR_TARGET" >&6; }
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16573 $as_echo "no
" >&6; }
16578 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16582 $as_echo_n "checking
for $ac_word...
" >&6; }
16583 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached
) " >&6
16586 if test -n "$READELF_FOR_TARGET"; then
16587 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16606 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16607 if test -n "$READELF_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16609 $as_echo "$READELF_FOR_TARGET" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16612 $as_echo "no
" >&6; }
16617 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16621 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16623 if test $build = $target ; then
16624 READELF_FOR_TARGET="$2"
16626 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16629 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16633 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16639 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16640 if test -n "$with_build_time_tools"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16642 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16643 if test -x $with_build_time_tools/strip; then
16644 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16645 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16647 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16650 $as_echo "no
" >&6; }
16652 elif test $build != $host && test $have_gcc_for_target = yes; then
16653 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16654 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16655 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16658 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16659 # Extract the first word of "strip
", so it can be a program name with args.
16660 set dummy strip; ac_word=$2
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16662 $as_echo_n "checking
for $ac_word...
" >&6; }
16663 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16664 $as_echo_n "(cached
) " >&6
16666 case $STRIP_FOR_TARGET in
16668 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $gcc_cv_tool_dirs
16675 test -z "$as_dir" && as_dir=.
16676 for ac_exec_ext in '' $ac_executable_extensions; do
16677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16678 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16689 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16690 if test -n "$STRIP_FOR_TARGET"; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16692 $as_echo "$STRIP_FOR_TARGET" >&6; }
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16695 $as_echo "no
" >&6; }
16700 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16703 if test -n "$STRIP_FOR_TARGET"; then
16704 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16705 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16706 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16709 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16710 for ncn_progname in strip; do
16711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16712 set dummy ${ncn_progname}; ac_word=$2
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16714 $as_echo_n "checking
for $ac_word...
" >&6; }
16715 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16716 $as_echo_n "(cached
) " >&6
16718 if test -n "$STRIP_FOR_TARGET"; then
16719 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16725 test -z "$as_dir" && as_dir=.
16726 for ac_exec_ext in '' $ac_executable_extensions; do
16727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16728 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16738 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16739 if test -n "$STRIP_FOR_TARGET"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16741 $as_echo "$STRIP_FOR_TARGET" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16744 $as_echo "no
" >&6; }
16751 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16752 for ncn_progname in strip; do
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16754 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16755 if test -x $with_build_time_tools/${ncn_progname}; then
16756 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16758 $as_echo "yes" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16762 $as_echo "no
" >&6; }
16767 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16768 for ncn_progname in strip; do
16769 if test -n "$ncn_target_tool_prefix"; then
16770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16773 $as_echo_n "checking
for $ac_word...
" >&6; }
16774 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached
) " >&6
16777 if test -n "$STRIP_FOR_TARGET"; then
16778 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16797 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16798 if test -n "$STRIP_FOR_TARGET"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16800 $as_echo "$STRIP_FOR_TARGET" >&6; }
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16803 $as_echo "no
" >&6; }
16808 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16812 $as_echo_n "checking
for $ac_word...
" >&6; }
16813 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached
) " >&6
16816 if test -n "$STRIP_FOR_TARGET"; then
16817 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16836 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16837 if test -n "$STRIP_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16839 $as_echo "$STRIP_FOR_TARGET" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16842 $as_echo "no
" >&6; }
16847 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16851 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16853 if test $build = $target ; then
16854 STRIP_FOR_TARGET="$2"
16856 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16859 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16863 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16869 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16870 if test -n "$with_build_time_tools"; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16872 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16873 if test -x $with_build_time_tools/windres; then
16874 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16875 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16877 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16880 $as_echo "no
" >&6; }
16882 elif test $build != $host && test $have_gcc_for_target = yes; then
16883 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16884 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16885 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16888 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16889 # Extract the first word of "windres
", so it can be a program name with args.
16890 set dummy windres; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16892 $as_echo_n "checking
for $ac_word...
" >&6; }
16893 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16894 $as_echo_n "(cached
) " >&6
16896 case $WINDRES_FOR_TARGET in
16898 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in $gcc_cv_tool_dirs
16905 test -z "$as_dir" && as_dir=.
16906 for ac_exec_ext in '' $ac_executable_extensions; do
16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16919 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16920 if test -n "$WINDRES_FOR_TARGET"; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16922 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16925 $as_echo "no
" >&6; }
16930 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16933 if test -n "$WINDRES_FOR_TARGET"; then
16934 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16935 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16936 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16939 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16940 for ncn_progname in windres; do
16941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16942 set dummy ${ncn_progname}; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16944 $as_echo_n "checking
for $ac_word...
" >&6; }
16945 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16946 $as_echo_n "(cached
) " >&6
16948 if test -n "$WINDRES_FOR_TARGET"; then
16949 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16955 test -z "$as_dir" && as_dir=.
16956 for ac_exec_ext in '' $ac_executable_extensions; do
16957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16968 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16969 if test -n "$WINDRES_FOR_TARGET"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16971 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16974 $as_echo "no
" >&6; }
16981 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16982 for ncn_progname in windres; do
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16984 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16985 if test -x $with_build_time_tools/${ncn_progname}; then
16986 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16988 $as_echo "yes" >&6; }
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16992 $as_echo "no
" >&6; }
16997 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16998 for ncn_progname in windres; do
16999 if test -n "$ncn_target_tool_prefix"; then
17000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17003 $as_echo_n "checking
for $ac_word...
" >&6; }
17004 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached
) " >&6
17007 if test -n "$WINDRES_FOR_TARGET"; then
17008 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17027 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17028 if test -n "$WINDRES_FOR_TARGET"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17030 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17033 $as_echo "no
" >&6; }
17038 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17042 $as_echo_n "checking
for $ac_word...
" >&6; }
17043 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached
) " >&6
17046 if test -n "$WINDRES_FOR_TARGET"; then
17047 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17053 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17066 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17067 if test -n "$WINDRES_FOR_TARGET"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17069 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17072 $as_echo "no
" >&6; }
17077 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17081 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17083 if test $build = $target ; then
17084 WINDRES_FOR_TARGET="$2"
17086 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17089 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17093 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17099 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17100 if test -n "$with_build_time_tools"; then
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17102 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17103 if test -x $with_build_time_tools/windmc; then
17104 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17105 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17107 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17110 $as_echo "no
" >&6; }
17112 elif test $build != $host && test $have_gcc_for_target = yes; then
17113 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17114 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17115 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17118 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17119 # Extract the first word of "windmc
", so it can be a program name with args.
17120 set dummy windmc; ac_word=$2
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17122 $as_echo_n "checking
for $ac_word...
" >&6; }
17123 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17124 $as_echo_n "(cached
) " >&6
17126 case $WINDMC_FOR_TARGET in
17128 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17132 for as_dir in $gcc_cv_tool_dirs
17135 test -z "$as_dir" && as_dir=.
17136 for ac_exec_ext in '' $ac_executable_extensions; do
17137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17138 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17149 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17150 if test -n "$WINDMC_FOR_TARGET"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17152 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17155 $as_echo "no
" >&6; }
17160 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17163 if test -n "$WINDMC_FOR_TARGET"; then
17164 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17165 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17166 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17169 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17170 for ncn_progname in windmc; do
17171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17172 set dummy ${ncn_progname}; ac_word=$2
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17174 $as_echo_n "checking
for $ac_word...
" >&6; }
17175 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17176 $as_echo_n "(cached
) " >&6
17178 if test -n "$WINDMC_FOR_TARGET"; then
17179 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17185 test -z "$as_dir" && as_dir=.
17186 for ac_exec_ext in '' $ac_executable_extensions; do
17187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17188 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17198 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17199 if test -n "$WINDMC_FOR_TARGET"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17201 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17204 $as_echo "no
" >&6; }
17211 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17212 for ncn_progname in windmc; do
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17214 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17215 if test -x $with_build_time_tools/${ncn_progname}; then
17216 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17218 $as_echo "yes" >&6; }
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17222 $as_echo "no
" >&6; }
17227 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17228 for ncn_progname in windmc; do
17229 if test -n "$ncn_target_tool_prefix"; then
17230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17233 $as_echo_n "checking
for $ac_word...
" >&6; }
17234 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached
) " >&6
17237 if test -n "$WINDMC_FOR_TARGET"; then
17238 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17244 test -z "$as_dir" && as_dir=.
17245 for ac_exec_ext in '' $ac_executable_extensions; do
17246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17257 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17258 if test -n "$WINDMC_FOR_TARGET"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17260 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17263 $as_echo "no
" >&6; }
17268 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17272 $as_echo_n "checking
for $ac_word...
" >&6; }
17273 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 if test -n "$WINDMC_FOR_TARGET"; then
17277 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17296 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17297 if test -n "$WINDMC_FOR_TARGET"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17299 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17302 $as_echo "no
" >&6; }
17307 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17311 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17313 if test $build = $target ; then
17314 WINDMC_FOR_TARGET="$2"
17316 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17319 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17323 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17327 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17330 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17331 if test "x
${build}" != "x
${host}" ; then
17332 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17333 # We already found the complete path
17334 ac_dir=`dirname $AR_FOR_TARGET`
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17336 $as_echo "pre-installed
in $ac_dir" >&6; }
17338 # Canadian cross, just use what we found
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17340 $as_echo "pre-installed
" >&6; }
17344 case " ${configdirs} " in
17349 if test $ok = yes; then
17350 # An in-tree tool is available and we can use it
17351 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17353 $as_echo "just compiled
" >&6; }
17354 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17355 # We already found the complete path
17356 ac_dir=`dirname $AR_FOR_TARGET`
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17358 $as_echo "pre-installed
in $ac_dir" >&6; }
17359 elif test "x
$target" = "x
$host"; then
17360 # We can use an host tool
17361 AR_FOR_TARGET='$(AR)'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17363 $as_echo "host tool
" >&6; }
17365 # We need a cross tool
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17367 $as_echo "pre-installed
" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17372 $as_echo_n "checking where to
find the target as...
" >&6; }
17373 if test "x
${build}" != "x
${host}" ; then
17374 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17375 # We already found the complete path
17376 ac_dir=`dirname $AS_FOR_TARGET`
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17378 $as_echo "pre-installed
in $ac_dir" >&6; }
17380 # Canadian cross, just use what we found
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17382 $as_echo "pre-installed
" >&6; }
17386 case " ${configdirs} " in
17391 if test $ok = yes; then
17392 # An in-tree tool is available and we can use it
17393 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17395 $as_echo "just compiled
" >&6; }
17396 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17397 # We already found the complete path
17398 ac_dir=`dirname $AS_FOR_TARGET`
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17400 $as_echo "pre-installed
in $ac_dir" >&6; }
17401 elif test "x
$target" = "x
$host"; then
17402 # We can use an host tool
17403 AS_FOR_TARGET='$(AS)'
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17405 $as_echo "host tool
" >&6; }
17407 # We need a cross tool
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17409 $as_echo "pre-installed
" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17414 $as_echo_n "checking where to
find the target cc...
" >&6; }
17415 if test "x
${build}" != "x
${host}" ; then
17416 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17417 # We already found the complete path
17418 ac_dir=`dirname $CC_FOR_TARGET`
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17420 $as_echo "pre-installed
in $ac_dir" >&6; }
17422 # Canadian cross, just use what we found
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17424 $as_echo "pre-installed
" >&6; }
17428 case " ${configdirs} " in
17433 if test $ok = yes; then
17434 # An in-tree tool is available and we can use it
17435 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17437 $as_echo "just compiled
" >&6; }
17438 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17439 # We already found the complete path
17440 ac_dir=`dirname $CC_FOR_TARGET`
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17442 $as_echo "pre-installed
in $ac_dir" >&6; }
17443 elif test "x
$target" = "x
$host"; then
17444 # We can use an host tool
17445 CC_FOR_TARGET='$(CC)'
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17447 $as_echo "host tool
" >&6; }
17449 # We need a cross tool
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17451 $as_echo "pre-installed
" >&6; }
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17456 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17457 if test "x
${build}" != "x
${host}" ; then
17458 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17459 # We already found the complete path
17460 ac_dir=`dirname $CXX_FOR_TARGET`
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17462 $as_echo "pre-installed
in $ac_dir" >&6; }
17464 # Canadian cross, just use what we found
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17466 $as_echo "pre-installed
" >&6; }
17470 case " ${configdirs} " in
17474 case ,${enable_languages}, in
17478 if test $ok = yes; then
17479 # An in-tree tool is available and we can use it
17480 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'
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17482 $as_echo "just compiled
" >&6; }
17483 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17484 # We already found the complete path
17485 ac_dir=`dirname $CXX_FOR_TARGET`
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17487 $as_echo "pre-installed
in $ac_dir" >&6; }
17488 elif test "x
$target" = "x
$host"; then
17489 # We can use an host tool
17490 CXX_FOR_TARGET='$(CXX)'
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17492 $as_echo "host tool
" >&6; }
17494 # We need a cross tool
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17496 $as_echo "pre-installed
" >&6; }
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17501 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17502 if test "x
${build}" != "x
${host}" ; then
17503 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17504 # We already found the complete path
17505 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17507 $as_echo "pre-installed
in $ac_dir" >&6; }
17509 # Canadian cross, just use what we found
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17511 $as_echo "pre-installed
" >&6; }
17515 case " ${configdirs} " in
17519 case ,${enable_languages}, in
17523 if test $ok = yes; then
17524 # An in-tree tool is available and we can use it
17525 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'
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17527 $as_echo "just compiled
" >&6; }
17528 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17532 $as_echo "pre-installed
in $ac_dir" >&6; }
17533 elif test "x
$target" = "x
$host"; then
17534 # We can use an host tool
17535 RAW_CXX_FOR_TARGET='$(CXX)'
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17537 $as_echo "host tool
" >&6; }
17539 # We need a cross tool
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17541 $as_echo "pre-installed
" >&6; }
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17546 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17547 if test "x
${build}" != "x
${host}" ; then
17548 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17549 # We already found the complete path
17550 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17552 $as_echo "pre-installed
in $ac_dir" >&6; }
17554 # Canadian cross, just use what we found
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17556 $as_echo "pre-installed
" >&6; }
17560 case " ${configdirs} " in
17565 if test $ok = yes; then
17566 # An in-tree tool is available and we can use it
17567 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17569 $as_echo "just compiled
" >&6; }
17570 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17571 # We already found the complete path
17572 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17574 $as_echo "pre-installed
in $ac_dir" >&6; }
17575 elif test "x
$target" = "x
$host"; then
17576 # We can use an host tool
17577 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17579 $as_echo "host tool
" >&6; }
17581 # We need a cross tool
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17583 $as_echo "pre-installed
" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17588 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17589 if test "x
${build}" != "x
${host}" ; then
17590 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17591 # We already found the complete path
17592 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17594 $as_echo "pre-installed
in $ac_dir" >&6; }
17596 # Canadian cross, just use what we found
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17598 $as_echo "pre-installed
" >&6; }
17601 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $DSYMUTIL_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 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
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 gcc
" >&5
17619 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17620 if test "x
${build}" != "x
${host}" ; then
17621 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17622 # We already found the complete path
17623 ac_dir=`dirname $GCC_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 GCC_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
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $GCC_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 GCC_FOR_TARGET='$()'
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 gfortran
" >&5
17661 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17662 if test "x
${build}" != "x
${host}" ; then
17663 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17664 # We already found the complete path
17665 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17687 $as_echo "just compiled
" >&6; }
17688 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo
" >&5
17706 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17707 if test "x
${build}" != "x
${host}" ; then
17708 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17709 # We already found the complete path
17710 ac_dir=`dirname $GOC_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 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17732 $as_echo "just compiled
" >&6; }
17733 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $GOC_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 GOC_FOR_TARGET='$(GOC)'
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 gdc
" >&5
17751 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17752 if test "x
${build}" != "x
${host}" ; then
17753 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17754 # We already found the complete path
17755 ac_dir=`dirname $GDC_FOR_TARGET`
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17757 $as_echo "pre-installed
in $ac_dir" >&6; }
17759 # Canadian cross, just use what we found
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17761 $as_echo "pre-installed
" >&6; }
17765 case " ${configdirs} " in
17769 case ,${enable_languages}, in
17773 if test $ok = yes; then
17774 # An in-tree tool is available and we can use it
17775 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17777 $as_echo "just compiled
" >&6; }
17778 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $GDC_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17782 $as_echo "pre-installed
in $ac_dir" >&6; }
17783 elif test "x
$target" = "x
$host"; then
17784 # We can use an host tool
17785 GDC_FOR_TARGET='$(GDC)'
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17787 $as_echo "host tool
" >&6; }
17789 # We need a cross tool
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17791 $as_echo "pre-installed
" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17796 $as_echo_n "checking where to
find the target ld...
" >&6; }
17797 if test "x
${build}" != "x
${host}" ; then
17798 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17799 # We already found the complete path
17800 ac_dir=`dirname $LD_FOR_TARGET`
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17802 $as_echo "pre-installed
in $ac_dir" >&6; }
17804 # Canadian cross, just use what we found
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17806 $as_echo "pre-installed
" >&6; }
17810 case " ${configdirs} " in
17815 if test $ok = yes; then
17816 # An in-tree tool is available and we can use it
17817 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17819 $as_echo "just compiled
" >&6; }
17820 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $LD_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17824 $as_echo "pre-installed
in $ac_dir" >&6; }
17825 elif test "x
$target" = "x
$host"; then
17826 # We can use an host tool
17827 LD_FOR_TARGET='$(LD)'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17829 $as_echo "host tool
" >&6; }
17831 # We need a cross tool
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17833 $as_echo "pre-installed
" >&6; }
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17838 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17839 if test "x
${build}" != "x
${host}" ; then
17840 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17841 # We already found the complete path
17842 ac_dir=`dirname $LIPO_FOR_TARGET`
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17844 $as_echo "pre-installed
in $ac_dir" >&6; }
17846 # Canadian cross, just use what we found
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17848 $as_echo "pre-installed
" >&6; }
17851 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $LIPO_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17855 $as_echo "pre-installed
in $ac_dir" >&6; }
17856 elif test "x
$target" = "x
$host"; then
17857 # We can use an host tool
17858 LIPO_FOR_TARGET='$(LIPO)'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17860 $as_echo "host tool
" >&6; }
17862 # We need a cross tool
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17864 $as_echo "pre-installed
" >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17869 $as_echo_n "checking where to
find the target nm...
" >&6; }
17870 if test "x
${build}" != "x
${host}" ; then
17871 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17872 # We already found the complete path
17873 ac_dir=`dirname $NM_FOR_TARGET`
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17875 $as_echo "pre-installed
in $ac_dir" >&6; }
17877 # Canadian cross, just use what we found
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17879 $as_echo "pre-installed
" >&6; }
17883 case " ${configdirs} " in
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17892 $as_echo "just compiled
" >&6; }
17893 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $NM_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 NM_FOR_TARGET='$(NM)'
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 objcopy
" >&5
17911 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17912 if test "x
${build}" != "x
${host}" ; then
17913 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $OBJCOPY_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
17930 if test $ok = yes; then
17931 # An in-tree tool is available and we can use it
17932 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17934 $as_echo "just compiled
" >&6; }
17935 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17936 # We already found the complete path
17937 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17939 $as_echo "pre-installed
in $ac_dir" >&6; }
17940 elif test "x
$target" = "x
$host"; then
17941 # We can use an host tool
17942 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17944 $as_echo "host tool
" >&6; }
17946 # We need a cross tool
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17948 $as_echo "pre-installed
" >&6; }
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17953 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17954 if test "x
${build}" != "x
${host}" ; then
17955 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17956 # We already found the complete path
17957 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17959 $as_echo "pre-installed
in $ac_dir" >&6; }
17961 # Canadian cross, just use what we found
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17963 $as_echo "pre-installed
" >&6; }
17967 case " ${configdirs} " in
17972 if test $ok = yes; then
17973 # An in-tree tool is available and we can use it
17974 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17976 $as_echo "just compiled
" >&6; }
17977 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17981 $as_echo "pre-installed
in $ac_dir" >&6; }
17982 elif test "x
$target" = "x
$host"; then
17983 # We can use an host tool
17984 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17986 $as_echo "host tool
" >&6; }
17988 # We need a cross tool
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17990 $as_echo "pre-installed
" >&6; }
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17995 $as_echo_n "checking where to
find the target otool...
" >&6; }
17996 if test "x
${build}" != "x
${host}" ; then
17997 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17998 # We already found the complete path
17999 ac_dir=`dirname $OTOOL_FOR_TARGET`
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18001 $as_echo "pre-installed
in $ac_dir" >&6; }
18003 # Canadian cross, just use what we found
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18005 $as_echo "pre-installed
" >&6; }
18008 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18009 # We already found the complete path
18010 ac_dir=`dirname $OTOOL_FOR_TARGET`
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18012 $as_echo "pre-installed
in $ac_dir" >&6; }
18013 elif test "x
$target" = "x
$host"; then
18014 # We can use an host tool
18015 OTOOL_FOR_TARGET='$(OTOOL)'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18017 $as_echo "host tool
" >&6; }
18019 # We need a cross tool
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18021 $as_echo "pre-installed
" >&6; }
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18026 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18027 if test "x
${build}" != "x
${host}" ; then
18028 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $RANLIB_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18032 $as_echo "pre-installed
in $ac_dir" >&6; }
18034 # Canadian cross, just use what we found
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18036 $as_echo "pre-installed
" >&6; }
18040 case " ${configdirs} " in
18045 if test $ok = yes; then
18046 # An in-tree tool is available and we can use it
18047 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18049 $as_echo "just compiled
" >&6; }
18050 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18051 # We already found the complete path
18052 ac_dir=`dirname $RANLIB_FOR_TARGET`
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18054 $as_echo "pre-installed
in $ac_dir" >&6; }
18055 elif test "x
$target" = "x
$host"; then
18056 # We can use an host tool
18057 RANLIB_FOR_TARGET='$(RANLIB)'
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18059 $as_echo "host tool
" >&6; }
18061 # We need a cross tool
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18063 $as_echo "pre-installed
" >&6; }
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18068 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18069 if test "x
${build}" != "x
${host}" ; then
18070 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18071 # We already found the complete path
18072 ac_dir=`dirname $READELF_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; }
18076 # Canadian cross, just use what we found
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18078 $as_echo "pre-installed
" >&6; }
18082 case " ${configdirs} " in
18087 if test $ok = yes; then
18088 # An in-tree tool is available and we can use it
18089 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18091 $as_echo "just compiled
" >&6; }
18092 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18093 # We already found the complete path
18094 ac_dir=`dirname $READELF_FOR_TARGET`
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18096 $as_echo "pre-installed
in $ac_dir" >&6; }
18097 elif test "x
$target" = "x
$host"; then
18098 # We can use an host tool
18099 READELF_FOR_TARGET='$(READELF)'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18101 $as_echo "host tool
" >&6; }
18103 # We need a cross tool
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18105 $as_echo "pre-installed
" >&6; }
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18110 $as_echo_n "checking where to
find the target strip...
" >&6; }
18111 if test "x
${build}" != "x
${host}" ; then
18112 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $STRIP_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18116 $as_echo "pre-installed
in $ac_dir" >&6; }
18118 # Canadian cross, just use what we found
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18120 $as_echo "pre-installed
" >&6; }
18124 case " ${configdirs} " in
18129 if test $ok = yes; then
18130 # An in-tree tool is available and we can use it
18131 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18133 $as_echo "just compiled
" >&6; }
18134 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18135 # We already found the complete path
18136 ac_dir=`dirname $STRIP_FOR_TARGET`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18138 $as_echo "pre-installed
in $ac_dir" >&6; }
18139 elif test "x
$target" = "x
$host"; then
18140 # We can use an host tool
18141 STRIP_FOR_TARGET='$(STRIP)'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18143 $as_echo "host tool
" >&6; }
18145 # We need a cross tool
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18147 $as_echo "pre-installed
" >&6; }
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18152 $as_echo_n "checking where to
find the target windres...
" >&6; }
18153 if test "x
${build}" != "x
${host}" ; then
18154 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $WINDRES_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18158 $as_echo "pre-installed
in $ac_dir" >&6; }
18160 # Canadian cross, just use what we found
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18162 $as_echo "pre-installed
" >&6; }
18166 case " ${configdirs} " in
18171 if test $ok = yes; then
18172 # An in-tree tool is available and we can use it
18173 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18175 $as_echo "just compiled
" >&6; }
18176 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $WINDRES_FOR_TARGET`
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18180 $as_echo "pre-installed
in $ac_dir" >&6; }
18181 elif test "x
$target" = "x
$host"; then
18182 # We can use an host tool
18183 WINDRES_FOR_TARGET='$(WINDRES)'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18185 $as_echo "host tool
" >&6; }
18187 # We need a cross tool
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18189 $as_echo "pre-installed
" >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18194 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18195 if test "x
${build}" != "x
${host}" ; then
18196 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18197 # We already found the complete path
18198 ac_dir=`dirname $WINDMC_FOR_TARGET`
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18200 $as_echo "pre-installed
in $ac_dir" >&6; }
18202 # Canadian cross, just use what we found
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18204 $as_echo "pre-installed
" >&6; }
18208 case " ${configdirs} " in
18213 if test $ok = yes; then
18214 # An in-tree tool is available and we can use it
18215 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18217 $as_echo "just compiled
" >&6; }
18218 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18219 # We already found the complete path
18220 ac_dir=`dirname $WINDMC_FOR_TARGET`
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18222 $as_echo "pre-installed
in $ac_dir" >&6; }
18223 elif test "x
$target" = "x
$host"; then
18224 # We can use an host tool
18225 WINDMC_FOR_TARGET='$(WINDMC)'
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18227 $as_echo "host tool
" >&6; }
18229 # We need a cross tool
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18231 $as_echo "pre-installed
" >&6; }
18239 # Certain tools may need extra flags.
18240 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18241 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18242 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18244 # When building target libraries, except in a Canadian cross, we use
18245 # the same toolchain as the compiler we just built.
18246 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18247 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18248 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18249 if test $host = $build; then
18250 case " $configdirs " in
18252 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18253 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18254 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18264 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18265 # Check whether --enable-maintainer-mode was given.
18266 if test "${enable_maintainer_mode+set}" = set; then :
18267 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18269 USE_MAINTAINER_MODE=no
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18273 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18276 if test "$USE_MAINTAINER_MODE" = yes; then
18277 MAINTAINER_MODE_TRUE=
18278 MAINTAINER_MODE_FALSE='#'
18280 MAINTAINER_MODE_TRUE='#'
18281 MAINTAINER_MODE_FALSE=
18283 MAINT=$MAINTAINER_MODE_TRUE
18285 # ---------------------
18286 # GCC bootstrap support
18287 # ---------------------
18289 # Stage specific cflags for build.
18294 yes) stage1_cflags="-g -Wa,-J" ;;
18295 *) stage1_cflags="-g -J" ;;
18301 # Enable --enable-checking in stage1 of the compiler.
18302 # Check whether --enable-stage1-checking was given.
18303 if test "${enable_stage1_checking+set}" = set; then :
18304 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18306 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18307 # For --disable-checking or implicit --enable-checking=release, avoid
18308 # setting --enable-checking=gc in the default stage1 checking for LTO
18309 # bootstraps. See PR62077.
18310 case $BUILD_CONFIG in
18312 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18314 stage1_checking=--enable-checking=yes,types;;
18316 if test "x
$enable_checking" = x && \
18317 test -d ${srcdir}/gcc && \
18318 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18319 stage1_checking=--enable-checking=yes,types,extra
18322 stage1_checking=--enable-checking=$enable_checking,types
18328 # Enable -Werror in bootstrap stage2 and later.
18329 # Check whether --enable-werror was given.
18330 if test "${enable_werror+set}" = set; then :
18331 enableval=$enable_werror;
18332 case ${enable_werror} in
18333 yes) stage2_werror_flag="--enable-werror-always" ;;
18334 *) stage2_werror_flag="" ;;
18339 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18340 case $BUILD_CONFIG in
18342 stage2_werror_flag="--enable-werror-always" ;;
18344 stage2_werror_flag="--enable-werror-always" ;;
18353 # Specify what files to not compare during bootstrap.
18355 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18357 hppa*64*-*-hpux*) ;;
18358 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18359 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18363 ac_config_files="$ac_config_files Makefile
"
18365 cat >confcache <<\_ACEOF
18366 # This file is a shell script that caches the results of configure
18367 # tests run on this system so they can be shared between configure
18368 # scripts and configure runs, see configure's option --config-cache.
18369 # It is not useful on other systems. If it contains results you don't
18370 # want to keep, you may remove or edit it.
18372 # config.status only pays attention to the cache file if you give it
18373 # the --recheck option to rerun configure.
18375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18377 # following values.
18381 # The following way of writing the cache mishandles newlines in values,
18382 # but we know of no workaround that is simple, portable, and efficient.
18383 # So, we kill variables containing newlines.
18384 # Ultrix sh set writes to stderr and can't be redirected directly,
18385 # and sets the high bit in the cache file unless we assign to the vars.
18387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18388 eval ac_val=\$$ac_var
18392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18393 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18396 _ | IFS | as_nl) ;; #(
18397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18398 *) { eval $ac_var=; unset $ac_var;} ;;
18404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18405 *${as_nl}ac_space=\ *)
18406 # `set' does not quote correctly, so add quotes: double-quote
18407 # substitution turns \\\\ into \\, and sed turns \\ into \.
18410 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18413 # `set' quotes correctly as required by POSIX, so do not add quotes.
18414 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18428 if test -w "$cache_file"; then
18429 if test "x
$cache_file" != "x
/dev
/null
"; then
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18431 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18432 if test ! -f "$cache_file" || test -h "$cache_file"; then
18433 cat confcache >"$cache_file"
18435 case $cache_file in #(
18437 mv -f confcache "$cache_file"$$ &&
18438 mv -f "$cache_file"$$ "$cache_file" ;; #(
18440 mv -f confcache "$cache_file" ;;
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18446 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18451 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18452 # Let make expand exec_prefix.
18453 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18455 # Transform confdefs.h into DEFS.
18456 # Protect against shell expansion while executing Makefile rules.
18457 # Protect against Makefile macro expansion.
18459 # If the first sed substitution is executed (which looks for macros that
18460 # take arguments), then branch to the quote section. Otherwise,
18461 # look for a macro that doesn't take arguments.
18471 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18473 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18477 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18490 DEFS=`sed -n "$ac_script" confdefs.h`
18496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18497 # 1. Remove the extension, and $U if already installed.
18498 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18499 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18501 # will be set to the directory where LIBOBJS objects are built.
18502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18505 LIBOBJS=$ac_libobjs
18507 LTLIBOBJS=$ac_ltlibobjs
18511 : "${CONFIG_STATUS=./config.status}"
18513 ac_clean_files_save=$ac_clean_files
18514 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18516 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18518 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18520 # Generated by $as_me.
18521 # Run this file to recreate the current configuration.
18522 # Compiler output produced by configure, useful for debugging
18523 # configure, is in config.log if it exists.
18526 ac_cs_recheck=false
18529 SHELL=\${CONFIG_SHELL-$SHELL}
18532 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18533 ## -------------------- ##
18534 ## M4sh Initialization. ##
18535 ## -------------------- ##
18537 # Be more Bourne compatible
18538 DUALCASE=1; export DUALCASE # for MKS sh
18539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18543 # is contrary to our usage. Disable this feature.
18544 alias -g '${1+"$@"}'='"$@"'
18545 setopt NO_GLOB_SUBST
18547 case `(set -o) 2>/dev/null` in #(
18559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18561 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18562 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18563 # Prefer a ksh shell builtin over an external printf program on Solaris,
18564 # but without wasting forks for bash or zsh.
18565 if test -z "$BASH_VERSION$ZSH_VERSION" \
18566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18567 as_echo
='print -r --'
18568 as_echo_n
='print -rn --'
18569 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18570 as_echo
='printf %s\n'
18571 as_echo_n
='printf %s'
18573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18574 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18575 as_echo_n
='/usr/ucb/echo -n'
18577 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18578 as_echo_n_body
='eval
18582 expr "X$arg" : "X\\(.*\\)$as_nl";
18583 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18587 export as_echo_n_body
18588 as_echo_n
='sh -c $as_echo_n_body as_echo'
18590 export as_echo_body
18591 as_echo
='sh -c $as_echo_body as_echo'
18594 # The user is always right.
18595 if test "${PATH_SEPARATOR+set}" != set; then
18597 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18598 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18605 # We need space, tab and new line, in precisely that order. Quoting is
18606 # there to prevent editors from complaining about space-tab.
18607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18608 # splitting by setting IFS to empty value.)
18611 # Find who we are. Look in the path if we contain no directory separator.
18614 *[\\/]* ) as_myself
=$0 ;;
18615 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18616 for as_dir
in $PATH
18619 test -z "$as_dir" && as_dir
=.
18620 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18626 # We did not find ourselves, most probably we were run as `sh COMMAND'
18627 # in which case we are not to be found in the path.
18628 if test "x$as_myself" = x
; then
18631 if test ! -f "$as_myself"; then
18632 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18636 # Unset variables that we do not need and which cause bugs (e.g. in
18637 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18638 # suppresses any "Segmentation fault" message there. '((' could
18639 # trigger a bug in pdksh 5.2.14.
18640 for as_var
in BASH_ENV ENV MAIL MAILPATH
18641 do eval test x\
${$as_var+set} = xset \
18642 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18655 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18658 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18659 # ----------------------------------------
18660 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18661 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18662 # script with STATUS, using 1 if that was 0.
18665 as_status
=$1; test $as_status -eq 0 && as_status
=1
18667 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18668 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18670 $as_echo "$as_me: error: $2" >&2
18671 as_fn_exit
$as_status
18675 # as_fn_set_status STATUS
18676 # -----------------------
18677 # Set $? to STATUS, without forking.
18678 as_fn_set_status
()
18681 } # as_fn_set_status
18683 # as_fn_exit STATUS
18684 # -----------------
18685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18689 as_fn_set_status
$1
18695 # Portably unset VAR.
18698 { eval $1=; unset $1;}
18700 as_unset
=as_fn_unset
18701 # as_fn_append VAR VALUE
18702 # ----------------------
18703 # Append the text in VALUE to the end of the definition contained in VAR. Take
18704 # advantage of any shell optimizations that allow amortized linear growth over
18705 # repeated appends, instead of the typical quadratic growth present in naive
18707 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18708 eval 'as_fn_append ()
18719 # as_fn_arith ARG...
18720 # ------------------
18721 # Perform arithmetic evaluation on the ARGs, and store the result in the
18722 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18723 # must be portable across $(()) and expr.
18724 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18725 eval 'as_fn_arith ()
18732 as_val
=`expr "$@" || test $? -eq 1`
18737 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18738 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18744 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18745 as_basename
=basename
18750 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18756 as_me
=`$as_basename -- "$0" ||
18757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18758 X"$0" : 'X\(//\)$' \| \
18759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18761 sed '/^.*\/\([^/][^/]*\)\/*$/{
18775 # Avoid depending upon Character Ranges.
18776 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18777 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18778 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18779 as_cr_digits
='0123456789'
18780 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18782 ECHO_C
= ECHO_N
= ECHO_T
=
18783 case `echo -n x` in #(((((
18785 case `echo 'xy\c'` in
18786 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18788 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18795 rm -f conf$$ conf$$.exe conf$$.
file
18796 if test -d conf$$.dir
; then
18797 rm -f conf$$.dir
/conf$$.
file
18800 mkdir conf$$.dir
2>/dev
/null
18802 if (echo >conf$$.
file) 2>/dev
/null
; then
18803 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18805 # ... but there are two gotchas:
18806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18808 # In both cases, we have to default to `cp -pR'.
18809 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18811 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18819 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18820 rmdir conf$$.dir
2>/dev
/null
18825 # Create "$as_dir" as a directory, including parents if necessary.
18830 -*) as_dir
=.
/$as_dir;;
18832 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18836 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18837 *) as_qdir
=$as_dir;;
18839 as_dirs
="'$as_qdir' $as_dirs"
18840 as_dir
=`$as_dirname -- "$as_dir" ||
18841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18842 X"$as_dir" : 'X\(//\)[^/]' \| \
18843 X"$as_dir" : 'X\(//\)$' \| \
18844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18845 $as_echo X"$as_dir" |
18846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18850 /^X\(\/\/\)[^/].*/{
18863 test -d "$as_dir" && break
18865 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18866 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18870 if mkdir
-p .
2>/dev
/null
; then
18871 as_mkdir_p
='mkdir -p "$as_dir"'
18873 test -d .
/-p && rmdir .
/-p
18878 # as_fn_executable_p FILE
18879 # -----------------------
18880 # Test if FILE is an executable regular file.
18881 as_fn_executable_p
()
18883 test -f "$1" && test -x "$1"
18884 } # as_fn_executable_p
18885 as_test_x
='test -x'
18886 as_executable_p
=as_fn_executable_p
18888 # Sed expression to map a string onto a valid CPP name.
18889 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18891 # Sed expression to map a string onto a valid variable name.
18892 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18896 ## ----------------------------------- ##
18897 ## Main body of $CONFIG_STATUS script. ##
18898 ## ----------------------------------- ##
18900 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18903 # Save the log message, to keep $0 and so on meaningful, and to
18904 # report actual input values of CONFIG_FILES etc. instead of their
18905 # values after options handling.
18907 This file was extended by $as_me, which was
18908 generated by GNU Autoconf 2.69. Invocation command line was
18910 CONFIG_FILES = $CONFIG_FILES
18911 CONFIG_HEADERS = $CONFIG_HEADERS
18912 CONFIG_LINKS = $CONFIG_LINKS
18913 CONFIG_COMMANDS = $CONFIG_COMMANDS
18916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18921 case $ac_config_files in *"
18922 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18928 # Files that config.status was made for.
18929 config_files="$ac_config_files"
18933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18935 \`$as_me' instantiates files and other configuration actions
18936 from templates according to the current configuration. Unless the files
18937 and actions are specified as TAGs, all are instantiated by default.
18939 Usage: $0 [OPTION]... [TAG]...
18941 -h, --help print this help, then exit
18942 -V, --version print version number and configuration settings, then exit
18943 --config print configuration, then exit
18944 -q, --quiet, --silent
18945 do not print progress messages
18946 -d, --debug don't remove temporary files
18947 --recheck update $as_me by reconfiguring in the same conditions
18948 --file=FILE[:TEMPLATE]
18949 instantiate the configuration file FILE
18951 Configuration files:
18954 Report bugs to the package provider."
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18961 configured by $0, generated by GNU Autoconf 2.69,
18962 with options \\"\$ac_cs_config\\"
18964 Copyright (C) 2012 Free Software Foundation, Inc.
18965 This config.status script is free software; the Free Software Foundation
18966 gives unlimited permission to copy, distribute and modify it."
18972 test -n "\$AWK" || AWK=awk
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18976 # The default lists apply if the user does not specify any file.
18982 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18983 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18987 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18999 # Handling of the options.
19000 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19002 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19003 $as_echo "$ac_cs_version"; exit ;;
19004 --config |
--confi |
--conf |
--con |
--co |
--c )
19005 $as_echo "$ac_cs_config"; exit ;;
19006 --debug |
--debu |
--deb |
--de |
--d |
-d )
19008 --file |
--fil |
--fi |
--f )
19011 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19012 '') as_fn_error $?
"missing file argument" ;;
19014 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19015 ac_need_defaults
=false
;;
19016 --he |
--h |
--help |
--hel |
-h )
19017 $as_echo "$ac_cs_usage"; exit ;;
19018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19019 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19022 # This is an error.
19023 -*) as_fn_error $?
"unrecognized option: \`$1'
19024 Try \`$0 --help' for more information." ;;
19026 *) as_fn_append ac_config_targets
" $1"
19027 ac_need_defaults
=false
;;
19033 ac_configure_extra_args
=
19035 if $ac_cs_silent; then
19037 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19042 if \$ac_cs_recheck; then
19043 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19046 CONFIG_SHELL='$SHELL'
19047 export CONFIG_SHELL
19052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19057 ## Running $as_me. ##
19063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19067 extrasub_build="$extrasub_build"
19068 extrasub_host="$extrasub_host"
19069 extrasub_target="$extrasub_target"
19073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19075 # Handling of arguments.
19076 for ac_config_target
in $ac_config_targets
19078 case $ac_config_target in
19079 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19081 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19086 # If the user did not use the arguments to specify the items to instantiate,
19087 # then the envvar interface is used. Set only those that are not.
19088 # We use the long form for the default assignment because of an extremely
19089 # bizarre bug on SunOS 4.1.3.
19090 if $ac_need_defaults; then
19091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19094 # Have a temporary directory for convenience. Make it in the build tree
19095 # simply because there is no reason against having it here, and in addition,
19096 # creating and moving files from /tmp can sometimes cause problems.
19097 # Hook for its removal unless debugging.
19098 # Note that there is a small window in which the directory will not be cleaned:
19099 # after its creation but before its name has been assigned to `$tmp'.
19103 trap 'exit_status=$?
19104 : "${ac_tmp:=$tmp}"
19105 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19107 trap 'as_fn_exit 1' 1 2 13 15
19109 # Create a (secure) tmp directory for tmp files.
19112 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19116 tmp
=.
/conf$$
-$RANDOM
19117 (umask 077 && mkdir
"$tmp")
19118 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19121 # Set up the scripts for CONFIG_FILES section.
19122 # No need to generate them if there are no CONFIG_FILES.
19123 # This happens for instance with `./config.status config.h'.
19124 if test -n "$CONFIG_FILES"; then
19126 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19127 ac_cs_awk_getline
=:
19128 ac_cs_awk_pipe_init
=
19129 ac_cs_awk_read_file
='
19130 while ((getline aline < (F[key])) > 0)
19133 ac_cs_awk_pipe_fini
=
19135 ac_cs_awk_getline
=false
19136 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19137 ac_cs_awk_read_file
='
19139 print "cat " F[key] " &&"
19140 '$ac_cs_awk_pipe_init
19141 # The final `:' finishes the AND list.
19142 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19144 ac_cr
=`echo X | tr X '\015'`
19145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19146 # But we know of no other shell where ac_cr would be empty at this
19147 # point, so we can use a bashism as a fallback.
19148 if test "x$ac_cr" = x
; then
19149 eval ac_cr
=\$
\'\\r
\'
19151 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19155 ac_cs_awk_cr
=$ac_cr
19158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19161 # Create commands to substitute file output variables.
19163 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19164 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19165 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19168 } >conf$
$files.sh
&&
19169 . .
/conf$
$files.sh ||
19170 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19171 rm -f conf$
$files.sh
19174 echo "cat >conf$$subs.awk <<_ACEOF" &&
19175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19177 } >conf$$subs.sh ||
19178 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19181 for ac_last_try in false false false false false :; do
19182 . ./conf$$subs.sh ||
19183 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19185 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19186 if test $ac_delim_n = $ac_delim_num; then
19188 elif $ac_last_try; then
19189 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19191 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19194 rm -f conf$$subs.sh
19196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19197 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19201 s/^/S["/; s
/!.
*/"]=/
19211 s/\(.\{148\}\)..*/\1/
19213 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19218 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19225 s/\(.\{148\}\)..*/\1/
19227 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19231 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19236 ' <conf$$subs.awk | sed '
19241 ' >>$CONFIG_STATUS || ac_write_fail=1
19242 rm -f conf$$subs.awk
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19246 for (key in S) S_is_set[key] = 1
19248 \$ac_cs_awk_pipe_init
19252 nfields = split(line, field, "@
")
19254 len = length(field[1])
19255 for (i = 2; i < nfields; i++) {
19257 keylen = length(key)
19258 if (S_is_set[key]) {
19260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19261 len += length(value) + length(field[++i])
19266 if (nfields == 3 && !substed) {
19268 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19269 \$ac_cs_awk_read_file
19275 \$ac_cs_awk_pipe_fini
19278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19279 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19280 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19283 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19284 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19287 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19288 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19289 # trailing colons and then remove the whole line if VPATH becomes empty
19290 # (actually we leave an empty line to preserve line numbers).
19291 if test "x
$srcdir" = x.; then
19292 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19311 fi # test -n "$CONFIG_FILES"
19314 eval set X " :F
$CONFIG_FILES "
19319 :[FHLC]) ac_mode=$ac_tag; continue;;
19321 case $ac_mode$ac_tag in
19323 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19324 :[FH]-) ac_tag=-:-;;
19325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19342 -) ac_f="$ac_tmp/stdin";;
19343 *) # Look for the file first in the build tree, then in the source tree
19344 # (if the path is not absolute). The absolute path cannot be DOS-style,
19345 # because $ac_f cannot contain `:'.
19349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19351 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19354 as_fn_append ac_file_inputs " '$ac_f'"
19357 # Let's still pretend it is `configure' which instantiates (i.e., don't
19358 # use $as_me), people would be surprised to read:
19359 # /* config.h. Generated by config.status. */
19360 configure_input='Generated from '`
19361 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19363 if test x"$ac_file" != x-; then
19364 configure_input="$ac_file.
$configure_input"
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19366 $as_echo "$as_me: creating
$ac_file" >&6;}
19368 # Neutralize special characters interpreted by sed in replacement strings.
19369 case $configure_input in #(
19370 *\&* | *\|* | *\\* )
19371 ac_sed_conf_input=`$as_echo "$configure_input" |
19372 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19373 *) ac_sed_conf_input=$configure_input;;
19377 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19378 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19383 ac_dir=`$as_dirname -- "$ac_file" ||
19384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19385 X"$ac_file" : 'X\(//\)[^/]' \| \
19386 X"$ac_file" : 'X\(//\)$' \| \
19387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19388 $as_echo X"$ac_file" |
19389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19393 /^X\(\/\/\)[^/].*/{
19406 as_dir="$ac_dir"; as_fn_mkdir_p
19410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19413 # A "..
" for each directory in $ac_dir_suffix.
19414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19415 case $ac_top_builddir_sub in
19416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19420 ac_abs_top_builddir=$ac_pwd
19421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19422 # for backward compatibility:
19423 ac_top_builddir=$ac_top_build_prefix
19426 .) # We are building in place.
19428 ac_top_srcdir=$ac_top_builddir_sub
19429 ac_abs_top_srcdir=$ac_pwd ;;
19430 [\\/]* | ?:[\\/]* ) # Absolute name.
19431 ac_srcdir=$srcdir$ac_dir_suffix;
19432 ac_top_srcdir=$srcdir
19433 ac_abs_top_srcdir=$srcdir ;;
19434 *) # Relative name.
19435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19436 ac_top_srcdir=$ac_top_build_prefix$srcdir
19437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19455 # If the template does not know about datarootdir, expand it.
19456 # FIXME: This hack should be removed a few years after 2.60.
19457 ac_datarootdir_hack=; ac_datarootdir_seen=
19468 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19469 *datarootdir*) ac_datarootdir_seen=yes;;
19470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19472 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 ac_datarootdir_hack='
19476 s&@datadir@&$datadir&g
19477 s&@docdir@&$docdir&g
19478 s&@infodir@&$infodir&g
19479 s&@localedir@&$localedir&g
19480 s&@mandir@&$mandir&g
19481 s&\\\${datarootdir}&$datarootdir&g' ;;
19485 # Neutralize VPATH when `$srcdir' = `.'.
19486 # Shell code in configure.ac might set extrasub.
19487 # FIXME: do we really want to maintain this feature?
19488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19489 ac_sed_extra="$ac_vpsub
19492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19494 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19495 s|@configure_input@|
$ac_sed_conf_input|
;t t
19496 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19497 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19498 s
&@srcdir@
&$ac_srcdir&;t t
19499 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19500 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19501 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19502 s
&@builddir@
&$ac_builddir&;t t
19503 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19504 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19505 s
&@INSTALL@
&$ac_INSTALL&;t t
19506 $ac_datarootdir_hack
19508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19509 if $ac_cs_awk_getline; then
19510 $AWK -f "$ac_tmp/subs.
awk"
19512 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19514 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19519 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19521 which seems to be undefined. Please make sure it is defined" >&5
19522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19523 which seems to be undefined. Please make sure it is defined" >&2;}
19525 rm -f "$ac_tmp/stdin"
19527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19538 case $ac_file$ac_mode in
19539 "Makefile":F) sed "$extrasub_build" Makefile |
19540 sed "$extrasub_host" |
19541 sed "$extrasub_target" > mf$$
19542 mv -f mf$$ Makefile ;;
19550 ac_clean_files=$ac_clean_files_save
19552 test $ac_write_fail = 0 ||
19553 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19556 # configure is writing to config.log, and then calls config.status.
19557 # config.status does its own redirection, appending to config.log.
19558 # Unfortunately, on DOS this fails, as config.log is still kept open
19559 # by configure, so config.status won't be able to
write to it
; its
19560 # output is simply discarded. So we exec the FD to /dev/null,
19561 # effectively closing config.log, so it can be properly (re)opened and
19562 # appended to by config.status. When coming back to configure, we
19563 # need to make the FD available again.
19564 if test "$no_create" != yes; then
19566 ac_config_status_args
=
19567 test "$silent" = yes &&
19568 ac_config_status_args
="$ac_config_status_args --quiet"
19570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19573 # would make configure fail if this is the last instruction.
19574 $ac_cs_success || as_fn_exit
1
19576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}