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
675 DEBUG_PREFIX_CFLAGS_FOR_TARGET
676 SYSROOT_CFLAGS_FOR_TARGET
678 extra_host_zlib_configure_flags
679 extra_host_libiberty_configure_flags
682 extra_linker_plugin_flags
683 extra_linker_plugin_configure_flags
690 extra_isl_gmp_configure_flags
691 extra_mpc_mpfr_configure_flags
692 extra_mpc_gmp_configure_flags
693 extra_mpfr_configure_flags
712 extra_liboffloadmic_configure_flags
739 TOPLEVEL_CONFIGURE_ARGUMENTS
767 program_transform_name
778 ac_subst_files
='serialization_dependencies
784 enable_option_checking
787 enable_as_accelerator_for
788 enable_offload_targets
792 enable_compressed_debug_sections
794 enable_libquadmath_support
813 with_static_standard_libraries
820 enable_isl_version_check
822 enable_linker_plugin_configure_flags
823 enable_linker_plugin_flags
825 enable_stage1_languages
828 with_target_bdw_gc_include
829 with_target_bdw_gc_lib
830 with_gcc_major_version_only
832 with_debug_prefix_map
835 enable_serial_configure
836 with_build_time_tools
837 enable_maintainer_mode
838 enable_stage1_checking
841 ac_precious_vars
='build_alias
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
961 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
964 -build |
--build |
--buil |
--bui |
--bu)
965 ac_prev
=build_alias
;;
966 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
967 build_alias
=$ac_optarg ;;
969 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
970 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
971 ac_prev
=cache_file
;;
972 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
973 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
974 cache_file
=$ac_optarg ;;
977 cache_file
=config.cache
;;
979 -datadir |
--datadir |
--datadi |
--datad)
981 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
982 datadir
=$ac_optarg ;;
984 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
985 |
--dataroo |
--dataro |
--datar)
986 ac_prev
=datarootdir
;;
987 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
988 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
989 datarootdir
=$ac_optarg ;;
991 -disable-* |
--disable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error $?
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=\
$ac_optarg ;;
1033 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1034 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1035 |
--exec |
--exe |
--ex)
1036 ac_prev
=exec_prefix
;;
1037 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1038 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1039 |
--exec=* |
--exe=* |
--ex=*)
1040 exec_prefix
=$ac_optarg ;;
1042 -gas |
--gas |
--ga |
--g)
1043 # Obsolete; use --with-gas.
1046 -help |
--help |
--hel |
--he |
-h)
1047 ac_init_help
=long
;;
1048 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1049 ac_init_help
=recursive
;;
1050 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1051 ac_init_help
=short
;;
1053 -host |
--host |
--hos |
--ho)
1054 ac_prev
=host_alias
;;
1055 -host=* |
--host=* |
--hos=* |
--ho=*)
1056 host_alias
=$ac_optarg ;;
1058 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1060 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1062 htmldir
=$ac_optarg ;;
1064 -includedir |
--includedir |
--includedi |
--included |
--include \
1065 |
--includ |
--inclu |
--incl |
--inc)
1066 ac_prev
=includedir
;;
1067 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1068 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1069 includedir
=$ac_optarg ;;
1071 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1073 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1074 infodir
=$ac_optarg ;;
1076 -libdir |
--libdir |
--libdi |
--libd)
1078 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1079 libdir
=$ac_optarg ;;
1081 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1082 |
--libexe |
--libex |
--libe)
1083 ac_prev
=libexecdir
;;
1084 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1085 |
--libexe=* |
--libex=* |
--libe=*)
1086 libexecdir
=$ac_optarg ;;
1088 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1089 ac_prev
=localedir
;;
1090 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1091 localedir
=$ac_optarg ;;
1093 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1094 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1095 ac_prev
=localstatedir
;;
1096 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1097 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1098 localstatedir
=$ac_optarg ;;
1100 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1102 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1103 mandir
=$ac_optarg ;;
1105 -nfp |
--nfp |
--nf)
1106 # Obsolete; use --without-fp.
1109 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1110 |
--no-cr |
--no-c |
-n)
1113 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1114 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1117 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1118 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1119 |
--oldin |
--oldi |
--old |
--ol |
--o)
1120 ac_prev
=oldincludedir
;;
1121 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1122 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1123 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1124 oldincludedir
=$ac_optarg ;;
1126 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1128 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1129 prefix
=$ac_optarg ;;
1131 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1132 |
--program-pre |
--program-pr |
--program-p)
1133 ac_prev
=program_prefix
;;
1134 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1135 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1136 program_prefix
=$ac_optarg ;;
1138 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1139 |
--program-suf |
--program-su |
--program-s)
1140 ac_prev
=program_suffix
;;
1141 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1142 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1143 program_suffix
=$ac_optarg ;;
1145 -program-transform-name |
--program-transform-name \
1146 |
--program-transform-nam |
--program-transform-na \
1147 |
--program-transform-n |
--program-transform- \
1148 |
--program-transform |
--program-transfor \
1149 |
--program-transfo |
--program-transf \
1150 |
--program-trans |
--program-tran \
1151 |
--progr-tra |
--program-tr |
--program-t)
1152 ac_prev
=program_transform_name
;;
1153 -program-transform-name=* |
--program-transform-name=* \
1154 |
--program-transform-nam=* |
--program-transform-na=* \
1155 |
--program-transform-n=* |
--program-transform-=* \
1156 |
--program-transform=* |
--program-transfor=* \
1157 |
--program-transfo=* |
--program-transf=* \
1158 |
--program-trans=* |
--program-tran=* \
1159 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1160 program_transform_name
=$ac_optarg ;;
1162 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1164 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1165 pdfdir
=$ac_optarg ;;
1167 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1169 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1173 |
-silent |
--silent |
--silen |
--sile |
--sil)
1176 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1178 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1180 sbindir
=$ac_optarg ;;
1182 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1183 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1184 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1186 ac_prev
=sharedstatedir
;;
1187 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1188 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1189 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1191 sharedstatedir
=$ac_optarg ;;
1193 -site |
--site |
--sit)
1195 -site=* |
--site=* |
--sit=*)
1198 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1200 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1201 srcdir
=$ac_optarg ;;
1203 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1204 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1205 ac_prev
=sysconfdir
;;
1206 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1207 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1208 sysconfdir
=$ac_optarg ;;
1210 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1211 ac_prev
=target_alias
;;
1212 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1213 target_alias
=$ac_optarg ;;
1215 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1218 -version |
--version |
--versio |
--versi |
--vers |
-V)
1219 ac_init_version
=: ;;
1222 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1225 as_fn_error $?
"invalid package name: $ac_useropt"
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=\
$ac_optarg ;;
1237 -without-* |
--without-*)
1238 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=no
;;
1254 # Obsolete; use --with-x.
1257 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1258 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1259 ac_prev
=x_includes
;;
1260 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1261 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1262 x_includes
=$ac_optarg ;;
1264 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1265 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1266 ac_prev
=x_libraries
;;
1267 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1268 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1269 x_libraries
=$ac_optarg ;;
1271 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information"
1276 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1280 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1282 eval $ac_envvar=\
$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 if test -n "$ac_prev"; then
1297 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $?
"missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1304 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 # Check all directory arguments for consistency.
1310 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val
=\$
$ac_var
1316 # Remove trailing slashes.
1319 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\
$ac_val;;
1322 # Be sure to have absolute directory names.
1324 [\\/$
]* | ?
:[\\/]* ) continue;;
1325 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1327 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target
=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x
; then
1339 if test "x$build_alias" = x
; then
1340 cross_compiling
=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $?
"working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $?
"pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted
=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir
=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1392 ac_srcdir_defaulted
=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1396 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 as_fn_error $?
"path to source, $srcdir, contains spaces"
1417 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419 for ac_var
in $ac_precious_vars; do
1420 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1422 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures this package to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking ...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1498 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1502 if test -n "$ac_init_help"; then
1507 --disable-option-checking ignore unrecognized
--enable/--with options
1508 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1509 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1510 --enable-as-accelerator-for=ARG
1511 build as offload target compiler. Specify offload
1513 --enable-offload-targets=LIST
1514 enable offloading to devices from comma-separated
1515 LIST of TARGET
[=DIR
]. Use optional path to
find
1516 offload target compiler during the build
1517 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1518 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1519 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1520 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1521 Enable compressed debug sections
for gas
, gold or ld
1523 --disable-libquadmath do not build libquadmath directory
1524 --disable-libquadmath-support
1525 disable libquadmath support
for Fortran
1526 --enable-libada build libada directory
1527 --enable-libssp build libssp directory
1528 --disable-libstdcxx do not build libstdc
++-v3 directory
1529 --enable-liboffloadmic=ARG
1530 build liboffloadmic
[ARG
={no
,host,target
}]
1531 --enable-bootstrap enable bootstrapping
[yes if native build
]
1532 --enable-pgo-build[=lto
]
1533 enable the PGO build
1534 --disable-isl-version-check
1535 disable check
for isl version
1536 --enable-lto enable link
time optimization support
1537 --enable-linker-plugin-configure-flags=FLAGS
1538 additional flags
for configuring linker plugins
1540 --enable-linker-plugin-flags=FLAGS
1541 additional flags
for configuring and building linker
1543 --enable-host-shared build
host code as shared libraries
1544 --enable-stage1-languages[=all
]
1545 choose additional languages to build during stage1.
1546 Mostly useful
for compiler development
1547 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1549 --enable-vtable-verify Enable vtable verification feature
1550 --enable-serial-[{host,target,build}-]configure
1551 force sequential configuration of sub-packages for
1552 the host, target or build machine, or all
1554 --enable-maintainer-mode
1555 enable make rules and dependencies not useful (and
1556 sometimes confusing) to the casual installer
1557 --enable-stage1-checking[=all]
1558 choose additional checking for stage1 of the
1560 --enable-werror enable -Werror in bootstrap stage2 and later
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-build-libsubdir=DIR Directory where to find libraries for build system
1566 --with-system-zlib use installed libz
1567 --with-mpc=PATH specify prefix directory for installed MPC package.
1568 Equivalent to --with-mpc-include=PATH/include plus
1569 --with-mpc-lib=PATH/lib
1570 --with-mpc-include=PATH specify directory for installed MPC include files
1571 --with-mpc-lib=PATH specify directory for the installed MPC library
1572 --with-mpfr-dir=PATH this option has been REMOVED
1573 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1574 Equivalent to --with-mpfr-include=PATH/include plus
1575 --with-mpfr-lib=PATH/lib
1576 --with-mpfr-include=PATH
1577 specify directory for installed MPFR include files
1578 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1579 --with-gmp-dir=PATH this option has been REMOVED
1580 --with-gmp=PATH specify prefix directory for the installed GMP
1581 package. Equivalent to
1582 --with-gmp-include=PATH/include plus
1583 --with-gmp-lib=PATH/lib
1584 --with-gmp-include=PATH specify directory for installed GMP include files
1585 --with-gmp-lib=PATH specify directory for the installed GMP library
1586 --with-stage1-libs=LIBS libraries for stage1
1587 --with-static-standard-libraries
1588 use -static-libstdc++ and -static-libgcc
1590 --with-stage1-ldflags=FLAGS
1591 linker flags for stage1
1592 --with-boot-libs=LIBS libraries for stage2 and later
1593 --with-boot-ldflags=FLAGS
1594 linker flags for stage2 and later
1595 --with-isl=PATH Specify prefix directory for the installed isl
1596 package. Equivalent to
1597 --with-isl-include=PATH/include plus
1598 --with-isl-lib=PATH/lib
1599 --with-isl-include=PATH Specify directory for installed isl include files
1600 --with-isl-lib=PATH Specify the directory for the installed isl library
1601 --with-target-bdw-gc=PATHLIST
1602 specify prefix directory for installed bdw-gc
1603 package. Equivalent to
1604 --with-target-bdw-gc-include=PATH/include plus
1605 --with-target-bdw-gc-lib=PATH/lib
1606 --with-target-bdw-gc-include=PATHLIST
1607 specify directories for installed bdw-gc include
1609 --with-target-bdw-gc-lib=PATHLIST
1610 specify directories for installed bdw-gc library
1611 --with-gcc-major-version-only
1612 use only GCC major number in filesystem paths
1613 --with-build-sysroot=SYSROOT
1614 use sysroot as the system root during the build
1615 --with-debug-prefix-map='A
=B C
=D ...
'
1616 map A to B, C to D ... in debug information
1617 --with-build-config='NAME NAME2...
'
1618 use config/NAME.mk build configuration
1619 --with-build-time-tools=PATH
1620 use given path to find target tools during the build
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1633 additional configure arguments for build directories
1635 additional configure arguments for host directories
1637 additional configure arguments for target directories
1640 DLLTOOL DLLTOOL for the host
1642 LIPO LIPO for the host
1644 RANLIB RANLIB for the host
1645 STRIP STRIP for the host
1646 WINDRES WINDRES for the host
1647 WINDMC WINDMC for the host
1648 OBJCOPY OBJCOPY for the host
1649 OBJDUMP OBJDUMP for the host
1650 READELF READELF for the host
1658 GFORTRAN for the target
1666 DLLTOOL for the target
1674 OBJCOPY for the target
1676 OBJDUMP for the target
1678 RANLIB for the target
1680 READELF for the target
1682 STRIP for the target
1684 WINDRES for the target
1686 WINDMC for the target
1688 Use these variables to override the choices made by `configure' or to
help
1689 it to
find libraries and programs with nonstandard names
/locations.
1691 Report bugs to the package provider.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1705 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1707 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1712 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir
=$ac_pwd
1716 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir
=$ac_top_build_prefix
1721 .
) # We are building in place.
1723 ac_top_srcdir
=$ac_top_builddir_sub
1724 ac_abs_top_srcdir
=$ac_pwd ;;
1725 [\\/]* | ?
:[\\/]* ) # Absolute name.
1726 ac_srcdir
=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir
=$srcdir
1728 ac_abs_top_srcdir
=$srcdir ;;
1730 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1755 generated by GNU Autoconf
2.69
1757 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1758 This configure
script is free software
; the Free Software Foundation
1759 gives unlimited permission to copy
, distribute and modify it.
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile
()
1773 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1774 rm -f conftest.
$ac_objext
1775 if { { ac_try
="$ac_compile"
1777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_compile
1806 # ac_fn_cxx_try_compile LINENO
1807 # ----------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_cxx_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1816 *) ac_try_echo
=$ac_try;;
1818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err
; then
1823 grep -v '^ *+' conftest.err
>conftest.er1
1824 cat conftest.er1
>&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.
$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.
$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status
$ac_retval
1842 } # ac_fn_cxx_try_compile
1844 # ac_fn_cxx_try_link LINENO
1845 # -------------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_link
()
1849 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1850 rm -f conftest.
$ac_objext conftest
$ac_exeext
1851 if { { ac_try
="$ac_link"
1853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 test -x conftest$ac_exeext
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1888 } # ac_fn_cxx_try_link
1890 # ac_fn_c_try_link LINENO
1891 # -----------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1900 *) ac_try_echo
=$ac_try;;
1902 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1906 if test -s conftest.err
; then
1907 grep -v '^ *+' conftest.err
>conftest.er1
1908 cat conftest.er1
>&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest
$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest
$ac_exeext
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.
$ac_ext >&5
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status
$ac_retval
1934 } # ac_fn_c_try_link
1935 cat >config.log
<<_ACEOF
1936 This file contains any messages produced by compilers while
1937 running configure, to aid debugging if configure makes a mistake.
1939 It was created by $as_me, which was
1940 generated by GNU Autoconf 2.69. Invocation command line was
1952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir
=.
1976 $as_echo "PATH: $as_dir"
1992 # Keep a trace of the command line.
1993 # Strip out --no-create and --no-recursion so they do not pile up.
1994 # Strip out --silent because we don't want to record it for future runs.
1995 # Also quote any args containing shell meta-characters.
1996 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_must_keep_next
=false
2006 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2007 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2008 |
-silent |
--silent |
--silen |
--sile |
--sil)
2011 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2016 as_fn_append ac_configure_args1
" '$ac_arg'"
2017 if test $ac_must_keep_next = true
; then
2018 ac_must_keep_next
=false
# Got value, back to normal.
2021 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2022 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2023 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2024 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2025 case "$ac_configure_args0 " in
2026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 -* ) ac_must_keep_next
=true
;;
2032 as_fn_append ac_configure_args
" '$ac_arg'"
2037 { ac_configure_args0
=; unset ac_configure_args0
;}
2038 { ac_configure_args1
=; unset ac_configure_args1
;}
2040 # When interrupted or exit'd, cleanup temporary files, and complete
2041 # config.log. We remove comments because anyway the quotes in there
2042 # would cause problems or look ugly.
2043 # WARNING: Use '\'' to represent an apostrophe within the trap.
2044 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045 trap 'exit_status=$?
2046 # Save into config.log some information that might help in debugging.
2050 $as_echo "## ---------------- ##
2051 ## Cache variables. ##
2052 ## ---------------- ##"
2054 # The following way of writing the cache mishandles newlines in values,
2056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057 eval ac_val=\$$ac_var
2061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 _ | IFS | as_nl) ;; #(
2066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067 *) { eval $ac_var=; unset $ac_var;} ;;
2072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073 *${as_nl}ac_space=\ *)
2075 "s/'\''/'\''\\\\'\'''\''/g;
2076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 $as_echo "## ----------------- ##
2087 ## Output variables. ##
2088 ## ----------------- ##"
2090 for ac_var in $ac_subst_vars
2092 eval ac_val=\$$ac_var
2094 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 $as_echo "$ac_var='\''$ac_val'\''"
2100 if test -n "$ac_subst_files"; then
2101 $as_echo "## ------------------- ##
2102 ## File substitutions. ##
2103 ## ------------------- ##"
2105 for ac_var
in $ac_subst_files
2107 eval ac_val
=\$
$ac_var
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 $as_echo "$ac_var='\''$ac_val'\''"
2116 if test -s confdefs.h; then
2117 $as_echo "## ----------- ##
2124 test "$ac_signal" != 0 &&
2125 $as_echo "$as_me: caught signal $ac_signal"
2126 $as_echo "$as_me: exit $exit_status"
2128 rm -f core *.core core.conftest.* &&
2129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 for ac_signal
in 1 2 13 15; do
2133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2138 rm -f -r conftest
* confdefs.h
2140 $as_echo "/* confdefs.h */" > confdefs.h
2142 # Predefined preprocessor variables.
2144 cat >>confdefs.h
<<_ACEOF
2145 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 cat >>confdefs.h
<<_ACEOF
2149 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 cat >>confdefs.h
<<_ACEOF
2153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 cat >>confdefs.h
<<_ACEOF
2157 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 cat >>confdefs.h
<<_ACEOF
2161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 cat >>confdefs.h
<<_ACEOF
2165 #define PACKAGE_URL "$PACKAGE_URL"
2169 # Let the site file select an alternate cache file if it wants to.
2170 # Prefer an explicitly selected file to automatically selected ones.
2173 if test -n "$CONFIG_SITE"; then
2174 # We do not want a PATH search for config.site.
2175 case $CONFIG_SITE in #((
2176 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2177 */*) ac_site_file1
=$CONFIG_SITE;;
2178 *) ac_site_file1
=.
/$CONFIG_SITE;;
2180 elif test "x$prefix" != xNONE
; then
2181 ac_site_file1
=$prefix/share
/config.site
2182 ac_site_file2
=$prefix/etc
/config.site
2184 ac_site_file1
=$ac_default_prefix/share
/config.site
2185 ac_site_file2
=$ac_default_prefix/etc
/config.site
2187 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2189 test "x$ac_site_file" = xNONE
&& continue
2190 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2193 sed 's/^/| /' "$ac_site_file" >&5
2195 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 as_fn_error $?
"failed to load site script $ac_site_file
2198 See \`config.log' for more details" "$LINENO" 5; }
2202 if test -r "$cache_file"; then
2203 # Some versions of bash will fail to source /dev/null (special files
2204 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2205 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207 $as_echo "$as_me: loading cache $cache_file" >&6;}
2209 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2210 *) .
"./$cache_file";;
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 # Check that the precious variables saved in the cache have kept the same
2221 ac_cache_corrupted
=false
2222 for ac_var
in $ac_precious_vars; do
2223 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2224 eval ac_new_set
=\
$ac_env_${ac_var}_set
2225 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2226 eval ac_new_val
=\
$ac_env_${ac_var}_value
2227 case $ac_old_set,$ac_new_set in
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231 ac_cache_corrupted
=: ;;
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235 ac_cache_corrupted
=: ;;
2238 if test "x$ac_old_val" != "x$ac_new_val"; then
2239 # differences in whitespace do not lead to failure.
2240 ac_old_val_w
=`echo x $ac_old_val`
2241 ac_new_val_w
=`echo x $ac_new_val`
2242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245 ac_cache_corrupted
=:
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249 eval $ac_var=\
$ac_old_val
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 # Pass precious variables to config.status.
2258 if test "$ac_new_set" = set; then
2260 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261 *) ac_arg
=$ac_var=$ac_new_val ;;
2263 case " $ac_configure_args " in
2264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2265 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2269 if $ac_cache_corrupted; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2274 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2276 ## -------------------- ##
2277 ## Main body of script. ##
2278 ## -------------------- ##
2281 ac_cpp
='$CPP $CPPFLAGS'
2282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2294 # if PWD already has a value, it is probably wrong.
2295 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2297 # Export original configure arguments for use by sub-configures.
2298 # Quote arguments with shell meta charatcers.
2299 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2300 set -- "$progname" "$@"
2304 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2305 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2306 # if the argument is of the form -foo=baz, quote the baz part only
2307 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2310 # Add the quoted argument to the list.
2311 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313 if test "$silent" = yes; then
2314 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316 # Remove the initial space we just introduced and, as these will be
2317 # expanded by make, quote '$'.
2318 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2321 # Find the build, host, and target systems.
2323 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324 if test -f "$ac_dir/install-sh"; then
2326 ac_install_sh
="$ac_aux_dir/install-sh -c"
2328 elif test -f "$ac_dir/install.sh"; then
2330 ac_install_sh
="$ac_aux_dir/install.sh -c"
2332 elif test -f "$ac_dir/shtool"; then
2334 ac_install_sh
="$ac_aux_dir/shtool install -c"
2338 if test -z "$ac_aux_dir"; then
2339 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342 # These three variables are undocumented and unsupported,
2343 # and are intended to be withdrawn in a future Autoconf release.
2344 # They can cause serious problems if a builder's source tree is in a directory
2345 # whose full name contains unusual characters.
2346 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2347 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2348 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2351 # Make sure we can run config.sub.
2352 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2353 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2356 $as_echo_n "checking build system type... " >&6; }
2357 if ${ac_cv_build+:} false
; then :
2358 $as_echo_n "(cached) " >&6
2360 ac_build_alias
=$build_alias
2361 test "x$ac_build_alias" = x
&&
2362 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2363 test "x$ac_build_alias" = x
&&
2364 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2365 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2366 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2370 $as_echo "$ac_cv_build" >&6; }
2371 case $ac_cv_build in
2373 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2376 ac_save_IFS
=$IFS; IFS
='-'
2382 # Remember, the first character of IFS is used to create $*,
2383 # except with old shells:
2386 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2389 case ${build_alias} in
2390 "") build_noncanonical
=${build} ;;
2391 *) build_noncanonical
=${build_alias} ;;
2396 case ${host_alias} in
2397 "") host_noncanonical
=${build_noncanonical} ;;
2398 *) host_noncanonical
=${host_alias} ;;
2403 case ${target_alias} in
2404 "") target_noncanonical
=${host_noncanonical} ;;
2405 *) target_noncanonical
=${target_alias} ;;
2411 test "$host_noncanonical" = "$target_noncanonical" &&
2412 test "$program_prefix$program_suffix$program_transform_name" = \
2414 program_transform_name
=s
,y
,y
,
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2417 $as_echo_n "checking host system type... " >&6; }
2418 if ${ac_cv_host+:} false
; then :
2419 $as_echo_n "(cached) " >&6
2421 if test "x$host_alias" = x
; then
2422 ac_cv_host
=$ac_cv_build
2424 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2425 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2430 $as_echo "$ac_cv_host" >&6; }
2433 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2436 ac_save_IFS
=$IFS; IFS
='-'
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2446 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2450 $as_echo_n "checking target system type... " >&6; }
2451 if ${ac_cv_target+:} false
; then :
2452 $as_echo_n "(cached) " >&6
2454 if test "x$target_alias" = x
; then
2455 ac_cv_target
=$ac_cv_host
2457 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2458 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2463 $as_echo "$ac_cv_target" >&6; }
2464 case $ac_cv_target in
2466 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2468 target
=$ac_cv_target
2469 ac_save_IFS
=$IFS; IFS
='-'
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2479 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2482 # The aliases save the names the user supplied, while $host etc.
2483 # will get canonicalized.
2484 test -n "$target_alias" &&
2485 test "$program_prefix$program_suffix$program_transform_name" = \
2487 program_prefix
=${target_alias}-
2489 test "$program_prefix" != NONE
&&
2490 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2491 # Use a double $ so make ignores it.
2492 test "$program_suffix" != NONE
&&
2493 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2494 # Double any \ or $.
2495 # By default was `s,x,x', remove it if useless.
2496 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2497 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501 # Get 'install' or 'install-sh' and its variants.
2502 # Find a good install program. We prefer a C program (faster),
2503 # so one script is as good as another. But avoid the broken or
2504 # incompatible versions:
2505 # SysV /etc/install, /usr/sbin/install
2506 # SunOS /usr/etc/install
2507 # IRIX /sbin/install
2509 # AmigaOS /C/install, which installs bootblocks on floppy discs
2510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513 # OS/2's system install, which has a completely different semantic
2514 # ./install, which can be erroneously created by make from ./install.sh.
2515 # Reject install programs that cannot install multiple files.
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2518 if test -z "$INSTALL"; then
2519 if ${ac_cv_path_install+:} false
; then :
2520 $as_echo_n "(cached) " >&6
2522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir
=.
2527 # Account for people who put trailing slashes in PATH elements.
2528 case $as_dir/ in #((
2529 .
/ | .
// |
/[cC
]/* | \
2530 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2531 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2534 # OSF1 and SCO ODT 3.0 have their own names for install.
2535 # Don't use installbsd from OSF since it installs stuff as root
2537 for ac_prog
in ginstall scoinst
install; do
2538 for ac_exec_ext
in '' $ac_executable_extensions; do
2539 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2540 if test $ac_prog = install &&
2541 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2542 # AIX install. It has an incompatible calling convention.
2544 elif test $ac_prog = install &&
2545 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2546 # program-specific install script used by HP pwplus--don't use.
2549 rm -rf conftest.one conftest.two conftest.dir
2550 echo one
> conftest.one
2551 echo two
> conftest.two
2553 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2554 test -s conftest.one
&& test -s conftest.two
&&
2555 test -s conftest.dir
/conftest.one
&&
2556 test -s conftest.dir
/conftest.two
2558 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2571 rm -rf conftest.one conftest.two conftest.dir
2574 if test "${ac_cv_path_install+set}" = set; then
2575 INSTALL
=$ac_cv_path_install
2577 # As a last resort, use the slow shell script. Don't cache a
2578 # value for INSTALL within a source directory, because that will
2579 # break other packages using the cache if that directory is
2580 # removed, or if the value is a relative name.
2581 INSTALL
=$ac_install_sh
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585 $as_echo "$INSTALL" >&6; }
2587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588 # It thinks the first close brace ends the variable substitution.
2589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2593 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2596 $as_echo_n "checking whether ln works... " >&6; }
2597 if ${acx_cv_prog_LN+:} false
; then :
2598 $as_echo_n "(cached) " >&6
2600 rm -f conftestdata_t
2601 echo >conftestdata_f
2602 if ln conftestdata_f conftestdata_t
2>/dev
/null
2608 rm -f conftestdata_f conftestdata_t
2611 if test $acx_cv_prog_LN = no
; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2614 $as_echo "no, using $LN" >&6; }
2616 LN
="$acx_cv_prog_LN"
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618 $as_echo "yes" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2622 $as_echo_n "checking whether ln -s works... " >&6; }
2624 if test "$LN_S" = "ln -s"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2626 $as_echo "yes" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2629 $as_echo "no, using $LN_S" >&6; }
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2633 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2634 if ${ac_cv_path_SED+:} false
; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2638 for ac_i
in 1 2 3 4 5 6 7; do
2639 ac_script
="$ac_script$as_nl$ac_script"
2641 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2642 { ac_script
=; unset ac_script
;}
2643 if test -z "$SED"; then
2644 ac_path_SED_found
=false
2645 # Loop through the user's path and test for each of PROGNAME-LIST
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 for ac_prog
in sed gsed
; do
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2654 as_fn_executable_p
"$ac_path_SED" ||
continue
2655 # Check for GNU ac_path_SED and select it if it is found.
2656 # Check for GNU $ac_path_SED
2657 case `"$ac_path_SED" --version 2>&1` in
2659 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2662 $as_echo_n 0123456789 >"conftest.in"
2665 cat "conftest.in" "conftest.in" >"conftest.tmp"
2666 mv "conftest.tmp" "conftest.in"
2667 cp "conftest.in" "conftest.nl"
2668 $as_echo '' >> "conftest.nl"
2669 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2670 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2671 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2672 if test $ac_count -gt ${ac_path_SED_max-0}; then
2673 # Best one so far, save it but keep looking for a better one
2674 ac_cv_path_SED
="$ac_path_SED"
2675 ac_path_SED_max
=$ac_count
2677 # 10*(2^10) chars as input seems more than enough
2678 test $ac_count -gt 10 && break
2680 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2683 $ac_path_SED_found && break 3
2688 if test -z "$ac_cv_path_SED"; then
2689 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2697 $as_echo "$ac_cv_path_SED" >&6; }
2698 SED
="$ac_cv_path_SED"
2701 for ac_prog
in gawk mawk nawk
awk
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy
$ac_prog; ac_word
=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_AWK+:} false
; then :
2708 $as_echo_n "(cached) " >&6
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir
=.
2718 for ac_exec_ext
in '' $ac_executable_extensions; do
2719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_AWK
="$ac_prog"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 if test -n "$AWK"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733 $as_echo "$AWK" >&6; }
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2740 test -n "$AWK" && break
2744 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2749 INSTALL
="${srcpwd}/install-sh -c"
2752 # Set srcdir to "." if that's what it is.
2753 # This is important for multilib support.
2755 if test "${pwd}" = "${srcpwd}" ; then
2763 ### To add a new directory to the tree, first choose whether it is a target
2764 ### or a host dependent tool. Then put it into the appropriate list
2765 ### (library or tools, host or target), doing a dependency sort.
2767 # Subdirs will be configured in the order listed in build_configdirs,
2768 # configdirs, or target_configdirs; see the serialization section below.
2770 # Dependency sorting is only needed when *configuration* must be done in
2771 # a particular order. In all cases a dependency should be specified in
2772 # the Makefile, whether or not it's implicitly specified here.
2774 # Double entries in build_configdirs, configdirs, or target_configdirs may
2775 # cause circular dependencies and break everything horribly.
2777 # these library is used by various programs built for the build
2780 build_libs
="build-libiberty build-libcpp"
2782 # these tools are built for the build environment
2783 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2785 # these libraries are used by various programs built for the host environment
2787 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2789 # these tools are built for the host environment
2790 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2791 # know that we are building the simulator.
2792 # binutils, gas and ld appear in that order because it makes sense to run
2793 # "make check" in that particular order.
2794 # If --enable-gold is used, "gold" may replace "ld".
2795 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"
2797 # these libraries are built for the target environment, and are built after
2798 # the host libraries and the host tools (which may be a cross compiler)
2799 # Note that libiberty is not a target library.
2800 target_libraries
="target-libgcc \
2801 target-libbacktrace \
2805 target-liboffloadmic \
2806 target-libhsail-rt \
2809 target-libstdc++-v3 \
2810 target-libsanitizer \
2813 target-libquadmath \
2814 target-libgfortran \
2820 # these tools are built using the target libraries, and are intended to
2821 # run only in the target environment
2823 # note: any program that *uses* libraries that are in the "target_libraries"
2824 # list belongs in this list.
2826 target_tools
="target-rda"
2828 ################################################################################
2830 ## All tools belong in one of the four categories, and are assigned above
2831 ## We assign ${configdirs} this way to remove all embedded newlines. This
2832 ## is important because configure will choke if they ever get through.
2833 ## ${configdirs} is directories we build using the host tools.
2834 ## ${target_configdirs} is directories we build using the target tools.
2835 configdirs
=`echo ${host_libs} ${host_tools}`
2836 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2837 build_configdirs
=`echo ${build_libs} ${build_tools}`
2841 ################################################################################
2843 srcname
="gnu development package"
2845 # This gets set non-empty for some net releases of packages.
2848 # Define is_cross_compiler to save on calls to 'test'.
2850 if test x
"${host}" = x
"${target}" ; then
2851 is_cross_compiler
=no
2853 is_cross_compiler
=yes
2856 # Find the build and target subdir names.
2858 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2859 # have matching libraries, they should use host libraries: Makefile.tpl
2860 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2861 # However, they still use the build modules, because the corresponding
2862 # host modules (e.g. bison) are only built for the host when bootstrap
2864 # - build_subdir is where we find build modules, and never changes.
2865 # - build_libsubdir is where we find build libraries, and can be overridden.
2867 # Prefix 'build-' so this never conflicts with target_subdir.
2868 build_subdir
="build-${build_noncanonical}"
2870 # Check whether --with-build-libsubdir was given.
2871 if test "${with_build_libsubdir+set}" = set; then :
2872 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2874 build_libsubdir
="$build_subdir"
2877 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2878 if ( test $srcdir = .
&& test -d gcc
) \
2879 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2880 host_subdir
="host-${host_noncanonical}"
2885 target_subdir
=${target_noncanonical}
2887 # Be sure to cover against remnants of an in-tree build.
2888 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2889 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2890 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2893 # Skipdirs are removed silently.
2895 # Noconfigdirs are removed loudly.
2899 # Make sure we don't let GNU ld be added if we didn't want it.
2900 if test x
$with_gnu_ld = xno
; then
2902 noconfigdirs
="$noconfigdirs ld gold"
2906 # Make sure we don't let GNU as be added if we didn't want it.
2907 if test x
$with_gnu_as = xno
; then
2909 noconfigdirs
="$noconfigdirs gas"
2914 # Check whether --with-system-zlib was given.
2915 if test "${with_system_zlib+set}" = set; then :
2916 withval
=$with_system_zlib;
2919 # Make sure we don't let ZLIB be added if we didn't want it.
2920 if test x
$with_system_zlib = xyes
; then
2921 use_included_zlib
=no
2922 noconfigdirs
="$noconfigdirs zlib"
2925 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2927 if test x
$with_system_readline = xyes
; then
2928 noconfigdirs
="$noconfigdirs readline"
2931 # some tools are so dependent upon X11 that if we're not building with X,
2932 # it's not even worth trying to configure, much less build, that tool.
2935 yes |
"") ;; # the default value for this tree is that X11 is available
2937 skipdirs
="${skipdirs} tk itcl libgui"
2938 # We won't be able to build gdbtk without X.
2941 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2944 # Some are only suitable for cross toolchains.
2945 # Remove these if host=target.
2946 cross_only
="target-libgloss target-newlib target-opcodes"
2948 case $is_cross_compiler in
2949 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2952 # If both --with-headers and --with-libs are specified, default to
2954 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2955 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2956 if test x
"${with_newlib}" = x
; then
2961 # Recognize --with-newlib/--without-newlib.
2962 case ${with_newlib} in
2963 no
) skipdirs
="${skipdirs} target-newlib" ;;
2964 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2967 # Check whether --enable-as-accelerator-for was given.
2968 if test "${enable_as_accelerator_for+set}" = set; then :
2969 enableval
=$enable_as_accelerator_for;
2973 # Check whether --enable-offload-targets was given.
2974 if test "${enable_offload_targets+set}" = set; then :
2975 enableval
=$enable_offload_targets;
2976 if test x
"$enable_offload_targets" = x
; then
2977 as_fn_error $?
"no offload targets specified" "$LINENO" 5
2981 enable_offload_targets
=
2985 # Handle --enable-gold, --enable-ld.
2986 # --disable-gold [--enable-ld]
2987 # Build only ld. Default option.
2988 # --enable-gold [--enable-ld]
2989 # Build both gold and ld. Install gold as "ld.gold", install ld
2990 # as "ld.bfd" and "ld".
2991 # --enable-gold=default [--enable-ld]
2992 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2993 # install ld as "ld.bfd".
2994 # --enable-gold[=default] --disable-ld
2995 # Build only gold, which is then installed as both "ld.gold" and "ld".
2996 # --enable-gold --enable-ld=default
2997 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2999 # In other words, ld is default
3000 # --enable-gold=default --enable-ld=default
3004 # Check whether --enable-gold was given.
3005 if test "${enable_gold+set}" = set; then :
3006 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3011 case "${ENABLE_GOLD}" in
3013 # Check for ELF target.
3016 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3017 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3018 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3019 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3021 *-*-linux*aout
* |
*-*-linux*oldld
*)
3029 if test "$is_elf" = "yes"; then
3030 # Check for target supported by gold.
3032 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3033 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3034 configdirs
="$configdirs gold"
3035 if test x
${ENABLE_GOLD} = xdefault
; then
3046 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3050 # Check whether --enable-ld was given.
3051 if test "${enable_ld+set}" = set; then :
3052 enableval
=$enable_ld; ENABLE_LD
=$enableval
3058 case "${ENABLE_LD}" in
3060 if test x
${default_ld} != x
; then
3061 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3067 if test x
${ENABLE_GOLD} != xyes
; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3069 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3071 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3074 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3078 # Check whether --enable-gprofng was given.
3079 if test "${enable_gprofng+set}" = set; then :
3080 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3085 if test "$enable_gprofng" = "yes"; then
3087 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3088 configdirs
="$configdirs gprofng"
3095 # Decide the default method for compressing debug sections.
3096 # Provide a configure time option to override our default.
3097 # Check whether --enable-compressed_debug_sections was given.
3098 if test "${enable_compressed_debug_sections+set}" = set; then :
3099 enableval
=$enable_compressed_debug_sections;
3100 if test x
"$enable_compressed_debug_sections" = xyes
; then
3101 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3105 enable_compressed_debug_sections
=
3109 # Configure extra directories which are host specific
3113 configdirs
="$configdirs libtermcap" ;;
3116 # A target can indicate whether a language isn't supported for some reason.
3117 # Only spaces may be used in this macro; not newlines or tabs.
3118 unsupported_languages
=
3120 # Remove more programs from consideration, based on the host or
3121 # target this usually means that a port of the program doesn't
3125 i
[3456789]86-*-msdosdjgpp*)
3126 noconfigdirs
="$noconfigdirs tcl tk itcl"
3131 # Check whether --enable-libquadmath was given.
3132 if test "${enable_libquadmath+set}" = set; then :
3133 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3135 ENABLE_LIBQUADMATH
=yes
3138 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3139 noconfigdirs
="$noconfigdirs target-libquadmath"
3143 # Check whether --enable-libquadmath-support was given.
3144 if test "${enable_libquadmath_support+set}" = set; then :
3145 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3147 ENABLE_LIBQUADMATH_SUPPORT
=yes
3150 enable_libquadmath_support
=
3151 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3152 enable_libquadmath_support
=no
3156 # Check whether --enable-libada was given.
3157 if test "${enable_libada+set}" = set; then :
3158 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3163 if test "${ENABLE_LIBADA}" != "yes" ; then
3164 noconfigdirs
="$noconfigdirs gnattools"
3167 # Check whether --enable-libssp was given.
3168 if test "${enable_libssp+set}" = set; then :
3169 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3175 # Check whether --enable-libstdcxx was given.
3176 if test "${enable_libstdcxx+set}" = set; then :
3177 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3179 ENABLE_LIBSTDCXX
=default
3182 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3183 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3186 # If this is accelerator compiler and its target is intelmic we enable
3187 # target liboffloadmic by default. If this is compiler with offloading
3188 # for intelmic we enable host liboffloadmic by default. Otherwise
3189 # liboffloadmic is disabled by default.
3190 # Check whether --enable-liboffloadmic was given.
3191 if test "${enable_liboffloadmic+set}" = set; then :
3192 enableval
=$enable_liboffloadmic; case "$enableval" in
3194 enable_liboffloadmic
=$enableval ;;
3196 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3199 if test x
"$enable_as_accelerator_for" != x
; then
3201 *-intelmic-* |
*-intelmicemul-*)
3202 enable_liboffloadmic
=target
3203 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3206 enable_liboffloadmic
=no
3210 case "${enable_offload_targets}" in
3211 *-intelmic-* |
*-intelmicemul-*)
3212 enable_liboffloadmic
=host
3213 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3216 enable_liboffloadmic
=no
3224 # Enable libgomp by default on hosted POSIX systems, and a few others.
3225 if test x
$enable_libgomp = x
; then
3227 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3229 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3231 *-*-solaris2* |
*-*-hpux11*)
3233 *-*-darwin* |
*-*-aix*)
3238 noconfigdirs
="$noconfigdirs target-libgomp"
3243 # Disable libatomic on unsupported systems.
3244 if test -d ${srcdir}/libatomic
; then
3245 if test x
$enable_libatomic = x
; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3247 $as_echo_n "checking for libatomic support... " >&6; }
3248 if (srcdir
=${srcdir}/libatomic
; \
3249 .
${srcdir}/configure.tgt
; \
3250 test -n "$UNSUPPORTED")
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs
="$noconfigdirs target-libatomic"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3262 # Disable liboffloadmic on unsupported systems.
3263 if test -d ${srcdir}/liboffloadmic
; then
3264 if test x
$enable_liboffloadmic != xno
; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3266 $as_echo_n "checking for liboffloadmic support... " >&6; }
3267 if (srcdir
=${srcdir}/liboffloadmic
; \
3268 .
${srcdir}/configure.tgt
; \
3269 test -n "$UNSUPPORTED")
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3281 # Disable libitm on unsupported systems.
3282 if test -d ${srcdir}/libitm
; then
3283 if test x
$enable_libitm = x
; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3285 $as_echo_n "checking for libitm support... " >&6; }
3286 if (srcdir
=${srcdir}/libitm
; \
3287 .
${srcdir}/configure.tgt
; \
3288 test -n "$UNSUPPORTED")
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 noconfigdirs
="$noconfigdirs target-libitm"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3300 # Disable libsanitizer on unsupported systems.
3301 if test -d ${srcdir}/libsanitizer
; then
3302 if test x
$enable_libsanitizer = x
; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3304 $as_echo_n "checking for libsanitizer support... " >&6; }
3305 if (srcdir
=${srcdir}/libsanitizer
; \
3306 .
${srcdir}/configure.tgt
; \
3307 test -n "$UNSUPPORTED")
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs
="$noconfigdirs target-libsanitizer"
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3319 # Disable libvtv on unsupported systems.
3320 if test -d ${srcdir}/libvtv
; then
3321 if test x
$enable_libvtv = x
; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3323 $as_echo_n "checking for libvtv support... " >&6; }
3324 if (srcdir
=${srcdir}/libvtv
; \
3325 .
${srcdir}/configure.tgt
; \
3326 test "$VTV_SUPPORTED" != "yes")
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs
="$noconfigdirs target-libvtv"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3339 # Disable libhsail-rt on unsupported systems.
3340 if test -d ${srcdir}/libhsail-rt
; then
3341 if test x
$enable_libhsail_rt = x
; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3343 $as_echo_n "checking for libhsail-rt support... " >&6; }
3344 if (srcdir
=${srcdir}/libhsail-rt
; \
3345 .
${srcdir}/configure.tgt
; \
3346 test -n "$UNSUPPORTED")
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 unsupported_languages
="$unsupported_languages brig"
3351 # This implicitly disables also target-libhsail-rt as it won't
3352 # get added to the build without BRIG FE.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3361 # Disable libquadmath for some systems.
3364 noconfigdirs
="$noconfigdirs target-libquadmath"
3366 # libquadmath is unused on AIX and libquadmath build process use of
3367 # LD_LIBRARY_PATH can break AIX bootstrap.
3368 powerpc-
*-aix* | rs6000-
*-aix*)
3369 noconfigdirs
="$noconfigdirs target-libquadmath"
3373 # Disable libssp for some systems.
3376 # No hosted I/O support.
3377 noconfigdirs
="$noconfigdirs target-libssp"
3379 powerpc-
*-aix* | rs6000-
*-aix*)
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 # the C++ libraries don't build on top of CE's C libraries
3404 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3407 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3410 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3415 # Disable Fortran for some systems.
3418 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3419 unsupported_languages
="$unsupported_languages fortran"
3423 # Disable libffi for some systems.
3427 i
[3456789]86-*-darwin*)
3429 x86_64-
*-darwin[912]*)
3432 noconfigdirs
="$noconfigdirs target-libffi"
3435 noconfigdirs
="$noconfigdirs target-libffi"
3438 noconfigdirs
="$noconfigdirs target-libffi"
3441 noconfigdirs
="$noconfigdirs target-libffi"
3444 noconfigdirs
="$noconfigdirs target-libffi"
3447 noconfigdirs
="$noconfigdirs target-libffi"
3450 noconfigdirs
="$noconfigdirs target-libffi"
3452 aarch64
*-*-freebsd*)
3453 noconfigdirs
="$noconfigdirs target-libffi"
3456 noconfigdirs
="$noconfigdirs target-libffi"
3459 noconfigdirs
="$noconfigdirs target-libffi"
3462 noconfigdirs
="$noconfigdirs target-libffi"
3464 cris-
*-* | crisv32-
*-*)
3468 *) # See PR46792 regarding target-libffi.
3469 noconfigdirs
="$noconfigdirs target-libffi";;
3473 noconfigdirs
="$noconfigdirs target-libffi"
3478 noconfigdirs
="$noconfigdirs target-libffi"
3481 noconfigdirs
="$noconfigdirs target-libffi"
3483 i
[3456789]86-w64-mingw*)
3484 noconfigdirs
="$noconfigdirs target-libffi"
3486 i
[3456789]86-*-mingw*)
3487 noconfigdirs
="$noconfigdirs target-libffi"
3490 noconfigdirs
="$noconfigdirs target-libffi"
3493 noconfigdirs
="$noconfigdirs target-libffi"
3500 noconfigdirs
="$noconfigdirs target-libffi"
3503 noconfigdirs
="$noconfigdirs target-libffi"
3507 # Disable the go frontend on systems where it is known to not work. Please keep
3508 # this in sync with contrib/config-list.mk.
3510 *-*-darwin* |
*-*-cygwin* |
*-*-mingw*)
3511 unsupported_languages
="$unsupported_languages go"
3515 # Only allow gdbserver on some systems.
3516 if test -d ${srcdir}/gdbserver
; then
3517 if test x
$enable_gdbserver = x
; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3519 $as_echo_n "checking for gdbserver support... " >&6; }
3520 if (srcdir
=${srcdir}/gdbserver
; \
3521 .
${srcdir}/configure.srv
; \
3522 test -n "$UNSUPPORTED")
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 noconfigdirs
="$noconfigdirs gdbserver"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529 $as_echo "yes" >&6; }
3534 # Disable libgo for some systems where it is known to not work.
3535 # For testing, you can easily override this with --enable-libgo.
3536 if test x
$enable_libgo = x
; then
3540 noconfigdirs
="$noconfigdirs target-libgo"
3542 *-*-cygwin* |
*-*-mingw*)
3543 noconfigdirs
="$noconfigdirs target-libgo"
3548 # Default libgloss CPU subdirectory.
3549 libgloss_dir
="$target_cpu"
3552 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3556 libgloss_dir
=aarch64
3561 cris-
*-* | crisv32-
*-*)
3570 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3571 libgloss_dir
=m68hc11
3573 m68
*-*-* | fido-
*-*)
3587 # Disable newlib and libgloss for various target OSes.
3590 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3592 i
[3456789]86-*-linux*)
3593 # This section makes it possible to build newlib natively on linux.
3594 # If we are using a cross compiler then don't configure newlib.
3595 if test x
${is_cross_compiler} != xno
; then
3596 noconfigdirs
="$noconfigdirs target-newlib"
3598 noconfigdirs
="$noconfigdirs target-libgloss"
3599 # If we are not using a cross compiler, do configure newlib.
3600 # Note however, that newlib will only be configured in this situation
3601 # if the --with-newlib option has been given, because otherwise
3602 # 'target-newlib' will appear in skipdirs.
3604 i
[3456789]86-*-rdos*)
3605 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3607 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3608 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3611 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3614 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3617 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3620 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3623 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3626 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3628 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3629 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3632 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3635 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3638 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3641 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3644 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3647 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3650 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3658 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3659 noconfigdirs
="$noconfigdirs sim target-rda"
3662 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3663 noconfigdirs
="$noconfigdirs sim target-rda"
3666 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3667 noconfigdirs
="$noconfigdirs sim target-rda"
3669 i
[3456789]86-*-darwin*)
3670 noconfigdirs
="$noconfigdirs ld gprof"
3671 noconfigdirs
="$noconfigdirs sim target-rda"
3673 x86_64-
*-darwin[912]*)
3674 noconfigdirs
="$noconfigdirs ld gas gprof"
3675 noconfigdirs
="$noconfigdirs sim target-rda"
3678 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3679 noconfigdirs
="$noconfigdirs sim target-rda"
3684 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3685 && test -f /usr
/local
/include
/gmp.h
; then
3690 # Remove unsupported stuff on all kaOS configurations.
3691 noconfigdirs
="$noconfigdirs target-libgloss"
3698 noconfigdirs
="$noconfigdirs target-libgloss"
3701 noconfigdirs
="$noconfigdirs target-libgloss"
3703 # The tpf target doesn't support gdb yet.
3705 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3708 noconfigdirs
="$noconfigdirs target-rda"
3713 # ld works, but does not support shared libraries.
3714 # gas doesn't generate exception information.
3715 noconfigdirs
="$noconfigdirs gas ld"
3718 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3721 # newlib is not 64 bit ready
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3724 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3725 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3728 noconfigdirs
="$noconfigdirs sim"
3731 noconfigdirs
="$noconfigdirs target-libgloss"
3734 noconfigdirs
="$noconfigdirs ld target-libgloss"
3737 if test x
${with_avrlibc} != xno
; then
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3741 c4x-
*-* | tic4x-
*-*)
3742 noconfigdirs
="$noconfigdirs target-libgloss"
3745 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3748 noconfigdirs
="$noconfigdirs target-libgloss"
3751 noconfigdirs
="$noconfigdirs gdb"
3754 noconfigdirs
="$noconfigdirs gdb"
3757 noconfigdirs
="$noconfigdirs target-rda gprof"
3760 noconfigdirs
="$noconfigdirs"
3763 noconfigdirs
="$noconfigdirs target-libgloss"
3766 noconfigdirs
="$noconfigdirs target-libgloss"
3768 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3771 noconfigdirs
="$noconfigdirs gdb"
3774 noconfigdirs
="$noconfigdirs gdb ld"
3782 hppa
*-*-openbsd* | \
3788 noconfigdirs
="$noconfigdirs ld"
3791 noconfigdirs
="$noconfigdirs gdb"
3794 # No gdb support yet.
3795 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3798 # No ld support yet.
3799 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3802 # No ld support yet.
3803 noconfigdirs
="$noconfigdirs libgui itcl ld"
3805 i
[3456789]86-w64-mingw*)
3807 i
[3456789]86-*-mingw*)
3808 target_configdirs
="$target_configdirs target-winsup"
3811 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3812 noconfigdirs
="$noconfigdirs target-libgloss"
3813 # always build newlib if winsup directory is present.
3814 if test -d "$srcdir/winsup/cygwin"; then
3815 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3816 elif test -d "$srcdir/newlib"; then
3817 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3821 noconfigdirs
="$noconfigdirs target-libgloss"
3823 i
[3456789]86-*-sco3.2v5
*)
3824 # The linker does not yet know about weak symbols in COFF,
3825 # and is not configured to handle mixed ELF and COFF.
3826 noconfigdirs
="$noconfigdirs ld target-libgloss"
3828 i
[3456789]86-*-sco*)
3829 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3831 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3832 noconfigdirs
="$noconfigdirs target-libgloss"
3834 i
[3456789]86-*-sysv4*)
3835 noconfigdirs
="$noconfigdirs target-libgloss"
3837 i
[3456789]86-*-beos*)
3838 noconfigdirs
="$noconfigdirs gdb"
3840 i
[3456789]86-*-rdos*)
3841 noconfigdirs
="$noconfigdirs gdb"
3844 noconfigdirs
="$noconfigdirs gdb"
3847 noconfigdirs
="$noconfigdirs sim"
3850 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3851 noconfigdirs
="$noconfigdirs $target_libraries"
3854 noconfigdirs
="$noconfigdirs gdb gprof"
3857 # copied from rs6000-*-* entry
3858 noconfigdirs
="$noconfigdirs gprof"
3860 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3861 target_configdirs
="$target_configdirs target-winsup"
3862 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3863 # always build newlib.
3864 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3866 # This is temporary until we can link against shared libraries
3867 powerpcle-
*-solaris*)
3868 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3871 noconfigdirs
="$noconfigdirs gdb"
3874 noconfigdirs
="$noconfigdirs gprof"
3877 noconfigdirs
="$noconfigdirs gprof"
3880 noconfigdirs
="$noconfigdirs gprof"
3883 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3886 noconfigdirs
="$noconfigdirs gprof"
3888 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3889 if test x
$with_newlib = xyes
; then
3890 noconfigdirs
="$noconfigdirs gprof"
3894 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3897 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3900 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3904 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3905 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3906 noconfigdirs
="$noconfigdirs ld gas gprof"
3909 noconfigdirs
="$noconfigdirs gprof"
3912 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3919 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3923 if test x
${is_cross_compiler} = xno
; then
3928 noconfigdirs
="$noconfigdirs sim"
3930 tilepro
*-*-* | tilegx
*-*-*)
3931 noconfigdirs
="$noconfigdirs sim"
3934 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3937 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3940 noconfigdirs
="$noconfigdirs ld"
3944 # If we aren't building newlib, then don't build libgloss, since libgloss
3945 # depends upon some newlib header files.
3946 case "${noconfigdirs}" in
3947 *target-libgloss
*) ;;
3948 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3951 # Work in distributions that contain no compiler tools, like Autoconf.
3952 host_makefile_frag
=/dev
/null
3953 if test -d ${srcdir}/config
; then
3955 i
[3456789]86-*-msdosdjgpp*)
3956 host_makefile_frag
="config/mh-djgpp"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3961 $as_echo_n "checking to see if cat works as expected... " >&6; }
3962 echo a
>cygwin-cat-check
3963 if test `cat cygwin-cat-check` = a
; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 as_fn_error $?
"The cat command does not ignore carriage return characters.
3972 Please either mount the build directory in binary mode or run the following
3973 commands before running any configure script:
3979 host_makefile_frag
="config/mh-cygwin"
3982 host_makefile_frag
="config/mh-mingw"
3985 host_makefile_frag
="config/mh-alpha-linux"
3988 host_makefile_frag
="config/mh-pa-hpux10"
3991 host_makefile_frag
="config/mh-pa"
3994 host_makefile_frag
="config/mh-pa"
3997 host_makefile_frag
="config/mh-darwin"
4000 host_makefile_frag
="config/mh-ppc-aix"
4003 host_makefile_frag
="config/mh-ppc-aix"
4008 if test "${build}" != "${host}" ; then
4009 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4010 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4011 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4012 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4013 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4014 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4015 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4016 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4017 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4018 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4019 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4020 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4022 AR_FOR_BUILD
="\$(AR)"
4023 AS_FOR_BUILD
="\$(AS)"
4024 CC_FOR_BUILD
="\$(CC)"
4025 CXX_FOR_BUILD
="\$(CXX)"
4026 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4027 GOC_FOR_BUILD
="\$(GOC)"
4028 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4029 LD_FOR_BUILD
="\$(LD)"
4030 NM_FOR_BUILD
="\$(NM)"
4031 RANLIB_FOR_BUILD
="\$(RANLIB)"
4032 WINDRES_FOR_BUILD
="\$(WINDRES)"
4033 WINDMC_FOR_BUILD
="\$(WINDMC)"
4037 ac_cpp
='$CPP $CPPFLAGS'
4038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_CC+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC
="$CC" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4080 if test -z "$ac_cv_prog_CC"; then
4082 # Extract the first word of "gcc", so it can be a program name with args.
4083 set dummy gcc
; ac_word
=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4087 $as_echo_n "(cached) " >&6
4089 if test -n "$ac_ct_CC"; then
4090 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir
=.
4097 for ac_exec_ext
in '' $ac_executable_extensions; do
4098 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_CC
="gcc"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4110 if test -n "$ac_ct_CC"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4112 $as_echo "$ac_ct_CC" >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4118 if test "x$ac_ct_CC" = x
; then
4121 case $cross_compiling:$ac_tool_warned in
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125 ac_tool_warned
=yes ;;
4133 if test -z "$CC"; then
4134 if test -n "$ac_tool_prefix"; then
4135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4136 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false
; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC
="$CC" # Let the user override the test.
4145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir
=.
4150 for ac_exec_ext
in '' $ac_executable_extensions; do
4151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$CC"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4165 $as_echo "$CC" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4174 if test -z "$CC"; then
4175 # Extract the first word of "cc", so it can be a program name with args.
4176 set dummy cc
; ac_word
=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false
; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC
="$CC" # Let the user override the test.
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_exec_ext
in '' $ac_executable_extensions; do
4192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4194 ac_prog_rejected
=yes
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 if test $ac_prog_rejected = yes; then
4206 # We found a bogon in the path, so make sure we never use it.
4207 set dummy
$ac_cv_prog_CC
4209 if test $# != 0; then
4210 # We chose a different compiler from the bogus one.
4211 # However, it has the same basename, so the bogon will be chosen
4212 # first if we set CC to just the basename; use the full file name.
4214 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4220 if test -n "$CC"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222 $as_echo "$CC" >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4230 if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 for ac_prog
in cl.exe
4234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4235 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false
; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC
="$CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4271 test -n "$CC" && break
4274 if test -z "$CC"; then
4276 for ac_prog
in cl.exe
4278 # Extract the first word of "$ac_prog", so it can be a program name with args.
4279 set dummy
$ac_prog; ac_word
=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$ac_ct_CC"; then
4286 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_exec_ext
in '' $ac_executable_extensions; do
4294 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_CC
="$ac_prog"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4306 if test -n "$ac_ct_CC"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4308 $as_echo "$ac_ct_CC" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4315 test -n "$ac_ct_CC" && break
4318 if test "x$ac_ct_CC" = x
; then
4321 case $cross_compiling:$ac_tool_warned in
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned
=yes ;;
4334 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4336 as_fn_error $?
"no acceptable C compiler found in \$PATH
4337 See \`config.log' for more details" "$LINENO" 5; }
4339 # Provide some information about the compiler.
4340 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4343 for ac_option
in --version -v -V -qversion; do
4344 { { ac_try
="$ac_compiler $ac_option >&5"
4346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4353 if test -s conftest.err; then
4355 ... rest of stderr output deleted ...
4356 10q' conftest.err >conftest.er1
4357 cat conftest.er1 >&5
4359 rm -f conftest.er1 conftest.err
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4375 ac_clean_files_save=$ac_clean_files
4376 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4377 # Try to create an executable without -o first, disregard a.out.
4378 # It will help us diagnose broken compilers, and finding out an intuition
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4381 $as_echo_n "checking whether the C compiler works... " >&6; }
4382 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4384 # The possible output files:
4385 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4388 for ac_file in $ac_files
4391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4392 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4397 if { { ac_try="$ac_link_default"
4399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4400 *) ac_try_echo
=$ac_try;;
4402 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_link_default") 2>&5
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
4408 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4409 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4410 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4411 # so that the user can short-circuit this test for compilers unknown to
4413 for ac_file
in $ac_files ''
4415 test -f "$ac_file" ||
continue
4417 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4420 # We found the default executable, but exeext='' is most
4424 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4426 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4428 # We set ac_cv_exeext here because the later test for it is not
4429 # safe: cross compilers may not add the suffix if given an `-o'
4430 # argument, so we may need to know it at that point already.
4431 # Even if this section looks crufty: it has the advantage of
4438 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4443 if test -z "$ac_file"; then :
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 $as_echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.
$ac_ext >&5
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error
77 "C compiler cannot create executables
4452 See \`config.log' for more details" "$LINENO" 5; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455 $as_echo "yes" >&6; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4458 $as_echo_n "checking for C compiler default output file name... " >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4460 $as_echo "$ac_file" >&6; }
4461 ac_exeext
=$ac_cv_exeext
4463 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4464 ac_clean_files
=$ac_clean_files_save
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4466 $as_echo_n "checking for suffix of executables... " >&6; }
4467 if { { ac_try
="$ac_link"
4469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473 $as_echo "$ac_try_echo"; } >&5
4474 (eval "$ac_link") 2>&5
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }; then :
4478 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4479 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4480 # work properly (i.e., refer to `conftest.exe'), while it won't with
4482 for ac_file
in conftest.exe conftest conftest.
*; do
4483 test -f "$ac_file" ||
continue
4485 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4486 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4495 See \`config.log' for more details" "$LINENO" 5; }
4497 rm -f conftest conftest
$ac_cv_exeext
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4499 $as_echo "$ac_cv_exeext" >&6; }
4501 rm -f conftest.
$ac_ext
4502 EXEEXT
=$ac_cv_exeext
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4510 FILE *f = fopen ("conftest.out", "w");
4511 return ferror (f) || fclose (f) != 0;
4517 ac_clean_files
="$ac_clean_files conftest.out"
4518 # Check that the compiler produces executables we can run. If not, either
4519 # the compiler is broken, or we cross compile.
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4521 $as_echo_n "checking whether we are cross compiling... " >&6; }
4522 if test "$cross_compiling" != yes; then
4523 { { ac_try
="$ac_link"
4525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529 $as_echo "$ac_try_echo"; } >&5
4530 (eval "$ac_link") 2>&5
4532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4533 test $ac_status = 0; }
4534 if { ac_try='./conftest$ac_cv_exeext'
4535 { { case "(($ac_try" in
4536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4537 *) ac_try_echo
=$ac_try;;
4539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 $as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_try") 2>&5
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; }; then
4547 if test "$cross_compiling" = maybe
; then
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552 as_fn_error $?
"cannot run C compiled programs.
4553 If you meant to cross compile, use \`--host'.
4554 See \`config.log' for more details" "$LINENO" 5; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4559 $as_echo "$cross_compiling" >&6; }
4561 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4562 ac_clean_files
=$ac_clean_files_save
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4564 $as_echo_n "checking for suffix of object files... " >&6; }
4565 if ${ac_cv_objext+:} false
; then :
4566 $as_echo_n "(cached) " >&6
4568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 rm -f conftest.o conftest.obj
4580 if { { ac_try
="$ac_compile"
4582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compile") 2>&5
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then :
4591 for ac_file in conftest.o conftest.obj conftest.*; do
4592 test -f "$ac_file" || continue;
4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4606 See \
`config.log' for more details" "$LINENO" 5; }
4608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4611 $as_echo "$ac_cv_objext" >&6; }
4612 OBJEXT=$ac_cv_objext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4616 if ${ac_cv_c_compiler_gnu+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4633 if ac_fn_c_try_compile "$LINENO"; then :
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4644 if test $ac_compiler_gnu = yes; then
4649 ac_test_CFLAGS=${CFLAGS+set}
4650 ac_save_CFLAGS=$CFLAGS
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4653 if ${ac_cv_prog_cc_g+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 ac_save_c_werror_flag=$ac_c_werror_flag
4657 ac_c_werror_flag=yes
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_c_try_compile "$LINENO"; then :
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4686 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_c_werror_flag=$ac_save_c_werror_flag
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4702 if ac_fn_c_try_compile "$LINENO"; then :
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_c_werror_flag=$ac_save_c_werror_flag
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4713 $as_echo "$ac_cv_prog_cc_g" >&6; }
4714 if test "$ac_test_CFLAGS" = set; then
4715 CFLAGS=$ac_save_CFLAGS
4716 elif test $ac_cv_prog_cc_g = yes; then
4717 if test "$GCC" = yes; then
4723 if test "$GCC" = yes; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4731 if ${ac_cv_prog_cc_c89+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 ac_cv_prog_cc_c89=no
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4742 struct buf { int x; };
4743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4744 static char *e (p, i)
4750 static char *f (char * (*g) (char **, int), char **p, ...)
4755 s = g (p, va_arg (v,int));
4760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4761 function prototypes and stuff, but not '\xHH' hex character constants.
4762 These don't provoke an error unfortunately, instead are silently treated
4763 as 'x'. The following induces an error, until -std is added to get
4764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4765 array size at least. It's necessary to write '\x00'==0 to get something
4766 that's true only with -std. */
4767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4770 inside strings and character constants. */
4772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4774 int test (int i, double x);
4775 struct s1 {int (*f) (int a);};
4776 struct s2 {int (*f) (double a);};
4777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4791 CC="$ac_save_CC $ac_arg"
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_c89=$ac_arg
4795 rm -f core conftest.err conftest.$ac_objext
4796 test "x$ac_cv_prog_cc_c89" != "xno" && break
4798 rm -f conftest.$ac_ext
4803 case "x$ac_cv_prog_cc_c89" in
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4806 $as_echo "none needed" >&6; } ;;
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4809 $as_echo "unsupported" >&6; } ;;
4811 CC="$CC $ac_cv_prog_cc_c89"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4815 if test "x$ac_cv_prog_cc_c89" != xno; then :
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4827 if ${ac_cv_prog_cc_c99+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 ac_cv_prog_cc_c99=no
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4835 #include <stdbool.h>
4840 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4841 #define debug(...) fprintf (stderr, __VA_ARGS__)
4842 #define showlist(...) puts (#__VA_ARGS__)
4843 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4845 test_varargs_macros (void)
4850 debug ("X = %d\n", x);
4851 showlist (The first, second, and third items.);
4852 report (x>y, "x is %d but y is %d", x, y);
4855 // Check long long types.
4856 #define BIG64 18446744073709551615ull
4857 #define BIG32 4294967295ul
4858 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4860 your preprocessor is broken;
4864 your preprocessor is broken;
4866 static long long int bignum = -9223372036854775807LL;
4867 static unsigned long long int ubignum = BIG64;
4869 struct incomplete_array
4877 const wchar_t *name;
4881 typedef const char *ccp;
4884 test_restrict (ccp restrict text)
4886 // See if C++-style comments work.
4887 // Iterate through items via the restricted pointer.
4888 // Also check for declarations in for loops.
4889 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4894 // Check varargs and va_copy.
4896 test_varargs (const char *format, ...)
4899 va_start (args, format);
4901 va_copy (args_copy, args);
4912 str = va_arg (args_copy, const char *);
4915 number = va_arg (args_copy, int);
4918 fnumber = va_arg (args_copy, double);
4933 _Bool success = false;
4936 if (test_restrict ("String literal") == 0)
4938 char *restrict newvar = "Another string";
4941 test_varargs ("s, d' f .", "string", 65, 34.234);
4942 test_varargs_macros ();
4944 // Check flexible array members.
4945 struct incomplete_array *ia =
4946 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4948 for (int i = 0; i < ia->datasize; ++i)
4949 ia->data[i] = i * 1.234;
4951 // Check named initializers.
4952 struct named_init ni = {
4954 .name = L"Test wide string",
4955 .average = 543.34343,
4960 int dynamic_array[ni.number];
4961 dynamic_array[ni.number - 1] = 543;
4963 // work around unused variable warnings
4964 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4965 || dynamic_array[ni.number - 1] != 543);
4971 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4973 CC="$ac_save_CC $ac_arg"
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 ac_cv_prog_cc_c99=$ac_arg
4977 rm -f core conftest.err conftest.$ac_objext
4978 test "x$ac_cv_prog_cc_c99" != "xno" && break
4980 rm -f conftest.$ac_ext
4985 case "x$ac_cv_prog_cc_c99" in
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4988 $as_echo "none needed" >&6; } ;;
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4991 $as_echo "unsupported" >&6; } ;;
4993 CC="$CC $ac_cv_prog_cc_c99"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4995 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4997 if test "x$ac_cv_prog_cc_c99" != xno; then :
5003 ac_cpp='$CXXCPP $CPPFLAGS'
5004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007 if test -z "$CXX"; then
5008 if test -n "$CCC"; then
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_CXX+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$CXX"; then
5022 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test -n "$CXX"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5044 $as_echo "$CXX" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 test -n "$CXX" && break
5054 if test -z "$CXX"; then
5056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$ac_ct_CXX"; then
5066 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_ac_ct_CXX="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5086 if test -n "$ac_ct_CXX"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5088 $as_echo "$ac_ct_CXX" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$ac_ct_CXX" && break
5098 if test "x$ac_ct_CXX" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5113 # Provide some information about the compiler.
5114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5117 for ac_option in --version -v -V -qversion; do
5118 { { ac_try="$ac_compiler $ac_option >&5"
5120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5121 *) ac_try_echo
=$ac_try;;
5123 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5124 $as_echo "$ac_try_echo"; } >&5
5125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5127 if test -s conftest.err
; then
5129 ... rest of stderr output deleted ...
5130 10q' conftest.err
>conftest.er1
5131 cat conftest.er1
>&5
5133 rm -f conftest.er1 conftest.err
5134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135 test $ac_status = 0; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5139 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5140 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5141 $as_echo_n "(cached) " >&6
5143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5157 if ac_fn_cxx_try_compile
"$LINENO"; then :
5162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5163 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5167 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5168 if test $ac_compiler_gnu = yes; then
5173 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5174 ac_save_CXXFLAGS
=$CXXFLAGS
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5176 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5177 if ${ac_cv_prog_cxx_g+:} false
; then :
5178 $as_echo_n "(cached) " >&6
5180 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5181 ac_cxx_werror_flag
=yes
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5195 if ac_fn_cxx_try_compile
"$LINENO"; then :
5196 ac_cv_prog_cxx_g
=yes
5199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5210 if ac_fn_cxx_try_compile
"$LINENO"; then :
5213 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5226 if ac_fn_cxx_try_compile
"$LINENO"; then :
5227 ac_cv_prog_cxx_g
=yes
5229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5234 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5237 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5238 if test "$ac_test_CXXFLAGS" = set; then
5239 CXXFLAGS
=$ac_save_CXXFLAGS
5240 elif test $ac_cv_prog_cxx_g = yes; then
5241 if test "$GXX" = yes; then
5247 if test "$GXX" = yes; then
5254 ac_cpp
='$CPP $CPPFLAGS'
5255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5260 # We must set the default linker to the linker used by gcc for the correct
5261 # operation of libtool. If LD is not defined and we are using gcc, try to
5262 # set the LD default to the ld used by gcc.
5263 if test -z "$LD"; then
5264 if test "$GCC" = yes; then
5267 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5269 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5271 case $gcc_prog_ld in
5272 # Accept absolute paths.
5273 [\\/]* |
[A-Za-z
]:[\\/]*)
5274 LD
="$gcc_prog_ld" ;;
5279 # Check whether -static-libstdc++ -static-libgcc is supported.
5281 if test "$GCC" = yes; then
5282 saved_LDFLAGS
="$LDFLAGS"
5284 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5286 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5288 ac_cpp
='$CXXCPP $CPPFLAGS'
5289 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5297 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5298 #error -static-libstdc++ not implemented
5302 if ac_fn_cxx_try_link
"$LINENO"; then :
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304 $as_echo "yes" >&6; }; have_static_libs
=yes
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5309 rm -f core conftest.err conftest.
$ac_objext \
5310 conftest
$ac_exeext conftest.
$ac_ext
5312 ac_cpp
='$CPP $CPPFLAGS'
5313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5318 LDFLAGS
="$saved_LDFLAGS"
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5326 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_GNATBIND+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -n "$GNATBIND"; then
5333 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir
=.
5340 for ac_exec_ext
in '' $ac_executable_extensions; do
5341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 GNATBIND
=$ac_cv_prog_GNATBIND
5353 if test -n "$GNATBIND"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5355 $as_echo "$GNATBIND" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5363 if test -z "$ac_cv_prog_GNATBIND"; then
5364 ac_ct_GNATBIND
=$GNATBIND
5365 # Extract the first word of "gnatbind", so it can be a program name with args.
5366 set dummy gnatbind
; ac_word
=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5370 $as_echo_n "(cached) " >&6
5372 if test -n "$ac_ct_GNATBIND"; then
5373 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir
=.
5380 for ac_exec_ext
in '' $ac_executable_extensions; do
5381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5393 if test -n "$ac_ct_GNATBIND"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5395 $as_echo "$ac_ct_GNATBIND" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5401 if test "x$ac_ct_GNATBIND" = x
; then
5404 case $cross_compiling:$ac_tool_warned in
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned
=yes ;;
5410 GNATBIND
=$ac_ct_GNATBIND
5413 GNATBIND
="$ac_cv_prog_GNATBIND"
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5418 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$GNATMAKE"; then
5425 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir
=.
5432 for ac_exec_ext
in '' $ac_executable_extensions; do
5433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 GNATMAKE
=$ac_cv_prog_GNATMAKE
5445 if test -n "$GNATMAKE"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5447 $as_echo "$GNATMAKE" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5455 if test -z "$ac_cv_prog_GNATMAKE"; then
5456 ac_ct_GNATMAKE
=$GNATMAKE
5457 # Extract the first word of "gnatmake", so it can be a program name with args.
5458 set dummy gnatmake
; ac_word
=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5462 $as_echo_n "(cached) " >&6
5464 if test -n "$ac_ct_GNATMAKE"; then
5465 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir
=.
5472 for ac_exec_ext
in '' $ac_executable_extensions; do
5473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5485 if test -n "$ac_ct_GNATMAKE"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5487 $as_echo "$ac_ct_GNATMAKE" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5493 if test "x$ac_ct_GNATMAKE" = x
; then
5496 case $cross_compiling:$ac_tool_warned in
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned
=yes ;;
5502 GNATMAKE
=$ac_ct_GNATMAKE
5505 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5509 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5510 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5511 $as_echo_n "(cached) " >&6
5513 cat >conftest.adb
<<EOF
5514 procedure conftest is begin null; end conftest;
5516 acx_cv_cc_gcc_supports_ada
=no
5517 # There is a bug in old released versions of GCC which causes the
5518 # driver to exit successfully when the appropriate language module
5519 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5520 # Therefore we must check for the error message as well as an
5521 # unsuccessful exit.
5522 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5523 # given a .adb file, but produce no object file. So we must check
5524 # if an object file was really produced to guard against this.
5525 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5526 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5527 acx_cv_cc_gcc_supports_ada
=yes
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5532 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5534 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5541 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5542 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5543 $as_echo_n "(cached) " >&6
5547 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5548 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5549 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5552 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5555 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5556 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5559 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5566 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5567 do_compare
="$gcc_cv_prog_cmp_skip"
5571 # Check whether --enable-bootstrap was given.
5572 if test "${enable_bootstrap+set}" = set; then :
5573 enableval
=$enable_bootstrap;
5575 enable_bootstrap
=default
5579 # Issue errors and warnings for invalid/strange bootstrap combinations.
5580 if test -r $srcdir/gcc
/configure
; then
5586 case "$have_compiler:$host:$target:$enable_bootstrap" in
5589 # Default behavior. Enable bootstrap if we have a compiler
5590 # and we are in a native configuration.
5591 yes:$build:$build:default
)
5592 enable_bootstrap
=yes ;;
5595 enable_bootstrap
=no
;;
5597 # We have a compiler and we are in a native configuration, bootstrap is ok
5598 yes:$build:$build:yes)
5601 # Other configurations, but we have a compiler. Assume the user knows
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5605 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5608 # No compiler: if they passed --enable-bootstrap explicitly, fail
5610 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5612 # Fail if wrong command line
5614 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5618 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5619 # C++98 compiler can still start the bootstrap.
5620 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5621 CXX
="$CXX -std=gnu++98"
5624 # Check whether --enable-pgo-build was given.
5625 if test "${enable_pgo_build+set}" = set; then :
5626 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
5632 # Issue errors and warnings for invalid/strange PGO build combinations.
5633 case "$have_compiler:$host:$target:$enable_pgo_build" in
5636 # Allow the PGO build only if we aren't building a compiler and
5637 # we are in a native configuration.
5638 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
5640 # Disallow the PGO bootstrap if we are building a compiler.
5641 yes:*:*:yes |
yes:*:*:lto
)
5642 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5645 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
5649 if test "$enable_pgo_build" != "no"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5651 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5652 old_CFLAGS
="$CFLAGS"
5653 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
5654 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
5656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5660 if ac_fn_c_try_compile
"$LINENO"; then :
5663 PGO_BUILD_GEN_CFLAGS
=
5665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5666 CFLAGS
="$old_CFLAGS"
5667 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669 $as_echo "yes" >&6; }
5670 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5677 if test "$enable_pgo_build" = "lto"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5679 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5680 old_CFLAGS
="$CFLAGS"
5681 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
5682 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5687 if ac_fn_c_try_compile
"$LINENO"; then :
5690 PGO_BUILD_LTO_CFLAGS
=
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 CFLAGS
="$old_CFLAGS"
5694 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5701 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5709 # Used for setting $lt_cv_objdir
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5711 $as_echo_n "checking for objdir... " >&6; }
5712 if ${lt_cv_objdir+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5715 rm -f .libs
2>/dev
/null
5716 mkdir .libs
2>/dev
/null
5717 if test -d .libs
; then
5720 # MS-DOS does not allow filenames that begin with a dot.
5723 rmdir .libs
2>/dev
/null
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5726 $as_echo "$lt_cv_objdir" >&6; }
5727 objdir
=$lt_cv_objdir
5733 cat >>confdefs.h
<<_ACEOF
5734 #define LT_OBJDIR "$lt_cv_objdir/"
5739 # Check for GMP, MPFR and MPC
5740 gmplibs
="-lmpc -lmpfr -lgmp"
5744 # Specify a location for mpc
5745 # check for this first so it ends up on the link line before mpfr.
5747 # Check whether --with-mpc was given.
5748 if test "${with_mpc+set}" = set; then :
5753 # Check whether --with-mpc-include was given.
5754 if test "${with_mpc_include+set}" = set; then :
5755 withval
=$with_mpc_include;
5759 # Check whether --with-mpc-lib was given.
5760 if test "${with_mpc_lib+set}" = set; then :
5761 withval
=$with_mpc_lib;
5765 if test "x$with_mpc" != x
; then
5766 gmplibs
="-L$with_mpc/lib $gmplibs"
5767 gmpinc
="-I$with_mpc/include $gmpinc"
5769 if test "x$with_mpc_include" != x
; then
5770 gmpinc
="-I$with_mpc_include $gmpinc"
5772 if test "x$with_mpc_lib" != x
; then
5773 gmplibs
="-L$with_mpc_lib $gmplibs"
5775 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
5776 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5777 gmpinc
='-I$$s/mpc/src '"$gmpinc"
5778 # Do not test the mpc version. Assume that it is sufficient, since
5779 # it is in the source tree, and the library has not been built yet
5780 # but it would be included on the link line in the version check below
5781 # hence making the test fail.
5785 # Specify a location for mpfr
5786 # check for this first so it ends up on the link line before gmp.
5788 # Check whether --with-mpfr-dir was given.
5789 if test "${with_mpfr_dir+set}" = set; then :
5790 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
5791 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5796 # Check whether --with-mpfr was given.
5797 if test "${with_mpfr+set}" = set; then :
5802 # Check whether --with-mpfr-include was given.
5803 if test "${with_mpfr_include+set}" = set; then :
5804 withval
=$with_mpfr_include;
5808 # Check whether --with-mpfr-lib was given.
5809 if test "${with_mpfr_lib+set}" = set; then :
5810 withval
=$with_mpfr_lib;
5814 if test "x$with_mpfr" != x
; then
5815 gmplibs
="-L$with_mpfr/lib $gmplibs"
5816 gmpinc
="-I$with_mpfr/include $gmpinc"
5818 if test "x$with_mpfr_include" != x
; then
5819 gmpinc
="-I$with_mpfr_include $gmpinc"
5821 if test "x$with_mpfr_lib" != x
; then
5822 gmplibs
="-L$with_mpfr_lib $gmplibs"
5824 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
5825 # MPFR v3.1.0 moved the sources into a src sub-directory.
5826 if ! test -d ${srcdir}/mpfr
/src
; then
5827 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5829 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5830 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5831 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5832 # Do not test the mpfr version. Assume that it is sufficient, since
5833 # it is in the source tree, and the library has not been built yet
5834 # but it would be included on the link line in the version check below
5835 # hence making the test fail.
5839 # Specify a location for gmp
5841 # Check whether --with-gmp-dir was given.
5842 if test "${with_gmp_dir+set}" = set; then :
5843 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
5844 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5849 # Check whether --with-gmp was given.
5850 if test "${with_gmp+set}" = set; then :
5855 # Check whether --with-gmp-include was given.
5856 if test "${with_gmp_include+set}" = set; then :
5857 withval
=$with_gmp_include;
5861 # Check whether --with-gmp-lib was given.
5862 if test "${with_gmp_lib+set}" = set; then :
5863 withval
=$with_gmp_lib;
5868 if test "x$with_gmp" != x
; then
5869 gmplibs
="-L$with_gmp/lib $gmplibs"
5870 gmpinc
="-I$with_gmp/include $gmpinc"
5872 if test "x$with_gmp_include" != x
; then
5873 gmpinc
="-I$with_gmp_include $gmpinc"
5875 if test "x$with_gmp_lib" != x
; then
5876 gmplibs
="-L$with_gmp_lib $gmplibs"
5878 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
5879 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5880 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5881 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5882 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5883 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5884 # Do not test the gmp version. Assume that it is sufficient, since
5885 # it is in the source tree, and the library has not been built yet
5886 # but it would be included on the link line in the version check below
5887 # hence making the test fail.
5891 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
5893 saved_CFLAGS
="$CFLAGS"
5894 CFLAGS
="$CFLAGS $gmpinc"
5895 # Check for the recommended and required versions of GMP.
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5897 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5905 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5906 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5907 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5915 if ac_fn_c_try_compile
"$LINENO"; then :
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5923 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5924 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5925 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5933 if ac_fn_c_try_compile
"$LINENO"; then :
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935 $as_echo "yes" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5938 $as_echo "buggy but acceptable" >&6; }
5940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }; have_gmp
=no
5945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5947 # If we have GMP, check the MPFR version.
5948 if test x
"$have_gmp" = xyes
; then
5949 # Check for the recommended and required versions of MPFR.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5951 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5960 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5968 if ac_fn_c_try_compile
"$LINENO"; then :
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5977 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5985 if ac_fn_c_try_compile
"$LINENO"; then :
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5987 $as_echo "yes" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5990 $as_echo "buggy but acceptable" >&6; }
5992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }; have_gmp
=no
5997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6000 # Check for the MPC header version.
6001 if test x
"$have_gmp" = xyes
; then
6002 # Check for the recommended and required versions of MPC.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6004 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6012 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6020 if ac_fn_c_try_compile
"$LINENO"; then :
6021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6036 if ac_fn_c_try_compile
"$LINENO"; then :
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038 $as_echo "yes" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6041 $as_echo "buggy but acceptable" >&6; }
6043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }; have_gmp
=no
6048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 # Now check the MPFR library.
6052 if test x
"$have_gmp" = xyes
; then
6054 LIBS
="$LIBS $gmplibs"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6056 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6070 mpfr_atan2 (n, n, x, GMP_RNDN);
6071 mpfr_erfc (n, x, GMP_RNDN);
6072 mpfr_subnormalize (x, t, GMP_RNDN);
6076 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6077 mpc_cosh (c, c, MPC_RNDNN);
6078 mpc_pow (c, c, c, MPC_RNDNN);
6079 mpc_acosh (c, c, MPC_RNDNN);
6086 if ac_fn_c_try_link
"$LINENO"; then :
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088 $as_echo "yes" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }; have_gmp
=no
6093 rm -f core conftest.err conftest.
$ac_objext \
6094 conftest
$ac_exeext conftest.
$ac_ext
6098 CFLAGS
="$saved_CFLAGS"
6100 # The library versions listed in the error message below should match
6101 # the HARD-minimums enforced above.
6102 if test x
$have_gmp != xyes
; then
6103 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6104 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6105 their locations. Source code for these libraries can be found at
6106 their respective hosting sites as well as at
6107 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6108 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6109 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6110 make sure that you have installed both the libraries and the header
6111 files. They may be located in separate packages." "$LINENO" 5
6115 # Flags needed for both GMP, MPFR and/or MPC.
6123 # Libraries to use for stage1 or when not bootstrapping.
6125 # Check whether --with-stage1-libs was given.
6126 if test "${with_stage1_libs+set}" = set; then :
6127 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6130 stage1_libs
=$withval
6138 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6139 # default is yes if gcc is being built; no otherwise. The reason for
6140 # this default is that gdb is sometimes linked against GNU Source
6141 # Highlight, which is a shared library that uses C++ exceptions. In
6142 # this case, -static-libstdc++ will cause crashes.
6144 # Check whether --with-static-standard-libraries was given.
6145 if test "${with_static_standard_libraries+set}" = set; then :
6146 withval
=$with_static_standard_libraries;
6148 with_static_standard_libraries
=auto
6151 if test "$with_static_standard_libraries" = auto
; then
6152 with_static_standard_libraries
=$have_compiler
6155 # Linker flags to use for stage1 or when not bootstrapping.
6157 # Check whether --with-stage1-ldflags was given.
6158 if test "${with_stage1_ldflags+set}" = set; then :
6159 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6162 stage1_ldflags
=$withval
6166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6167 # if supported. But if the user explicitly specified the libraries to use,
6168 # trust that they are doing what they want.
6169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6170 -a "$have_static_libs" = yes; then
6171 stage1_ldflags
="-static-libstdc++ -static-libgcc"
6177 # Libraries to use for stage2 and later builds.
6179 # Check whether --with-boot-libs was given.
6180 if test "${with_boot_libs+set}" = set; then :
6181 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6184 poststage1_libs
=$withval
6192 # Linker flags to use for stage2 and later builds.
6194 # Check whether --with-boot-ldflags was given.
6195 if test "${with_boot_ldflags+set}" = set; then :
6196 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6199 poststage1_ldflags
=$withval
6203 # In stages 2 and 3, default to linking libstdc++ and libgcc
6204 # statically. But if the user explicitly specified the libraries to
6205 # use, trust that they are doing what they want.
6206 if test "$poststage1_libs" = ""; then
6207 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
6213 # GCC GRAPHITE dependency isl.
6214 # Basic setup is inlined here, actual checks are in config/isl.m4
6217 # Check whether --with-isl was given.
6218 if test "${with_isl+set}" = set; then :
6223 # Treat --without-isl as a request to disable
6224 # GRAPHITE support and skip all following checks.
6225 if test "x$with_isl" != "xno"; then
6229 # Check whether --with-isl-include was given.
6230 if test "${with_isl_include+set}" = set; then :
6231 withval
=$with_isl_include;
6235 # Check whether --with-isl-lib was given.
6236 if test "${with_isl_lib+set}" = set; then :
6237 withval
=$with_isl_lib;
6241 # Check whether --enable-isl-version-check was given.
6242 if test "${enable_isl_version_check+set}" = set; then :
6243 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
6245 ENABLE_ISL_CHECK
=yes
6249 # Initialize isllibs and islinc.
6258 isllibs
="-L$with_isl/lib"
6259 islinc
="-I$with_isl/include"
6262 if test "x${with_isl_include}" != x
; then
6263 islinc
="-I$with_isl_include"
6265 if test "x${with_isl_lib}" != x
; then
6266 isllibs
="-L$with_isl_lib"
6268 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
6269 && test -d ${srcdir}/isl
; then
6270 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6271 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6274 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6277 isllibs
="${isllibs} -lisl"
6281 if test "${ENABLE_ISL_CHECK}" = yes ; then
6282 _isl_saved_CFLAGS
=$CFLAGS
6283 _isl_saved_LDFLAGS
=$LDFLAGS
6284 _isl_saved_LIBS
=$LIBS
6286 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6287 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6288 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6291 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <isl/schedule.h>
6298 isl_options_set_schedule_serialize_sccs (NULL, 0);
6303 if ac_fn_c_try_link
"$LINENO"; then :
6308 rm -f core conftest.err conftest.
$ac_objext \
6309 conftest
$ac_exeext conftest.
$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6311 $as_echo "$gcc_cv_isl" >&6; }
6313 if test "${gcc_cv_isl}" = no
; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6315 $as_echo "required isl version is 0.15 or later" >&6; }
6318 CFLAGS
=$_isl_saved_CFLAGS
6319 LDFLAGS
=$_isl_saved_LDFLAGS
6320 LIBS
=$_isl_saved_LIBS
6328 if test "x${with_isl}" = xno
; then
6329 graphite_requested
=no
6330 elif test "x${with_isl}" != x \
6331 ||
test "x${with_isl_include}" != x \
6332 ||
test "x${with_isl_lib}" != x
; then
6333 graphite_requested
=yes
6335 graphite_requested
=no
6340 if test "${gcc_cv_isl}" = no
; then
6345 if test "${graphite_requested}" = yes \
6346 && test "x${isllibs}" = x \
6347 && test "x${islinc}" = x
; then
6349 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
6355 # If the isl check failed, disable builds of in-tree variant of isl
6356 if test "x$with_isl" = xno ||
6357 test "x$gcc_cv_isl" = xno
; then
6358 noconfigdirs
="$noconfigdirs isl"
6365 # Check for LTO support.
6366 # Check whether --enable-lto was given.
6367 if test "${enable_lto+set}" = set; then :
6368 enableval
=$enable_lto; enable_lto
=$enableval
6370 enable_lto
=yes; default_enable_lto
=yes
6379 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
6380 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
6381 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
6390 if test $target_elf = yes; then :
6391 # ELF platforms build the lto-plugin always.
6392 build_lto_plugin
=yes
6395 if test x
"$default_enable_lto" = x
"yes" ; then
6397 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
6398 # On other non-ELF platforms, LTO has yet to be validated.
6402 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6403 # It would also be nice to check the binutils support, but we don't
6404 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6405 # warn during gcc/ subconfigure; unless you're bootstrapping with
6406 # -flto it won't be needed until after installation anyway.
6408 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
6409 *) if test x
"$enable_lto" = x
"yes"; then
6410 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
6415 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6416 # Build it unless LTO was explicitly disabled.
6418 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
6425 # Check whether --enable-linker-plugin-configure-flags was given.
6426 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6427 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
6429 extra_linker_plugin_configure_flags
=
6433 # Check whether --enable-linker-plugin-flags was given.
6434 if test "${enable_linker_plugin_flags+set}" = set; then :
6435 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
6437 extra_linker_plugin_flags
=
6442 # Enable --enable-host-shared.
6443 # Checked early to determine whether jit is an 'all' language
6444 # Check whether --enable-host-shared was given.
6445 if test "${enable_host_shared+set}" = set; then :
6446 enableval
=$enable_host_shared; host_shared
=$enableval
6453 # By default, C and C++ are the only stage 1 languages.
6454 stage1_languages
=,c
,
6456 # Target libraries that we bootstrap.
6457 bootstrap_target_libs
=,target-libgcc
,
6459 # Figure out what language subdirectories are present.
6460 # Look if the user specified --enable-languages="..."; if not, use
6461 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6463 # NB: embedded tabs in this IF block -- do not untabify
6464 if test -d ${srcdir}/gcc
; then
6465 if test x
"${enable_languages+set}" != xset
; then
6466 if test x
"${LANGUAGES+set}" = xset
; then
6467 enable_languages
="${LANGUAGES}"
6468 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
6470 enable_languages
=default
6473 if test x
"${enable_languages}" = x ||
6474 test x
"${enable_languages}" = xyes
;
6476 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
6480 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6482 # 'f95' is the old name for the 'fortran' language. We issue a warning
6483 # and make the substitution.
6484 case ,${enable_languages}, in
6486 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
6487 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6491 # If bootstrapping, C++ must be enabled.
6492 case ",$enable_languages,:$enable_bootstrap" in
6495 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
6496 enable_languages
="${enable_languages},c++"
6498 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
6503 # First scan to see if an enabled language requires some other language.
6504 # We assume that a given config-lang.in will list all the language
6505 # front ends it requires, even if some are required indirectly.
6506 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6507 case ${lang_frag} in
6509 # The odd quoting in the next line works around
6510 # an apparent bug in bash 1.12 on linux.
6511 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6513 # From the config-lang.in, get $language, $lang_requires, and
6514 # $lang_requires_boot_languages.
6517 lang_requires_boot_languages
=
6518 # set srcdir during sourcing lang_frag to the gcc dir.
6519 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6520 # polutes this shell
6521 saved_srcdir
=${srcdir}
6522 srcdir
=${srcdir}/gcc .
${lang_frag}
6523 srcdir
=${saved_srcdir}
6524 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
6525 case ,${enable_languages}, in
6530 echo " \`$other' language required by \`$language'; enabling" 1>&2
6531 enable_languages
="${enable_languages},${other}"
6535 for other
in ${lang_requires_boot_languages} ; do
6536 if test "$other" != "c"; then
6537 case ,${enable_stage1_languages}, in
6542 case ,${enable_languages}, in
6544 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6545 enable_stage1_languages
="$enable_stage1_languages,${other}"
6556 new_enable_languages
=,c
,
6558 # If LTO is enabled, add the LTO front end.
6559 if test "$enable_lto" = "yes" ; then
6560 case ,${enable_languages}, in
6562 *) enable_languages
="${enable_languages},lto" ;;
6564 if test "${build_lto_plugin}" = "yes" ; then
6565 configdirs
="$configdirs lto-plugin"
6569 # If we're building an offloading compiler, add the LTO front end.
6570 if test x
"$enable_as_accelerator_for" != x
; then
6571 case ,${enable_languages}, in
6573 *) enable_languages
="${enable_languages},lto" ;;
6577 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6578 potential_languages
=,c
,
6580 enabled_target_libs
=
6581 disabled_target_libs
=
6583 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6584 case ${lang_frag} in
6586 # The odd quoting in the next line works around
6587 # an apparent bug in bash 1.12 on linux.
6588 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6590 # From the config-lang.in, get $language, $target_libs,
6591 # $lang_dirs, $boot_language, and $build_by_default
6597 build_by_default
=yes
6598 # set srcdir during sourcing. See above about save & restore
6599 saved_srcdir
=${srcdir}
6600 srcdir
=${srcdir}/gcc .
${lang_frag}
6601 srcdir
=${saved_srcdir}
6602 if test x
${language} = x
; then
6603 echo "${lang_frag} doesn't set \$language." 1>&2
6607 if test "$language" = "c++"; then
6612 # C is always enabled, so no need to add it again
6613 if test "$language" != "c"; then
6614 case ,${enable_languages}, in
6616 # Language was explicitly selected; include it
6620 # All languages are enabled
6624 # 'default' was selected, select it if it is a default language
6625 add_this_lang
=${build_by_default}
6630 # Disable languages that need other directories if these aren't available.
6631 for i
in $subdir_requires; do
6632 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6633 case ${add_this_lang} in
6635 # Specifically requested language; tell them.
6636 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6640 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6641 add_this_lang
=unsupported
6645 add_this_lang
=unsupported
6650 # Disable Ada if no preexisting GNAT is available.
6651 case ${add_this_lang}:${language}:${have_gnat} in
6653 # Specifically requested language; tell them.
6654 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6658 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6659 add_this_lang
=unsupported
6663 add_this_lang
=unsupported
6667 # Disable jit if -enable-host-shared not specified
6668 case ${add_this_lang}:${language}:${host_shared} in
6670 # PR jit/64780: explicitly specify --enable-host-shared
6672 Enabling language \"jit\" requires --enable-host-shared.
6674 --enable-host-shared typically slows the rest of the compiler down by
6675 a few %, so you must explicitly enable it.
6677 If you want to build both the jit and the regular compiler, it is often
6678 best to do this via two separate configure/builds, in separate
6679 directories, to avoid imposing the performance cost of
6680 --enable-host-shared on the regular compiler." "$LINENO" 5
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6684 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6685 add_this_lang
=unsupported
6689 add_this_lang
=unsupported
6693 # Disable a language that is unsupported by the target.
6694 case "${add_this_lang}: $unsupported_languages " in
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6699 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6700 add_this_lang
=unsupported
6704 case $add_this_lang in
6706 # Remove language-dependent dirs.
6707 disabled_target_libs
="$disabled_target_libs $target_libs"
6708 noconfigdirs
="$noconfigdirs $lang_dirs"
6711 # Remove language-dependent dirs; still show language as supported.
6712 disabled_target_libs
="$disabled_target_libs $target_libs"
6713 noconfigdirs
="$noconfigdirs $lang_dirs"
6714 potential_languages
="${potential_languages}${language},"
6717 new_enable_languages
="${new_enable_languages}${language},"
6718 potential_languages
="${potential_languages}${language},"
6719 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
6720 enabled_target_libs
="$enabled_target_libs $target_libs"
6721 case "${boot_language}:,$enable_stage1_languages," in
6722 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
6723 # Add to (comma-separated) list of stage 1 languages.
6724 case ",$stage1_languages," in
6725 *,$language,* |
,yes, |
,all
,) ;;
6726 *) stage1_languages
="${stage1_languages}${language}," ;;
6728 # We need to bootstrap any supporting libraries.
6729 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
6738 # Add target libraries which are only needed for disabled languages
6740 if test -n "$disabled_target_libs"; then
6741 for dir
in $disabled_target_libs; do
6742 case " $enabled_target_libs " in
6744 *) noconfigdirs
="$noconfigdirs $dir" ;;
6749 # Check whether --enable-stage1-languages was given.
6750 if test "${enable_stage1_languages+set}" = set; then :
6751 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6753 # Set it to something that will have no effect in the loop below
6754 enable_stage1_languages
=c
;;
6756 enable_stage1_languages
=`echo $new_enable_languages | \
6757 sed -e "s/^,//" -e "s/,$//" ` ;;
6759 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
6760 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6763 # Add "good" languages from enable_stage1_languages to stage1_languages,
6764 # while "bad" languages go in missing_languages. Leave no duplicates.
6765 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6766 case $potential_languages in
6768 case $stage1_languages in
6770 *) stage1_languages
="$stage1_languages$i," ;;
6773 case $missing_languages in
6775 *) missing_languages
="$missing_languages$i," ;;
6782 # Remove leading/trailing commas that were added for simplicity
6783 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6784 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6785 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6786 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6788 if test "x$missing_languages" != x
; then
6790 The following requested languages could not be built: ${missing_languages}
6791 Supported languages are: ${potential_languages}" "$LINENO" 5
6793 if test "x$new_enable_languages" != "x$enable_languages"; then
6794 echo The following languages will be built
: ${new_enable_languages}
6795 enable_languages
="$new_enable_languages"
6799 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6802 # Handle --disable-<component> generically.
6803 for dir
in $configdirs $build_configdirs $target_configdirs ; do
6804 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6805 varname
=`echo $dirname | sed -e s/+/_/g`
6806 if eval test x\
${enable_${varname}} "=" xno
; then
6807 noconfigdirs
="$noconfigdirs $dir"
6811 # Check for Boehm's garbage collector
6812 # Check whether --enable-objc-gc was given.
6813 if test "${enable_objc_gc+set}" = set; then :
6814 enableval
=$enable_objc_gc;
6818 # Check whether --with-target-bdw-gc was given.
6819 if test "${with_target_bdw_gc+set}" = set; then :
6820 withval
=$with_target_bdw_gc;
6824 # Check whether --with-target-bdw-gc-include was given.
6825 if test "${with_target_bdw_gc_include+set}" = set; then :
6826 withval
=$with_target_bdw_gc_include;
6830 # Check whether --with-target-bdw-gc-lib was given.
6831 if test "${with_target_bdw_gc_lib+set}" = set; then :
6832 withval
=$with_target_bdw_gc_lib;
6836 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6838 $as_echo_n "checking for bdw garbage collector... " >&6; }
6839 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6841 $as_echo "using bdw-gc in default locations" >&6; }
6843 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
6844 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6845 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
6846 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6849 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6854 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6855 case ,${enable_languages}, in
6857 # Disable libitm, libsanitizer if we're not building libstdc++
6858 case "${noconfigdirs}" in
6859 *target-libstdc
++-v3*)
6860 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
6866 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6870 # If gcc/ is not in the source tree then we'll not be building a
6871 # target compiler, assume in that case we don't want to build any
6872 # target libraries or tools.
6874 # This was added primarily for the benefit for binutils-gdb who reuse
6875 # this configure script, but don't always have target tools available.
6876 if test ! -d ${srcdir}/gcc
; then
6877 skipdirs
="${skipdirs} ${target_configdirs}"
6880 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6881 # $build_configdirs and $target_configdirs.
6882 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6885 for dir
in .
$skipdirs $noconfigdirs ; do
6886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6887 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6888 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6889 if test -r $srcdir/$dirname/configure
; then
6890 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6893 notsupp
="$notsupp $dir"
6897 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6898 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6899 if test -r $srcdir/$dirname/configure
; then
6900 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6903 notsupp
="$notsupp $dir"
6907 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6908 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6909 if test -r $srcdir/$dirname/configure
; then
6910 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6913 notsupp
="$notsupp $dir"
6919 # Quietly strip out all directories which aren't configurable in this tree.
6920 # This relies on all configurable subdirectories being autoconfiscated, which
6922 build_configdirs_all
="$build_configdirs"
6924 for i
in ${build_configdirs_all} ; do
6925 j
=`echo $i | sed -e s/build-//g`
6926 if test -f ${srcdir}/$j/configure
; then
6927 build_configdirs
="${build_configdirs} $i"
6931 configdirs_all
="$configdirs"
6933 for i
in ${configdirs_all} ; do
6934 if test -f ${srcdir}/$i/configure
; then
6935 configdirs
="${configdirs} $i"
6939 target_configdirs_all
="$target_configdirs"
6941 for i
in ${target_configdirs_all} ; do
6942 j
=`echo $i | sed -e s/target-//g`
6943 if test -f ${srcdir}/$j/configure
; then
6944 target_configdirs
="${target_configdirs} $i"
6948 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6949 # so we have to add it after the preceding checks.
6950 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6952 case " $configdirs " in
6954 # If we can build libiberty, we can also build libiberty-linker-plugin.
6955 configdirs
="$configdirs libiberty-linker-plugin"
6956 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
6957 --with-libiberty=../libiberty-linker-plugin";;
6959 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
6963 # Sometimes we have special requirements for the host libiberty.
6964 extra_host_libiberty_configure_flags
=
6965 extra_host_zlib_configure_flags
=
6966 case " $configdirs " in
6967 *" lto-plugin "* |
*" libcc1 "*)
6968 # When these are to be built as shared libraries, the same applies to
6970 extra_host_libiberty_configure_flags
=--enable-shared
6973 # When bfd is to be built as a shared library, the same applies to
6975 if test "$enable_shared" = "yes"; then
6976 extra_host_zlib_configure_flags
=--enable-host-shared
6983 # Produce a warning message for the subdirs we can't configure.
6984 # This isn't especially interesting in the Cygnus tree, but in the individual
6985 # FSF releases, it's important to let people know when their machine isn't
6986 # supported by the one or two programs in a package.
6988 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6989 # If $appdirs is non-empty, at least one of those directories must still
6990 # be configured, or we error out. (E.g., if the gas release supports a
6991 # specified target in some subdirs but not the gas subdir, we shouldn't
6992 # pretend that all is well.)
6993 if test -n "$appdirs" ; then
6994 for dir
in $appdirs ; do
6995 if test -r $dir/Makefile.
in ; then
6996 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
7000 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
7006 if test -n "$appdirs" ; then
7007 echo "*** This configuration is not supported by this package." 1>&2
7011 # Okay, some application will build, or we don't care to check. Still
7012 # notify of subdirs not getting built.
7013 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7014 echo " ${notsupp}" 1>&2
7015 echo " (Any other directories should still work fine.)" 1>&2
7023 # To find our prefix, in gcc_cv_tool_prefix.
7025 # The user is always right.
7026 if test "${PATH_SEPARATOR+set}" != set; then
7027 echo "#! /bin/sh" >conf$$.sh
7028 echo "exit 0" >>conf$$.sh
7030 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7039 get_gcc_base_ver
="cat"
7041 # Check whether --with-gcc-major-version-only was given.
7042 if test "${with_gcc_major_version_only+set}" = set; then :
7043 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
7044 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
7054 if test "x$exec_prefix" = xNONE
; then
7055 if test "x$prefix" = xNONE
; then
7056 gcc_cv_tool_prefix
=$ac_default_prefix
7058 gcc_cv_tool_prefix
=$prefix
7061 gcc_cv_tool_prefix
=$exec_prefix
7064 # If there is no compiler in the tree, use the PATH only. In any
7065 # case, if there is no compiler in the tree nobody should use
7066 # AS_FOR_TARGET and LD_FOR_TARGET.
7067 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
7068 if test x
$with_gcc_major_version_only = xyes
; then
7069 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7071 gcc_version
=`cat $srcdir/gcc/BASE-VER`
7073 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7074 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7075 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7076 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7077 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7078 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7083 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
7084 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7092 # Check whether --with-build-sysroot was given.
7093 if test "${with_build_sysroot+set}" = set; then :
7094 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7095 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7098 SYSROOT_CFLAGS_FOR_TARGET
=
7104 # Check whether --with-debug-prefix-map was given.
7105 if test "${with_debug_prefix_map+set}" = set; then :
7106 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
7107 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
7108 for debug_map
in $withval; do
7109 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7113 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
7118 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7119 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7120 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7121 # We want to ensure that TARGET libraries (which we know are built with
7122 # gcc) are built with "-O2 -g", so include those options when setting
7123 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7124 if test "x$CFLAGS_FOR_TARGET" = x
; then
7125 if test "x${is_cross_compiler}" = xyes
; then
7126 CFLAGS_FOR_TARGET
="-g -O2"
7128 CFLAGS_FOR_TARGET
=$CFLAGS
7131 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
7134 *" -g "* |
*" -g3 "*) ;;
7135 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
7141 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
7142 if test "x${is_cross_compiler}" = xyes
; then
7143 CXXFLAGS_FOR_TARGET
="-g -O2"
7145 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
7146 case " $CXXFLAGS " in
7148 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
7150 case " $CXXFLAGS " in
7151 *" -g "* |
*" -g3 "*) ;;
7152 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
7160 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7161 # the named directory are copied to $(tooldir)/sys-include.
7162 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
7163 if test x
${is_cross_compiler} = xno
; then
7164 echo 1>&2 '***' --with-headers is only supported when cross compiling
7167 if test x
"${with_headers}" != xyes
; then
7168 x
=${gcc_cv_tool_prefix}
7169 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7173 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7174 # the name directories are copied to $(tooldir)/lib. Multiple directories
7176 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
7177 if test x
${is_cross_compiler} = xno
; then
7178 echo 1>&2 '***' --with-libs is only supported when cross compiling
7181 if test x
"${with_libs}" != xyes
; then
7182 # Copy the libraries in reverse order, so that files in the first named
7183 # library override files in subsequent libraries.
7184 x
=${gcc_cv_tool_prefix}
7185 for l
in ${with_libs}; do
7186 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7191 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7193 # This is done by determining whether or not the appropriate directory
7194 # is available, and by checking whether or not specific configurations
7195 # have requested that this magic not happen.
7197 # The command line options always override the explicit settings in
7198 # configure.ac, and the settings in configure.ac override this magic.
7200 # If the default for a toolchain is to use GNU as and ld, and you don't
7201 # want to do that, then you should use the --without-gnu-as and
7202 # --without-gnu-ld options for the configure script. Similarly, if
7203 # the default is to use the included zlib and you don't want to do that,
7204 # you should use the --with-system-zlib option for the configure script.
7206 if test x
${use_gnu_as} = x
&&
7207 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
7209 extra_host_args
="$extra_host_args --with-gnu-as"
7212 if test x
${use_gnu_ld} = x
&&
7213 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
7215 extra_host_args
="$extra_host_args --with-gnu-ld"
7218 if test x
${use_included_zlib} = x
&&
7219 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
7222 with_system_zlib
=yes
7223 extra_host_args
="$extra_host_args --with-system-zlib"
7226 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7227 # can detect this case.
7229 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
7231 extra_host_args
="$extra_host_args --with-newlib"
7234 # Handle ${copy_dirs}
7235 set fnord
${copy_dirs}
7237 while test $# != 0 ; do
7238 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
7241 echo Copying
$1 to
$2
7243 # Use the install script to create the directory and all required
7244 # parent directories.
7245 if test -d $2 ; then
7249 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
7252 # Copy the directory, assuming we have tar.
7253 # FIXME: Should we use B in the second tar? Not all systems support it.
7254 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
7256 # It is the responsibility of the user to correctly adjust all
7257 # symlinks. If somebody can figure out how to handle them correctly
7258 # here, feel free to add the code.
7265 # Determine a target-dependent exec_prefix that the installed
7266 # gcc will search in. Keep this list sorted by triplet, with
7267 # the *-*-osname triplets last.
7270 i
[34567]86-pc-msdosdjgpp*)
7271 md_exec_prefix
=/dev
/env
/DJDIR
/bin
7276 md_exec_prefix
=/usr
/ccs
/bin
7280 extra_arflags_for_target
=
7281 extra_nmflags_for_target
=
7282 extra_ranlibflags_for_target
=
7283 target_makefile_frag
=/dev
/null
7286 target_makefile_frag
="config/mt-spu"
7288 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
7289 target_makefile_frag
="config/mt-sde"
7291 mipsisa
*-*-elfoabi*)
7292 target_makefile_frag
="config/mt-mips-elfoabi"
7294 mips
*-*-*linux
* | mips
*-*-gnu*)
7295 target_makefile_frag
="config/mt-mips-gnu"
7298 target_makefile_frag
="config/mt-nios2-elf"
7301 target_makefile_frag
="config/mt-android"
7303 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
7304 target_makefile_frag
="config/mt-gnu"
7306 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
7307 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7308 # commands to handle both 32-bit and 64-bit objects. These flags are
7309 # harmless if we're using GNU nm or ar.
7310 extra_arflags_for_target
=" -X32_64"
7311 extra_nmflags_for_target
=" -B -X32_64"
7315 alphaieee_frag
=/dev
/null
7318 # This just makes sure to use the -mieee option to build target libs.
7319 # This should probably be set individually by each library.
7320 alphaieee_frag
="config/mt-alphaieee"
7324 # If --enable-target-optspace always use -Os instead of -O2 to build
7325 # the target libraries, similarly if it is not specified, use -Os
7326 # on selected platforms.
7327 ospace_frag
=/dev
/null
7328 case "${enable_target_optspace}:${target}" in
7330 ospace_frag
="config/mt-ospace"
7333 ospace_frag
="config/mt-d30v"
7335 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
7336 ospace_frag
="config/mt-ospace"
7341 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7345 # Some systems (e.g., one of the i386-aix systems the gas testers are
7346 # using) don't handle "\$" correctly, so don't use it here.
7347 tooldir
='${exec_prefix}'/${target_noncanonical}
7348 build_tooldir
=${tooldir}
7350 # Create a .gdbinit file which runs the one in srcdir
7351 # and tells GDB to look there for source files.
7353 if test -r ${srcdir}/.gdbinit
; then
7356 *) cat > .
/.gdbinit
<<EOF
7360 source ${srcdir}/.gdbinit
7366 # Make sure that the compiler is able to generate an executable. If it
7367 # can't, we are probably in trouble. We don't care whether we can run the
7368 # executable--we might be using a cross compiler--we only care whether it
7369 # can be created. At this point the main configure script has set CC.
7371 echo "int main () { return 0; }" > conftest.c
7372 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7373 if test $?
= 0 ; then
7374 if test -s conftest ||
test -s conftest.exe
; then
7380 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7381 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7388 # Decide which environment variable is used to find dynamic libraries.
7390 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
7391 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
7392 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
7393 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
7396 # On systems where the dynamic library environment variable is PATH,
7397 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7398 # built executables to PATH.
7399 if test "$RPATH_ENVVAR" = PATH
; then
7400 GCC_SHLIB_SUBDIR
=/shlib
7405 # Adjust the toplevel makefile according to whether bootstrap was selected.
7406 case $enable_bootstrap in
7408 bootstrap_suffix
=bootstrap
7409 BUILD_CONFIG
=bootstrap-debug
7412 bootstrap_suffix
=no-bootstrap
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7418 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7421 # Check whether --with-build-config was given.
7422 if test "${with_build_config+set}" = set; then :
7423 withval
=$with_build_config; case $with_build_config in
7424 yes) with_build_config
= ;;
7425 no
) with_build_config
= BUILD_CONFIG
= ;;
7430 if test "x${with_build_config}" != x
; then
7431 BUILD_CONFIG
=$with_build_config
7433 case $BUILD_CONFIG in
7435 if echo "int f (void) { return 0; }" > conftest.c
&&
7436 ${CC} -c conftest.c
&&
7437 mv conftest.o conftest.o.g0
&&
7438 ${CC} -c -g conftest.c
&&
7439 mv conftest.o conftest.o.g
&&
7440 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
7445 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7450 $as_echo "$BUILD_CONFIG" >&6; }
7453 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7455 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7456 # Check whether --enable-vtable-verify was given.
7457 if test "${enable_vtable_verify+set}" = set; then :
7458 enableval
=$enable_vtable_verify; case "$enableval" in
7459 yes) enable_vtable_verify
=yes ;;
7460 no
) enable_vtable_verify
=no
;;
7461 *) enable_vtable_verify
=no
;;
7464 enable_vtable_verify
=no
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7468 $as_echo "$enable_vtable_verify" >&6; }
7470 # Record target_configdirs and the configure arguments for target and
7471 # build configuration in Makefile.
7472 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7473 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7474 bootstrap_fixincludes
=no
7476 # If we are building libgomp, bootstrap it.
7477 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
7478 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
7481 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7482 # or bootstrap-ubsan, bootstrap it.
7483 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
7484 case "$BUILD_CONFIG" in
7485 *bootstrap-asan
* |
*bootstrap-ubsan
* )
7486 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
7487 bootstrap_fixincludes
=yes
7492 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7493 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
7494 test "$enable_vtable_verify" != no
; then
7495 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
7498 # Determine whether gdb needs tk/tcl or not.
7499 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7500 # and in that case we want gdb to be built without tk. Ugh!
7501 # In fact I believe gdb is the *only* package directly dependent on tk,
7502 # so we should be able to put the 'maybe's in unconditionally and
7503 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7504 # 100% sure that that's safe though.
7506 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7507 case "$enable_gdbtk" in
7511 GDB_TK
="${gdb_tk}" ;;
7513 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7514 # distro. Eventually someone will fix this and move Insight, nee
7515 # gdbtk to a separate directory.
7516 if test -d ${srcdir}/gdb
/gdbtk
; then
7523 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7524 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7526 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7527 # else does, only include them if one of these is built. The Makefile
7528 # provides the ordering, so it's enough here to add to the list.
7529 case " ${configdirs} " in
7531 configdirs
="${configdirs} gnulib gdbsupport"
7534 configdirs
="${configdirs} gnulib gdbsupport"
7537 configdirs
="${configdirs} gnulib"
7541 # Strip out unwanted targets.
7543 # While at that, we remove Makefiles if we were started for recursive
7544 # configuration, so that the top-level Makefile reconfigures them,
7545 # like we used to do when configure itself was recursive.
7547 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7548 # but now we're fixing up the Makefile ourselves with the additional
7549 # commands passed to AC_CONFIG_FILES. Use separate variables
7550 # extrasub-{build,host,target} not because there is any reason to split
7551 # the substitutions up that way, but only to remain below the limit of
7552 # 99 commands in a script, for HP-UX sed.
7554 # Do not nest @if/@endif or @unless/@endunless pairs, because
7555 # configure will not warn you at all.
7557 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7558 yes:yes:*\ gold\
*:*,c
++,*) ;;
7559 yes:yes:*\ gold\
*:*)
7560 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7565 for module
in ${build_configdirs} ; do
7566 if test -z "${no_recursion}" \
7567 && test -f ${build_subdir}/${module}/Makefile
; then
7568 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7569 rm -f ${build_subdir}/${module}/Makefile
7571 extrasub_build
="$extrasub_build
7572 /^@if build-$module\$/d
7573 /^@endif build-$module\$/d
7574 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7575 /^@if build-$module-$bootstrap_suffix\$/d
7576 /^@endif build-$module-$bootstrap_suffix\$/d
7577 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7580 for module
in ${configdirs} ; do
7581 if test -z "${no_recursion}"; then
7582 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
7583 if test -f ${file}; then
7584 echo 1>&2 "*** removing ${file} to force reconfigure"
7589 case ${module},${bootstrap_fixincludes} in
7590 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
7591 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
7593 extrasub_host
="$extrasub_host
7595 /^@endif $module\$/d
7596 /^@unless $module\$/,/^@endunless $module\$/d
7597 /^@if $module-$host_bootstrap_suffix\$/d
7598 /^@endif $module-$host_bootstrap_suffix\$/d
7599 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7602 for module
in ${target_configdirs} ; do
7603 if test -z "${no_recursion}" \
7604 && test -f ${target_subdir}/${module}/Makefile
; then
7605 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7606 rm -f ${target_subdir}/${module}/Makefile
7609 # We only bootstrap target libraries listed in bootstrap_target_libs.
7610 case $bootstrap_target_libs in
7611 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
7612 *) target_bootstrap_suffix
=no-bootstrap
;;
7615 extrasub_target
="$extrasub_target
7616 /^@if target-$module\$/d
7617 /^@endif target-$module\$/d
7618 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7619 /^@if target-$module-$target_bootstrap_suffix\$/d
7620 /^@endif target-$module-$target_bootstrap_suffix\$/d
7621 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7624 # Do the final fixup along with target modules.
7625 extrasub_target
="$extrasub_target
7630 if test "$enable_pgo_build" != "no"; then
7631 extrasub_build
="$extrasub_build
7633 /^@endif pgo-build\$/d"
7636 # Create the serialization dependencies. This uses a temporary file.
7638 # Check whether --enable-serial-configure was given.
7639 if test "${enable_serial_configure+set}" = set; then :
7640 enableval
=$enable_serial_configure;
7644 case ${enable_serial_configure} in
7646 enable_serial_build_configure
=yes
7647 enable_serial_host_configure
=yes
7648 enable_serial_target_configure
=yes
7652 # These force 'configure's to be done one at a time, to avoid problems
7653 # with contention over a shared config.cache.
7655 echo '# serdep.tmp' > serdep.tmp
7657 test "x${enable_serial_build_configure}" = xyes
&&
7658 for item
in ${build_configdirs} ; do
7661 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
7666 test "x${enable_serial_host_configure}" = xyes
&&
7667 for item
in ${configdirs} ; do
7670 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
7675 test "x${enable_serial_target_configure}" = xyes
&&
7676 for item
in ${target_configdirs} ; do
7679 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
7683 serialization_dependencies
=serdep.tmp
7686 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7687 # target, nonopt, and variable assignments. These are the ones we
7688 # might not want to pass down to subconfigures. The exception being
7689 # --cache-file=/dev/null, which is used to turn off the use of cache
7690 # files altogether, and which should be passed on to subconfigures.
7691 # Also strip program-prefix, program-suffix, and program-transform-name,
7692 # so that we can pass down a consistent program-transform-name.
7697 eval "set -- $ac_configure_args"
7700 if test X
"$skip_next" = X
"yes"; then
7704 if test X
"$keep_next" = X
"yes"; then
7707 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7709 baseargs
="$baseargs '$ac_arg'"
7710 tbaseargs
="$tbaseargs '$ac_arg'"
7715 # Handle separated arguments. Based on the logic generated by
7718 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
7719 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
7720 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
7721 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
7735 --with-* |
--without-*)
7736 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7740 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
7743 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
7752 mpc | mpfr | gmp | isl
)
7753 # If we're processing --with-$lib, --with-$lib-include or
7754 # --with-$lib-lib, for one of the libs above, and target is
7755 # different from host, don't pass the current argument to any
7756 # target library's configure.
7757 if test x
$is_cross_compiler = xyes
; then
7766 --cache-file=/dev
/null | \
7767 -cache-file=/dev
/null
)
7768 # Handled here to avoid the test to skip args below.
7769 baseargs
="$baseargs '$ac_arg'"
7770 tbaseargs
="$tbaseargs '$ac_arg'"
7771 # Assert: $separate_arg should always be no.
7772 keep_next
=$separate_arg
7788 -program-prefix* | \
7789 -program-suffix* | \
7790 -program-transform-name* )
7791 skip_next
=$separate_arg
7795 # An option. Add it.
7798 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7800 baseargs
="$baseargs '$ac_arg'"
7801 if test X
"$skip_targ" = Xno
; then
7802 tbaseargs
="$tbaseargs '$ac_arg'"
7804 keep_next
=$separate_arg
7807 # Either a variable assignment, or a nonopt (triplet). Don't
7808 # pass it down; let the Makefile handle this.
7813 # Remove the initial space we just introduced and, as these will be
7814 # expanded by make, quote '$'.
7815 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7817 # Add in --program-transform-name, after --program-prefix and
7818 # --program-suffix have been applied to it. Autoconf has already
7819 # doubled dollar signs and backslashes in program_transform_name; we want
7820 # the backslashes un-doubled, and then the entire thing wrapped in single
7821 # quotes, because this will be expanded first by make and then by the shell.
7822 # Also, because we want to override the logic in subdir configure scripts to
7823 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7824 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7825 ${program_transform_name}
7827 gcc_transform_name
=`cat conftestsed.out`
7828 rm -f conftestsed.out
7829 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
7830 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7831 if test "$silent" = yes; then
7832 baseargs
="$baseargs --silent"
7833 tbaseargs
="$tbaseargs --silent"
7835 baseargs
="$baseargs --disable-option-checking"
7836 tbaseargs
="$tbaseargs --disable-option-checking"
7838 # Record and document user additions to sub configure arguments.
7843 # For the build-side libraries, we just need to pretend we're native,
7844 # and not use the same cache file. Multilibs are neither needed nor
7845 # desired. We can't even use the same cache file for all build-side
7846 # libraries, as they're compiled differently; some with C, some with
7847 # C++ or with different feature-enabling options.
7848 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
7850 # For host modules, accept cache file option, or specification as blank.
7851 case "${cache_file}" in
7853 cache_file_option
="" ;;
7854 /* |
[A-Za-z
]:[\\/]* ) # absolute path
7855 cache_file_option
="--cache-file=${cache_file}" ;;
7857 cache_file_option
="--cache-file=../${cache_file}" ;;
7860 # Host dirs don't like to share a cache file either, horribly enough.
7861 # This seems to be due to autoconf 2.5x stupidity.
7862 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7864 target_configargs
="$target_configargs ${tbaseargs}"
7866 # Passing a --with-cross-host argument lets the target libraries know
7867 # whether they are being built with a cross-compiler or being built
7868 # native. However, it would be better to use other mechanisms to make the
7869 # sorts of decisions they want to make on this basis. Please consider
7870 # this option to be deprecated. FIXME.
7871 if test x
${is_cross_compiler} = xyes
; then
7872 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
7875 # Special user-friendly check for native x86_64-linux build, if
7876 # multilib is not explicitly enabled.
7877 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7878 x86_64-
*linux
*:yes:$build:$build:)
7879 # Make sure we have a development environment that handles 32-bit
7881 echo "int main () { return 0; }" > conftest.c
7882 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7883 if test $?
= 0 ; then
7884 if test -s conftest ||
test -s conftest.exe
; then
7889 if test x
${dev64} != xyes
; then
7890 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
7895 # Default to --enable-multilib.
7896 if test x
${enable_multilib} = x
; then
7897 target_configargs
="--enable-multilib ${target_configargs}"
7900 # Pass --with-newlib if appropriate. Note that target_configdirs has
7901 # changed from the earlier setting of with_newlib.
7902 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
7903 target_configargs
="--with-newlib ${target_configargs}"
7906 # Different target subdirs use different values of certain variables
7907 # (notably CXX). Worse, multilibs use *lots* of different values.
7908 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7909 # it doesn't automatically accept command-line overrides of them.
7910 # This means it's not safe for target subdirs to share a cache file,
7911 # which is disgusting, but there you have it. Hopefully this can be
7912 # fixed in future. It's still worthwhile to use a cache file for each
7913 # directory. I think.
7915 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7916 # We need to pass --target, as newer autoconf's requires consistency
7917 # for target_alias and gcc doesn't manage it consistently.
7918 target_configargs
="--cache-file=./config.cache ${target_configargs}"
7921 case " $target_configdirs " in
7923 case " $target_configargs " in
7924 *" --with-newlib "*)
7927 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7931 # If we're not building GCC, don't discard standard headers.
7932 if test -d ${srcdir}/gcc
; then
7933 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
7935 if test "${build}" != "${host}"; then
7936 # On Canadian crosses, CC_FOR_TARGET will have already been set
7937 # by `configure', so we won't have an opportunity to add -Bgcc/
7938 # to it. This is right: we don't want to search that directory
7939 # for binaries, but we want the header files in there, so add
7941 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7943 # Someone might think of using the pre-installed headers on
7944 # Canadian crosses, in case the installed compiler is not fully
7945 # compatible with the compiler being built. In this case, it
7946 # would be better to flag an error than risking having
7947 # incompatible object files being constructed. We can't
7948 # guarantee that an error will be flagged, but let's hope the
7949 # compiler will do it, when presented with incompatible header
7954 case "${target}-${is_cross_compiler}" in
7955 i
[3456789]86-*-linux*-no)
7956 # Here host == target, so we don't need to build gcc,
7957 # so we don't want to discard standard headers.
7958 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7961 # If we're building newlib, use its generic headers last, but search
7962 # for any libc-related directories first (so make it the last -B
7964 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7966 # If we're building libgloss, find the startup file, simulator library
7967 # and linker script.
7968 case " $target_configdirs " in
7970 # Look for startup file, simulator library and maybe linker script.
7971 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7972 # Look for libnosys.a in case the target needs it.
7973 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7974 # Most targets have the linker script in the source directory.
7975 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7986 x86_64-
*mingw
* |
*-w64-mingw*)
7987 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7988 # however, use a symlink named 'mingw' in ${prefix} .
7989 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7992 # MinGW can't be handled as Cygwin above since it does not use newlib.
7993 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'
7997 # Allow the user to override the flags for
7998 # our build compiler if desired.
7999 if test x
"${build}" = x
"${host}" ; then
8000 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
8001 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8002 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8005 # On Canadian crosses, we'll be searching the right directories for
8006 # the previously-installed cross compiler, so don't bother to add
8007 # flags for directories within the install tree of the compiler
8008 # being built; programs in there won't even run.
8009 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8010 # Search for pre-installed headers if nothing else fits.
8011 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8014 if test "x
${use_gnu_ld}" = x &&
8015 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
8016 # Arrange for us to find uninstalled linker scripts.
8017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8020 # Search for other target-specific linker scripts and such.
8023 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8027 # Makefile fragments.
8028 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8030 eval fragval=\$$frag
8031 if test $fragval != /dev/null; then
8032 eval $frag=${srcdir}/$fragval
8040 # Miscellanea: directories, flags, etc.
8049 # Build module lists & subconfigure args.
8053 # Host module lists & subconfigure args.
8058 # Target module lists & subconfigure args.
8079 # Generate default definitions for YACC, M4, LEX and other programs that run
8080 # on the build machine. These are used if the Makefile can't locate these
8081 # programs in objdir.
8082 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8084 for ac_prog in 'bison -y' byacc yacc
8086 # Extract the first word of "$ac_prog", so it can be a program name with args.
8087 set dummy $ac_prog; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8089 $as_echo_n "checking
for $ac_word...
" >&6; }
8090 if ${ac_cv_prog_YACC+:} false; then :
8091 $as_echo_n "(cached
) " >&6
8093 if test -n "$YACC"; then
8094 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_YACC="$ac_prog"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8113 YACC=$ac_cv_prog_YACC
8114 if test -n "$YACC"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
8116 $as_echo "$YACC" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8119 $as_echo "no
" >&6; }
8123 test -n "$YACC" && break
8125 test -n "$YACC" || YACC="$MISSING bison
-y"
8127 case " $build_configdirs " in
8128 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8131 for ac_prog in bison
8133 # Extract the first word of "$ac_prog", so it can be a program name with args.
8134 set dummy $ac_prog; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8136 $as_echo_n "checking
for $ac_word...
" >&6; }
8137 if ${ac_cv_prog_BISON+:} false; then :
8138 $as_echo_n "(cached
) " >&6
8140 if test -n "$BISON"; then
8141 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_BISON="$ac_prog"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8160 BISON=$ac_cv_prog_BISON
8161 if test -n "$BISON"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
8163 $as_echo "$BISON" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8166 $as_echo "no
" >&6; }
8170 test -n "$BISON" && break
8172 test -n "$BISON" || BISON="$MISSING bison
"
8174 case " $build_configdirs " in
8175 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8178 for ac_prog in gm4 gnum4 m4
8180 # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8183 $as_echo_n "checking
for $ac_word...
" >&6; }
8184 if ${ac_cv_prog_M4+:} false; then :
8185 $as_echo_n "(cached
) " >&6
8187 if test -n "$M4"; then
8188 ac_cv_prog_M4="$M4" # Let the user override the test.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_prog_M4="$ac_prog"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8208 if test -n "$M4"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
8210 $as_echo "$M4" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8213 $as_echo "no
" >&6; }
8217 test -n "$M4" && break
8219 test -n "$M4" || M4="$MISSING m4"
8221 case " $build_configdirs " in
8222 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8225 for ac_prog in flex lex
8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
8228 set dummy $ac_prog; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8230 $as_echo_n "checking
for $ac_word...
" >&6; }
8231 if ${ac_cv_prog_LEX+:} false; then :
8232 $as_echo_n "(cached
) " >&6
8234 if test -n "$LEX"; then
8235 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_LEX="$ac_prog"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8255 if test -n "$LEX"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
8257 $as_echo "$LEX" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8260 $as_echo "no
" >&6; }
8264 test -n "$LEX" && break
8266 test -n "$LEX" || LEX="$MISSING flex
"
8268 case " $build_configdirs " in
8269 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8270 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8275 # Extract the first word of "$ac_prog", so it can be a program name with args.
8276 set dummy $ac_prog; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8278 $as_echo_n "checking
for $ac_word...
" >&6; }
8279 if ${ac_cv_prog_FLEX+:} false; then :
8280 $as_echo_n "(cached
) " >&6
8282 if test -n "$FLEX"; then
8283 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_FLEX="$ac_prog"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8302 FLEX=$ac_cv_prog_FLEX
8303 if test -n "$FLEX"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
8305 $as_echo "$FLEX" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8308 $as_echo "no
" >&6; }
8312 test -n "$FLEX" && break
8314 test -n "$FLEX" || FLEX="$MISSING flex
"
8316 case " $build_configdirs " in
8317 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8320 for ac_prog in makeinfo
8322 # Extract the first word of "$ac_prog", so it can be a program name with args.
8323 set dummy $ac_prog; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8325 $as_echo_n "checking
for $ac_word...
" >&6; }
8326 if ${ac_cv_prog_MAKEINFO+:} false; then :
8327 $as_echo_n "(cached
) " >&6
8329 if test -n "$MAKEINFO"; then
8330 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_MAKEINFO="$ac_prog"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8349 MAKEINFO=$ac_cv_prog_MAKEINFO
8350 if test -n "$MAKEINFO"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
8352 $as_echo "$MAKEINFO" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8355 $as_echo "no
" >&6; }
8359 test -n "$MAKEINFO" && break
8361 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
8363 case " $build_configdirs " in
8364 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8367 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8368 # higher, else we use the "missing
" dummy.
8369 if ${MAKEINFO} --version \
8370 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8373 MAKEINFO="$MISSING makeinfo
"
8379 # FIXME: expect and dejagnu may become build tools?
8381 for ac_prog in expect
8383 # Extract the first word of "$ac_prog", so it can be a program name with args.
8384 set dummy $ac_prog; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8386 $as_echo_n "checking
for $ac_word...
" >&6; }
8387 if ${ac_cv_prog_EXPECT+:} false; then :
8388 $as_echo_n "(cached
) " >&6
8390 if test -n "$EXPECT"; then
8391 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_EXPECT="$ac_prog"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8410 EXPECT=$ac_cv_prog_EXPECT
8411 if test -n "$EXPECT"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
8413 $as_echo "$EXPECT" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8416 $as_echo "no
" >&6; }
8420 test -n "$EXPECT" && break
8422 test -n "$EXPECT" || EXPECT="expect
"
8424 case " $configdirs " in
8426 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8430 for ac_prog in runtest
8432 # Extract the first word of "$ac_prog", so it can be a program name with args.
8433 set dummy $ac_prog; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8435 $as_echo_n "checking
for $ac_word...
" >&6; }
8436 if ${ac_cv_prog_RUNTEST+:} false; then :
8437 $as_echo_n "(cached
) " >&6
8439 if test -n "$RUNTEST"; then
8440 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449 ac_cv_prog_RUNTEST="$ac_prog"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8459 RUNTEST=$ac_cv_prog_RUNTEST
8460 if test -n "$RUNTEST"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
8462 $as_echo "$RUNTEST" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8465 $as_echo "no
" >&6; }
8469 test -n "$RUNTEST" && break
8471 test -n "$RUNTEST" || RUNTEST="runtest
"
8473 case " $configdirs " in
8475 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8482 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8483 ncn_target_tool_prefix=
8484 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8488 if test -n "$AR"; then
8490 elif test -n "$ac_cv_prog_AR"; then
8494 if test -n "$ac_cv_prog_AR"; then
8495 for ncn_progname in ar; do
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_progname}; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8499 $as_echo_n "checking
for $ac_word...
" >&6; }
8500 if ${ac_cv_prog_AR+:} false; then :
8501 $as_echo_n "(cached
) " >&6
8503 if test -n "$AR"; then
8504 ac_cv_prog_AR="$AR" # Let the user override the test.
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_AR="${ncn_progname}"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8524 if test -n "$AR"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8526 $as_echo "$AR" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8529 $as_echo "no
" >&6; }
8536 for ncn_progname in ar; do
8537 if test -n "$ncn_tool_prefix"; then
8538 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8539 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8541 $as_echo_n "checking
for $ac_word...
" >&6; }
8542 if ${ac_cv_prog_AR+:} false; then :
8543 $as_echo_n "(cached
) " >&6
8545 if test -n "$AR"; then
8546 ac_cv_prog_AR="$AR" # Let the user override the test.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8566 if test -n "$AR"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8568 $as_echo "$AR" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8571 $as_echo "no
" >&6; }
8576 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_progname}; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8580 $as_echo_n "checking
for $ac_word...
" >&6; }
8581 if ${ac_cv_prog_AR+:} false; then :
8582 $as_echo_n "(cached
) " >&6
8584 if test -n "$AR"; then
8585 ac_cv_prog_AR="$AR" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_AR="${ncn_progname}"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8605 if test -n "$AR"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8607 $as_echo "$AR" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8610 $as_echo "no
" >&6; }
8615 test -n "$ac_cv_prog_AR" && break
8618 if test -z "$ac_cv_prog_AR" ; then
8620 if test $build = $host ; then
8623 AR="${ncn_tool_prefix}$2"
8629 if test -n "$AS"; then
8631 elif test -n "$ac_cv_prog_AS"; then
8635 if test -n "$ac_cv_prog_AS"; then
8636 for ncn_progname in as; do
8637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_progname}; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8640 $as_echo_n "checking
for $ac_word...
" >&6; }
8641 if ${ac_cv_prog_AS+:} false; then :
8642 $as_echo_n "(cached
) " >&6
8644 if test -n "$AS"; then
8645 ac_cv_prog_AS="$AS" # Let the user override the test.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_AS="${ncn_progname}"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8665 if test -n "$AS"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8667 $as_echo "$AS" >&6; }
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8670 $as_echo "no
" >&6; }
8677 for ncn_progname in as; do
8678 if test -n "$ncn_tool_prefix"; then
8679 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8680 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8682 $as_echo_n "checking
for $ac_word...
" >&6; }
8683 if ${ac_cv_prog_AS+:} false; then :
8684 $as_echo_n "(cached
) " >&6
8686 if test -n "$AS"; then
8687 ac_cv_prog_AS="$AS" # Let the user override the test.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8707 if test -n "$AS"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8709 $as_echo "$AS" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8712 $as_echo "no
" >&6; }
8717 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719 set dummy ${ncn_progname}; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8721 $as_echo_n "checking
for $ac_word...
" >&6; }
8722 if ${ac_cv_prog_AS+:} false; then :
8723 $as_echo_n "(cached
) " >&6
8725 if test -n "$AS"; then
8726 ac_cv_prog_AS="$AS" # Let the user override the test.
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_AS="${ncn_progname}"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8746 if test -n "$AS"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8748 $as_echo "$AS" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8751 $as_echo "no
" >&6; }
8756 test -n "$ac_cv_prog_AS" && break
8759 if test -z "$ac_cv_prog_AS" ; then
8761 if test $build = $host ; then
8764 AS="${ncn_tool_prefix}$2"
8770 if test -n "$DLLTOOL"; then
8771 ac_cv_prog_DLLTOOL=$DLLTOOL
8772 elif test -n "$ac_cv_prog_DLLTOOL"; then
8773 DLLTOOL=$ac_cv_prog_DLLTOOL
8776 if test -n "$ac_cv_prog_DLLTOOL"; then
8777 for ncn_progname in dlltool; do
8778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_progname}; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8781 $as_echo_n "checking
for $ac_word...
" >&6; }
8782 if ${ac_cv_prog_DLLTOOL+:} false; then :
8783 $as_echo_n "(cached
) " >&6
8785 if test -n "$DLLTOOL"; then
8786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_DLLTOOL="${ncn_progname}"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8805 DLLTOOL=$ac_cv_prog_DLLTOOL
8806 if test -n "$DLLTOOL"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8808 $as_echo "$DLLTOOL" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8811 $as_echo "no
" >&6; }
8818 for ncn_progname in dlltool; do
8819 if test -n "$ncn_tool_prefix"; then
8820 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8823 $as_echo_n "checking
for $ac_word...
" >&6; }
8824 if ${ac_cv_prog_DLLTOOL+:} false; then :
8825 $as_echo_n "(cached
) " >&6
8827 if test -n "$DLLTOOL"; then
8828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8847 DLLTOOL=$ac_cv_prog_DLLTOOL
8848 if test -n "$DLLTOOL"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8850 $as_echo "$DLLTOOL" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8853 $as_echo "no
" >&6; }
8858 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8862 $as_echo_n "checking
for $ac_word...
" >&6; }
8863 if ${ac_cv_prog_DLLTOOL+:} false; then :
8864 $as_echo_n "(cached
) " >&6
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_DLLTOOL="${ncn_progname}"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8886 DLLTOOL=$ac_cv_prog_DLLTOOL
8887 if test -n "$DLLTOOL"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8889 $as_echo "$DLLTOOL" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8892 $as_echo "no
" >&6; }
8897 test -n "$ac_cv_prog_DLLTOOL" && break
8900 if test -z "$ac_cv_prog_DLLTOOL" ; then
8902 if test $build = $host ; then
8905 DLLTOOL="${ncn_tool_prefix}$2"
8911 if test -n "$LD"; then
8913 elif test -n "$ac_cv_prog_LD"; then
8917 if test -n "$ac_cv_prog_LD"; then
8918 for ncn_progname in ld; do
8919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8922 $as_echo_n "checking
for $ac_word...
" >&6; }
8923 if ${ac_cv_prog_LD+:} false; then :
8924 $as_echo_n "(cached
) " >&6
8926 if test -n "$LD"; then
8927 ac_cv_prog_LD="$LD" # Let the user override the test.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936 ac_cv_prog_LD="${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8947 if test -n "$LD"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8949 $as_echo "$LD" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8952 $as_echo "no
" >&6; }
8959 for ncn_progname in ld; do
8960 if test -n "$ncn_tool_prefix"; then
8961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8964 $as_echo_n "checking
for $ac_word...
" >&6; }
8965 if ${ac_cv_prog_LD+:} false; then :
8966 $as_echo_n "(cached
) " >&6
8968 if test -n "$LD"; then
8969 ac_cv_prog_LD="$LD" # Let the user override the test.
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8989 if test -n "$LD"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8991 $as_echo "$LD" >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8994 $as_echo "no
" >&6; }
8999 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9003 $as_echo_n "checking
for $ac_word...
" >&6; }
9004 if ${ac_cv_prog_LD+:} false; then :
9005 $as_echo_n "(cached
) " >&6
9007 if test -n "$LD"; then
9008 ac_cv_prog_LD="$LD" # Let the user override the test.
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_LD="${ncn_progname}"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9028 if test -n "$LD"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
9030 $as_echo "$LD" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9033 $as_echo "no
" >&6; }
9038 test -n "$ac_cv_prog_LD" && break
9041 if test -z "$ac_cv_prog_LD" ; then
9043 if test $build = $host ; then
9046 LD="${ncn_tool_prefix}$2"
9052 if test -n "$LIPO"; then
9053 ac_cv_prog_LIPO=$LIPO
9054 elif test -n "$ac_cv_prog_LIPO"; then
9055 LIPO=$ac_cv_prog_LIPO
9058 if test -n "$ac_cv_prog_LIPO"; then
9059 for ncn_progname in lipo; do
9060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9061 set dummy ${ncn_progname}; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9063 $as_echo_n "checking
for $ac_word...
" >&6; }
9064 if ${ac_cv_prog_LIPO+:} false; then :
9065 $as_echo_n "(cached
) " >&6
9067 if test -n "$LIPO"; then
9068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9077 ac_cv_prog_LIPO="${ncn_progname}"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9087 LIPO=$ac_cv_prog_LIPO
9088 if test -n "$LIPO"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9090 $as_echo "$LIPO" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9093 $as_echo "no
" >&6; }
9100 for ncn_progname in lipo; do
9101 if test -n "$ncn_tool_prefix"; then
9102 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9103 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9105 $as_echo_n "checking
for $ac_word...
" >&6; }
9106 if ${ac_cv_prog_LIPO+:} false; then :
9107 $as_echo_n "(cached
) " >&6
9109 if test -n "$LIPO"; then
9110 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9129 LIPO=$ac_cv_prog_LIPO
9130 if test -n "$LIPO"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9132 $as_echo "$LIPO" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9135 $as_echo "no
" >&6; }
9140 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9142 set dummy ${ncn_progname}; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9144 $as_echo_n "checking
for $ac_word...
" >&6; }
9145 if ${ac_cv_prog_LIPO+:} false; then :
9146 $as_echo_n "(cached
) " >&6
9148 if test -n "$LIPO"; then
9149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_LIPO="${ncn_progname}"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9168 LIPO=$ac_cv_prog_LIPO
9169 if test -n "$LIPO"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9171 $as_echo "$LIPO" >&6; }
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9174 $as_echo "no
" >&6; }
9179 test -n "$ac_cv_prog_LIPO" && break
9182 if test -z "$ac_cv_prog_LIPO" ; then
9184 if test $build = $host ; then
9187 LIPO="${ncn_tool_prefix}$2"
9193 if test -n "$NM"; then
9195 elif test -n "$ac_cv_prog_NM"; then
9199 if test -n "$ac_cv_prog_NM"; then
9200 for ncn_progname in nm; do
9201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9202 set dummy ${ncn_progname}; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9204 $as_echo_n "checking
for $ac_word...
" >&6; }
9205 if ${ac_cv_prog_NM+:} false; then :
9206 $as_echo_n "(cached
) " >&6
9208 if test -n "$NM"; then
9209 ac_cv_prog_NM="$NM" # Let the user override the test.
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9218 ac_cv_prog_NM="${ncn_progname}"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9229 if test -n "$NM"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9231 $as_echo "$NM" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9234 $as_echo "no
" >&6; }
9241 for ncn_progname in nm; do
9242 if test -n "$ncn_tool_prefix"; then
9243 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9244 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9246 $as_echo_n "checking
for $ac_word...
" >&6; }
9247 if ${ac_cv_prog_NM+:} false; then :
9248 $as_echo_n "(cached
) " >&6
9250 if test -n "$NM"; then
9251 ac_cv_prog_NM="$NM" # Let the user override the test.
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9260 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9271 if test -n "$NM"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9273 $as_echo "$NM" >&6; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9276 $as_echo "no
" >&6; }
9281 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9283 set dummy ${ncn_progname}; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9285 $as_echo_n "checking
for $ac_word...
" >&6; }
9286 if ${ac_cv_prog_NM+:} false; then :
9287 $as_echo_n "(cached
) " >&6
9289 if test -n "$NM"; then
9290 ac_cv_prog_NM="$NM" # Let the user override the test.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_NM="${ncn_progname}"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9310 if test -n "$NM"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9312 $as_echo "$NM" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9315 $as_echo "no
" >&6; }
9320 test -n "$ac_cv_prog_NM" && break
9323 if test -z "$ac_cv_prog_NM" ; then
9325 if test $build = $host ; then
9328 NM="${ncn_tool_prefix}$2"
9334 if test -n "$RANLIB"; then
9335 ac_cv_prog_RANLIB=$RANLIB
9336 elif test -n "$ac_cv_prog_RANLIB"; then
9337 RANLIB=$ac_cv_prog_RANLIB
9340 if test -n "$ac_cv_prog_RANLIB"; then
9341 for ncn_progname in ranlib; do
9342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9343 set dummy ${ncn_progname}; ac_word=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9345 $as_echo_n "checking
for $ac_word...
" >&6; }
9346 if ${ac_cv_prog_RANLIB+:} false; then :
9347 $as_echo_n "(cached
) " >&6
9349 if test -n "$RANLIB"; then
9350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_prog_RANLIB="${ncn_progname}"
9360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9369 RANLIB=$ac_cv_prog_RANLIB
9370 if test -n "$RANLIB"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9372 $as_echo "$RANLIB" >&6; }
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9375 $as_echo "no
" >&6; }
9382 for ncn_progname in ranlib; do
9383 if test -n "$ncn_tool_prefix"; then
9384 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9385 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9387 $as_echo_n "checking
for $ac_word...
" >&6; }
9388 if ${ac_cv_prog_RANLIB+:} false; then :
9389 $as_echo_n "(cached
) " >&6
9391 if test -n "$RANLIB"; then
9392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9401 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9411 RANLIB=$ac_cv_prog_RANLIB
9412 if test -n "$RANLIB"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9414 $as_echo "$RANLIB" >&6; }
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9417 $as_echo "no
" >&6; }
9422 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9424 set dummy ${ncn_progname}; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9426 $as_echo_n "checking
for $ac_word...
" >&6; }
9427 if ${ac_cv_prog_RANLIB+:} false; then :
9428 $as_echo_n "(cached
) " >&6
9430 if test -n "$RANLIB"; then
9431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_RANLIB="${ncn_progname}"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9450 RANLIB=$ac_cv_prog_RANLIB
9451 if test -n "$RANLIB"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9453 $as_echo "$RANLIB" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9456 $as_echo "no
" >&6; }
9461 test -n "$ac_cv_prog_RANLIB" && break
9464 if test -z "$ac_cv_prog_RANLIB" ; then
9470 if test -n "$STRIP"; then
9471 ac_cv_prog_STRIP=$STRIP
9472 elif test -n "$ac_cv_prog_STRIP"; then
9473 STRIP=$ac_cv_prog_STRIP
9476 if test -n "$ac_cv_prog_STRIP"; then
9477 for ncn_progname in strip; do
9478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9479 set dummy ${ncn_progname}; ac_word=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9481 $as_echo_n "checking
for $ac_word...
" >&6; }
9482 if ${ac_cv_prog_STRIP+:} false; then :
9483 $as_echo_n "(cached
) " >&6
9485 if test -n "$STRIP"; then
9486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 test -z "$as_dir" && as_dir=.
9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9495 ac_cv_prog_STRIP="${ncn_progname}"
9496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9505 STRIP=$ac_cv_prog_STRIP
9506 if test -n "$STRIP"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9508 $as_echo "$STRIP" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9511 $as_echo "no
" >&6; }
9518 for ncn_progname in strip; do
9519 if test -n "$ncn_tool_prefix"; then
9520 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9523 $as_echo_n "checking
for $ac_word...
" >&6; }
9524 if ${ac_cv_prog_STRIP+:} false; then :
9525 $as_echo_n "(cached
) " >&6
9527 if test -n "$STRIP"; then
9528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9547 STRIP=$ac_cv_prog_STRIP
9548 if test -n "$STRIP"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9550 $as_echo "$STRIP" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9553 $as_echo "no
" >&6; }
9558 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9560 set dummy ${ncn_progname}; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9562 $as_echo_n "checking
for $ac_word...
" >&6; }
9563 if ${ac_cv_prog_STRIP+:} false; then :
9564 $as_echo_n "(cached
) " >&6
9566 if test -n "$STRIP"; then
9567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576 ac_cv_prog_STRIP="${ncn_progname}"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9586 STRIP=$ac_cv_prog_STRIP
9587 if test -n "$STRIP"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9589 $as_echo "$STRIP" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9592 $as_echo "no
" >&6; }
9597 test -n "$ac_cv_prog_STRIP" && break
9600 if test -z "$ac_cv_prog_STRIP" ; then
9606 if test -n "$WINDRES"; then
9607 ac_cv_prog_WINDRES=$WINDRES
9608 elif test -n "$ac_cv_prog_WINDRES"; then
9609 WINDRES=$ac_cv_prog_WINDRES
9612 if test -n "$ac_cv_prog_WINDRES"; then
9613 for ncn_progname in windres; do
9614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_progname}; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9617 $as_echo_n "checking
for $ac_word...
" >&6; }
9618 if ${ac_cv_prog_WINDRES+:} false; then :
9619 $as_echo_n "(cached
) " >&6
9621 if test -n "$WINDRES"; then
9622 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9631 ac_cv_prog_WINDRES="${ncn_progname}"
9632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9641 WINDRES=$ac_cv_prog_WINDRES
9642 if test -n "$WINDRES"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9644 $as_echo "$WINDRES" >&6; }
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9647 $as_echo "no
" >&6; }
9654 for ncn_progname in windres; do
9655 if test -n "$ncn_tool_prefix"; then
9656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9659 $as_echo_n "checking
for $ac_word...
" >&6; }
9660 if ${ac_cv_prog_WINDRES+:} false; then :
9661 $as_echo_n "(cached
) " >&6
9663 if test -n "$WINDRES"; then
9664 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9683 WINDRES=$ac_cv_prog_WINDRES
9684 if test -n "$WINDRES"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9686 $as_echo "$WINDRES" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9689 $as_echo "no
" >&6; }
9694 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9696 set dummy ${ncn_progname}; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9698 $as_echo_n "checking
for $ac_word...
" >&6; }
9699 if ${ac_cv_prog_WINDRES+:} false; then :
9700 $as_echo_n "(cached
) " >&6
9702 if test -n "$WINDRES"; then
9703 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_WINDRES="${ncn_progname}"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9722 WINDRES=$ac_cv_prog_WINDRES
9723 if test -n "$WINDRES"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9725 $as_echo "$WINDRES" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9728 $as_echo "no
" >&6; }
9733 test -n "$ac_cv_prog_WINDRES" && break
9736 if test -z "$ac_cv_prog_WINDRES" ; then
9738 if test $build = $host ; then
9741 WINDRES="${ncn_tool_prefix}$2"
9747 if test -n "$WINDMC"; then
9748 ac_cv_prog_WINDMC=$WINDMC
9749 elif test -n "$ac_cv_prog_WINDMC"; then
9750 WINDMC=$ac_cv_prog_WINDMC
9753 if test -n "$ac_cv_prog_WINDMC"; then
9754 for ncn_progname in windmc; do
9755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_progname}; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9758 $as_echo_n "checking
for $ac_word...
" >&6; }
9759 if ${ac_cv_prog_WINDMC+:} false; then :
9760 $as_echo_n "(cached
) " >&6
9762 if test -n "$WINDMC"; then
9763 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_WINDMC="${ncn_progname}"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9782 WINDMC=$ac_cv_prog_WINDMC
9783 if test -n "$WINDMC"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9785 $as_echo "$WINDMC" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9788 $as_echo "no
" >&6; }
9795 for ncn_progname in windmc; do
9796 if test -n "$ncn_tool_prefix"; then
9797 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9798 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9800 $as_echo_n "checking
for $ac_word...
" >&6; }
9801 if ${ac_cv_prog_WINDMC+:} false; then :
9802 $as_echo_n "(cached
) " >&6
9804 if test -n "$WINDMC"; then
9805 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
9813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9814 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9815 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9824 WINDMC=$ac_cv_prog_WINDMC
9825 if test -n "$WINDMC"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9827 $as_echo "$WINDMC" >&6; }
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9830 $as_echo "no
" >&6; }
9835 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9839 $as_echo_n "checking
for $ac_word...
" >&6; }
9840 if ${ac_cv_prog_WINDMC+:} false; then :
9841 $as_echo_n "(cached
) " >&6
9843 if test -n "$WINDMC"; then
9844 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853 ac_cv_prog_WINDMC="${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9863 WINDMC=$ac_cv_prog_WINDMC
9864 if test -n "$WINDMC"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9866 $as_echo "$WINDMC" >&6; }
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9869 $as_echo "no
" >&6; }
9874 test -n "$ac_cv_prog_WINDMC" && break
9877 if test -z "$ac_cv_prog_WINDMC" ; then
9879 if test $build = $host ; then
9882 WINDMC="${ncn_tool_prefix}$2"
9888 if test -n "$OBJCOPY"; then
9889 ac_cv_prog_OBJCOPY=$OBJCOPY
9890 elif test -n "$ac_cv_prog_OBJCOPY"; then
9891 OBJCOPY=$ac_cv_prog_OBJCOPY
9894 if test -n "$ac_cv_prog_OBJCOPY"; then
9895 for ncn_progname in objcopy; do
9896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9897 set dummy ${ncn_progname}; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9899 $as_echo_n "checking
for $ac_word...
" >&6; }
9900 if ${ac_cv_prog_OBJCOPY+:} false; then :
9901 $as_echo_n "(cached
) " >&6
9903 if test -n "$OBJCOPY"; then
9904 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9913 ac_cv_prog_OBJCOPY="${ncn_progname}"
9914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9923 OBJCOPY=$ac_cv_prog_OBJCOPY
9924 if test -n "$OBJCOPY"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9926 $as_echo "$OBJCOPY" >&6; }
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9929 $as_echo "no
" >&6; }
9936 for ncn_progname in objcopy; do
9937 if test -n "$ncn_tool_prefix"; then
9938 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9939 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9941 $as_echo_n "checking
for $ac_word...
" >&6; }
9942 if ${ac_cv_prog_OBJCOPY+:} false; then :
9943 $as_echo_n "(cached
) " >&6
9945 if test -n "$OBJCOPY"; then
9946 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9955 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9965 OBJCOPY=$ac_cv_prog_OBJCOPY
9966 if test -n "$OBJCOPY"; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9968 $as_echo "$OBJCOPY" >&6; }
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9971 $as_echo "no
" >&6; }
9976 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9978 set dummy ${ncn_progname}; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9980 $as_echo_n "checking
for $ac_word...
" >&6; }
9981 if ${ac_cv_prog_OBJCOPY+:} false; then :
9982 $as_echo_n "(cached
) " >&6
9984 if test -n "$OBJCOPY"; then
9985 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_prog_OBJCOPY="${ncn_progname}"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10004 OBJCOPY=$ac_cv_prog_OBJCOPY
10005 if test -n "$OBJCOPY"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
10007 $as_echo "$OBJCOPY" >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10010 $as_echo "no
" >&6; }
10015 test -n "$ac_cv_prog_OBJCOPY" && break
10018 if test -z "$ac_cv_prog_OBJCOPY" ; then
10020 if test $build = $host ; then
10023 OBJCOPY="${ncn_tool_prefix}$2"
10029 if test -n "$OBJDUMP"; then
10030 ac_cv_prog_OBJDUMP=$OBJDUMP
10031 elif test -n "$ac_cv_prog_OBJDUMP"; then
10032 OBJDUMP=$ac_cv_prog_OBJDUMP
10035 if test -n "$ac_cv_prog_OBJDUMP"; then
10036 for ncn_progname in objdump; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038 set dummy ${ncn_progname}; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10040 $as_echo_n "checking
for $ac_word...
" >&6; }
10041 if ${ac_cv_prog_OBJDUMP+:} false; then :
10042 $as_echo_n "(cached
) " >&6
10044 if test -n "$OBJDUMP"; then
10045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_prog_OBJDUMP="${ncn_progname}"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10064 OBJDUMP=$ac_cv_prog_OBJDUMP
10065 if test -n "$OBJDUMP"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10067 $as_echo "$OBJDUMP" >&6; }
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10070 $as_echo "no
" >&6; }
10077 for ncn_progname in objdump; do
10078 if test -n "$ncn_tool_prefix"; then
10079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10080 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10082 $as_echo_n "checking
for $ac_word...
" >&6; }
10083 if ${ac_cv_prog_OBJDUMP+:} false; then :
10084 $as_echo_n "(cached
) " >&6
10086 if test -n "$OBJDUMP"; then
10087 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10106 OBJDUMP=$ac_cv_prog_OBJDUMP
10107 if test -n "$OBJDUMP"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10109 $as_echo "$OBJDUMP" >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10112 $as_echo "no
" >&6; }
10117 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10119 set dummy ${ncn_progname}; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10121 $as_echo_n "checking
for $ac_word...
" >&6; }
10122 if ${ac_cv_prog_OBJDUMP+:} false; then :
10123 $as_echo_n "(cached
) " >&6
10125 if test -n "$OBJDUMP"; then
10126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135 ac_cv_prog_OBJDUMP="${ncn_progname}"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10145 OBJDUMP=$ac_cv_prog_OBJDUMP
10146 if test -n "$OBJDUMP"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10148 $as_echo "$OBJDUMP" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10151 $as_echo "no
" >&6; }
10156 test -n "$ac_cv_prog_OBJDUMP" && break
10159 if test -z "$ac_cv_prog_OBJDUMP" ; then
10161 if test $build = $host ; then
10164 OBJDUMP="${ncn_tool_prefix}$2"
10170 if test -n "$READELF"; then
10171 ac_cv_prog_READELF=$READELF
10172 elif test -n "$ac_cv_prog_READELF"; then
10173 READELF=$ac_cv_prog_READELF
10176 if test -n "$ac_cv_prog_READELF"; then
10177 for ncn_progname in readelf; do
10178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10179 set dummy ${ncn_progname}; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10181 $as_echo_n "checking
for $ac_word...
" >&6; }
10182 if ${ac_cv_prog_READELF+:} false; then :
10183 $as_echo_n "(cached
) " >&6
10185 if test -n "$READELF"; then
10186 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10195 ac_cv_prog_READELF="${ncn_progname}"
10196 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10205 READELF=$ac_cv_prog_READELF
10206 if test -n "$READELF"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10208 $as_echo "$READELF" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10211 $as_echo "no
" >&6; }
10218 for ncn_progname in readelf; do
10219 if test -n "$ncn_tool_prefix"; then
10220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10221 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10223 $as_echo_n "checking
for $ac_word...
" >&6; }
10224 if ${ac_cv_prog_READELF+:} false; then :
10225 $as_echo_n "(cached
) " >&6
10227 if test -n "$READELF"; then
10228 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10247 READELF=$ac_cv_prog_READELF
10248 if test -n "$READELF"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10250 $as_echo "$READELF" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10253 $as_echo "no
" >&6; }
10258 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10260 set dummy ${ncn_progname}; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10262 $as_echo_n "checking
for $ac_word...
" >&6; }
10263 if ${ac_cv_prog_READELF+:} false; then :
10264 $as_echo_n "(cached
) " >&6
10266 if test -n "$READELF"; then
10267 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_prog_READELF="${ncn_progname}"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10286 READELF=$ac_cv_prog_READELF
10287 if test -n "$READELF"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10289 $as_echo "$READELF" >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10292 $as_echo "no
" >&6; }
10297 test -n "$ac_cv_prog_READELF" && break
10300 if test -z "$ac_cv_prog_READELF" ; then
10302 if test $build = $host ; then
10305 READELF="${ncn_tool_prefix}$2"
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
10316 $as_echo_n "checking
for -plugin option...
" >&6; }
10318 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
10320 for plugin in $plugin_names; do
10321 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10322 if test x$plugin_so = x$plugin; then
10323 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10325 if test x$plugin_so != x$plugin; then
10326 plugin_option="--plugin $plugin_so"
10330 if test -n "$ac_tool_prefix"; then
10331 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10332 set dummy ${ac_tool_prefix}ar; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10334 $as_echo_n "checking
for $ac_word...
" >&6; }
10335 if ${ac_cv_prog_AR+:} false; then :
10336 $as_echo_n "(cached
) " >&6
10338 if test -n "$AR"; then
10339 ac_cv_prog_AR="$AR" # Let the user override the test.
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_AR="${ac_tool_prefix}ar"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10359 if test -n "$AR"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10361 $as_echo "$AR" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10364 $as_echo "no
" >&6; }
10369 if test -z "$ac_cv_prog_AR"; then
10371 # Extract the first word of "ar", so it can be a program name with args.
10372 set dummy ar; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10374 $as_echo_n "checking
for $ac_word...
" >&6; }
10375 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10376 $as_echo_n "(cached
) " >&6
10378 if test -n "$ac_ct_AR"; then
10379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10388 ac_cv_prog_ac_ct_AR="ar"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10398 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10399 if test -n "$ac_ct_AR"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
10401 $as_echo "$ac_ct_AR" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10404 $as_echo "no
" >&6; }
10407 if test "x
$ac_ct_AR" = x; then
10410 case $cross_compiling:$ac_tool_warned in
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
10413 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
10414 ac_tool_warned=yes ;;
10419 AR="$ac_cv_prog_AR"
10422 if test "${AR}" = "" ; then
10423 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
10426 ${AR} $plugin_option rc conftest.a conftest.c
10427 if test "$?
" != 0; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
10429 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
10433 if test -n "$plugin_option"; then
10434 PLUGIN_OPTION="$plugin_option"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
10436 $as_echo "$plugin_option" >&6; }
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10439 $as_echo "no
" >&6; }
10443 RANLIB_PLUGIN_OPTION=
10444 if test -n "$PLUGIN_OPTION"; then
10445 if $AR --help 2>&1 | grep -q "\
--plugin"; then
10446 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10448 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
10449 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10452 if test "$enable_pgo_build" != "no
"; then
10453 as_fn_error $? "AR with
--plugin and rc is required
for LTO build
" "$LINENO" 5
10461 # Check whether --with-build-time-tools was given.
10462 if test "${with_build_time_tools+set}" = set; then :
10463 withval=$with_build_time_tools; case x"$withval" in
10466 with_build_time_tools=
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
10468 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
10472 with_build_time_tools=
10478 if test -n "$CC_FOR_TARGET"; then
10479 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10480 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10481 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10484 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10485 for ncn_progname in cc gcc; do
10486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10487 set dummy ${ncn_progname}; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10489 $as_echo_n "checking
for $ac_word...
" >&6; }
10490 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10491 $as_echo_n "(cached
) " >&6
10493 if test -n "$CC_FOR_TARGET"; then
10494 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10513 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10514 if test -n "$CC_FOR_TARGET"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10516 $as_echo "$CC_FOR_TARGET" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10519 $as_echo "no
" >&6; }
10526 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10527 for ncn_progname in cc gcc; do
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10529 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10530 if test -x $with_build_time_tools/${ncn_progname}; then
10531 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10533 $as_echo "yes" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10537 $as_echo "no
" >&6; }
10542 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10543 for ncn_progname in cc gcc; do
10544 if test -n "$ncn_target_tool_prefix"; then
10545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10548 $as_echo_n "checking
for $ac_word...
" >&6; }
10549 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10550 $as_echo_n "(cached
) " >&6
10552 if test -n "$CC_FOR_TARGET"; then
10553 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10563 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10572 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10573 if test -n "$CC_FOR_TARGET"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10575 $as_echo "$CC_FOR_TARGET" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10578 $as_echo "no
" >&6; }
10583 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10585 set dummy ${ncn_progname}; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10587 $as_echo_n "checking
for $ac_word...
" >&6; }
10588 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10589 $as_echo_n "(cached
) " >&6
10591 if test -n "$CC_FOR_TARGET"; then
10592 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10612 if test -n "$CC_FOR_TARGET"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10614 $as_echo "$CC_FOR_TARGET" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10617 $as_echo "no
" >&6; }
10622 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10626 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10628 if test $build = $target ; then
10631 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10634 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10639 if test -n "$CXX_FOR_TARGET"; then
10640 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10641 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10642 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10645 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10646 for ncn_progname in c++ g++ cxx gxx; do
10647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10648 set dummy ${ncn_progname}; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10650 $as_echo_n "checking
for $ac_word...
" >&6; }
10651 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10652 $as_echo_n "(cached
) " >&6
10654 if test -n "$CXX_FOR_TARGET"; then
10655 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10674 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10675 if test -n "$CXX_FOR_TARGET"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10677 $as_echo "$CXX_FOR_TARGET" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10680 $as_echo "no
" >&6; }
10687 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10688 for ncn_progname in c++ g++ cxx gxx; do
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10690 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10691 if test -x $with_build_time_tools/${ncn_progname}; then
10692 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10694 $as_echo "yes" >&6; }
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10698 $as_echo "no
" >&6; }
10703 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10704 for ncn_progname in c++ g++ cxx gxx; do
10705 if test -n "$ncn_target_tool_prefix"; then
10706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10707 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10709 $as_echo_n "checking
for $ac_word...
" >&6; }
10710 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10711 $as_echo_n "(cached
) " >&6
10713 if test -n "$CXX_FOR_TARGET"; then
10714 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10733 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10734 if test -n "$CXX_FOR_TARGET"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10736 $as_echo "$CXX_FOR_TARGET" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10739 $as_echo "no
" >&6; }
10744 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10746 set dummy ${ncn_progname}; ac_word=$2
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10748 $as_echo_n "checking
for $ac_word...
" >&6; }
10749 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10750 $as_echo_n "(cached
) " >&6
10752 if test -n "$CXX_FOR_TARGET"; then
10753 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10772 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10773 if test -n "$CXX_FOR_TARGET"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10775 $as_echo "$CXX_FOR_TARGET" >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10778 $as_echo "no
" >&6; }
10783 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10787 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10788 set dummy c++ g++ cxx gxx
10789 if test $build = $target ; then
10790 CXX_FOR_TARGET="$2"
10792 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10795 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10800 if test -n "$GCC_FOR_TARGET"; then
10801 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10802 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10803 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10806 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10807 for ncn_progname in gcc; do
10808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10809 set dummy ${ncn_progname}; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10811 $as_echo_n "checking
for $ac_word...
" >&6; }
10812 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10813 $as_echo_n "(cached
) " >&6
10815 if test -n "$GCC_FOR_TARGET"; then
10816 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10835 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10836 if test -n "$GCC_FOR_TARGET"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10838 $as_echo "$GCC_FOR_TARGET" >&6; }
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10841 $as_echo "no
" >&6; }
10848 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10849 for ncn_progname in gcc; do
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10851 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10852 if test -x $with_build_time_tools/${ncn_progname}; then
10853 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10855 $as_echo "yes" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10859 $as_echo "no
" >&6; }
10864 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10865 for ncn_progname in gcc; do
10866 if test -n "$ncn_target_tool_prefix"; then
10867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10868 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10870 $as_echo_n "checking
for $ac_word...
" >&6; }
10871 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10872 $as_echo_n "(cached
) " >&6
10874 if test -n "$GCC_FOR_TARGET"; then
10875 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10894 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10895 if test -n "$GCC_FOR_TARGET"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10897 $as_echo "$GCC_FOR_TARGET" >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10900 $as_echo "no
" >&6; }
10905 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10907 set dummy ${ncn_progname}; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10909 $as_echo_n "checking
for $ac_word...
" >&6; }
10910 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10911 $as_echo_n "(cached
) " >&6
10913 if test -n "$GCC_FOR_TARGET"; then
10914 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10934 if test -n "$GCC_FOR_TARGET"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10936 $as_echo "$GCC_FOR_TARGET" >&6; }
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10939 $as_echo "no
" >&6; }
10944 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10948 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10949 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10951 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10956 if test -n "$GFORTRAN_FOR_TARGET"; then
10957 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10958 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10959 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10962 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10963 for ncn_progname in gfortran; do
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10967 $as_echo_n "checking
for $ac_word...
" >&6; }
10968 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10969 $as_echo_n "(cached
) " >&6
10971 if test -n "$GFORTRAN_FOR_TARGET"; then
10972 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10991 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10992 if test -n "$GFORTRAN_FOR_TARGET"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
10994 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10997 $as_echo "no
" >&6; }
11004 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11005 for ncn_progname in gfortran; do
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11007 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11008 if test -x $with_build_time_tools/${ncn_progname}; then
11009 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11011 $as_echo "yes" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11015 $as_echo "no
" >&6; }
11020 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11021 for ncn_progname in gfortran; do
11022 if test -n "$ncn_target_tool_prefix"; then
11023 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11024 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11026 $as_echo_n "checking
for $ac_word...
" >&6; }
11027 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11028 $as_echo_n "(cached
) " >&6
11030 if test -n "$GFORTRAN_FOR_TARGET"; then
11031 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11050 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11051 if test -n "$GFORTRAN_FOR_TARGET"; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
11053 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11056 $as_echo "no
" >&6; }
11061 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11065 $as_echo_n "checking
for $ac_word...
" >&6; }
11066 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11067 $as_echo_n "(cached
) " >&6
11069 if test -n "$GFORTRAN_FOR_TARGET"; then
11070 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11089 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11090 if test -n "$GFORTRAN_FOR_TARGET"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
11092 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11095 $as_echo "no
" >&6; }
11100 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11104 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11106 if test $build = $target ; then
11107 GFORTRAN_FOR_TARGET="$2"
11109 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11112 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11117 if test -n "$GOC_FOR_TARGET"; then
11118 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11119 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11120 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11123 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11124 for ncn_progname in gccgo; do
11125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11126 set dummy ${ncn_progname}; ac_word=$2
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11128 $as_echo_n "checking
for $ac_word...
" >&6; }
11129 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11130 $as_echo_n "(cached
) " >&6
11132 if test -n "$GOC_FOR_TARGET"; then
11133 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
11141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11142 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11143 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11152 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11153 if test -n "$GOC_FOR_TARGET"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11155 $as_echo "$GOC_FOR_TARGET" >&6; }
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11158 $as_echo "no
" >&6; }
11165 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11166 for ncn_progname in gccgo; do
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11168 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11169 if test -x $with_build_time_tools/${ncn_progname}; then
11170 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11172 $as_echo "yes" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11176 $as_echo "no
" >&6; }
11181 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11182 for ncn_progname in gccgo; do
11183 if test -n "$ncn_target_tool_prefix"; then
11184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11187 $as_echo_n "checking
for $ac_word...
" >&6; }
11188 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11189 $as_echo_n "(cached
) " >&6
11191 if test -n "$GOC_FOR_TARGET"; then
11192 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11211 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11212 if test -n "$GOC_FOR_TARGET"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11214 $as_echo "$GOC_FOR_TARGET" >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11217 $as_echo "no
" >&6; }
11222 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11226 $as_echo_n "checking
for $ac_word...
" >&6; }
11227 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11228 $as_echo_n "(cached
) " >&6
11230 if test -n "$GOC_FOR_TARGET"; then
11231 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11250 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11251 if test -n "$GOC_FOR_TARGET"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11253 $as_echo "$GOC_FOR_TARGET" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11256 $as_echo "no
" >&6; }
11261 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11265 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11267 if test $build = $target ; then
11268 GOC_FOR_TARGET="$2"
11270 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11273 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11278 cat > conftest.c << \EOF
11283 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11284 have_gcc_for_target=yes
11286 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11287 have_gcc_for_target=no
11294 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11295 if test -n "$with_build_time_tools"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
11297 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
11298 if test -x $with_build_time_tools/ar; then
11299 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11300 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
11302 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11305 $as_echo "no
" >&6; }
11307 elif test $build != $host && test $have_gcc_for_target = yes; then
11308 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11309 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11310 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11313 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11314 # Extract the first word of "ar", so it can be a program name with args.
11315 set dummy ar; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11317 $as_echo_n "checking
for $ac_word...
" >&6; }
11318 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11319 $as_echo_n "(cached
) " >&6
11321 case $AR_FOR_TARGET in
11323 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $gcc_cv_tool_dirs
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11344 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11345 if test -n "$AR_FOR_TARGET"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11347 $as_echo "$AR_FOR_TARGET" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11350 $as_echo "no
" >&6; }
11355 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11358 if test -n "$AR_FOR_TARGET"; then
11359 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11360 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11361 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11364 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11365 for ncn_progname in ar; do
11366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11367 set dummy ${ncn_progname}; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11369 $as_echo_n "checking
for $ac_word...
" >&6; }
11370 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11371 $as_echo_n "(cached
) " >&6
11373 if test -n "$AR_FOR_TARGET"; then
11374 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11393 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11394 if test -n "$AR_FOR_TARGET"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11396 $as_echo "$AR_FOR_TARGET" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11399 $as_echo "no
" >&6; }
11406 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11407 for ncn_progname in ar; do
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11409 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11410 if test -x $with_build_time_tools/${ncn_progname}; then
11411 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11413 $as_echo "yes" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11417 $as_echo "no
" >&6; }
11422 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11423 for ncn_progname in ar; do
11424 if test -n "$ncn_target_tool_prefix"; then
11425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11428 $as_echo_n "checking
for $ac_word...
" >&6; }
11429 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11430 $as_echo_n "(cached
) " >&6
11432 if test -n "$AR_FOR_TARGET"; then
11433 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11452 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11453 if test -n "$AR_FOR_TARGET"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11455 $as_echo "$AR_FOR_TARGET" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11458 $as_echo "no
" >&6; }
11463 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11465 set dummy ${ncn_progname}; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11467 $as_echo_n "checking
for $ac_word...
" >&6; }
11468 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11469 $as_echo_n "(cached
) " >&6
11471 if test -n "$AR_FOR_TARGET"; then
11472 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11491 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11492 if test -n "$AR_FOR_TARGET"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11494 $as_echo "$AR_FOR_TARGET" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11497 $as_echo "no
" >&6; }
11502 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11506 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11508 if test $build = $target ; then
11511 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11518 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11524 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11525 if test -n "$with_build_time_tools"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
11527 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
11528 if test -x $with_build_time_tools/as; then
11529 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11530 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
11532 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11535 $as_echo "no
" >&6; }
11537 elif test $build != $host && test $have_gcc_for_target = yes; then
11538 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11539 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11540 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11543 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11544 # Extract the first word of "as
", so it can be a program name with args.
11545 set dummy as; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11547 $as_echo_n "checking
for $ac_word...
" >&6; }
11548 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11549 $as_echo_n "(cached
) " >&6
11551 case $AS_FOR_TARGET in
11553 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $gcc_cv_tool_dirs
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11574 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11575 if test -n "$AS_FOR_TARGET"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11577 $as_echo "$AS_FOR_TARGET" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11580 $as_echo "no
" >&6; }
11585 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11588 if test -n "$AS_FOR_TARGET"; then
11589 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11590 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11591 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11594 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11595 for ncn_progname in as; do
11596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11599 $as_echo_n "checking
for $ac_word...
" >&6; }
11600 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11601 $as_echo_n "(cached
) " >&6
11603 if test -n "$AS_FOR_TARGET"; then
11604 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11623 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11624 if test -n "$AS_FOR_TARGET"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11626 $as_echo "$AS_FOR_TARGET" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11629 $as_echo "no
" >&6; }
11636 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11637 for ncn_progname in as; do
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11639 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11640 if test -x $with_build_time_tools/${ncn_progname}; then
11641 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11643 $as_echo "yes" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11647 $as_echo "no
" >&6; }
11652 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11653 for ncn_progname in as; do
11654 if test -n "$ncn_target_tool_prefix"; then
11655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11656 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11658 $as_echo_n "checking
for $ac_word...
" >&6; }
11659 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11660 $as_echo_n "(cached
) " >&6
11662 if test -n "$AS_FOR_TARGET"; then
11663 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11682 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11683 if test -n "$AS_FOR_TARGET"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11685 $as_echo "$AS_FOR_TARGET" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11688 $as_echo "no
" >&6; }
11693 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11697 $as_echo_n "checking
for $ac_word...
" >&6; }
11698 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11699 $as_echo_n "(cached
) " >&6
11701 if test -n "$AS_FOR_TARGET"; then
11702 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11721 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11722 if test -n "$AS_FOR_TARGET"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11724 $as_echo "$AS_FOR_TARGET" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11727 $as_echo "no
" >&6; }
11732 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11736 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11738 if test $build = $target ; then
11741 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11748 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11754 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11755 if test -n "$with_build_time_tools"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
11757 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
11758 if test -x $with_build_time_tools/dlltool; then
11759 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11760 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11762 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11765 $as_echo "no
" >&6; }
11767 elif test $build != $host && test $have_gcc_for_target = yes; then
11768 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11769 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11770 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11773 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11774 # Extract the first word of "dlltool
", so it can be a program name with args.
11775 set dummy dlltool; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11777 $as_echo_n "checking
for $ac_word...
" >&6; }
11778 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11779 $as_echo_n "(cached
) " >&6
11781 case $DLLTOOL_FOR_TARGET in
11783 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $gcc_cv_tool_dirs
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11804 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11805 if test -n "$DLLTOOL_FOR_TARGET"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11807 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11810 $as_echo "no
" >&6; }
11815 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11818 if test -n "$DLLTOOL_FOR_TARGET"; then
11819 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11820 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11821 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11824 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11825 for ncn_progname in dlltool; do
11826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11827 set dummy ${ncn_progname}; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11829 $as_echo_n "checking
for $ac_word...
" >&6; }
11830 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11831 $as_echo_n "(cached
) " >&6
11833 if test -n "$DLLTOOL_FOR_TARGET"; then
11834 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11853 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11854 if test -n "$DLLTOOL_FOR_TARGET"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11856 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11859 $as_echo "no
" >&6; }
11866 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11867 for ncn_progname in dlltool; do
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11869 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11870 if test -x $with_build_time_tools/${ncn_progname}; then
11871 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11873 $as_echo "yes" >&6; }
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11877 $as_echo "no
" >&6; }
11882 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11883 for ncn_progname in dlltool; do
11884 if test -n "$ncn_target_tool_prefix"; then
11885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11886 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11888 $as_echo_n "checking
for $ac_word...
" >&6; }
11889 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11890 $as_echo_n "(cached
) " >&6
11892 if test -n "$DLLTOOL_FOR_TARGET"; then
11893 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11912 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11913 if test -n "$DLLTOOL_FOR_TARGET"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11915 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11918 $as_echo "no
" >&6; }
11923 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11925 set dummy ${ncn_progname}; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11927 $as_echo_n "checking
for $ac_word...
" >&6; }
11928 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11929 $as_echo_n "(cached
) " >&6
11931 if test -n "$DLLTOOL_FOR_TARGET"; then
11932 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11951 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11952 if test -n "$DLLTOOL_FOR_TARGET"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11954 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11957 $as_echo "no
" >&6; }
11962 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11966 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11968 if test $build = $target ; then
11969 DLLTOOL_FOR_TARGET="$2"
11971 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11978 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11984 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11985 if test -n "$with_build_time_tools"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
11987 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
11988 if test -x $with_build_time_tools/ld; then
11989 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11990 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
11992 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11995 $as_echo "no
" >&6; }
11997 elif test $build != $host && test $have_gcc_for_target = yes; then
11998 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11999 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12000 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12003 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12004 # Extract the first word of "ld
", so it can be a program name with args.
12005 set dummy ld; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12007 $as_echo_n "checking
for $ac_word...
" >&6; }
12008 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12009 $as_echo_n "(cached
) " >&6
12011 case $LD_FOR_TARGET in
12013 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $gcc_cv_tool_dirs
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12034 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12035 if test -n "$LD_FOR_TARGET"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12037 $as_echo "$LD_FOR_TARGET" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12040 $as_echo "no
" >&6; }
12045 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12048 if test -n "$LD_FOR_TARGET"; then
12049 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12050 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12051 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12054 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12055 for ncn_progname in ld; do
12056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12057 set dummy ${ncn_progname}; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12059 $as_echo_n "checking
for $ac_word...
" >&6; }
12060 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12061 $as_echo_n "(cached
) " >&6
12063 if test -n "$LD_FOR_TARGET"; then
12064 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12083 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12084 if test -n "$LD_FOR_TARGET"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12086 $as_echo "$LD_FOR_TARGET" >&6; }
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12089 $as_echo "no
" >&6; }
12096 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12097 for ncn_progname in ld; do
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12099 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12100 if test -x $with_build_time_tools/${ncn_progname}; then
12101 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12103 $as_echo "yes" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12107 $as_echo "no
" >&6; }
12112 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12113 for ncn_progname in ld; do
12114 if test -n "$ncn_target_tool_prefix"; then
12115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12118 $as_echo_n "checking
for $ac_word...
" >&6; }
12119 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12120 $as_echo_n "(cached
) " >&6
12122 if test -n "$LD_FOR_TARGET"; then
12123 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12142 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12143 if test -n "$LD_FOR_TARGET"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12145 $as_echo "$LD_FOR_TARGET" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12148 $as_echo "no
" >&6; }
12153 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12157 $as_echo_n "checking
for $ac_word...
" >&6; }
12158 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12159 $as_echo_n "(cached
) " >&6
12161 if test -n "$LD_FOR_TARGET"; then
12162 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12181 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12182 if test -n "$LD_FOR_TARGET"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12184 $as_echo "$LD_FOR_TARGET" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12187 $as_echo "no
" >&6; }
12192 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12196 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12198 if test $build = $target ; then
12201 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12204 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12208 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12214 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12215 if test -n "$with_build_time_tools"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
12217 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
12218 if test -x $with_build_time_tools/lipo; then
12219 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12220 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
12222 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12225 $as_echo "no
" >&6; }
12227 elif test $build != $host && test $have_gcc_for_target = yes; then
12228 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12229 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12230 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12233 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12234 # Extract the first word of "lipo
", so it can be a program name with args.
12235 set dummy lipo; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12237 $as_echo_n "checking
for $ac_word...
" >&6; }
12238 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12239 $as_echo_n "(cached
) " >&6
12241 case $LIPO_FOR_TARGET in
12243 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $gcc_cv_tool_dirs
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12264 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12265 if test -n "$LIPO_FOR_TARGET"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12267 $as_echo "$LIPO_FOR_TARGET" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12270 $as_echo "no
" >&6; }
12275 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12278 if test -n "$LIPO_FOR_TARGET"; then
12279 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12280 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12281 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12284 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12285 for ncn_progname in lipo; do
12286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12287 set dummy ${ncn_progname}; ac_word=$2
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12289 $as_echo_n "checking
for $ac_word...
" >&6; }
12290 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12291 $as_echo_n "(cached
) " >&6
12293 if test -n "$LIPO_FOR_TARGET"; then
12294 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $PATH
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12313 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12314 if test -n "$LIPO_FOR_TARGET"; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12316 $as_echo "$LIPO_FOR_TARGET" >&6; }
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12319 $as_echo "no
" >&6; }
12326 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12327 for ncn_progname in lipo; do
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12329 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12330 if test -x $with_build_time_tools/${ncn_progname}; then
12331 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12333 $as_echo "yes" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12337 $as_echo "no
" >&6; }
12342 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12343 for ncn_progname in lipo; do
12344 if test -n "$ncn_target_tool_prefix"; then
12345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12346 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12348 $as_echo_n "checking
for $ac_word...
" >&6; }
12349 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12350 $as_echo_n "(cached
) " >&6
12352 if test -n "$LIPO_FOR_TARGET"; then
12353 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12372 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12373 if test -n "$LIPO_FOR_TARGET"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12375 $as_echo "$LIPO_FOR_TARGET" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12378 $as_echo "no
" >&6; }
12383 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12385 set dummy ${ncn_progname}; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12387 $as_echo_n "checking
for $ac_word...
" >&6; }
12388 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12389 $as_echo_n "(cached
) " >&6
12391 if test -n "$LIPO_FOR_TARGET"; then
12392 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12411 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12412 if test -n "$LIPO_FOR_TARGET"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12414 $as_echo "$LIPO_FOR_TARGET" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12417 $as_echo "no
" >&6; }
12422 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12426 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12428 if test $build = $target ; then
12429 LIPO_FOR_TARGET="$2"
12431 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12438 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12444 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12445 if test -n "$with_build_time_tools"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
12447 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
12448 if test -x $with_build_time_tools/nm; then
12449 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12450 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
12452 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12455 $as_echo "no
" >&6; }
12457 elif test $build != $host && test $have_gcc_for_target = yes; then
12458 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12459 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12460 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12463 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12464 # Extract the first word of "nm
", so it can be a program name with args.
12465 set dummy nm; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12467 $as_echo_n "checking
for $ac_word...
" >&6; }
12468 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12469 $as_echo_n "(cached
) " >&6
12471 case $NM_FOR_TARGET in
12473 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $gcc_cv_tool_dirs
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12494 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12495 if test -n "$NM_FOR_TARGET"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12497 $as_echo "$NM_FOR_TARGET" >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12500 $as_echo "no
" >&6; }
12505 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12508 if test -n "$NM_FOR_TARGET"; then
12509 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12510 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12511 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12514 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12515 for ncn_progname in nm; do
12516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12517 set dummy ${ncn_progname}; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12519 $as_echo_n "checking
for $ac_word...
" >&6; }
12520 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12521 $as_echo_n "(cached
) " >&6
12523 if test -n "$NM_FOR_TARGET"; then
12524 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12543 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12544 if test -n "$NM_FOR_TARGET"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12546 $as_echo "$NM_FOR_TARGET" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12549 $as_echo "no
" >&6; }
12556 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12557 for ncn_progname in nm; do
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12559 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12560 if test -x $with_build_time_tools/${ncn_progname}; then
12561 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12563 $as_echo "yes" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12567 $as_echo "no
" >&6; }
12572 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12573 for ncn_progname in nm; do
12574 if test -n "$ncn_target_tool_prefix"; then
12575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12578 $as_echo_n "checking
for $ac_word...
" >&6; }
12579 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12580 $as_echo_n "(cached
) " >&6
12582 if test -n "$NM_FOR_TARGET"; then
12583 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12602 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12603 if test -n "$NM_FOR_TARGET"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12605 $as_echo "$NM_FOR_TARGET" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12608 $as_echo "no
" >&6; }
12613 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12617 $as_echo_n "checking
for $ac_word...
" >&6; }
12618 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12619 $as_echo_n "(cached
) " >&6
12621 if test -n "$NM_FOR_TARGET"; then
12622 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12641 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12642 if test -n "$NM_FOR_TARGET"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12644 $as_echo "$NM_FOR_TARGET" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12647 $as_echo "no
" >&6; }
12652 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12656 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12658 if test $build = $target ; then
12661 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12664 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12668 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12674 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12675 if test -n "$with_build_time_tools"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
12677 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
12678 if test -x $with_build_time_tools/objcopy; then
12679 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12680 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12682 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12685 $as_echo "no
" >&6; }
12687 elif test $build != $host && test $have_gcc_for_target = yes; then
12688 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12689 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12690 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12693 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12694 # Extract the first word of "objcopy
", so it can be a program name with args.
12695 set dummy objcopy; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12697 $as_echo_n "checking
for $ac_word...
" >&6; }
12698 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12699 $as_echo_n "(cached
) " >&6
12701 case $OBJCOPY_FOR_TARGET in
12703 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $gcc_cv_tool_dirs
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12724 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12725 if test -n "$OBJCOPY_FOR_TARGET"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12727 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12730 $as_echo "no
" >&6; }
12735 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12738 if test -n "$OBJCOPY_FOR_TARGET"; then
12739 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12740 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12741 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12744 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12745 for ncn_progname in objcopy; do
12746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12747 set dummy ${ncn_progname}; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12749 $as_echo_n "checking
for $ac_word...
" >&6; }
12750 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12751 $as_echo_n "(cached
) " >&6
12753 if test -n "$OBJCOPY_FOR_TARGET"; then
12754 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12763 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12773 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12774 if test -n "$OBJCOPY_FOR_TARGET"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12776 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12779 $as_echo "no
" >&6; }
12786 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12787 for ncn_progname in objcopy; do
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12789 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12790 if test -x $with_build_time_tools/${ncn_progname}; then
12791 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12793 $as_echo "yes" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12797 $as_echo "no
" >&6; }
12802 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12803 for ncn_progname in objcopy; do
12804 if test -n "$ncn_target_tool_prefix"; then
12805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12806 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12808 $as_echo_n "checking
for $ac_word...
" >&6; }
12809 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12810 $as_echo_n "(cached
) " >&6
12812 if test -n "$OBJCOPY_FOR_TARGET"; then
12813 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12832 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12833 if test -n "$OBJCOPY_FOR_TARGET"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12835 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12838 $as_echo "no
" >&6; }
12843 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12845 set dummy ${ncn_progname}; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12847 $as_echo_n "checking
for $ac_word...
" >&6; }
12848 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12849 $as_echo_n "(cached
) " >&6
12851 if test -n "$OBJCOPY_FOR_TARGET"; then
12852 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12871 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12872 if test -n "$OBJCOPY_FOR_TARGET"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12874 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12877 $as_echo "no
" >&6; }
12882 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12886 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12888 if test $build = $target ; then
12889 OBJCOPY_FOR_TARGET="$2"
12891 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12894 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12898 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12904 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12905 if test -n "$with_build_time_tools"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
12907 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
12908 if test -x $with_build_time_tools/objdump; then
12909 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12910 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12912 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12915 $as_echo "no
" >&6; }
12917 elif test $build != $host && test $have_gcc_for_target = yes; then
12918 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12919 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12920 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12923 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12924 # Extract the first word of "objdump
", so it can be a program name with args.
12925 set dummy objdump; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12927 $as_echo_n "checking
for $ac_word...
" >&6; }
12928 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12929 $as_echo_n "(cached
) " >&6
12931 case $OBJDUMP_FOR_TARGET in
12933 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $gcc_cv_tool_dirs
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12954 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12955 if test -n "$OBJDUMP_FOR_TARGET"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12957 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12960 $as_echo "no
" >&6; }
12965 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12968 if test -n "$OBJDUMP_FOR_TARGET"; then
12969 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12970 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12971 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12974 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12975 for ncn_progname in objdump; do
12976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12977 set dummy ${ncn_progname}; ac_word=$2
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12979 $as_echo_n "checking
for $ac_word...
" >&6; }
12980 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12981 $as_echo_n "(cached
) " >&6
12983 if test -n "$OBJDUMP_FOR_TARGET"; then
12984 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13003 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13004 if test -n "$OBJDUMP_FOR_TARGET"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13006 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13009 $as_echo "no
" >&6; }
13016 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13017 for ncn_progname in objdump; do
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13019 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13020 if test -x $with_build_time_tools/${ncn_progname}; then
13021 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13023 $as_echo "yes" >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13027 $as_echo "no
" >&6; }
13032 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13033 for ncn_progname in objdump; do
13034 if test -n "$ncn_target_tool_prefix"; then
13035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13036 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13038 $as_echo_n "checking
for $ac_word...
" >&6; }
13039 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13040 $as_echo_n "(cached
) " >&6
13042 if test -n "$OBJDUMP_FOR_TARGET"; then
13043 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13062 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13063 if test -n "$OBJDUMP_FOR_TARGET"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13065 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13068 $as_echo "no
" >&6; }
13073 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13075 set dummy ${ncn_progname}; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13077 $as_echo_n "checking
for $ac_word...
" >&6; }
13078 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13079 $as_echo_n "(cached
) " >&6
13081 if test -n "$OBJDUMP_FOR_TARGET"; then
13082 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13101 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13102 if test -n "$OBJDUMP_FOR_TARGET"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13104 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13107 $as_echo "no
" >&6; }
13112 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13118 if test $build = $target ; then
13119 OBJDUMP_FOR_TARGET="$2"
13121 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13124 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13128 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13134 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13135 if test -n "$with_build_time_tools"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
13137 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
13138 if test -x $with_build_time_tools/ranlib; then
13139 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13140 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13142 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13145 $as_echo "no
" >&6; }
13147 elif test $build != $host && test $have_gcc_for_target = yes; then
13148 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13149 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13150 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13153 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13154 # Extract the first word of "ranlib
", so it can be a program name with args.
13155 set dummy ranlib; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13157 $as_echo_n "checking
for $ac_word...
" >&6; }
13158 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13159 $as_echo_n "(cached
) " >&6
13161 case $RANLIB_FOR_TARGET in
13163 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $gcc_cv_tool_dirs
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13184 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13185 if test -n "$RANLIB_FOR_TARGET"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13187 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13190 $as_echo "no
" >&6; }
13195 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13198 if test -n "$RANLIB_FOR_TARGET"; then
13199 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13200 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13201 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13204 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13205 for ncn_progname in ranlib; do
13206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13207 set dummy ${ncn_progname}; ac_word=$2
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13209 $as_echo_n "checking
for $ac_word...
" >&6; }
13210 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13211 $as_echo_n "(cached
) " >&6
13213 if test -n "$RANLIB_FOR_TARGET"; then
13214 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13233 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13234 if test -n "$RANLIB_FOR_TARGET"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13236 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13239 $as_echo "no
" >&6; }
13246 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13247 for ncn_progname in ranlib; do
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13249 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13250 if test -x $with_build_time_tools/${ncn_progname}; then
13251 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13253 $as_echo "yes" >&6; }
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13257 $as_echo "no
" >&6; }
13262 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13263 for ncn_progname in ranlib; do
13264 if test -n "$ncn_target_tool_prefix"; then
13265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13266 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13268 $as_echo_n "checking
for $ac_word...
" >&6; }
13269 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13270 $as_echo_n "(cached
) " >&6
13272 if test -n "$RANLIB_FOR_TARGET"; then
13273 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13292 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13293 if test -n "$RANLIB_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13295 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13298 $as_echo "no
" >&6; }
13303 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13305 set dummy ${ncn_progname}; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13307 $as_echo_n "checking
for $ac_word...
" >&6; }
13308 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13309 $as_echo_n "(cached
) " >&6
13311 if test -n "$RANLIB_FOR_TARGET"; then
13312 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13331 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13332 if test -n "$RANLIB_FOR_TARGET"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13334 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13337 $as_echo "no
" >&6; }
13342 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13346 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13348 if test $build = $target ; then
13349 RANLIB_FOR_TARGET="$2"
13351 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13354 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13358 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13364 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13365 if test -n "$with_build_time_tools"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
13367 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
13368 if test -x $with_build_time_tools/readelf; then
13369 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13370 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
13372 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13375 $as_echo "no
" >&6; }
13377 elif test $build != $host && test $have_gcc_for_target = yes; then
13378 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13379 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13380 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13383 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13384 # Extract the first word of "readelf
", so it can be a program name with args.
13385 set dummy readelf; ac_word=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13387 $as_echo_n "checking
for $ac_word...
" >&6; }
13388 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13389 $as_echo_n "(cached
) " >&6
13391 case $READELF_FOR_TARGET in
13393 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $gcc_cv_tool_dirs
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13403 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13414 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13415 if test -n "$READELF_FOR_TARGET"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13417 $as_echo "$READELF_FOR_TARGET" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13420 $as_echo "no
" >&6; }
13425 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13428 if test -n "$READELF_FOR_TARGET"; then
13429 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13430 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13431 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13434 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13435 for ncn_progname in readelf; do
13436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13437 set dummy ${ncn_progname}; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13439 $as_echo_n "checking
for $ac_word...
" >&6; }
13440 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13441 $as_echo_n "(cached
) " >&6
13443 if test -n "$READELF_FOR_TARGET"; then
13444 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13463 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13464 if test -n "$READELF_FOR_TARGET"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13466 $as_echo "$READELF_FOR_TARGET" >&6; }
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13469 $as_echo "no
" >&6; }
13476 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13477 for ncn_progname in readelf; do
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13479 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13480 if test -x $with_build_time_tools/${ncn_progname}; then
13481 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13483 $as_echo "yes" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13487 $as_echo "no
" >&6; }
13492 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13493 for ncn_progname in readelf; do
13494 if test -n "$ncn_target_tool_prefix"; then
13495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13496 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13498 $as_echo_n "checking
for $ac_word...
" >&6; }
13499 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13500 $as_echo_n "(cached
) " >&6
13502 if test -n "$READELF_FOR_TARGET"; then
13503 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13509 test -z "$as_dir" && as_dir=.
13510 for ac_exec_ext in '' $ac_executable_extensions; do
13511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13513 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13522 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13523 if test -n "$READELF_FOR_TARGET"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13525 $as_echo "$READELF_FOR_TARGET" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13528 $as_echo "no
" >&6; }
13533 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13537 $as_echo_n "checking
for $ac_word...
" >&6; }
13538 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached
) " >&6
13541 if test -n "$READELF_FOR_TARGET"; then
13542 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13561 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13562 if test -n "$READELF_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13564 $as_echo "$READELF_FOR_TARGET" >&6; }
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13567 $as_echo "no
" >&6; }
13572 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13576 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13578 if test $build = $target ; then
13579 READELF_FOR_TARGET="$2"
13581 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13584 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13588 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13594 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13595 if test -n "$with_build_time_tools"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
13597 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
13598 if test -x $with_build_time_tools/strip; then
13599 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13600 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
13602 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13605 $as_echo "no
" >&6; }
13607 elif test $build != $host && test $have_gcc_for_target = yes; then
13608 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13609 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13610 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13613 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13614 # Extract the first word of "strip
", so it can be a program name with args.
13615 set dummy strip; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13617 $as_echo_n "checking
for $ac_word...
" >&6; }
13618 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13619 $as_echo_n "(cached
) " >&6
13621 case $STRIP_FOR_TARGET in
13623 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $gcc_cv_tool_dirs
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13644 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13645 if test -n "$STRIP_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13647 $as_echo "$STRIP_FOR_TARGET" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13650 $as_echo "no
" >&6; }
13655 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13658 if test -n "$STRIP_FOR_TARGET"; then
13659 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13660 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13661 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13664 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13665 for ncn_progname in strip; do
13666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13667 set dummy ${ncn_progname}; ac_word=$2
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13669 $as_echo_n "checking
for $ac_word...
" >&6; }
13670 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13671 $as_echo_n "(cached
) " >&6
13673 if test -n "$STRIP_FOR_TARGET"; then
13674 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13693 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13694 if test -n "$STRIP_FOR_TARGET"; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13696 $as_echo "$STRIP_FOR_TARGET" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13699 $as_echo "no
" >&6; }
13706 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13707 for ncn_progname in strip; do
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13709 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13710 if test -x $with_build_time_tools/${ncn_progname}; then
13711 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13713 $as_echo "yes" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13717 $as_echo "no
" >&6; }
13722 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13723 for ncn_progname in strip; do
13724 if test -n "$ncn_target_tool_prefix"; then
13725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13726 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13728 $as_echo_n "checking
for $ac_word...
" >&6; }
13729 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13730 $as_echo_n "(cached
) " >&6
13732 if test -n "$STRIP_FOR_TARGET"; then
13733 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13742 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13743 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13752 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13753 if test -n "$STRIP_FOR_TARGET"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13755 $as_echo "$STRIP_FOR_TARGET" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13758 $as_echo "no
" >&6; }
13763 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13767 $as_echo_n "checking
for $ac_word...
" >&6; }
13768 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached
) " >&6
13771 if test -n "$STRIP_FOR_TARGET"; then
13772 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13791 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13792 if test -n "$STRIP_FOR_TARGET"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13794 $as_echo "$STRIP_FOR_TARGET" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13802 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13806 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13808 if test $build = $target ; then
13809 STRIP_FOR_TARGET="$2"
13811 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13814 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13818 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13824 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13825 if test -n "$with_build_time_tools"; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
13827 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
13828 if test -x $with_build_time_tools/windres; then
13829 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13830 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13832 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13835 $as_echo "no
" >&6; }
13837 elif test $build != $host && test $have_gcc_for_target = yes; then
13838 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13839 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13840 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13843 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13844 # Extract the first word of "windres
", so it can be a program name with args.
13845 set dummy windres; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13847 $as_echo_n "checking
for $ac_word...
" >&6; }
13848 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13849 $as_echo_n "(cached
) " >&6
13851 case $WINDRES_FOR_TARGET in
13853 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $gcc_cv_tool_dirs
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13874 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13875 if test -n "$WINDRES_FOR_TARGET"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13877 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13880 $as_echo "no
" >&6; }
13885 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13888 if test -n "$WINDRES_FOR_TARGET"; then
13889 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13890 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13891 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13894 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13895 for ncn_progname in windres; do
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897 set dummy ${ncn_progname}; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13899 $as_echo_n "checking
for $ac_word...
" >&6; }
13900 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13901 $as_echo_n "(cached
) " >&6
13903 if test -n "$WINDRES_FOR_TARGET"; then
13904 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13923 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13924 if test -n "$WINDRES_FOR_TARGET"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13926 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13929 $as_echo "no
" >&6; }
13936 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13937 for ncn_progname in windres; do
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13939 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13940 if test -x $with_build_time_tools/${ncn_progname}; then
13941 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13943 $as_echo "yes" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13947 $as_echo "no
" >&6; }
13952 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13953 for ncn_progname in windres; do
13954 if test -n "$ncn_target_tool_prefix"; then
13955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13956 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13958 $as_echo_n "checking
for $ac_word...
" >&6; }
13959 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13960 $as_echo_n "(cached
) " >&6
13962 if test -n "$WINDRES_FOR_TARGET"; then
13963 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13972 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13982 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13983 if test -n "$WINDRES_FOR_TARGET"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13985 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13988 $as_echo "no
" >&6; }
13993 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13995 set dummy ${ncn_progname}; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13997 $as_echo_n "checking
for $ac_word...
" >&6; }
13998 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13999 $as_echo_n "(cached
) " >&6
14001 if test -n "$WINDRES_FOR_TARGET"; then
14002 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005 for as_dir in $PATH
14008 test -z "$as_dir" && as_dir=.
14009 for ac_exec_ext in '' $ac_executable_extensions; do
14010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14011 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14012 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14021 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14022 if test -n "$WINDRES_FOR_TARGET"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
14024 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14027 $as_echo "no
" >&6; }
14032 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14036 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14038 if test $build = $target ; then
14039 WINDRES_FOR_TARGET="$2"
14041 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14044 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14048 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14054 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14055 if test -n "$with_build_time_tools"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
14057 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
14058 if test -x $with_build_time_tools/windmc; then
14059 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14060 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14062 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14065 $as_echo "no
" >&6; }
14067 elif test $build != $host && test $have_gcc_for_target = yes; then
14068 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14069 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14070 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14073 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14074 # Extract the first word of "windmc
", so it can be a program name with args.
14075 set dummy windmc; ac_word=$2
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14077 $as_echo_n "checking
for $ac_word...
" >&6; }
14078 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14079 $as_echo_n "(cached
) " >&6
14081 case $WINDMC_FOR_TARGET in
14083 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $gcc_cv_tool_dirs
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14104 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14105 if test -n "$WINDMC_FOR_TARGET"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14107 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14110 $as_echo "no
" >&6; }
14115 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14118 if test -n "$WINDMC_FOR_TARGET"; then
14119 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14120 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14121 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14124 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14125 for ncn_progname in windmc; do
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127 set dummy ${ncn_progname}; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14129 $as_echo_n "checking
for $ac_word...
" >&6; }
14130 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14131 $as_echo_n "(cached
) " >&6
14133 if test -n "$WINDMC_FOR_TARGET"; then
14134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14153 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14154 if test -n "$WINDMC_FOR_TARGET"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14156 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14159 $as_echo "no
" >&6; }
14166 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14167 for ncn_progname in windmc; do
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14169 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14170 if test -x $with_build_time_tools/${ncn_progname}; then
14171 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14173 $as_echo "yes" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14177 $as_echo "no
" >&6; }
14182 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14183 for ncn_progname in windmc; do
14184 if test -n "$ncn_target_tool_prefix"; then
14185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14188 $as_echo_n "checking
for $ac_word...
" >&6; }
14189 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14190 $as_echo_n "(cached
) " >&6
14192 if test -n "$WINDMC_FOR_TARGET"; then
14193 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14202 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14212 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14213 if test -n "$WINDMC_FOR_TARGET"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14215 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14218 $as_echo "no
" >&6; }
14223 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14225 set dummy ${ncn_progname}; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14227 $as_echo_n "checking
for $ac_word...
" >&6; }
14228 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached
) " >&6
14231 if test -n "$WINDMC_FOR_TARGET"; then
14232 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14251 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14252 if test -n "$WINDMC_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14254 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14257 $as_echo "no
" >&6; }
14262 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14266 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14268 if test $build = $target ; then
14269 WINDMC_FOR_TARGET="$2"
14271 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14274 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14278 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14282 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
14285 $as_echo_n "checking where to
find the target
ar...
" >&6; }
14286 if test "x
${build}" != "x
${host}" ; then
14287 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $AR_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14291 $as_echo "pre-installed
in $ac_dir" >&6; }
14293 # Canadian cross, just use what we found
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14295 $as_echo "pre-installed
" >&6; }
14299 case " ${configdirs} " in
14304 if test $ok = yes; then
14305 # An in-tree tool is available and we can use it
14306 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14308 $as_echo "just compiled
" >&6; }
14309 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $AR_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14313 $as_echo "pre-installed
in $ac_dir" >&6; }
14314 elif test "x
$target" = "x
$host"; then
14315 # We can use an host tool
14316 AR_FOR_TARGET='$(AR)'
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14318 $as_echo "host tool
" >&6; }
14320 # We need a cross tool
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14322 $as_echo "pre-installed
" >&6; }
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
14327 $as_echo_n "checking where to
find the target as...
" >&6; }
14328 if test "x
${build}" != "x
${host}" ; then
14329 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
14330 # We already found the complete path
14331 ac_dir=`dirname $AS_FOR_TARGET`
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14333 $as_echo "pre-installed
in $ac_dir" >&6; }
14335 # Canadian cross, just use what we found
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14337 $as_echo "pre-installed
" >&6; }
14341 case " ${configdirs} " in
14346 if test $ok = yes; then
14347 # An in-tree tool is available and we can use it
14348 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14350 $as_echo "just compiled
" >&6; }
14351 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
14352 # We already found the complete path
14353 ac_dir=`dirname $AS_FOR_TARGET`
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14355 $as_echo "pre-installed
in $ac_dir" >&6; }
14356 elif test "x
$target" = "x
$host"; then
14357 # We can use an host tool
14358 AS_FOR_TARGET='$(AS)'
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14360 $as_echo "host tool
" >&6; }
14362 # We need a cross tool
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14364 $as_echo "pre-installed
" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
14369 $as_echo_n "checking where to
find the target cc...
" >&6; }
14370 if test "x
${build}" != "x
${host}" ; then
14371 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14372 # We already found the complete path
14373 ac_dir=`dirname $CC_FOR_TARGET`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14375 $as_echo "pre-installed
in $ac_dir" >&6; }
14377 # Canadian cross, just use what we found
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14379 $as_echo "pre-installed
" >&6; }
14383 case " ${configdirs} " in
14388 if test $ok = yes; then
14389 # An in-tree tool is available and we can use it
14390 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14392 $as_echo "just compiled
" >&6; }
14393 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14394 # We already found the complete path
14395 ac_dir=`dirname $CC_FOR_TARGET`
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14397 $as_echo "pre-installed
in $ac_dir" >&6; }
14398 elif test "x
$target" = "x
$host"; then
14399 # We can use an host tool
14400 CC_FOR_TARGET='$(CC)'
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14402 $as_echo "host tool
" >&6; }
14404 # We need a cross tool
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14406 $as_echo "pre-installed
" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
14411 $as_echo_n "checking where to
find the target c
++...
" >&6; }
14412 if test "x
${build}" != "x
${host}" ; then
14413 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14414 # We already found the complete path
14415 ac_dir=`dirname $CXX_FOR_TARGET`
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14417 $as_echo "pre-installed
in $ac_dir" >&6; }
14419 # Canadian cross, just use what we found
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14421 $as_echo "pre-installed
" >&6; }
14425 case " ${configdirs} " in
14429 case ,${enable_languages}, in
14433 if test $ok = yes; then
14434 # An in-tree tool is available and we can use it
14435 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'
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14437 $as_echo "just compiled
" >&6; }
14438 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14439 # We already found the complete path
14440 ac_dir=`dirname $CXX_FOR_TARGET`
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14442 $as_echo "pre-installed
in $ac_dir" >&6; }
14443 elif test "x
$target" = "x
$host"; then
14444 # We can use an host tool
14445 CXX_FOR_TARGET='$(CXX)'
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14447 $as_echo "host tool
" >&6; }
14449 # We need a cross tool
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14451 $as_echo "pre-installed
" >&6; }
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
14456 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
14457 if test "x
${build}" != "x
${host}" ; then
14458 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14459 # We already found the complete path
14460 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14462 $as_echo "pre-installed
in $ac_dir" >&6; }
14464 # Canadian cross, just use what we found
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14466 $as_echo "pre-installed
" >&6; }
14470 case " ${configdirs} " in
14474 case ,${enable_languages}, in
14478 if test $ok = yes; then
14479 # An in-tree tool is available and we can use it
14480 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'
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14482 $as_echo "just compiled
" >&6; }
14483 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14484 # We already found the complete path
14485 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14487 $as_echo "pre-installed
in $ac_dir" >&6; }
14488 elif test "x
$target" = "x
$host"; then
14489 # We can use an host tool
14490 RAW_CXX_FOR_TARGET='$(CXX)'
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14492 $as_echo "host tool
" >&6; }
14494 # We need a cross tool
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14496 $as_echo "pre-installed
" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
14501 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
14502 if test "x
${build}" != "x
${host}" ; then
14503 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14504 # We already found the complete path
14505 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14507 $as_echo "pre-installed
in $ac_dir" >&6; }
14509 # Canadian cross, just use what we found
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14511 $as_echo "pre-installed
" >&6; }
14515 case " ${configdirs} " in
14520 if test $ok = yes; then
14521 # An in-tree tool is available and we can use it
14522 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14524 $as_echo "just compiled
" >&6; }
14525 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14526 # We already found the complete path
14527 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14529 $as_echo "pre-installed
in $ac_dir" >&6; }
14530 elif test "x
$target" = "x
$host"; then
14531 # We can use an host tool
14532 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14534 $as_echo "host tool
" >&6; }
14536 # We need a cross tool
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14538 $as_echo "pre-installed
" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
14543 $as_echo_n "checking where to
find the target gcc...
" >&6; }
14544 if test "x
${build}" != "x
${host}" ; then
14545 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14546 # We already found the complete path
14547 ac_dir=`dirname $GCC_FOR_TARGET`
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14549 $as_echo "pre-installed
in $ac_dir" >&6; }
14551 # Canadian cross, just use what we found
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14553 $as_echo "pre-installed
" >&6; }
14557 case " ${configdirs} " in
14562 if test $ok = yes; then
14563 # An in-tree tool is available and we can use it
14564 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14566 $as_echo "just compiled
" >&6; }
14567 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14568 # We already found the complete path
14569 ac_dir=`dirname $GCC_FOR_TARGET`
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14571 $as_echo "pre-installed
in $ac_dir" >&6; }
14572 elif test "x
$target" = "x
$host"; then
14573 # We can use an host tool
14574 GCC_FOR_TARGET='$()'
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14576 $as_echo "host tool
" >&6; }
14578 # We need a cross tool
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14580 $as_echo "pre-installed
" >&6; }
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
14585 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
14586 if test "x
${build}" != "x
${host}" ; then
14587 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14588 # We already found the complete path
14589 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14591 $as_echo "pre-installed
in $ac_dir" >&6; }
14593 # Canadian cross, just use what we found
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14595 $as_echo "pre-installed
" >&6; }
14599 case " ${configdirs} " in
14603 case ,${enable_languages}, in
14607 if test $ok = yes; then
14608 # An in-tree tool is available and we can use it
14609 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14611 $as_echo "just compiled
" >&6; }
14612 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14613 # We already found the complete path
14614 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14616 $as_echo "pre-installed
in $ac_dir" >&6; }
14617 elif test "x
$target" = "x
$host"; then
14618 # We can use an host tool
14619 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14621 $as_echo "host tool
" >&6; }
14623 # We need a cross tool
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14625 $as_echo "pre-installed
" >&6; }
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
14630 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
14631 if test "x
${build}" != "x
${host}" ; then
14632 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14633 # We already found the complete path
14634 ac_dir=`dirname $GOC_FOR_TARGET`
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14636 $as_echo "pre-installed
in $ac_dir" >&6; }
14638 # Canadian cross, just use what we found
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14640 $as_echo "pre-installed
" >&6; }
14644 case " ${configdirs} " in
14648 case ,${enable_languages}, in
14652 if test $ok = yes; then
14653 # An in-tree tool is available and we can use it
14654 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14656 $as_echo "just compiled
" >&6; }
14657 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $GOC_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14661 $as_echo "pre-installed
in $ac_dir" >&6; }
14662 elif test "x
$target" = "x
$host"; then
14663 # We can use an host tool
14664 GOC_FOR_TARGET='$(GOC)'
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14666 $as_echo "host tool
" >&6; }
14668 # We need a cross tool
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14670 $as_echo "pre-installed
" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
14675 $as_echo_n "checking where to
find the target ld...
" >&6; }
14676 if test "x
${build}" != "x
${host}" ; then
14677 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14678 # We already found the complete path
14679 ac_dir=`dirname $LD_FOR_TARGET`
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14681 $as_echo "pre-installed
in $ac_dir" >&6; }
14683 # Canadian cross, just use what we found
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14685 $as_echo "pre-installed
" >&6; }
14689 case " ${configdirs} " in
14694 if test $ok = yes; then
14695 # An in-tree tool is available and we can use it
14696 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14698 $as_echo "just compiled
" >&6; }
14699 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14700 # We already found the complete path
14701 ac_dir=`dirname $LD_FOR_TARGET`
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14703 $as_echo "pre-installed
in $ac_dir" >&6; }
14704 elif test "x
$target" = "x
$host"; then
14705 # We can use an host tool
14706 LD_FOR_TARGET='$(LD)'
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14708 $as_echo "host tool
" >&6; }
14710 # We need a cross tool
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14712 $as_echo "pre-installed
" >&6; }
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
14717 $as_echo_n "checking where to
find the target lipo...
" >&6; }
14718 if test "x
${build}" != "x
${host}" ; then
14719 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14720 # We already found the complete path
14721 ac_dir=`dirname $LIPO_FOR_TARGET`
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14723 $as_echo "pre-installed
in $ac_dir" >&6; }
14725 # Canadian cross, just use what we found
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14727 $as_echo "pre-installed
" >&6; }
14730 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14731 # We already found the complete path
14732 ac_dir=`dirname $LIPO_FOR_TARGET`
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14734 $as_echo "pre-installed
in $ac_dir" >&6; }
14735 elif test "x
$target" = "x
$host"; then
14736 # We can use an host tool
14737 LIPO_FOR_TARGET='$(LIPO)'
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14739 $as_echo "host tool
" >&6; }
14741 # We need a cross tool
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14743 $as_echo "pre-installed
" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
14748 $as_echo_n "checking where to
find the target nm...
" >&6; }
14749 if test "x
${build}" != "x
${host}" ; then
14750 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14751 # We already found the complete path
14752 ac_dir=`dirname $NM_FOR_TARGET`
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14754 $as_echo "pre-installed
in $ac_dir" >&6; }
14756 # Canadian cross, just use what we found
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14758 $as_echo "pre-installed
" >&6; }
14762 case " ${configdirs} " in
14767 if test $ok = yes; then
14768 # An in-tree tool is available and we can use it
14769 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14771 $as_echo "just compiled
" >&6; }
14772 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14773 # We already found the complete path
14774 ac_dir=`dirname $NM_FOR_TARGET`
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14776 $as_echo "pre-installed
in $ac_dir" >&6; }
14777 elif test "x
$target" = "x
$host"; then
14778 # We can use an host tool
14779 NM_FOR_TARGET='$(NM)'
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14781 $as_echo "host tool
" >&6; }
14783 # We need a cross tool
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14785 $as_echo "pre-installed
" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
14790 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
14791 if test "x
${build}" != "x
${host}" ; then
14792 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14793 # We already found the complete path
14794 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14796 $as_echo "pre-installed
in $ac_dir" >&6; }
14798 # Canadian cross, just use what we found
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14800 $as_echo "pre-installed
" >&6; }
14804 case " ${configdirs} " in
14809 if test $ok = yes; then
14810 # An in-tree tool is available and we can use it
14811 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14813 $as_echo "just compiled
" >&6; }
14814 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14815 # We already found the complete path
14816 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14818 $as_echo "pre-installed
in $ac_dir" >&6; }
14819 elif test "x
$target" = "x
$host"; then
14820 # We can use an host tool
14821 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14823 $as_echo "host tool
" >&6; }
14825 # We need a cross tool
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14827 $as_echo "pre-installed
" >&6; }
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
14832 $as_echo_n "checking where to
find the target objdump...
" >&6; }
14833 if test "x
${build}" != "x
${host}" ; then
14834 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14835 # We already found the complete path
14836 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14838 $as_echo "pre-installed
in $ac_dir" >&6; }
14840 # Canadian cross, just use what we found
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14842 $as_echo "pre-installed
" >&6; }
14846 case " ${configdirs} " in
14851 if test $ok = yes; then
14852 # An in-tree tool is available and we can use it
14853 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14855 $as_echo "just compiled
" >&6; }
14856 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14857 # We already found the complete path
14858 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14860 $as_echo "pre-installed
in $ac_dir" >&6; }
14861 elif test "x
$target" = "x
$host"; then
14862 # We can use an host tool
14863 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14865 $as_echo "host tool
" >&6; }
14867 # We need a cross tool
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14869 $as_echo "pre-installed
" >&6; }
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
14874 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
14875 if test "x
${build}" != "x
${host}" ; then
14876 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14877 # We already found the complete path
14878 ac_dir=`dirname $RANLIB_FOR_TARGET`
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14880 $as_echo "pre-installed
in $ac_dir" >&6; }
14882 # Canadian cross, just use what we found
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14884 $as_echo "pre-installed
" >&6; }
14888 case " ${configdirs} " in
14893 if test $ok = yes; then
14894 # An in-tree tool is available and we can use it
14895 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14897 $as_echo "just compiled
" >&6; }
14898 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14899 # We already found the complete path
14900 ac_dir=`dirname $RANLIB_FOR_TARGET`
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14902 $as_echo "pre-installed
in $ac_dir" >&6; }
14903 elif test "x
$target" = "x
$host"; then
14904 # We can use an host tool
14905 RANLIB_FOR_TARGET='$(RANLIB)'
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14907 $as_echo "host tool
" >&6; }
14909 # We need a cross tool
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14911 $as_echo "pre-installed
" >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
14916 $as_echo_n "checking where to
find the target readelf...
" >&6; }
14917 if test "x
${build}" != "x
${host}" ; then
14918 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14919 # We already found the complete path
14920 ac_dir=`dirname $READELF_FOR_TARGET`
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14922 $as_echo "pre-installed
in $ac_dir" >&6; }
14924 # Canadian cross, just use what we found
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14926 $as_echo "pre-installed
" >&6; }
14930 case " ${configdirs} " in
14935 if test $ok = yes; then
14936 # An in-tree tool is available and we can use it
14937 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14939 $as_echo "just compiled
" >&6; }
14940 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14941 # We already found the complete path
14942 ac_dir=`dirname $READELF_FOR_TARGET`
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14944 $as_echo "pre-installed
in $ac_dir" >&6; }
14945 elif test "x
$target" = "x
$host"; then
14946 # We can use an host tool
14947 READELF_FOR_TARGET='$(READELF)'
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14949 $as_echo "host tool
" >&6; }
14951 # We need a cross tool
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14953 $as_echo "pre-installed
" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
14958 $as_echo_n "checking where to
find the target strip...
" >&6; }
14959 if test "x
${build}" != "x
${host}" ; then
14960 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14961 # We already found the complete path
14962 ac_dir=`dirname $STRIP_FOR_TARGET`
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14964 $as_echo "pre-installed
in $ac_dir" >&6; }
14966 # Canadian cross, just use what we found
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14968 $as_echo "pre-installed
" >&6; }
14972 case " ${configdirs} " in
14977 if test $ok = yes; then
14978 # An in-tree tool is available and we can use it
14979 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14981 $as_echo "just compiled
" >&6; }
14982 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14983 # We already found the complete path
14984 ac_dir=`dirname $STRIP_FOR_TARGET`
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14986 $as_echo "pre-installed
in $ac_dir" >&6; }
14987 elif test "x
$target" = "x
$host"; then
14988 # We can use an host tool
14989 STRIP_FOR_TARGET='$(STRIP)'
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14991 $as_echo "host tool
" >&6; }
14993 # We need a cross tool
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14995 $as_echo "pre-installed
" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
15000 $as_echo_n "checking where to
find the target windres...
" >&6; }
15001 if test "x
${build}" != "x
${host}" ; then
15002 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
15003 # We already found the complete path
15004 ac_dir=`dirname $WINDRES_FOR_TARGET`
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15006 $as_echo "pre-installed
in $ac_dir" >&6; }
15008 # Canadian cross, just use what we found
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15010 $as_echo "pre-installed
" >&6; }
15014 case " ${configdirs} " in
15019 if test $ok = yes; then
15020 # An in-tree tool is available and we can use it
15021 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
15023 $as_echo "just compiled
" >&6; }
15024 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
15025 # We already found the complete path
15026 ac_dir=`dirname $WINDRES_FOR_TARGET`
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15028 $as_echo "pre-installed
in $ac_dir" >&6; }
15029 elif test "x
$target" = "x
$host"; then
15030 # We can use an host tool
15031 WINDRES_FOR_TARGET='$(WINDRES)'
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
15033 $as_echo "host tool
" >&6; }
15035 # We need a cross tool
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15037 $as_echo "pre-installed
" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
15042 $as_echo_n "checking where to
find the target windmc...
" >&6; }
15043 if test "x
${build}" != "x
${host}" ; then
15044 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
15045 # We already found the complete path
15046 ac_dir=`dirname $WINDMC_FOR_TARGET`
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15048 $as_echo "pre-installed
in $ac_dir" >&6; }
15050 # Canadian cross, just use what we found
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15052 $as_echo "pre-installed
" >&6; }
15056 case " ${configdirs} " in
15061 if test $ok = yes; then
15062 # An in-tree tool is available and we can use it
15063 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
15065 $as_echo "just compiled
" >&6; }
15066 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
15067 # We already found the complete path
15068 ac_dir=`dirname $WINDMC_FOR_TARGET`
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15070 $as_echo "pre-installed
in $ac_dir" >&6; }
15071 elif test "x
$target" = "x
$host"; then
15072 # We can use an host tool
15073 WINDMC_FOR_TARGET='$(WINDMC)'
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
15075 $as_echo "host tool
" >&6; }
15077 # We need a cross tool
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15079 $as_echo "pre-installed
" >&6; }
15087 # Certain tools may need extra flags.
15088 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15089 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15090 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15092 # When building target libraries, except in a Canadian cross, we use
15093 # the same toolchain as the compiler we just built.
15094 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15095 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15096 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15097 if test $host = $build; then
15098 case " $configdirs " in
15100 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15101 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15102 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
15112 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
15113 # Check whether --enable-maintainer-mode was given.
15114 if test "${enable_maintainer_mode+set}" = set; then :
15115 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15117 USE_MAINTAINER_MODE=no
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
15121 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15124 if test "$USE_MAINTAINER_MODE" = yes; then
15125 MAINTAINER_MODE_TRUE=
15126 MAINTAINER_MODE_FALSE='#'
15128 MAINTAINER_MODE_TRUE='#'
15129 MAINTAINER_MODE_FALSE=
15131 MAINT=$MAINTAINER_MODE_TRUE
15133 # ---------------------
15134 # GCC bootstrap support
15135 # ---------------------
15137 # Stage specific cflags for build.
15142 yes) stage1_cflags="-g -Wa,-J" ;;
15143 *) stage1_cflags="-g -J" ;;
15149 # Enable --enable-checking in stage1 of the compiler.
15150 # Check whether --enable-stage1-checking was given.
15151 if test "${enable_stage1_checking+set}" = set; then :
15152 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15154 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
15155 # For --disable-checking or implicit --enable-checking=release, avoid
15156 # setting --enable-checking=gc in the default stage1 checking for LTO
15157 # bootstraps. See PR62077.
15158 case $BUILD_CONFIG in
15160 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15162 stage1_checking=--enable-checking=yes,types;;
15164 if test "x
$enable_checking" = x && \
15165 test -d ${srcdir}/gcc && \
15166 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15167 stage1_checking=--enable-checking=yes,types,extra
15170 stage1_checking=--enable-checking=$enable_checking,types
15176 # Enable -Werror in bootstrap stage2 and later.
15177 # Check whether --enable-werror was given.
15178 if test "${enable_werror+set}" = set; then :
15179 enableval=$enable_werror;
15180 case ${enable_werror} in
15181 yes) stage2_werror_flag="--enable-werror-always" ;;
15182 *) stage2_werror_flag="" ;;
15187 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15188 case $BUILD_CONFIG in
15190 stage2_werror_flag="--enable-werror-always" ;;
15192 stage2_werror_flag="--enable-werror-always" ;;
15201 # Specify what files to not compare during bootstrap.
15203 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
15205 hppa*64*-*-hpux*) ;;
15206 hppa*-*-hpux*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) |
*/libgcc
/lib2funcs
* | gcc
/ada
/*tools
/* | gcc
/function-tests.o
" ;;
15207 powerpc*-ibm-aix*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/* |
*libgomp
*\$
(objext
)" ;;
15211 ac_config_files="$ac_config_files Makefile
"
15213 cat >confcache <<\_ACEOF
15214 # This file is a shell script that caches the results of configure
15215 # tests run on this system so they can be shared between configure
15216 # scripts and configure runs, see configure's option --config-cache.
15217 # It is not useful on other systems. If it contains results you don't
15218 # want to keep, you may remove or edit it.
15220 # config.status only pays attention to the cache file if you give it
15221 # the --recheck option to rerun configure.
15223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15225 # following values.
15229 # The following way of writing the cache mishandles newlines in values,
15230 # but we know of no workaround that is simple, portable, and efficient.
15231 # So, we kill variables containing newlines.
15232 # Ultrix sh set writes to stderr and can't be redirected directly,
15233 # and sets the high bit in the cache file unless we assign to the vars.
15235 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15236 eval ac_val=\$$ac_var
15240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
15241 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
15244 _ | IFS | as_nl) ;; #(
15245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15246 *) { eval $ac_var=; unset $ac_var;} ;;
15252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15253 *${as_nl}ac_space=\ *)
15254 # `set' does not quote correctly, so add quotes: double-quote
15255 # substitution turns \\\\ into \\, and sed turns \\ into \.
15258 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
15261 # `set' quotes correctly as required by POSIX, so do not add quotes.
15262 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
15271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15276 if test -w "$cache_file"; then
15277 if test "x
$cache_file" != "x
/dev
/null
"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
15279 $as_echo "$as_me: updating cache
$cache_file" >&6;}
15280 if test ! -f "$cache_file" || test -h "$cache_file"; then
15281 cat confcache >"$cache_file"
15283 case $cache_file in #(
15285 mv -f confcache "$cache_file"$$ &&
15286 mv -f "$cache_file"$$ "$cache_file" ;; #(
15288 mv -f confcache "$cache_file" ;;
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
15294 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
15299 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
15300 # Let make expand exec_prefix.
15301 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
15303 # Transform confdefs.h into DEFS.
15304 # Protect against shell expansion while executing Makefile rules.
15305 # Protect against Makefile macro expansion.
15307 # If the first sed substitution is executed (which looks for macros that
15308 # take arguments), then branch to the quote section. Otherwise,
15309 # look for a macro that doesn't take arguments.
15319 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15321 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15325 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
15338 DEFS=`sed -n "$ac_script" confdefs.h`
15344 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15345 # 1. Remove the extension, and $U if already installed.
15346 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
15347 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15349 # will be set to the directory where LIBOBJS objects are built.
15350 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15351 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
15353 LIBOBJS=$ac_libobjs
15355 LTLIBOBJS=$ac_ltlibobjs
15359 : "${CONFIG_STATUS=./config.status}"
15361 ac_clean_files_save=$ac_clean_files
15362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15366 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15368 # Generated by $as_me.
15369 # Run this file to recreate the current configuration.
15370 # Compiler output produced by configure, useful for debugging
15371 # configure, is in config.log if it exists.
15374 ac_cs_recheck=false
15377 SHELL=\${CONFIG_SHELL-$SHELL}
15380 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15381 ## -------------------- ##
15382 ## M4sh Initialization. ##
15383 ## -------------------- ##
15385 # Be more Bourne compatible
15386 DUALCASE=1; export DUALCASE # for MKS sh
15387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15390 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15391 # is contrary to our usage. Disable this feature.
15392 alias -g '${1+"$@"}'='"$@"'
15393 setopt NO_GLOB_SUBST
15395 case `(set -o) 2>/dev/null` in #(
15407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15409 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
15410 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15411 # Prefer a ksh shell builtin over an external printf program on Solaris,
15412 # but without wasting forks for bash or zsh.
15413 if test -z "$BASH_VERSION$ZSH_VERSION" \
15414 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15415 as_echo
='print -r --'
15416 as_echo_n
='print -rn --'
15417 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15418 as_echo
='printf %s\n'
15419 as_echo_n
='printf %s'
15421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15422 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
15423 as_echo_n
='/usr/ucb/echo -n'
15425 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
15426 as_echo_n_body
='eval
15430 expr "X$arg" : "X\\(.*\\)$as_nl";
15431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15435 export as_echo_n_body
15436 as_echo_n
='sh -c $as_echo_n_body as_echo'
15438 export as_echo_body
15439 as_echo
='sh -c $as_echo_body as_echo'
15442 # The user is always right.
15443 if test "${PATH_SEPARATOR+set}" != set; then
15445 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
15446 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
15453 # We need space, tab and new line, in precisely that order. Quoting is
15454 # there to prevent editors from complaining about space-tab.
15455 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15456 # splitting by setting IFS to empty value.)
15459 # Find who we are. Look in the path if we contain no directory separator.
15462 *[\\/]* ) as_myself
=$0 ;;
15463 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15464 for as_dir
in $PATH
15467 test -z "$as_dir" && as_dir
=.
15468 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15474 # We did not find ourselves, most probably we were run as `sh COMMAND'
15475 # in which case we are not to be found in the path.
15476 if test "x$as_myself" = x
; then
15479 if test ! -f "$as_myself"; then
15480 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15484 # Unset variables that we do not need and which cause bugs (e.g. in
15485 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15486 # suppresses any "Segmentation fault" message there. '((' could
15487 # trigger a bug in pdksh 5.2.14.
15488 for as_var
in BASH_ENV ENV MAIL MAILPATH
15489 do eval test x\
${$as_var+set} = xset \
15490 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15503 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15506 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15507 # ----------------------------------------
15508 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15509 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15510 # script with STATUS, using 1 if that was 0.
15513 as_status
=$1; test $as_status -eq 0 && as_status
=1
15515 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15516 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15518 $as_echo "$as_me: error: $2" >&2
15519 as_fn_exit
$as_status
15523 # as_fn_set_status STATUS
15524 # -----------------------
15525 # Set $? to STATUS, without forking.
15526 as_fn_set_status
()
15529 } # as_fn_set_status
15531 # as_fn_exit STATUS
15532 # -----------------
15533 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15537 as_fn_set_status
$1
15543 # Portably unset VAR.
15546 { eval $1=; unset $1;}
15548 as_unset
=as_fn_unset
15549 # as_fn_append VAR VALUE
15550 # ----------------------
15551 # Append the text in VALUE to the end of the definition contained in VAR. Take
15552 # advantage of any shell optimizations that allow amortized linear growth over
15553 # repeated appends, instead of the typical quadratic growth present in naive
15555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15556 eval 'as_fn_append ()
15567 # as_fn_arith ARG...
15568 # ------------------
15569 # Perform arithmetic evaluation on the ARGs, and store the result in the
15570 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15571 # must be portable across $(()) and expr.
15572 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15573 eval 'as_fn_arith ()
15580 as_val
=`expr "$@" || test $? -eq 1`
15585 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15586 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15592 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15593 as_basename
=basename
15598 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15604 as_me
=`$as_basename -- "$0" ||
15605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15606 X"$0" : 'X\(//\)$' \| \
15607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15609 sed '/^.*\/\([^/][^/]*\)\/*$/{
15623 # Avoid depending upon Character Ranges.
15624 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15625 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15626 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15627 as_cr_digits
='0123456789'
15628 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15630 ECHO_C
= ECHO_N
= ECHO_T
=
15631 case `echo -n x` in #(((((
15633 case `echo 'xy\c'` in
15634 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15636 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15643 rm -f conf$$ conf$$.exe conf$$.
file
15644 if test -d conf$$.dir
; then
15645 rm -f conf$$.dir
/conf$$.
file
15648 mkdir conf$$.dir
2>/dev
/null
15650 if (echo >conf$$.
file) 2>/dev
/null
; then
15651 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15653 # ... but there are two gotchas:
15654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15656 # In both cases, we have to default to `cp -pR'.
15657 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15659 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15667 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15668 rmdir conf$$.dir
2>/dev
/null
15673 # Create "$as_dir" as a directory, including parents if necessary.
15678 -*) as_dir
=.
/$as_dir;;
15680 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15684 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15685 *) as_qdir
=$as_dir;;
15687 as_dirs
="'$as_qdir' $as_dirs"
15688 as_dir
=`$as_dirname -- "$as_dir" ||
15689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15690 X"$as_dir" : 'X\(//\)[^/]' \| \
15691 X"$as_dir" : 'X\(//\)$' \| \
15692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15693 $as_echo X"$as_dir" |
15694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15698 /^X\(\/\/\)[^/].*/{
15711 test -d "$as_dir" && break
15713 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15714 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15718 if mkdir
-p .
2>/dev
/null
; then
15719 as_mkdir_p
='mkdir -p "$as_dir"'
15721 test -d .
/-p && rmdir .
/-p
15726 # as_fn_executable_p FILE
15727 # -----------------------
15728 # Test if FILE is an executable regular file.
15729 as_fn_executable_p
()
15731 test -f "$1" && test -x "$1"
15732 } # as_fn_executable_p
15733 as_test_x
='test -x'
15734 as_executable_p
=as_fn_executable_p
15736 # Sed expression to map a string onto a valid CPP name.
15737 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15739 # Sed expression to map a string onto a valid variable name.
15740 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15744 ## ----------------------------------- ##
15745 ## Main body of $CONFIG_STATUS script. ##
15746 ## ----------------------------------- ##
15748 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15751 # Save the log message, to keep $0 and so on meaningful, and to
15752 # report actual input values of CONFIG_FILES etc. instead of their
15753 # values after options handling.
15755 This file was extended by $as_me, which was
15756 generated by GNU Autoconf 2.69. Invocation command line was
15758 CONFIG_FILES = $CONFIG_FILES
15759 CONFIG_HEADERS = $CONFIG_HEADERS
15760 CONFIG_LINKS = $CONFIG_LINKS
15761 CONFIG_COMMANDS = $CONFIG_COMMANDS
15764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15769 case $ac_config_files in *"
15770 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776 # Files that config.status was made for.
15777 config_files="$ac_config_files"
15781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15783 \`$as_me' instantiates files and other configuration actions
15784 from templates according to the current configuration. Unless the files
15785 and actions are specified as TAGs, all are instantiated by default.
15787 Usage: $0 [OPTION]... [TAG]...
15789 -h, --help print this help, then exit
15790 -V, --version print version number and configuration settings, then exit
15791 --config print configuration, then exit
15792 -q, --quiet, --silent
15793 do not print progress messages
15794 -d, --debug don't remove temporary files
15795 --recheck update $as_me by reconfiguring in the same conditions
15796 --file=FILE[:TEMPLATE]
15797 instantiate the configuration file FILE
15799 Configuration files:
15802 Report bugs to the package provider."
15805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15809 configured by $0, generated by GNU Autoconf 2.69,
15810 with options \\"\$ac_cs_config\\"
15812 Copyright (C) 2012 Free Software Foundation, Inc.
15813 This config.status script is free software; the Free Software Foundation
15814 gives unlimited permission to copy, distribute and modify it."
15820 test -n "\$AWK" || AWK=awk
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15824 # The default lists apply if the user does not specify any file.
15830 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15831 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15835 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15847 # Handling of the options.
15848 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15850 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15851 $as_echo "$ac_cs_version"; exit ;;
15852 --config |
--confi |
--conf |
--con |
--co |
--c )
15853 $as_echo "$ac_cs_config"; exit ;;
15854 --debug |
--debu |
--deb |
--de |
--d |
-d )
15856 --file |
--fil |
--fi |
--f )
15859 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15860 '') as_fn_error $?
"missing file argument" ;;
15862 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15863 ac_need_defaults
=false
;;
15864 --he |
--h |
--help |
--hel |
-h )
15865 $as_echo "$ac_cs_usage"; exit ;;
15866 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15867 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15870 # This is an error.
15871 -*) as_fn_error $?
"unrecognized option: \`$1'
15872 Try \`$0 --help' for more information." ;;
15874 *) as_fn_append ac_config_targets
" $1"
15875 ac_need_defaults
=false
;;
15881 ac_configure_extra_args
=
15883 if $ac_cs_silent; then
15885 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 if \$ac_cs_recheck; then
15891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15894 CONFIG_SHELL='$SHELL'
15895 export CONFIG_SHELL
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905 ## Running $as_me. ##
15911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915 extrasub_build="$extrasub_build"
15916 extrasub_host="$extrasub_host"
15917 extrasub_target="$extrasub_target"
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15923 # Handling of arguments.
15924 for ac_config_target
in $ac_config_targets
15926 case $ac_config_target in
15927 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15929 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15934 # If the user did not use the arguments to specify the items to instantiate,
15935 # then the envvar interface is used. Set only those that are not.
15936 # We use the long form for the default assignment because of an extremely
15937 # bizarre bug on SunOS 4.1.3.
15938 if $ac_need_defaults; then
15939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15942 # Have a temporary directory for convenience. Make it in the build tree
15943 # simply because there is no reason against having it here, and in addition,
15944 # creating and moving files from /tmp can sometimes cause problems.
15945 # Hook for its removal unless debugging.
15946 # Note that there is a small window in which the directory will not be cleaned:
15947 # after its creation but before its name has been assigned to `$tmp'.
15951 trap 'exit_status=$?
15952 : "${ac_tmp:=$tmp}"
15953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15955 trap 'as_fn_exit 1' 1 2 13 15
15957 # Create a (secure) tmp directory for tmp files.
15960 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15964 tmp
=.
/conf$$
-$RANDOM
15965 (umask 077 && mkdir
"$tmp")
15966 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15969 # Set up the scripts for CONFIG_FILES section.
15970 # No need to generate them if there are no CONFIG_FILES.
15971 # This happens for instance with `./config.status config.h'.
15972 if test -n "$CONFIG_FILES"; then
15974 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15975 ac_cs_awk_getline
=:
15976 ac_cs_awk_pipe_init
=
15977 ac_cs_awk_read_file
='
15978 while ((getline aline < (F[key])) > 0)
15981 ac_cs_awk_pipe_fini
=
15983 ac_cs_awk_getline
=false
15984 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15985 ac_cs_awk_read_file
='
15987 print "cat " F[key] " &&"
15988 '$ac_cs_awk_pipe_init
15989 # The final `:' finishes the AND list.
15990 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15992 ac_cr
=`echo X | tr X '\015'`
15993 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15994 # But we know of no other shell where ac_cr would be empty at this
15995 # point, so we can use a bashism as a fallback.
15996 if test "x$ac_cr" = x
; then
15997 eval ac_cr
=\$
\'\\r
\'
15999 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16000 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16003 ac_cs_awk_cr
=$ac_cr
16006 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16009 # Create commands to substitute file output variables.
16011 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16012 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16013 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16016 } >conf$
$files.sh
&&
16017 . .
/conf$
$files.sh ||
16018 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16019 rm -f conf$
$files.sh
16022 echo "cat >conf$$subs.awk <<_ACEOF" &&
16023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16025 } >conf$$subs.sh ||
16026 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16029 for ac_last_try in false false false false false :; do
16030 . ./conf$$subs.sh ||
16031 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16033 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16034 if test $ac_delim_n = $ac_delim_num; then
16036 elif $ac_last_try; then
16037 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16039 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16042 rm -f conf$$subs.sh
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16049 s/^/S["/; s
/!.
*/"]=/
16059 s/\(.\{148\}\)..*/\1/
16061 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16066 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16073 s/\(.\{148\}\)..*/\1/
16075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16079 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16084 ' <conf$$subs.awk | sed '
16089 ' >>$CONFIG_STATUS || ac_write_fail=1
16090 rm -f conf$$subs.awk
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16094 for (key in S) S_is_set[key] = 1
16096 \$ac_cs_awk_pipe_init
16100 nfields = split(line, field, "@
")
16102 len = length(field[1])
16103 for (i = 2; i < nfields; i++) {
16105 keylen = length(key)
16106 if (S_is_set[key]) {
16108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16109 len += length(value) + length(field[++i])
16114 if (nfields == 3 && !substed) {
16116 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16117 \$ac_cs_awk_read_file
16123 \$ac_cs_awk_pipe_fini
16126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16127 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16128 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16131 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16132 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16135 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16136 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16137 # trailing colons and then remove the whole line if VPATH becomes empty
16138 # (actually we leave an empty line to preserve line numbers).
16139 if test "x
$srcdir" = x.; then
16140 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159 fi # test -n "$CONFIG_FILES"
16162 eval set X " :F
$CONFIG_FILES "
16167 :[FHLC]) ac_mode=$ac_tag; continue;;
16169 case $ac_mode$ac_tag in
16171 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
16172 :[FH]-) ac_tag=-:-;;
16173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16190 -) ac_f="$ac_tmp/stdin";;
16191 *) # Look for the file first in the build tree, then in the source tree
16192 # (if the path is not absolute). The absolute path cannot be DOS-style,
16193 # because $ac_f cannot contain `:'.
16197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
16202 as_fn_append ac_file_inputs " '$ac_f'"
16205 # Let's still pretend it is `configure' which instantiates (i.e., don't
16206 # use $as_me), people would be surprised to read:
16207 # /* config.h. Generated by config.status. */
16208 configure_input='Generated from '`
16209 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16211 if test x"$ac_file" != x-; then
16212 configure_input="$ac_file.
$configure_input"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
16214 $as_echo "$as_me: creating
$ac_file" >&6;}
16216 # Neutralize special characters interpreted by sed in replacement strings.
16217 case $configure_input in #(
16218 *\&* | *\|* | *\\* )
16219 ac_sed_conf_input=`$as_echo "$configure_input" |
16220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16221 *) ac_sed_conf_input=$configure_input;;
16225 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
16226 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
16231 ac_dir=`$as_dirname -- "$ac_file" ||
16232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16233 X"$ac_file" : 'X\(//\)[^/]' \| \
16234 X"$ac_file" : 'X\(//\)$' \| \
16235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16236 $as_echo X"$ac_file" |
16237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16241 /^X\(\/\/\)[^/].*/{
16254 as_dir="$ac_dir"; as_fn_mkdir_p
16258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16261 # A "..
" for each directory in $ac_dir_suffix.
16262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16263 case $ac_top_builddir_sub in
16264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16268 ac_abs_top_builddir=$ac_pwd
16269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16270 # for backward compatibility:
16271 ac_top_builddir=$ac_top_build_prefix
16274 .) # We are building in place.
16276 ac_top_srcdir=$ac_top_builddir_sub
16277 ac_abs_top_srcdir=$ac_pwd ;;
16278 [\\/]* | ?:[\\/]* ) # Absolute name.
16279 ac_srcdir=$srcdir$ac_dir_suffix;
16280 ac_top_srcdir=$srcdir
16281 ac_abs_top_srcdir=$srcdir ;;
16282 *) # Relative name.
16283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16284 ac_top_srcdir=$ac_top_build_prefix$srcdir
16285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16303 # If the template does not know about datarootdir, expand it.
16304 # FIXME: This hack should be removed a few years after 2.60.
16305 ac_datarootdir_hack=; ac_datarootdir_seen=
16316 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
16317 *datarootdir*) ac_datarootdir_seen=yes;;
16318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
16320 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 ac_datarootdir_hack='
16324 s&@datadir@&$datadir&g
16325 s&@docdir@&$docdir&g
16326 s&@infodir@&$infodir&g
16327 s&@localedir@&$localedir&g
16328 s&@mandir@&$mandir&g
16329 s&\\\${datarootdir}&$datarootdir&g' ;;
16333 # Neutralize VPATH when `$srcdir' = `.'.
16334 # Shell code in configure.ac might set extrasub.
16335 # FIXME: do we really want to maintain this feature?
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337 ac_sed_extra="$ac_vpsub
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16342 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16343 s|@configure_input@|
$ac_sed_conf_input|
;t t
16344 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16345 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16346 s
&@srcdir@
&$ac_srcdir&;t t
16347 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16348 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16349 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16350 s
&@builddir@
&$ac_builddir&;t t
16351 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16352 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16353 s
&@INSTALL@
&$ac_INSTALL&;t t
16354 $ac_datarootdir_hack
16356 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16357 if $ac_cs_awk_getline; then
16358 $AWK -f "$ac_tmp/subs.
awk"
16360 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
16362 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16364 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16365 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16366 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16367 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16369 which seems to be undefined. Please make sure it is defined" >&5
16370 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16371 which seems to be undefined. Please make sure it is defined" >&2;}
16373 rm -f "$ac_tmp/stdin"
16375 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16376 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16386 case $ac_file$ac_mode in
16387 "Makefile":F) sed "$extrasub_build" Makefile |
16388 sed "$extrasub_host" |
16389 sed "$extrasub_target" > mf$$
16390 mv -f mf$$ Makefile ;;
16398 ac_clean_files=$ac_clean_files_save
16400 test $ac_write_fail = 0 ||
16401 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16404 # configure is writing to config.log, and then calls config.status.
16405 # config.status does its own redirection, appending to config.log.
16406 # Unfortunately, on DOS this fails, as config.log is still kept open
16407 # by configure, so config.status won't be able to
write to it
; its
16408 # output is simply discarded. So we exec the FD to /dev/null,
16409 # effectively closing config.log, so it can be properly (re)opened and
16410 # appended to by config.status. When coming back to configure, we
16411 # need to make the FD available again.
16412 if test "$no_create" != yes; then
16414 ac_config_status_args
=
16415 test "$silent" = yes &&
16416 ac_config_status_args
="$ac_config_status_args --quiet"
16418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16421 # would make configure fail if this is the last instruction.
16422 $ac_cs_success || as_fn_exit
1
16424 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16426 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}