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
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
711 extra_liboffloadmic_configure_flags
738 TOPLEVEL_CONFIGURE_ARGUMENTS
766 program_transform_name
777 ac_subst_files
='serialization_dependencies
783 enable_option_checking
786 enable_as_accelerator_for
787 enable_offload_targets
791 enable_compressed_debug_sections
793 enable_libquadmath_support
812 with_static_standard_libraries
819 enable_isl_version_check
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
824 enable_stage1_languages
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
831 with_debug_prefix_map
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
840 ac_precious_vars
='build_alias
887 # Initialize some variables set by options.
889 ac_init_version
=false
890 ac_unrecognized_opts
=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name
=s
,x
,x
,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir
='${exec_prefix}/bin'
916 sbindir
='${exec_prefix}/sbin'
917 libexecdir
='${exec_prefix}/libexec'
918 datarootdir
='${prefix}/share'
919 datadir
='${datarootdir}'
920 sysconfdir
='${prefix}/etc'
921 sharedstatedir
='${prefix}/com'
922 localstatedir
='${prefix}/var'
923 includedir
='${prefix}/include'
924 oldincludedir
='/usr/include'
925 docdir
='${datarootdir}/doc/${PACKAGE}'
926 infodir
='${datarootdir}/info'
931 libdir
='${exec_prefix}/lib'
932 localedir
='${datarootdir}/locale'
933 mandir
='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\
$ac_option
947 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
960 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
963 -build |
--build |
--buil |
--bui |
--bu)
964 ac_prev
=build_alias
;;
965 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
966 build_alias
=$ac_optarg ;;
968 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
969 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
970 ac_prev
=cache_file
;;
971 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
972 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
973 cache_file
=$ac_optarg ;;
976 cache_file
=config.cache
;;
978 -datadir |
--datadir |
--datadi |
--datad)
980 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
981 datadir
=$ac_optarg ;;
983 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
984 |
--dataroo |
--dataro |
--datar)
985 ac_prev
=datarootdir
;;
986 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
987 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
988 datarootdir
=$ac_optarg ;;
990 -disable-* |
--disable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 as_fn_error $?
"invalid feature name: $ac_useropt"
995 ac_useropt_orig
=$ac_useropt
996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep
=', ';;
1004 eval enable_
$ac_useropt=no
;;
1006 -docdir |
--docdir |
--docdi |
--doc |
--do)
1008 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1009 docdir
=$ac_optarg ;;
1011 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1013 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1014 dvidir
=$ac_optarg ;;
1016 -enable-* |
--enable-*)
1017 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1020 as_fn_error $?
"invalid feature name: $ac_useropt"
1021 ac_useropt_orig
=$ac_useropt
1022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_
$ac_useropt"
1027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep
=', ';;
1030 eval enable_
$ac_useropt=\
$ac_optarg ;;
1032 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1033 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1034 |
--exec |
--exe |
--ex)
1035 ac_prev
=exec_prefix
;;
1036 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1037 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1038 |
--exec=* |
--exe=* |
--ex=*)
1039 exec_prefix
=$ac_optarg ;;
1041 -gas |
--gas |
--ga |
--g)
1042 # Obsolete; use --with-gas.
1045 -help |
--help |
--hel |
--he |
-h)
1046 ac_init_help
=long
;;
1047 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1048 ac_init_help
=recursive
;;
1049 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1050 ac_init_help
=short
;;
1052 -host |
--host |
--hos |
--ho)
1053 ac_prev
=host_alias
;;
1054 -host=* |
--host=* |
--hos=* |
--ho=*)
1055 host_alias
=$ac_optarg ;;
1057 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1059 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1061 htmldir
=$ac_optarg ;;
1063 -includedir |
--includedir |
--includedi |
--included |
--include \
1064 |
--includ |
--inclu |
--incl |
--inc)
1065 ac_prev
=includedir
;;
1066 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1067 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1068 includedir
=$ac_optarg ;;
1070 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1072 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1073 infodir
=$ac_optarg ;;
1075 -libdir |
--libdir |
--libdi |
--libd)
1077 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1078 libdir
=$ac_optarg ;;
1080 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1081 |
--libexe |
--libex |
--libe)
1082 ac_prev
=libexecdir
;;
1083 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1084 |
--libexe=* |
--libex=* |
--libe=*)
1085 libexecdir
=$ac_optarg ;;
1087 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1088 ac_prev
=localedir
;;
1089 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1090 localedir
=$ac_optarg ;;
1092 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1093 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1094 ac_prev
=localstatedir
;;
1095 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1096 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1097 localstatedir
=$ac_optarg ;;
1099 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1101 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1102 mandir
=$ac_optarg ;;
1104 -nfp |
--nfp |
--nf)
1105 # Obsolete; use --without-fp.
1108 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1109 |
--no-cr |
--no-c |
-n)
1112 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1113 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1116 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1117 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1118 |
--oldin |
--oldi |
--old |
--ol |
--o)
1119 ac_prev
=oldincludedir
;;
1120 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1121 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1122 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1123 oldincludedir
=$ac_optarg ;;
1125 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1127 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1128 prefix
=$ac_optarg ;;
1130 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1131 |
--program-pre |
--program-pr |
--program-p)
1132 ac_prev
=program_prefix
;;
1133 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1134 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1135 program_prefix
=$ac_optarg ;;
1137 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1138 |
--program-suf |
--program-su |
--program-s)
1139 ac_prev
=program_suffix
;;
1140 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1141 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1142 program_suffix
=$ac_optarg ;;
1144 -program-transform-name |
--program-transform-name \
1145 |
--program-transform-nam |
--program-transform-na \
1146 |
--program-transform-n |
--program-transform- \
1147 |
--program-transform |
--program-transfor \
1148 |
--program-transfo |
--program-transf \
1149 |
--program-trans |
--program-tran \
1150 |
--progr-tra |
--program-tr |
--program-t)
1151 ac_prev
=program_transform_name
;;
1152 -program-transform-name=* |
--program-transform-name=* \
1153 |
--program-transform-nam=* |
--program-transform-na=* \
1154 |
--program-transform-n=* |
--program-transform-=* \
1155 |
--program-transform=* |
--program-transfor=* \
1156 |
--program-transfo=* |
--program-transf=* \
1157 |
--program-trans=* |
--program-tran=* \
1158 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1159 program_transform_name
=$ac_optarg ;;
1161 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1163 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1164 pdfdir
=$ac_optarg ;;
1166 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1168 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1171 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1172 |
-silent |
--silent |
--silen |
--sile |
--sil)
1175 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1177 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1179 sbindir
=$ac_optarg ;;
1181 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1182 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1183 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1185 ac_prev
=sharedstatedir
;;
1186 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1187 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1188 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1190 sharedstatedir
=$ac_optarg ;;
1192 -site |
--site |
--sit)
1194 -site=* |
--site=* |
--sit=*)
1197 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1199 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1200 srcdir
=$ac_optarg ;;
1202 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1203 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1204 ac_prev
=sysconfdir
;;
1205 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1206 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1207 sysconfdir
=$ac_optarg ;;
1209 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1210 ac_prev
=target_alias
;;
1211 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1212 target_alias
=$ac_optarg ;;
1214 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1217 -version |
--version |
--versio |
--versi |
--vers |
-V)
1218 ac_init_version
=: ;;
1221 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1224 as_fn_error $?
"invalid package name: $ac_useropt"
1225 ac_useropt_orig
=$ac_useropt
1226 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep
=', ';;
1234 eval with_
$ac_useropt=\
$ac_optarg ;;
1236 -without-* |
--without-*)
1237 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1240 as_fn_error $?
"invalid package name: $ac_useropt"
1241 ac_useropt_orig
=$ac_useropt
1242 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep
=', ';;
1250 eval with_
$ac_useropt=no
;;
1253 # Obsolete; use --with-x.
1256 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1257 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1258 ac_prev
=x_includes
;;
1259 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1260 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1261 x_includes
=$ac_optarg ;;
1263 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1264 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1265 ac_prev
=x_libraries
;;
1266 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1267 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1268 x_libraries
=$ac_optarg ;;
1270 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1275 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1279 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1281 eval $ac_envvar=\
$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 if test -n "$ac_prev"; then
1296 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $?
"missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1303 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 # Check all directory arguments for consistency.
1309 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val
=\$
$ac_var
1315 # Remove trailing slashes.
1318 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\
$ac_val;;
1321 # Be sure to have absolute directory names.
1323 [\\/$
]* | ?
:[\\/]* ) continue;;
1324 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1326 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1334 target
=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x
; then
1338 if test "x$build_alias" = x
; then
1339 cross_compiling
=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1348 test "$silent" = yes && exec 6>/dev
/null
1351 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di
=`ls -di .` &&
1353 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $?
"working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $?
"pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted
=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir
=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1391 ac_srcdir_defaulted
=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1395 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1409 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 as_fn_error $?
"path to source, $srcdir, contains spaces"
1416 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1418 for ac_var
in $ac_precious_vars; do
1419 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1421 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures this package to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1495 --build=BUILD configure
for building on BUILD
[guessed
]
1496 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1497 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1501 if test -n "$ac_init_help"; then
1506 --disable-option-checking ignore unrecognized
--enable/--with options
1507 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1508 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET
[=DIR
]. Use optional path to
find
1515 offload target compiler during the build
1516 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1517 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1518 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1519 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1520 Enable compressed debug sections
for gas
, gold or ld
1522 --disable-libquadmath do not build libquadmath directory
1523 --disable-libquadmath-support
1524 disable libquadmath support
for Fortran
1525 --enable-libada build libada directory
1526 --enable-libssp build libssp directory
1527 --disable-libstdcxx do not build libstdc
++-v3 directory
1528 --enable-liboffloadmic=ARG
1529 build liboffloadmic
[ARG
={no
,host,target
}]
1530 --enable-bootstrap enable bootstrapping
[yes if native build
]
1531 --enable-pgo-build[=lto
]
1532 enable the PGO build
1533 --disable-isl-version-check
1534 disable check
for isl version
1535 --enable-lto enable link
time optimization support
1536 --enable-linker-plugin-configure-flags=FLAGS
1537 additional flags
for configuring linker plugins
1539 --enable-linker-plugin-flags=FLAGS
1540 additional flags
for configuring and building linker
1542 --enable-host-shared build
host code as shared libraries
1543 --enable-stage1-languages[=all
]
1544 choose additional languages to build during stage1.
1545 Mostly useful
for compiler development
1546 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1548 --enable-vtable-verify Enable vtable verification feature
1549 --enable-serial-[{host,target,build}-]configure
1550 force sequential configuration of sub-packages for
1551 the host, target or build machine, or all
1553 --enable-maintainer-mode
1554 enable make rules and dependencies not useful (and
1555 sometimes confusing) to the casual installer
1556 --enable-stage1-checking[=all]
1557 choose additional checking for stage1 of the
1559 --enable-werror enable -Werror in bootstrap stage2 and later
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-build-libsubdir=DIR Directory where to find libraries for build system
1565 --with-system-zlib use installed libz
1566 --with-mpc=PATH specify prefix directory for installed MPC package.
1567 Equivalent to --with-mpc-include=PATH/include plus
1568 --with-mpc-lib=PATH/lib
1569 --with-mpc-include=PATH specify directory for installed MPC include files
1570 --with-mpc-lib=PATH specify directory for the installed MPC library
1571 --with-mpfr-dir=PATH this option has been REMOVED
1572 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1573 Equivalent to --with-mpfr-include=PATH/include plus
1574 --with-mpfr-lib=PATH/lib
1575 --with-mpfr-include=PATH
1576 specify directory for installed MPFR include files
1577 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1578 --with-gmp-dir=PATH this option has been REMOVED
1579 --with-gmp=PATH specify prefix directory for the installed GMP
1580 package. Equivalent to
1581 --with-gmp-include=PATH/include plus
1582 --with-gmp-lib=PATH/lib
1583 --with-gmp-include=PATH specify directory for installed GMP include files
1584 --with-gmp-lib=PATH specify directory for the installed GMP library
1585 --with-stage1-libs=LIBS libraries for stage1
1586 --with-static-standard-libraries
1587 use -static-libstdc++ and -static-libgcc
1589 --with-stage1-ldflags=FLAGS
1590 linker flags for stage1
1591 --with-boot-libs=LIBS libraries for stage2 and later
1592 --with-boot-ldflags=FLAGS
1593 linker flags for stage2 and later
1594 --with-isl=PATH Specify prefix directory for the installed isl
1595 package. Equivalent to
1596 --with-isl-include=PATH/include plus
1597 --with-isl-lib=PATH/lib
1598 --with-isl-include=PATH Specify directory for installed isl include files
1599 --with-isl-lib=PATH Specify the directory for the installed isl library
1600 --with-target-bdw-gc=PATHLIST
1601 specify prefix directory for installed bdw-gc
1602 package. Equivalent to
1603 --with-target-bdw-gc-include=PATH/include plus
1604 --with-target-bdw-gc-lib=PATH/lib
1605 --with-target-bdw-gc-include=PATHLIST
1606 specify directories for installed bdw-gc include
1608 --with-target-bdw-gc-lib=PATHLIST
1609 specify directories for installed bdw-gc library
1610 --with-gcc-major-version-only
1611 use only GCC major number in filesystem paths
1612 --with-build-sysroot=SYSROOT
1613 use sysroot as the system root during the build
1614 --with-debug-prefix-map='A
=B C
=D ...
'
1615 map A to B, C to D ... in debug information
1616 --with-build-config='NAME NAME2...
'
1617 use config/NAME.mk build configuration
1618 --with-build-time-tools=PATH
1619 use given path to find target tools during the build
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1629 CXX C++ compiler command
1630 CXXFLAGS C++ compiler flags
1632 additional configure arguments for build directories
1634 additional configure arguments for host directories
1636 additional configure arguments for target directories
1639 DLLTOOL DLLTOOL for the host
1641 LIPO LIPO for the host
1643 RANLIB RANLIB for the host
1644 STRIP STRIP for the host
1645 WINDRES WINDRES for the host
1646 WINDMC WINDMC for the host
1647 OBJCOPY OBJCOPY for the host
1648 OBJDUMP OBJDUMP for the host
1649 READELF READELF for the host
1657 GFORTRAN for the target
1665 DLLTOOL for the target
1673 OBJCOPY for the target
1675 OBJDUMP for the target
1677 RANLIB for the target
1679 READELF for the target
1681 STRIP for the target
1683 WINDRES for the target
1685 WINDMC for the target
1687 Use these variables to override the choices made by `configure' or to
help
1688 it to
find libraries and programs with nonstandard names
/locations.
1690 Report bugs to the package provider.
1695 if test "$ac_init_help" = "recursive"; then
1696 # If there are subdirs, report their specific --help.
1697 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1698 test -d "$ac_dir" ||
1699 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1704 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1706 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707 # A ".." for each directory in $ac_dir_suffix.
1708 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709 case $ac_top_builddir_sub in
1710 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1711 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1714 ac_abs_top_builddir
=$ac_pwd
1715 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir
=$ac_top_build_prefix
1720 .
) # We are building in place.
1722 ac_top_srcdir
=$ac_top_builddir_sub
1723 ac_abs_top_srcdir
=$ac_pwd ;;
1724 [\\/]* | ?
:[\\/]* ) # Absolute name.
1725 ac_srcdir
=$srcdir$ac_dir_suffix;
1726 ac_top_srcdir
=$srcdir
1727 ac_abs_top_srcdir
=$srcdir ;;
1729 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1731 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1733 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1735 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1736 # Check for guested configure.
1737 if test -f "$ac_srcdir/configure.gnu"; then
1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740 elif test -f "$ac_srcdir/configure"; then
1742 $SHELL "$ac_srcdir/configure" --help=recursive
1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1754 generated by GNU Autoconf
2.69
1756 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1757 This configure
script is free software
; the Free Software Foundation
1758 gives unlimited permission to copy
, distribute and modify it.
1763 ## ------------------------ ##
1764 ## Autoconf initialization. ##
1765 ## ------------------------ ##
1767 # ac_fn_c_try_compile LINENO
1768 # --------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_compile
()
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 rm -f conftest.
$ac_objext
1774 if { { ac_try
="$ac_compile"
1776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_compile") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest.$ac_objext; then :
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_compile
1805 # ac_fn_cxx_try_compile LINENO
1806 # ----------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1815 *) ac_try_echo
=$ac_try;;
1817 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1821 if test -s conftest.err
; then
1822 grep -v '^ *+' conftest.err
>conftest.er1
1823 cat conftest.er1
>&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_cxx_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.
$ac_objext; then :
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.
$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status
$ac_retval
1841 } # ac_fn_cxx_try_compile
1843 # ac_fn_cxx_try_link LINENO
1844 # -------------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_link
()
1848 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1849 rm -f conftest.
$ac_objext conftest
$ac_exeext
1850 if { { ac_try
="$ac_link"
1852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest$ac_exeext && {
1869 test "$cross_compiling" = yes ||
1870 test -x conftest$ac_exeext
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1881 # interfere with the next link command; also delete a directory that is
1882 # left behind by Apple's compiler. We do this before executing the actions.
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_cxx_try_link
1889 # ac_fn_c_try_link LINENO
1890 # -----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1899 *) ac_try_echo
=$ac_try;;
1901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1905 if test -s conftest.err
; then
1906 grep -v '^ *+' conftest.err
>conftest.er1
1907 cat conftest.er1
>&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest
$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest
$ac_exeext
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.
$ac_ext >&5
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status
$ac_retval
1933 } # ac_fn_c_try_link
1934 cat >config.log
<<_ACEOF
1935 This file contains any messages produced by compilers while
1936 running configure, to aid debugging if configure makes a mistake.
1938 It was created by $as_me, which was
1939 generated by GNU Autoconf 2.69. Invocation command line was
1951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir
=.
1975 $as_echo "PATH: $as_dir"
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_must_keep_next
=false
2005 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2007 |
-silent |
--silent |
--silen |
--sile |
--sil)
2010 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2015 as_fn_append ac_configure_args1
" '$ac_arg'"
2016 if test $ac_must_keep_next = true
; then
2017 ac_must_keep_next
=false
# Got value, back to normal.
2020 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2021 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2022 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2023 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 -* ) ac_must_keep_next
=true
;;
2031 as_fn_append ac_configure_args
" '$ac_arg'"
2036 { ac_configure_args0
=; unset ac_configure_args0
;}
2037 { ac_configure_args1
=; unset ac_configure_args1
;}
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2049 $as_echo "## ---------------- ##
2050 ## Cache variables. ##
2051 ## ---------------- ##"
2053 # The following way of writing the cache mishandles newlines in values,
2055 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2056 eval ac_val=\$$ac_var
2060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 _ | IFS | as_nl) ;; #(
2065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2066 *) { eval $ac_var=; unset $ac_var;} ;;
2071 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2072 *${as_nl}ac_space=\ *)
2074 "s/'\''/'\''\\\\'\'''\''/g;
2075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085 $as_echo "## ----------------- ##
2086 ## Output variables. ##
2087 ## ----------------- ##"
2089 for ac_var in $ac_subst_vars
2091 eval ac_val=\$$ac_var
2093 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 $as_echo "$ac_var='\''$ac_val'\''"
2099 if test -n "$ac_subst_files"; then
2100 $as_echo "## ------------------- ##
2101 ## File substitutions. ##
2102 ## ------------------- ##"
2104 for ac_var
in $ac_subst_files
2106 eval ac_val
=\$
$ac_var
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 $as_echo "$ac_var='\''$ac_val'\''"
2115 if test -s confdefs.h; then
2116 $as_echo "## ----------- ##
2123 test "$ac_signal" != 0 &&
2124 $as_echo "$as_me: caught signal $ac_signal"
2125 $as_echo "$as_me: exit $exit_status"
2127 rm -f core *.core core.conftest.* &&
2128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 for ac_signal
in 1 2 13 15; do
2132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2137 rm -f -r conftest
* confdefs.h
2139 $as_echo "/* confdefs.h */" > confdefs.h
2141 # Predefined preprocessor variables.
2143 cat >>confdefs.h
<<_ACEOF
2144 #define PACKAGE_NAME "$PACKAGE_NAME"
2147 cat >>confdefs.h
<<_ACEOF
2148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151 cat >>confdefs.h
<<_ACEOF
2152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2155 cat >>confdefs.h
<<_ACEOF
2156 #define PACKAGE_STRING "$PACKAGE_STRING"
2159 cat >>confdefs.h
<<_ACEOF
2160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163 cat >>confdefs.h
<<_ACEOF
2164 #define PACKAGE_URL "$PACKAGE_URL"
2168 # Let the site file select an alternate cache file if it wants to.
2169 # Prefer an explicitly selected file to automatically selected ones.
2172 if test -n "$CONFIG_SITE"; then
2173 # We do not want a PATH search for config.site.
2174 case $CONFIG_SITE in #((
2175 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2176 */*) ac_site_file1
=$CONFIG_SITE;;
2177 *) ac_site_file1
=.
/$CONFIG_SITE;;
2179 elif test "x$prefix" != xNONE
; then
2180 ac_site_file1
=$prefix/share
/config.site
2181 ac_site_file2
=$prefix/etc
/config.site
2183 ac_site_file1
=$ac_default_prefix/share
/config.site
2184 ac_site_file2
=$ac_default_prefix/etc
/config.site
2186 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2188 test "x$ac_site_file" = xNONE
&& continue
2189 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192 sed 's/^/| /' "$ac_site_file" >&5
2194 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 as_fn_error $?
"failed to load site script $ac_site_file
2197 See \`config.log' for more details" "$LINENO" 5; }
2201 if test -r "$cache_file"; then
2202 # Some versions of bash will fail to source /dev/null (special files
2203 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2204 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2206 $as_echo "$as_me: loading cache $cache_file" >&6;}
2208 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2209 *) .
"./$cache_file";;
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2214 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 # Check that the precious variables saved in the cache have kept the same
2220 ac_cache_corrupted
=false
2221 for ac_var
in $ac_precious_vars; do
2222 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2223 eval ac_new_set
=\
$ac_env_${ac_var}_set
2224 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2225 eval ac_new_val
=\
$ac_env_${ac_var}_value
2226 case $ac_old_set,$ac_new_set in
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2230 ac_cache_corrupted
=: ;;
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2234 ac_cache_corrupted
=: ;;
2237 if test "x$ac_old_val" != "x$ac_new_val"; then
2238 # differences in whitespace do not lead to failure.
2239 ac_old_val_w
=`echo x $ac_old_val`
2240 ac_new_val_w
=`echo x $ac_new_val`
2241 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2243 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2244 ac_cache_corrupted
=:
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2247 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2248 eval $ac_var=\
$ac_old_val
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2251 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2253 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2256 # Pass precious variables to config.status.
2257 if test "$ac_new_set" = set; then
2259 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 *) ac_arg
=$ac_var=$ac_new_val ;;
2262 case " $ac_configure_args " in
2263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2264 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2268 if $ac_cache_corrupted; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2272 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2273 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2275 ## -------------------- ##
2276 ## Main body of script. ##
2277 ## -------------------- ##
2280 ac_cpp
='$CPP $CPPFLAGS'
2281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2293 # if PWD already has a value, it is probably wrong.
2294 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2296 # Export original configure arguments for use by sub-configures.
2297 # Quote arguments with shell meta charatcers.
2298 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2299 set -- "$progname" "$@"
2303 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2304 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2305 # if the argument is of the form -foo=baz, quote the baz part only
2306 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 # Add the quoted argument to the list.
2310 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2312 if test "$silent" = yes; then
2313 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2315 # Remove the initial space we just introduced and, as these will be
2316 # expanded by make, quote '$'.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320 # Find the build, host, and target systems.
2322 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2323 if test -f "$ac_dir/install-sh"; then
2325 ac_install_sh
="$ac_aux_dir/install-sh -c"
2327 elif test -f "$ac_dir/install.sh"; then
2329 ac_install_sh
="$ac_aux_dir/install.sh -c"
2331 elif test -f "$ac_dir/shtool"; then
2333 ac_install_sh
="$ac_aux_dir/shtool install -c"
2337 if test -z "$ac_aux_dir"; then
2338 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350 # Make sure we can run config.sub.
2351 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2352 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2355 $as_echo_n "checking build system type... " >&6; }
2356 if ${ac_cv_build+:} false
; then :
2357 $as_echo_n "(cached) " >&6
2359 ac_build_alias
=$build_alias
2360 test "x$ac_build_alias" = x
&&
2361 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2362 test "x$ac_build_alias" = x
&&
2363 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2364 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2365 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2369 $as_echo "$ac_cv_build" >&6; }
2370 case $ac_cv_build in
2372 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2375 ac_save_IFS
=$IFS; IFS
='-'
2381 # Remember, the first character of IFS is used to create $*,
2382 # except with old shells:
2385 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2388 case ${build_alias} in
2389 "") build_noncanonical
=${build} ;;
2390 *) build_noncanonical
=${build_alias} ;;
2395 case ${host_alias} in
2396 "") host_noncanonical
=${build_noncanonical} ;;
2397 *) host_noncanonical
=${host_alias} ;;
2402 case ${target_alias} in
2403 "") target_noncanonical
=${host_noncanonical} ;;
2404 *) target_noncanonical
=${target_alias} ;;
2410 test "$host_noncanonical" = "$target_noncanonical" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2413 program_transform_name
=s
,y
,y
,
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2416 $as_echo_n "checking host system type... " >&6; }
2417 if ${ac_cv_host+:} false
; then :
2418 $as_echo_n "(cached) " >&6
2420 if test "x$host_alias" = x
; then
2421 ac_cv_host
=$ac_cv_build
2423 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2424 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2429 $as_echo "$ac_cv_host" >&6; }
2432 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2435 ac_save_IFS
=$IFS; IFS
='-'
2441 # Remember, the first character of IFS is used to create $*,
2442 # except with old shells:
2445 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2449 $as_echo_n "checking target system type... " >&6; }
2450 if ${ac_cv_target+:} false
; then :
2451 $as_echo_n "(cached) " >&6
2453 if test "x$target_alias" = x
; then
2454 ac_cv_target
=$ac_cv_host
2456 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2457 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2462 $as_echo "$ac_cv_target" >&6; }
2463 case $ac_cv_target in
2465 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2467 target
=$ac_cv_target
2468 ac_save_IFS
=$IFS; IFS
='-'
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2478 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2481 # The aliases save the names the user supplied, while $host etc.
2482 # will get canonicalized.
2483 test -n "$target_alias" &&
2484 test "$program_prefix$program_suffix$program_transform_name" = \
2486 program_prefix
=${target_alias}-
2488 test "$program_prefix" != NONE
&&
2489 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE
&&
2492 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2500 # Get 'install' or 'install-sh' and its variants.
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false
; then :
2519 $as_echo_n "(cached) " >&6
2521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir
=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 .
/ | .
// |
/[cC
]/* | \
2529 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2530 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2536 for ac_prog
in ginstall scoinst
install; do
2537 for ac_exec_ext
in '' $ac_executable_extensions; do
2538 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2539 if test $ac_prog = install &&
2540 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2543 elif test $ac_prog = install &&
2544 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one
> conftest.one
2550 echo two
> conftest.two
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2553 test -s conftest.one
&& test -s conftest.two
&&
2554 test -s conftest.dir
/conftest.one
&&
2555 test -s conftest.dir
/conftest.two
2557 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2570 rm -rf conftest.one conftest.two conftest.dir
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL
=$ac_cv_path_install
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL
=$ac_install_sh
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2592 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2595 $as_echo_n "checking whether ln works... " >&6; }
2596 if ${acx_cv_prog_LN+:} false
; then :
2597 $as_echo_n "(cached) " >&6
2599 rm -f conftestdata_t
2600 echo >conftestdata_f
2601 if ln conftestdata_f conftestdata_t
2>/dev
/null
2607 rm -f conftestdata_f conftestdata_t
2610 if test $acx_cv_prog_LN = no
; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2613 $as_echo "no, using $LN" >&6; }
2615 LN
="$acx_cv_prog_LN"
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2621 $as_echo_n "checking whether ln -s works... " >&6; }
2623 if test "$LN_S" = "ln -s"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625 $as_echo "yes" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2628 $as_echo "no, using $LN_S" >&6; }
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2633 if ${ac_cv_path_SED+:} false
; then :
2634 $as_echo_n "(cached) " >&6
2636 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2637 for ac_i
in 1 2 3 4 5 6 7; do
2638 ac_script
="$ac_script$as_nl$ac_script"
2640 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2641 { ac_script
=; unset ac_script
;}
2642 if test -z "$SED"; then
2643 ac_path_SED_found
=false
2644 # Loop through the user's path and test for each of PROGNAME-LIST
2645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir
=.
2650 for ac_prog
in sed gsed
; do
2651 for ac_exec_ext
in '' $ac_executable_extensions; do
2652 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2653 as_fn_executable_p
"$ac_path_SED" ||
continue
2654 # Check for GNU ac_path_SED and select it if it is found.
2655 # Check for GNU $ac_path_SED
2656 case `"$ac_path_SED" --version 2>&1` in
2658 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2661 $as_echo_n 0123456789 >"conftest.in"
2664 cat "conftest.in" "conftest.in" >"conftest.tmp"
2665 mv "conftest.tmp" "conftest.in"
2666 cp "conftest.in" "conftest.nl"
2667 $as_echo '' >> "conftest.nl"
2668 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2669 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2670 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2671 if test $ac_count -gt ${ac_path_SED_max-0}; then
2672 # Best one so far, save it but keep looking for a better one
2673 ac_cv_path_SED
="$ac_path_SED"
2674 ac_path_SED_max
=$ac_count
2676 # 10*(2^10) chars as input seems more than enough
2677 test $ac_count -gt 10 && break
2679 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2682 $ac_path_SED_found && break 3
2687 if test -z "$ac_cv_path_SED"; then
2688 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2696 $as_echo "$ac_cv_path_SED" >&6; }
2697 SED
="$ac_cv_path_SED"
2700 for ac_prog
in gawk mawk nawk
awk
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy
$ac_prog; ac_word
=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_AWK+:} false
; then :
2707 $as_echo_n "(cached) " >&6
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir
=.
2717 for ac_exec_ext
in '' $ac_executable_extensions; do
2718 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK
="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 if test -n "$AWK"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2739 test -n "$AWK" && break
2743 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2745 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2747 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2748 INSTALL
="${srcpwd}/install-sh -c"
2751 # Set srcdir to "." if that's what it is.
2752 # This is important for multilib support.
2754 if test "${pwd}" = "${srcpwd}" ; then
2762 ### To add a new directory to the tree, first choose whether it is a target
2763 ### or a host dependent tool. Then put it into the appropriate list
2764 ### (library or tools, host or target), doing a dependency sort.
2766 # Subdirs will be configured in the order listed in build_configdirs,
2767 # configdirs, or target_configdirs; see the serialization section below.
2769 # Dependency sorting is only needed when *configuration* must be done in
2770 # a particular order. In all cases a dependency should be specified in
2771 # the Makefile, whether or not it's implicitly specified here.
2773 # Double entries in build_configdirs, configdirs, or target_configdirs may
2774 # cause circular dependencies and break everything horribly.
2776 # these library is used by various programs built for the build
2779 build_libs
="build-libiberty build-libcpp"
2781 # these tools are built for the build environment
2782 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2784 # these libraries are used by various programs built for the host environment
2786 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2788 # these tools are built for the host environment
2789 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2790 # know that we are building the simulator.
2791 # binutils, gas and ld appear in that order because it makes sense to run
2792 # "make check" in that particular order.
2793 # If --enable-gold is used, "gold" may replace "ld".
2794 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"
2796 # these libraries are built for the target environment, and are built after
2797 # the host libraries and the host tools (which may be a cross compiler)
2798 # Note that libiberty is not a target library.
2799 target_libraries
="target-libgcc \
2800 target-libbacktrace \
2804 target-liboffloadmic \
2805 target-libhsail-rt \
2808 target-libstdc++-v3 \
2809 target-libsanitizer \
2812 target-libquadmath \
2813 target-libgfortran \
2819 # these tools are built using the target libraries, and are intended to
2820 # run only in the target environment
2822 # note: any program that *uses* libraries that are in the "target_libraries"
2823 # list belongs in this list.
2825 target_tools
="target-rda"
2827 ################################################################################
2829 ## All tools belong in one of the four categories, and are assigned above
2830 ## We assign ${configdirs} this way to remove all embedded newlines. This
2831 ## is important because configure will choke if they ever get through.
2832 ## ${configdirs} is directories we build using the host tools.
2833 ## ${target_configdirs} is directories we build using the target tools.
2834 configdirs
=`echo ${host_libs} ${host_tools}`
2835 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2836 build_configdirs
=`echo ${build_libs} ${build_tools}`
2840 ################################################################################
2842 srcname
="gnu development package"
2844 # This gets set non-empty for some net releases of packages.
2847 # Define is_cross_compiler to save on calls to 'test'.
2849 if test x
"${host}" = x
"${target}" ; then
2850 is_cross_compiler
=no
2852 is_cross_compiler
=yes
2855 # Find the build and target subdir names.
2857 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2858 # have matching libraries, they should use host libraries: Makefile.tpl
2859 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2860 # However, they still use the build modules, because the corresponding
2861 # host modules (e.g. bison) are only built for the host when bootstrap
2863 # - build_subdir is where we find build modules, and never changes.
2864 # - build_libsubdir is where we find build libraries, and can be overridden.
2866 # Prefix 'build-' so this never conflicts with target_subdir.
2867 build_subdir
="build-${build_noncanonical}"
2869 # Check whether --with-build-libsubdir was given.
2870 if test "${with_build_libsubdir+set}" = set; then :
2871 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2873 build_libsubdir
="$build_subdir"
2876 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2877 if ( test $srcdir = .
&& test -d gcc
) \
2878 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2879 host_subdir
="host-${host_noncanonical}"
2884 target_subdir
=${target_noncanonical}
2886 # Be sure to cover against remnants of an in-tree build.
2887 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2888 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2889 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2892 # Skipdirs are removed silently.
2894 # Noconfigdirs are removed loudly.
2898 # Make sure we don't let GNU ld be added if we didn't want it.
2899 if test x
$with_gnu_ld = xno
; then
2901 noconfigdirs
="$noconfigdirs ld gold"
2905 # Make sure we don't let GNU as be added if we didn't want it.
2906 if test x
$with_gnu_as = xno
; then
2908 noconfigdirs
="$noconfigdirs gas"
2913 # Check whether --with-system-zlib was given.
2914 if test "${with_system_zlib+set}" = set; then :
2915 withval
=$with_system_zlib;
2918 # Make sure we don't let ZLIB be added if we didn't want it.
2919 if test x
$with_system_zlib = xyes
; then
2920 use_included_zlib
=no
2921 noconfigdirs
="$noconfigdirs zlib"
2924 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2926 if test x
$with_system_readline = xyes
; then
2927 noconfigdirs
="$noconfigdirs readline"
2930 # some tools are so dependent upon X11 that if we're not building with X,
2931 # it's not even worth trying to configure, much less build, that tool.
2934 yes |
"") ;; # the default value for this tree is that X11 is available
2936 skipdirs
="${skipdirs} tk itcl libgui"
2937 # We won't be able to build gdbtk without X.
2940 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2943 # Some are only suitable for cross toolchains.
2944 # Remove these if host=target.
2945 cross_only
="target-libgloss target-newlib target-opcodes"
2947 case $is_cross_compiler in
2948 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2951 # If both --with-headers and --with-libs are specified, default to
2953 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2954 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2955 if test x
"${with_newlib}" = x
; then
2960 # Recognize --with-newlib/--without-newlib.
2961 case ${with_newlib} in
2962 no
) skipdirs
="${skipdirs} target-newlib" ;;
2963 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2966 # Check whether --enable-as-accelerator-for was given.
2967 if test "${enable_as_accelerator_for+set}" = set; then :
2968 enableval
=$enable_as_accelerator_for;
2972 # Check whether --enable-offload-targets was given.
2973 if test "${enable_offload_targets+set}" = set; then :
2974 enableval
=$enable_offload_targets;
2975 if test x
"$enable_offload_targets" = x
; then
2976 as_fn_error $?
"no offload targets specified" "$LINENO" 5
2980 enable_offload_targets
=
2984 # Handle --enable-gold, --enable-ld.
2985 # --disable-gold [--enable-ld]
2986 # Build only ld. Default option.
2987 # --enable-gold [--enable-ld]
2988 # Build both gold and ld. Install gold as "ld.gold", install ld
2989 # as "ld.bfd" and "ld".
2990 # --enable-gold=default [--enable-ld]
2991 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2992 # install ld as "ld.bfd".
2993 # --enable-gold[=default] --disable-ld
2994 # Build only gold, which is then installed as both "ld.gold" and "ld".
2995 # --enable-gold --enable-ld=default
2996 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2998 # In other words, ld is default
2999 # --enable-gold=default --enable-ld=default
3003 # Check whether --enable-gold was given.
3004 if test "${enable_gold+set}" = set; then :
3005 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3010 case "${ENABLE_GOLD}" in
3012 # Check for ELF target.
3015 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3016 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3017 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3018 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3020 *-*-linux*aout
* |
*-*-linux*oldld
*)
3028 if test "$is_elf" = "yes"; then
3029 # Check for target supported by gold.
3031 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3032 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3033 configdirs
="$configdirs gold"
3034 if test x
${ENABLE_GOLD} = xdefault
; then
3045 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3049 # Check whether --enable-ld was given.
3050 if test "${enable_ld+set}" = set; then :
3051 enableval
=$enable_ld; ENABLE_LD
=$enableval
3057 case "${ENABLE_LD}" in
3059 if test x
${default_ld} != x
; then
3060 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3066 if test x
${ENABLE_GOLD} != xyes
; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3070 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3073 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3077 # Check whether --enable-gprofng was given.
3078 if test "${enable_gprofng+set}" = set; then :
3079 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3084 if test "$enable_gprofng" = "yes"; then
3086 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3087 configdirs
="$configdirs gprofng"
3094 # Decide the default method for compressing debug sections.
3095 # Provide a configure time option to override our default.
3096 # Check whether --enable-compressed_debug_sections was given.
3097 if test "${enable_compressed_debug_sections+set}" = set; then :
3098 enableval
=$enable_compressed_debug_sections;
3099 if test x
"$enable_compressed_debug_sections" = xyes
; then
3100 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3104 enable_compressed_debug_sections
=
3108 # Configure extra directories which are host specific
3112 configdirs
="$configdirs libtermcap" ;;
3115 # A target can indicate whether a language isn't supported for some reason.
3116 # Only spaces may be used in this macro; not newlines or tabs.
3117 unsupported_languages
=
3119 # Remove more programs from consideration, based on the host or
3120 # target this usually means that a port of the program doesn't
3124 i
[3456789]86-*-msdosdjgpp*)
3125 noconfigdirs
="$noconfigdirs tcl tk itcl"
3130 # Check whether --enable-libquadmath was given.
3131 if test "${enable_libquadmath+set}" = set; then :
3132 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3134 ENABLE_LIBQUADMATH
=yes
3137 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3138 noconfigdirs
="$noconfigdirs target-libquadmath"
3142 # Check whether --enable-libquadmath-support was given.
3143 if test "${enable_libquadmath_support+set}" = set; then :
3144 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3146 ENABLE_LIBQUADMATH_SUPPORT
=yes
3149 enable_libquadmath_support
=
3150 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3151 enable_libquadmath_support
=no
3155 # Check whether --enable-libada was given.
3156 if test "${enable_libada+set}" = set; then :
3157 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3162 if test "${ENABLE_LIBADA}" != "yes" ; then
3163 noconfigdirs
="$noconfigdirs gnattools"
3166 # Check whether --enable-libssp was given.
3167 if test "${enable_libssp+set}" = set; then :
3168 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3174 # Check whether --enable-libstdcxx was given.
3175 if test "${enable_libstdcxx+set}" = set; then :
3176 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3178 ENABLE_LIBSTDCXX
=default
3181 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3182 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3185 # If this is accelerator compiler and its target is intelmic we enable
3186 # target liboffloadmic by default. If this is compiler with offloading
3187 # for intelmic we enable host liboffloadmic by default. Otherwise
3188 # liboffloadmic is disabled by default.
3189 # Check whether --enable-liboffloadmic was given.
3190 if test "${enable_liboffloadmic+set}" = set; then :
3191 enableval
=$enable_liboffloadmic; case "$enableval" in
3193 enable_liboffloadmic
=$enableval ;;
3195 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3198 if test x
"$enable_as_accelerator_for" != x
; then
3200 *-intelmic-* |
*-intelmicemul-*)
3201 enable_liboffloadmic
=target
3202 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3205 enable_liboffloadmic
=no
3209 case "${enable_offload_targets}" in
3210 *-intelmic-* |
*-intelmicemul-*)
3211 enable_liboffloadmic
=host
3212 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3215 enable_liboffloadmic
=no
3223 # Enable libgomp by default on hosted POSIX systems, and a few others.
3224 if test x
$enable_libgomp = x
; then
3226 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3228 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3230 *-*-solaris2* |
*-*-hpux11*)
3232 *-*-darwin* |
*-*-aix*)
3237 noconfigdirs
="$noconfigdirs target-libgomp"
3242 # Disable libatomic on unsupported systems.
3243 if test -d ${srcdir}/libatomic
; then
3244 if test x
$enable_libatomic = x
; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3246 $as_echo_n "checking for libatomic support... " >&6; }
3247 if (srcdir
=${srcdir}/libatomic
; \
3248 .
${srcdir}/configure.tgt
; \
3249 test -n "$UNSUPPORTED")
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 noconfigdirs
="$noconfigdirs target-libatomic"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3261 # Disable liboffloadmic on unsupported systems.
3262 if test -d ${srcdir}/liboffloadmic
; then
3263 if test x
$enable_liboffloadmic != xno
; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3265 $as_echo_n "checking for liboffloadmic support... " >&6; }
3266 if (srcdir
=${srcdir}/liboffloadmic
; \
3267 .
${srcdir}/configure.tgt
; \
3268 test -n "$UNSUPPORTED")
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3280 # Disable libitm on unsupported systems.
3281 if test -d ${srcdir}/libitm
; then
3282 if test x
$enable_libitm = x
; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3284 $as_echo_n "checking for libitm support... " >&6; }
3285 if (srcdir
=${srcdir}/libitm
; \
3286 .
${srcdir}/configure.tgt
; \
3287 test -n "$UNSUPPORTED")
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 noconfigdirs
="$noconfigdirs target-libitm"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3299 # Disable libsanitizer on unsupported systems.
3300 if test -d ${srcdir}/libsanitizer
; then
3301 if test x
$enable_libsanitizer = x
; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3303 $as_echo_n "checking for libsanitizer support... " >&6; }
3304 if (srcdir
=${srcdir}/libsanitizer
; \
3305 .
${srcdir}/configure.tgt
; \
3306 test -n "$UNSUPPORTED")
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs
="$noconfigdirs target-libsanitizer"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3318 # Disable libvtv on unsupported systems.
3319 if test -d ${srcdir}/libvtv
; then
3320 if test x
$enable_libvtv = x
; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3322 $as_echo_n "checking for libvtv support... " >&6; }
3323 if (srcdir
=${srcdir}/libvtv
; \
3324 .
${srcdir}/configure.tgt
; \
3325 test "$VTV_SUPPORTED" != "yes")
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 noconfigdirs
="$noconfigdirs target-libvtv"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3338 # Disable libhsail-rt on unsupported systems.
3339 if test -d ${srcdir}/libhsail-rt
; then
3340 if test x
$enable_libhsail_rt = x
; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3342 $as_echo_n "checking for libhsail-rt support... " >&6; }
3343 if (srcdir
=${srcdir}/libhsail-rt
; \
3344 .
${srcdir}/configure.tgt
; \
3345 test -n "$UNSUPPORTED")
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 unsupported_languages
="$unsupported_languages brig"
3350 # This implicitly disables also target-libhsail-rt as it won't
3351 # get added to the build without BRIG FE.
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3360 # Disable libquadmath for some systems.
3363 noconfigdirs
="$noconfigdirs target-libquadmath"
3365 # libquadmath is unused on AIX and libquadmath build process use of
3366 # LD_LIBRARY_PATH can break AIX bootstrap.
3367 powerpc-
*-aix* | rs6000-
*-aix*)
3368 noconfigdirs
="$noconfigdirs target-libquadmath"
3372 # Disable libssp for some systems.
3375 # No hosted I/O support.
3376 noconfigdirs
="$noconfigdirs target-libssp"
3378 powerpc-
*-aix* | rs6000-
*-aix*)
3379 noconfigdirs
="$noconfigdirs target-libssp"
3382 # libssp uses a misaligned load to trigger a fault, but the RL78
3383 # doesn't fault for those - instead, it gives a build-time error
3384 # for explicit misaligned loads.
3385 noconfigdirs
="$noconfigdirs target-libssp"
3388 # No hosted I/O support.
3389 noconfigdirs
="$noconfigdirs target-libssp"
3393 # Disable libstdc++-v3 for some systems.
3394 # Allow user to override this if they pass --enable-libstdc++-v3
3395 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3398 # VxWorks uses the Dinkumware C++ library.
3399 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3402 # the C++ libraries don't build on top of CE's C libraries
3403 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3406 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3409 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3414 # Disable Fortran for some systems.
3417 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3418 unsupported_languages
="$unsupported_languages fortran"
3422 # Disable libffi for some systems.
3426 i
[3456789]86-*-darwin*)
3428 x86_64-
*-darwin[912]*)
3431 noconfigdirs
="$noconfigdirs target-libffi"
3434 noconfigdirs
="$noconfigdirs target-libffi"
3437 noconfigdirs
="$noconfigdirs target-libffi"
3440 noconfigdirs
="$noconfigdirs target-libffi"
3443 noconfigdirs
="$noconfigdirs target-libffi"
3446 noconfigdirs
="$noconfigdirs target-libffi"
3449 noconfigdirs
="$noconfigdirs target-libffi"
3451 aarch64
*-*-freebsd*)
3452 noconfigdirs
="$noconfigdirs target-libffi"
3455 noconfigdirs
="$noconfigdirs target-libffi"
3458 noconfigdirs
="$noconfigdirs target-libffi"
3461 noconfigdirs
="$noconfigdirs target-libffi"
3463 cris-
*-* | crisv32-
*-*)
3467 *) # See PR46792 regarding target-libffi.
3468 noconfigdirs
="$noconfigdirs target-libffi";;
3472 noconfigdirs
="$noconfigdirs target-libffi"
3477 noconfigdirs
="$noconfigdirs target-libffi"
3480 noconfigdirs
="$noconfigdirs target-libffi"
3482 i
[3456789]86-w64-mingw*)
3483 noconfigdirs
="$noconfigdirs target-libffi"
3485 i
[3456789]86-*-mingw*)
3486 noconfigdirs
="$noconfigdirs target-libffi"
3489 noconfigdirs
="$noconfigdirs target-libffi"
3492 noconfigdirs
="$noconfigdirs target-libffi"
3499 noconfigdirs
="$noconfigdirs target-libffi"
3502 noconfigdirs
="$noconfigdirs target-libffi"
3506 # Disable the go frontend on systems where it is known to not work. Please keep
3507 # this in sync with contrib/config-list.mk.
3509 *-*-darwin* |
*-*-cygwin* |
*-*-mingw*)
3510 unsupported_languages
="$unsupported_languages go"
3514 # Only allow gdbserver on some systems.
3515 if test -d ${srcdir}/gdbserver
; then
3516 if test x
$enable_gdbserver = x
; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3518 $as_echo_n "checking for gdbserver support... " >&6; }
3519 if (srcdir
=${srcdir}/gdbserver
; \
3520 .
${srcdir}/configure.srv
; \
3521 test -n "$UNSUPPORTED")
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 noconfigdirs
="$noconfigdirs gdbserver"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3533 # Disable libgo for some systems where it is known to not work.
3534 # For testing, you can easily override this with --enable-libgo.
3535 if test x
$enable_libgo = x
; then
3539 noconfigdirs
="$noconfigdirs target-libgo"
3541 *-*-cygwin* |
*-*-mingw*)
3542 noconfigdirs
="$noconfigdirs target-libgo"
3547 # Default libgloss CPU subdirectory.
3548 libgloss_dir
="$target_cpu"
3551 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3555 libgloss_dir
=aarch64
3560 cris-
*-* | crisv32-
*-*)
3569 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3570 libgloss_dir
=m68hc11
3572 m68
*-*-* | fido-
*-*)
3586 # Disable newlib and libgloss for various target OSes.
3589 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3591 i
[3456789]86-*-linux*)
3592 # This section makes it possible to build newlib natively on linux.
3593 # If we are using a cross compiler then don't configure newlib.
3594 if test x
${is_cross_compiler} != xno
; then
3595 noconfigdirs
="$noconfigdirs target-newlib"
3597 noconfigdirs
="$noconfigdirs target-libgloss"
3598 # If we are not using a cross compiler, do configure newlib.
3599 # Note however, that newlib will only be configured in this situation
3600 # if the --with-newlib option has been given, because otherwise
3601 # 'target-newlib' will appear in skipdirs.
3603 i
[3456789]86-*-rdos*)
3604 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3606 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3607 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3610 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3613 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3616 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3619 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3622 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3625 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3627 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3628 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3631 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3637 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3640 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3643 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3646 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3649 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3657 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3658 noconfigdirs
="$noconfigdirs sim target-rda"
3661 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3662 noconfigdirs
="$noconfigdirs sim target-rda"
3665 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs
="$noconfigdirs sim target-rda"
3668 i
[3456789]86-*-darwin*)
3669 noconfigdirs
="$noconfigdirs ld gprof"
3670 noconfigdirs
="$noconfigdirs sim target-rda"
3672 x86_64-
*-darwin[912]*)
3673 noconfigdirs
="$noconfigdirs ld gas gprof"
3674 noconfigdirs
="$noconfigdirs sim target-rda"
3677 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3678 noconfigdirs
="$noconfigdirs sim target-rda"
3683 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3684 && test -f /usr
/local
/include
/gmp.h
; then
3689 # Remove unsupported stuff on all kaOS configurations.
3690 noconfigdirs
="$noconfigdirs target-libgloss"
3697 noconfigdirs
="$noconfigdirs target-libgloss"
3700 noconfigdirs
="$noconfigdirs target-libgloss"
3702 # The tpf target doesn't support gdb yet.
3704 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3707 noconfigdirs
="$noconfigdirs target-rda"
3712 # ld works, but does not support shared libraries.
3713 # gas doesn't generate exception information.
3714 noconfigdirs
="$noconfigdirs gas ld"
3717 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3720 # newlib is not 64 bit ready
3721 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3723 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3724 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3727 noconfigdirs
="$noconfigdirs sim"
3730 noconfigdirs
="$noconfigdirs target-libgloss"
3733 noconfigdirs
="$noconfigdirs ld target-libgloss"
3736 if test x
${with_avrlibc} != xno
; then
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 c4x-
*-* | tic4x-
*-*)
3741 noconfigdirs
="$noconfigdirs target-libgloss"
3744 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3747 noconfigdirs
="$noconfigdirs target-libgloss"
3750 noconfigdirs
="$noconfigdirs gdb"
3753 noconfigdirs
="$noconfigdirs gdb"
3756 noconfigdirs
="$noconfigdirs target-rda gprof"
3759 noconfigdirs
="$noconfigdirs"
3762 noconfigdirs
="$noconfigdirs target-libgloss"
3765 noconfigdirs
="$noconfigdirs target-libgloss"
3767 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3770 noconfigdirs
="$noconfigdirs gdb"
3773 noconfigdirs
="$noconfigdirs gdb ld"
3781 hppa
*-*-openbsd* | \
3787 noconfigdirs
="$noconfigdirs ld"
3790 noconfigdirs
="$noconfigdirs gdb"
3793 # No gdb support yet.
3794 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3797 # No ld support yet.
3798 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3801 # No ld support yet.
3802 noconfigdirs
="$noconfigdirs libgui itcl ld"
3804 i
[3456789]86-w64-mingw*)
3806 i
[3456789]86-*-mingw*)
3807 target_configdirs
="$target_configdirs target-winsup"
3810 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3811 noconfigdirs
="$noconfigdirs target-libgloss"
3812 # always build newlib if winsup directory is present.
3813 if test -d "$srcdir/winsup/cygwin"; then
3814 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3815 elif test -d "$srcdir/newlib"; then
3816 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3820 noconfigdirs
="$noconfigdirs target-libgloss"
3822 i
[3456789]86-*-sco3.2v5
*)
3823 # The linker does not yet know about weak symbols in COFF,
3824 # and is not configured to handle mixed ELF and COFF.
3825 noconfigdirs
="$noconfigdirs ld target-libgloss"
3827 i
[3456789]86-*-sco*)
3828 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3830 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3831 noconfigdirs
="$noconfigdirs target-libgloss"
3833 i
[3456789]86-*-sysv4*)
3834 noconfigdirs
="$noconfigdirs target-libgloss"
3836 i
[3456789]86-*-beos*)
3837 noconfigdirs
="$noconfigdirs gdb"
3839 i
[3456789]86-*-rdos*)
3840 noconfigdirs
="$noconfigdirs gdb"
3843 noconfigdirs
="$noconfigdirs gdb"
3846 noconfigdirs
="$noconfigdirs sim"
3849 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3850 noconfigdirs
="$noconfigdirs $target_libraries"
3853 noconfigdirs
="$noconfigdirs gdb gprof"
3856 # copied from rs6000-*-* entry
3857 noconfigdirs
="$noconfigdirs gprof"
3859 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3860 target_configdirs
="$target_configdirs target-winsup"
3861 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3862 # always build newlib.
3863 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3865 # This is temporary until we can link against shared libraries
3866 powerpcle-
*-solaris*)
3867 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3870 noconfigdirs
="$noconfigdirs gdb"
3873 noconfigdirs
="$noconfigdirs gprof"
3876 noconfigdirs
="$noconfigdirs gprof"
3879 noconfigdirs
="$noconfigdirs gprof"
3882 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3885 noconfigdirs
="$noconfigdirs gprof"
3887 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3888 if test x
$with_newlib = xyes
; then
3889 noconfigdirs
="$noconfigdirs gprof"
3893 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3896 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3899 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3903 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3904 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3905 noconfigdirs
="$noconfigdirs ld gas gprof"
3908 noconfigdirs
="$noconfigdirs gprof"
3911 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3918 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3922 if test x
${is_cross_compiler} = xno
; then
3927 noconfigdirs
="$noconfigdirs sim"
3929 tilepro
*-*-* | tilegx
*-*-*)
3930 noconfigdirs
="$noconfigdirs sim"
3933 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3936 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3939 noconfigdirs
="$noconfigdirs ld"
3943 # If we aren't building newlib, then don't build libgloss, since libgloss
3944 # depends upon some newlib header files.
3945 case "${noconfigdirs}" in
3946 *target-libgloss
*) ;;
3947 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3950 # Work in distributions that contain no compiler tools, like Autoconf.
3951 host_makefile_frag
=/dev
/null
3952 if test -d ${srcdir}/config
; then
3954 i
[3456789]86-*-msdosdjgpp*)
3955 host_makefile_frag
="config/mh-djgpp"
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3960 $as_echo_n "checking to see if cat works as expected... " >&6; }
3961 echo a
>cygwin-cat-check
3962 if test `cat cygwin-cat-check` = a
; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 as_fn_error $?
"The cat command does not ignore carriage return characters.
3971 Please either mount the build directory in binary mode or run the following
3972 commands before running any configure script:
3978 host_makefile_frag
="config/mh-cygwin"
3981 host_makefile_frag
="config/mh-mingw"
3984 host_makefile_frag
="config/mh-alpha-linux"
3987 host_makefile_frag
="config/mh-pa-hpux10"
3990 host_makefile_frag
="config/mh-pa"
3993 host_makefile_frag
="config/mh-pa"
3996 host_makefile_frag
="config/mh-darwin"
3999 host_makefile_frag
="config/mh-ppc-aix"
4002 host_makefile_frag
="config/mh-ppc-aix"
4007 if test "${build}" != "${host}" ; then
4008 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4009 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4010 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4011 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4012 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4013 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4014 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4015 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4016 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4017 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4018 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4019 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4021 AR_FOR_BUILD
="\$(AR)"
4022 AS_FOR_BUILD
="\$(AS)"
4023 CC_FOR_BUILD
="\$(CC)"
4024 CXX_FOR_BUILD
="\$(CXX)"
4025 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4026 GOC_FOR_BUILD
="\$(GOC)"
4027 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4028 LD_FOR_BUILD
="\$(LD)"
4029 NM_FOR_BUILD
="\$(NM)"
4030 RANLIB_FOR_BUILD
="\$(RANLIB)"
4031 WINDRES_FOR_BUILD
="\$(WINDRES)"
4032 WINDMC_FOR_BUILD
="\$(WINDMC)"
4036 ac_cpp
='$CPP $CPPFLAGS'
4037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_CC+:} false
; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC
="$CC" # Let the user override the test.
4051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir
=.
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test -z "$ac_cv_prog_CC"; then
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc
; ac_word
=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir
=.
4096 for ac_exec_ext
in '' $ac_executable_extensions; do
4097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC
="gcc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 $as_echo "$ac_ct_CC" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4117 if test "x$ac_ct_CC" = x
; then
4120 case $cross_compiling:$ac_tool_warned in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned
=yes ;;
4132 if test -z "$CC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false
; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC
="$CC" # Let the user override the test.
4144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir
=.
4149 for ac_exec_ext
in '' $ac_executable_extensions; do
4150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4173 if test -z "$CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc
; ac_word
=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_CC+:} false
; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC
="$CC" # Let the user override the test.
4185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected
=yes
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test $ac_prog_rejected = yes; then
4205 # We found a bogon in the path, so make sure we never use it.
4206 set dummy
$ac_cv_prog_CC
4208 if test $# != 0; then
4209 # We chose a different compiler from the bogus one.
4210 # However, it has the same basename, so the bogon will be chosen
4211 # first if we set CC to just the basename; use the full file name.
4213 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog
in cl.exe
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC
="$CC" # Let the user override the test.
4243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir
=.
4248 for ac_exec_ext
in '' $ac_executable_extensions; do
4249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$CC" && break
4273 if test -z "$CC"; then
4275 for ac_prog
in cl.exe
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy
$ac_prog; ac_word
=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$ac_ct_CC"; then
4285 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir
=.
4292 for ac_exec_ext
in '' $ac_executable_extensions; do
4293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_ac_ct_CC
="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4305 if test -n "$ac_ct_CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307 $as_echo "$ac_ct_CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$ac_ct_CC" && break
4317 if test "x$ac_ct_CC" = x
; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned
=yes ;;
4333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $?
"no acceptable C compiler found in \$PATH
4336 See \`config.log' for more details" "$LINENO" 5; }
4338 # Provide some information about the compiler.
4339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4342 for ac_option
in --version -v -V -qversion; do
4343 { { ac_try
="$ac_compiler $ac_option >&5"
4345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4352 if test -s conftest.err; then
4354 ... rest of stderr output deleted ...
4355 10q' conftest.err >conftest.er1
4356 cat conftest.er1 >&5
4358 rm -f conftest.er1 conftest.err
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 ac_clean_files_save=$ac_clean_files
4375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4376 # Try to create an executable without -o first, disregard a.out.
4377 # It will help us diagnose broken compilers, and finding out an intuition
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4380 $as_echo_n "checking whether the C compiler works... " >&6; }
4381 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4383 # The possible output files:
4384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4387 for ac_file in $ac_files
4390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4396 if { { ac_try="$ac_link_default"
4398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4399 *) ac_try_echo
=$ac_try;;
4401 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_link_default") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }; then :
4407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4410 # so that the user can short-circuit this test for compilers unknown to
4412 for ac_file
in $ac_files ''
4414 test -f "$ac_file" ||
continue
4416 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4419 # We found the default executable, but exeext='' is most
4423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4425 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 # We set ac_cv_exeext here because the later test for it is not
4428 # safe: cross compilers may not add the suffix if given an `-o'
4429 # argument, so we may need to know it at that point already.
4430 # Even if this section looks crufty: it has the advantage of
4437 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4442 if test -z "$ac_file"; then :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 $as_echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.
$ac_ext >&5
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error
77 "C compiler cannot create executables
4451 See \`config.log' for more details" "$LINENO" 5; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454 $as_echo "yes" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4457 $as_echo_n "checking for C compiler default output file name... " >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4459 $as_echo "$ac_file" >&6; }
4460 ac_exeext
=$ac_cv_exeext
4462 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4463 ac_clean_files
=$ac_clean_files_save
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465 $as_echo_n "checking for suffix of executables... " >&6; }
4466 if { { ac_try
="$ac_link"
4468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4478 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4481 for ac_file
in conftest.exe conftest conftest.
*; do
4482 test -f "$ac_file" ||
continue
4484 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4485 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details" "$LINENO" 5; }
4496 rm -f conftest conftest
$ac_cv_exeext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498 $as_echo "$ac_cv_exeext" >&6; }
4500 rm -f conftest.
$ac_ext
4501 EXEEXT
=$ac_cv_exeext
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4509 FILE *f = fopen ("conftest.out", "w");
4510 return ferror (f) || fclose (f) != 0;
4516 ac_clean_files
="$ac_clean_files conftest.out"
4517 # Check that the compiler produces executables we can run. If not, either
4518 # the compiler is broken, or we cross compile.
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4520 $as_echo_n "checking whether we are cross compiling... " >&6; }
4521 if test "$cross_compiling" != yes; then
4522 { { ac_try
="$ac_link"
4524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link") 2>&5
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 if { ac_try='./conftest$ac_cv_exeext'
4534 { { case "(($ac_try" in
4535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4536 *) ac_try_echo
=$ac_try;;
4538 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_try") 2>&5
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; }; then
4546 if test "$cross_compiling" = maybe
; then
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $?
"cannot run C compiled programs.
4552 If you meant to cross compile, use \`--host'.
4553 See \`config.log' for more details" "$LINENO" 5; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4558 $as_echo "$cross_compiling" >&6; }
4560 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4561 ac_clean_files
=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4563 $as_echo_n "checking for suffix of object files... " >&6; }
4564 if ${ac_cv_objext+:} false
; then :
4565 $as_echo_n "(cached) " >&6
4567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 rm -f conftest.o conftest.obj
4579 if { { ac_try
="$ac_compile"
4581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_compile") 2>&5
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
4590 for ac_file in conftest.o conftest.obj conftest.*; do
4591 test -f "$ac_file" || continue;
4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4605 See \
`config.log' for more details" "$LINENO" 5; }
4607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610 $as_echo "$ac_cv_objext" >&6; }
4611 OBJEXT=$ac_cv_objext
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4615 if ${ac_cv_c_compiler_gnu+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4632 if ac_fn_c_try_compile "$LINENO"; then :
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4643 if test $ac_compiler_gnu = yes; then
4648 ac_test_CFLAGS=${CFLAGS+set}
4649 ac_save_CFLAGS=$CFLAGS
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4652 if ${ac_cv_prog_cc_g+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 ac_save_c_werror_flag=$ac_c_werror_flag
4656 ac_c_werror_flag=yes
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4670 if ac_fn_c_try_compile "$LINENO"; then :
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_c_werror_flag=$ac_save_c_werror_flag
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4701 if ac_fn_c_try_compile "$LINENO"; then :
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_c_werror_flag=$ac_save_c_werror_flag
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4712 $as_echo "$ac_cv_prog_cc_g" >&6; }
4713 if test "$ac_test_CFLAGS" = set; then
4714 CFLAGS=$ac_save_CFLAGS
4715 elif test $ac_cv_prog_cc_g = yes; then
4716 if test "$GCC" = yes; then
4722 if test "$GCC" = yes; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4730 if ${ac_cv_prog_cc_c89+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 ac_cv_prog_cc_c89=no
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4754 s = g (p, va_arg (v,int));
4759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4760 function prototypes and stuff, but not '\xHH' hex character constants.
4761 These don't provoke an error unfortunately, instead are silently treated
4762 as 'x'. The following induces an error, until -std is added to get
4763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4764 array size at least. It's necessary to write '\x00'==0 to get something
4765 that's true only with -std. */
4766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4769 inside strings and character constants. */
4771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790 CC="$ac_save_CC $ac_arg"
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_cv_prog_cc_c89=$ac_arg
4794 rm -f core conftest.err conftest.$ac_objext
4795 test "x$ac_cv_prog_cc_c89" != "xno" && break
4797 rm -f conftest.$ac_ext
4802 case "x$ac_cv_prog_cc_c89" in
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4805 $as_echo "none needed" >&6; } ;;
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4808 $as_echo "unsupported" >&6; } ;;
4810 CC="$CC $ac_cv_prog_cc_c89"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4812 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4814 if test "x$ac_cv_prog_cc_c89" != xno; then :
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4825 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4826 if ${ac_cv_prog_cc_c99+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_cv_prog_cc_c99=no
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4834 #include <stdbool.h>
4839 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4840 #define debug(...) fprintf (stderr, __VA_ARGS__)
4841 #define showlist(...) puts (#__VA_ARGS__)
4842 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4844 test_varargs_macros (void)
4849 debug ("X = %d\n", x);
4850 showlist (The first, second, and third items.);
4851 report (x>y, "x is %d but y is %d", x, y);
4854 // Check long long types.
4855 #define BIG64 18446744073709551615ull
4856 #define BIG32 4294967295ul
4857 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4859 your preprocessor is broken;
4863 your preprocessor is broken;
4865 static long long int bignum = -9223372036854775807LL;
4866 static unsigned long long int ubignum = BIG64;
4868 struct incomplete_array
4876 const wchar_t *name;
4880 typedef const char *ccp;
4883 test_restrict (ccp restrict text)
4885 // See if C++-style comments work.
4886 // Iterate through items via the restricted pointer.
4887 // Also check for declarations in for loops.
4888 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4893 // Check varargs and va_copy.
4895 test_varargs (const char *format, ...)
4898 va_start (args, format);
4900 va_copy (args_copy, args);
4911 str = va_arg (args_copy, const char *);
4914 number = va_arg (args_copy, int);
4917 fnumber = va_arg (args_copy, double);
4932 _Bool success = false;
4935 if (test_restrict ("String literal") == 0)
4937 char *restrict newvar = "Another string";
4940 test_varargs ("s, d' f .", "string", 65, 34.234);
4941 test_varargs_macros ();
4943 // Check flexible array members.
4944 struct incomplete_array *ia =
4945 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4947 for (int i = 0; i < ia->datasize; ++i)
4948 ia->data[i] = i * 1.234;
4950 // Check named initializers.
4951 struct named_init ni = {
4953 .name = L"Test wide string",
4954 .average = 543.34343,
4959 int dynamic_array[ni.number];
4960 dynamic_array[ni.number - 1] = 543;
4962 // work around unused variable warnings
4963 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4964 || dynamic_array[ni.number - 1] != 543);
4970 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4972 CC="$ac_save_CC $ac_arg"
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_cv_prog_cc_c99=$ac_arg
4976 rm -f core conftest.err conftest.$ac_objext
4977 test "x$ac_cv_prog_cc_c99" != "xno" && break
4979 rm -f conftest.$ac_ext
4984 case "x$ac_cv_prog_cc_c99" in
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4987 $as_echo "none needed" >&6; } ;;
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4990 $as_echo "unsupported" >&6; } ;;
4992 CC="$CC $ac_cv_prog_cc_c99"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4994 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4996 if test "x$ac_cv_prog_cc_c99" != xno; then :
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -z "$CXX"; then
5007 if test -n "$CCC"; then
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_CXX+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 if test -n "$CXX"; then
5021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 if test -n "$CXX"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5043 $as_echo "$CXX" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 test -n "$CXX" && break
5053 if test -z "$CXX"; then
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -n "$ac_ct_CXX"; then
5065 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_CXX="$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5085 if test -n "$ac_ct_CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5087 $as_echo "$ac_ct_CXX" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 test -n "$ac_ct_CXX" && break
5097 if test "x$ac_ct_CXX" = x; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5112 # Provide some information about the compiler.
5113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5116 for ac_option in --version -v -V -qversion; do
5117 { { ac_try="$ac_compiler $ac_option >&5"
5119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5120 *) ac_try_echo
=$ac_try;;
5122 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5126 if test -s conftest.err
; then
5128 ... rest of stderr output deleted ...
5129 10q' conftest.err
>conftest.er1
5130 cat conftest.er1
>&5
5132 rm -f conftest.er1 conftest.err
5133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134 test $ac_status = 0; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5138 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5139 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5140 $as_echo_n "(cached) " >&6
5142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5156 if ac_fn_cxx_try_compile
"$LINENO"; then :
5161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5162 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5166 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5167 if test $ac_compiler_gnu = yes; then
5172 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5173 ac_save_CXXFLAGS
=$CXXFLAGS
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5175 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5176 if ${ac_cv_prog_cxx_g+:} false
; then :
5177 $as_echo_n "(cached) " >&6
5179 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5180 ac_cxx_werror_flag
=yes
5183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5194 if ac_fn_cxx_try_compile
"$LINENO"; then :
5195 ac_cv_prog_cxx_g
=yes
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 if ac_fn_cxx_try_compile
"$LINENO"; then :
5212 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 if ac_fn_cxx_try_compile
"$LINENO"; then :
5226 ac_cv_prog_cxx_g
=yes
5228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5233 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5236 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238 CXXFLAGS
=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240 if test "$GXX" = yes; then
5246 if test "$GXX" = yes; then
5253 ac_cpp
='$CPP $CPPFLAGS'
5254 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5259 # We must set the default linker to the linker used by gcc for the correct
5260 # operation of libtool. If LD is not defined and we are using gcc, try to
5261 # set the LD default to the ld used by gcc.
5262 if test -z "$LD"; then
5263 if test "$GCC" = yes; then
5266 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5268 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5270 case $gcc_prog_ld in
5271 # Accept absolute paths.
5272 [\\/]* |
[A-Za-z
]:[\\/]*)
5273 LD
="$gcc_prog_ld" ;;
5278 # Check whether -static-libstdc++ -static-libgcc is supported.
5280 if test "$GCC" = yes; then
5281 saved_LDFLAGS
="$LDFLAGS"
5283 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5285 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5287 ac_cpp
='$CXXCPP $CPPFLAGS'
5288 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5296 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5297 #error -static-libstdc++ not implemented
5301 if ac_fn_cxx_try_link
"$LINENO"; then :
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303 $as_echo "yes" >&6; }; have_static_libs
=yes
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5308 rm -f core conftest.err conftest.
$ac_objext \
5309 conftest
$ac_exeext conftest.
$ac_ext
5311 ac_cpp
='$CPP $CPPFLAGS'
5312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5317 LDFLAGS
="$saved_LDFLAGS"
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5325 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_GNATBIND+:} false
; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$GNATBIND"; then
5332 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir
=.
5339 for ac_exec_ext
in '' $ac_executable_extensions; do
5340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 GNATBIND
=$ac_cv_prog_GNATBIND
5352 if test -n "$GNATBIND"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5354 $as_echo "$GNATBIND" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5362 if test -z "$ac_cv_prog_GNATBIND"; then
5363 ac_ct_GNATBIND
=$GNATBIND
5364 # Extract the first word of "gnatbind", so it can be a program name with args.
5365 set dummy gnatbind
; ac_word
=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5369 $as_echo_n "(cached) " >&6
5371 if test -n "$ac_ct_GNATBIND"; then
5372 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir
=.
5379 for ac_exec_ext
in '' $ac_executable_extensions; do
5380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5392 if test -n "$ac_ct_GNATBIND"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5394 $as_echo "$ac_ct_GNATBIND" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 if test "x$ac_ct_GNATBIND" = x
; then
5403 case $cross_compiling:$ac_tool_warned in
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned
=yes ;;
5409 GNATBIND
=$ac_ct_GNATBIND
5412 GNATBIND
="$ac_cv_prog_GNATBIND"
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5417 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$GNATMAKE"; then
5424 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir
=.
5431 for ac_exec_ext
in '' $ac_executable_extensions; do
5432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 GNATMAKE
=$ac_cv_prog_GNATMAKE
5444 if test -n "$GNATMAKE"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5446 $as_echo "$GNATMAKE" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5454 if test -z "$ac_cv_prog_GNATMAKE"; then
5455 ac_ct_GNATMAKE
=$GNATMAKE
5456 # Extract the first word of "gnatmake", so it can be a program name with args.
5457 set dummy gnatmake
; ac_word
=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$ac_ct_GNATMAKE"; then
5464 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_exec_ext
in '' $ac_executable_extensions; do
5472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5484 if test -n "$ac_ct_GNATMAKE"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5486 $as_echo "$ac_ct_GNATMAKE" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5492 if test "x$ac_ct_GNATMAKE" = x
; then
5495 case $cross_compiling:$ac_tool_warned in
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned
=yes ;;
5501 GNATMAKE
=$ac_ct_GNATMAKE
5504 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5508 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5509 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5510 $as_echo_n "(cached) " >&6
5512 cat >conftest.adb
<<EOF
5513 procedure conftest is begin null; end conftest;
5515 acx_cv_cc_gcc_supports_ada
=no
5516 # There is a bug in old released versions of GCC which causes the
5517 # driver to exit successfully when the appropriate language module
5518 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5519 # Therefore we must check for the error message as well as an
5520 # unsuccessful exit.
5521 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5522 # given a .adb file, but produce no object file. So we must check
5523 # if an object file was really produced to guard against this.
5524 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5525 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5526 acx_cv_cc_gcc_supports_ada
=yes
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5531 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5533 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5540 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5541 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5542 $as_echo_n "(cached) " >&6
5546 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5547 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5548 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5551 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5554 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5555 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5558 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5565 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5566 do_compare
="$gcc_cv_prog_cmp_skip"
5570 # Check whether --enable-bootstrap was given.
5571 if test "${enable_bootstrap+set}" = set; then :
5572 enableval
=$enable_bootstrap;
5574 enable_bootstrap
=default
5578 # Issue errors and warnings for invalid/strange bootstrap combinations.
5579 if test -r $srcdir/gcc
/configure
; then
5585 case "$have_compiler:$host:$target:$enable_bootstrap" in
5588 # Default behavior. Enable bootstrap if we have a compiler
5589 # and we are in a native configuration.
5590 yes:$build:$build:default
)
5591 enable_bootstrap
=yes ;;
5594 enable_bootstrap
=no
;;
5596 # We have a compiler and we are in a native configuration, bootstrap is ok
5597 yes:$build:$build:yes)
5600 # Other configurations, but we have a compiler. Assume the user knows
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5604 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5607 # No compiler: if they passed --enable-bootstrap explicitly, fail
5609 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5611 # Fail if wrong command line
5613 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5617 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5618 # C++98 compiler can still start the bootstrap.
5619 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5620 CXX
="$CXX -std=gnu++98"
5623 # Check whether --enable-pgo-build was given.
5624 if test "${enable_pgo_build+set}" = set; then :
5625 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
5631 # Issue errors and warnings for invalid/strange PGO build combinations.
5632 case "$have_compiler:$host:$target:$enable_pgo_build" in
5635 # Allow the PGO build only if we aren't building a compiler and
5636 # we are in a native configuration.
5637 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
5639 # Disallow the PGO bootstrap if we are building a compiler.
5640 yes:*:*:yes |
yes:*:*:lto
)
5641 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5644 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
5648 if test "$enable_pgo_build" != "no"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5650 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5651 old_CFLAGS
="$CFLAGS"
5652 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
5653 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5659 if ac_fn_c_try_compile
"$LINENO"; then :
5662 PGO_BUILD_GEN_CFLAGS
=
5664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5665 CFLAGS
="$old_CFLAGS"
5666 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668 $as_echo "yes" >&6; }
5669 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5676 if test "$enable_pgo_build" = "lto"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5678 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5679 old_CFLAGS
="$CFLAGS"
5680 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
5681 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5686 if ac_fn_c_try_compile
"$LINENO"; then :
5689 PGO_BUILD_LTO_CFLAGS
=
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 CFLAGS
="$old_CFLAGS"
5693 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5700 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5708 # Used for setting $lt_cv_objdir
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5710 $as_echo_n "checking for objdir... " >&6; }
5711 if ${lt_cv_objdir+:} false
; then :
5712 $as_echo_n "(cached) " >&6
5714 rm -f .libs
2>/dev
/null
5715 mkdir .libs
2>/dev
/null
5716 if test -d .libs
; then
5719 # MS-DOS does not allow filenames that begin with a dot.
5722 rmdir .libs
2>/dev
/null
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5725 $as_echo "$lt_cv_objdir" >&6; }
5726 objdir
=$lt_cv_objdir
5732 cat >>confdefs.h
<<_ACEOF
5733 #define LT_OBJDIR "$lt_cv_objdir/"
5738 # Check for GMP, MPFR and MPC
5739 gmplibs
="-lmpc -lmpfr -lgmp"
5743 # Specify a location for mpc
5744 # check for this first so it ends up on the link line before mpfr.
5746 # Check whether --with-mpc was given.
5747 if test "${with_mpc+set}" = set; then :
5752 # Check whether --with-mpc-include was given.
5753 if test "${with_mpc_include+set}" = set; then :
5754 withval
=$with_mpc_include;
5758 # Check whether --with-mpc-lib was given.
5759 if test "${with_mpc_lib+set}" = set; then :
5760 withval
=$with_mpc_lib;
5764 if test "x$with_mpc" != x
; then
5765 gmplibs
="-L$with_mpc/lib $gmplibs"
5766 gmpinc
="-I$with_mpc/include $gmpinc"
5768 if test "x$with_mpc_include" != x
; then
5769 gmpinc
="-I$with_mpc_include $gmpinc"
5771 if test "x$with_mpc_lib" != x
; then
5772 gmplibs
="-L$with_mpc_lib $gmplibs"
5774 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
5775 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5776 gmpinc
='-I$$s/mpc/src '"$gmpinc"
5777 # Do not test the mpc version. Assume that it is sufficient, since
5778 # it is in the source tree, and the library has not been built yet
5779 # but it would be included on the link line in the version check below
5780 # hence making the test fail.
5784 # Specify a location for mpfr
5785 # check for this first so it ends up on the link line before gmp.
5787 # Check whether --with-mpfr-dir was given.
5788 if test "${with_mpfr_dir+set}" = set; then :
5789 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
5790 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5795 # Check whether --with-mpfr was given.
5796 if test "${with_mpfr+set}" = set; then :
5801 # Check whether --with-mpfr-include was given.
5802 if test "${with_mpfr_include+set}" = set; then :
5803 withval
=$with_mpfr_include;
5807 # Check whether --with-mpfr-lib was given.
5808 if test "${with_mpfr_lib+set}" = set; then :
5809 withval
=$with_mpfr_lib;
5813 if test "x$with_mpfr" != x
; then
5814 gmplibs
="-L$with_mpfr/lib $gmplibs"
5815 gmpinc
="-I$with_mpfr/include $gmpinc"
5817 if test "x$with_mpfr_include" != x
; then
5818 gmpinc
="-I$with_mpfr_include $gmpinc"
5820 if test "x$with_mpfr_lib" != x
; then
5821 gmplibs
="-L$with_mpfr_lib $gmplibs"
5823 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
5824 # MPFR v3.1.0 moved the sources into a src sub-directory.
5825 if ! test -d ${srcdir}/mpfr
/src
; then
5826 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5828 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5829 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5830 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5831 # Do not test the mpfr version. Assume that it is sufficient, since
5832 # it is in the source tree, and the library has not been built yet
5833 # but it would be included on the link line in the version check below
5834 # hence making the test fail.
5838 # Specify a location for gmp
5840 # Check whether --with-gmp-dir was given.
5841 if test "${with_gmp_dir+set}" = set; then :
5842 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
5843 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5848 # Check whether --with-gmp was given.
5849 if test "${with_gmp+set}" = set; then :
5854 # Check whether --with-gmp-include was given.
5855 if test "${with_gmp_include+set}" = set; then :
5856 withval
=$with_gmp_include;
5860 # Check whether --with-gmp-lib was given.
5861 if test "${with_gmp_lib+set}" = set; then :
5862 withval
=$with_gmp_lib;
5867 if test "x$with_gmp" != x
; then
5868 gmplibs
="-L$with_gmp/lib $gmplibs"
5869 gmpinc
="-I$with_gmp/include $gmpinc"
5871 if test "x$with_gmp_include" != x
; then
5872 gmpinc
="-I$with_gmp_include $gmpinc"
5874 if test "x$with_gmp_lib" != x
; then
5875 gmplibs
="-L$with_gmp_lib $gmplibs"
5877 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
5878 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5879 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5880 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5881 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5882 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5883 # Do not test the gmp version. Assume that it is sufficient, since
5884 # it is in the source tree, and the library has not been built yet
5885 # but it would be included on the link line in the version check below
5886 # hence making the test fail.
5890 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
5892 saved_CFLAGS
="$CFLAGS"
5893 CFLAGS
="$CFLAGS $gmpinc"
5894 # Check for the recommended and required versions of GMP.
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5896 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5904 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5905 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5906 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5914 if ac_fn_c_try_compile
"$LINENO"; then :
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5922 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5923 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5924 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5932 if ac_fn_c_try_compile
"$LINENO"; then :
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5934 $as_echo "yes" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5937 $as_echo "buggy but acceptable" >&6; }
5939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }; have_gmp
=no
5944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5946 # If we have GMP, check the MPFR version.
5947 if test x
"$have_gmp" = xyes
; then
5948 # Check for the recommended and required versions of MPFR.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5950 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5959 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5967 if ac_fn_c_try_compile
"$LINENO"; then :
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5976 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5984 if ac_fn_c_try_compile
"$LINENO"; then :
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5986 $as_echo "yes" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5989 $as_echo "buggy but acceptable" >&6; }
5991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }; have_gmp
=no
5996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5999 # Check for the MPC header version.
6000 if test x
"$have_gmp" = xyes
; then
6001 # Check for the recommended and required versions of MPC.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6003 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6011 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6019 if ac_fn_c_try_compile
"$LINENO"; then :
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6027 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6035 if ac_fn_c_try_compile
"$LINENO"; then :
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6040 $as_echo "buggy but acceptable" >&6; }
6042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }; have_gmp
=no
6047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6050 # Now check the MPFR library.
6051 if test x
"$have_gmp" = xyes
; then
6053 LIBS
="$LIBS $gmplibs"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6055 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6069 mpfr_atan2 (n, n, x, GMP_RNDN);
6070 mpfr_erfc (n, x, GMP_RNDN);
6071 mpfr_subnormalize (x, t, GMP_RNDN);
6075 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6076 mpc_cosh (c, c, MPC_RNDNN);
6077 mpc_pow (c, c, c, MPC_RNDNN);
6078 mpc_acosh (c, c, MPC_RNDNN);
6085 if ac_fn_c_try_link
"$LINENO"; then :
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6087 $as_echo "yes" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }; have_gmp
=no
6092 rm -f core conftest.err conftest.
$ac_objext \
6093 conftest
$ac_exeext conftest.
$ac_ext
6097 CFLAGS
="$saved_CFLAGS"
6099 # The library versions listed in the error message below should match
6100 # the HARD-minimums enforced above.
6101 if test x
$have_gmp != xyes
; then
6102 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6103 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6104 their locations. Source code for these libraries can be found at
6105 their respective hosting sites as well as at
6106 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6107 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6108 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6109 make sure that you have installed both the libraries and the header
6110 files. They may be located in separate packages." "$LINENO" 5
6114 # Flags needed for both GMP, MPFR and/or MPC.
6122 # Libraries to use for stage1 or when not bootstrapping.
6124 # Check whether --with-stage1-libs was given.
6125 if test "${with_stage1_libs+set}" = set; then :
6126 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6129 stage1_libs
=$withval
6137 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6138 # default is yes if gcc is being built; no otherwise. The reason for
6139 # this default is that gdb is sometimes linked against GNU Source
6140 # Highlight, which is a shared library that uses C++ exceptions. In
6141 # this case, -static-libstdc++ will cause crashes.
6143 # Check whether --with-static-standard-libraries was given.
6144 if test "${with_static_standard_libraries+set}" = set; then :
6145 withval
=$with_static_standard_libraries;
6147 with_static_standard_libraries
=auto
6150 if test "$with_static_standard_libraries" = auto
; then
6151 with_static_standard_libraries
=$have_compiler
6154 # Linker flags to use for stage1 or when not bootstrapping.
6156 # Check whether --with-stage1-ldflags was given.
6157 if test "${with_stage1_ldflags+set}" = set; then :
6158 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6161 stage1_ldflags
=$withval
6165 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6166 # if supported. But if the user explicitly specified the libraries to use,
6167 # trust that they are doing what they want.
6168 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6169 -a "$have_static_libs" = yes; then
6170 stage1_ldflags
="-static-libstdc++ -static-libgcc"
6176 # Libraries to use for stage2 and later builds.
6178 # Check whether --with-boot-libs was given.
6179 if test "${with_boot_libs+set}" = set; then :
6180 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6183 poststage1_libs
=$withval
6191 # Linker flags to use for stage2 and later builds.
6193 # Check whether --with-boot-ldflags was given.
6194 if test "${with_boot_ldflags+set}" = set; then :
6195 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6198 poststage1_ldflags
=$withval
6202 # In stages 2 and 3, default to linking libstdc++ and libgcc
6203 # statically. But if the user explicitly specified the libraries to
6204 # use, trust that they are doing what they want.
6205 if test "$poststage1_libs" = ""; then
6206 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
6212 # GCC GRAPHITE dependency isl.
6213 # Basic setup is inlined here, actual checks are in config/isl.m4
6216 # Check whether --with-isl was given.
6217 if test "${with_isl+set}" = set; then :
6222 # Treat --without-isl as a request to disable
6223 # GRAPHITE support and skip all following checks.
6224 if test "x$with_isl" != "xno"; then
6228 # Check whether --with-isl-include was given.
6229 if test "${with_isl_include+set}" = set; then :
6230 withval
=$with_isl_include;
6234 # Check whether --with-isl-lib was given.
6235 if test "${with_isl_lib+set}" = set; then :
6236 withval
=$with_isl_lib;
6240 # Check whether --enable-isl-version-check was given.
6241 if test "${enable_isl_version_check+set}" = set; then :
6242 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
6244 ENABLE_ISL_CHECK
=yes
6248 # Initialize isllibs and islinc.
6257 isllibs
="-L$with_isl/lib"
6258 islinc
="-I$with_isl/include"
6261 if test "x${with_isl_include}" != x
; then
6262 islinc
="-I$with_isl_include"
6264 if test "x${with_isl_lib}" != x
; then
6265 isllibs
="-L$with_isl_lib"
6267 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
6268 && test -d ${srcdir}/isl
; then
6269 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6270 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6273 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6276 isllibs
="${isllibs} -lisl"
6280 if test "${ENABLE_ISL_CHECK}" = yes ; then
6281 _isl_saved_CFLAGS
=$CFLAGS
6282 _isl_saved_LDFLAGS
=$LDFLAGS
6283 _isl_saved_LIBS
=$LIBS
6285 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6286 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6287 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6290 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <isl/schedule.h>
6297 isl_options_set_schedule_serialize_sccs (NULL, 0);
6302 if ac_fn_c_try_link
"$LINENO"; then :
6307 rm -f core conftest.err conftest.
$ac_objext \
6308 conftest
$ac_exeext conftest.
$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6310 $as_echo "$gcc_cv_isl" >&6; }
6312 if test "${gcc_cv_isl}" = no
; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6314 $as_echo "required isl version is 0.15 or later" >&6; }
6317 CFLAGS
=$_isl_saved_CFLAGS
6318 LDFLAGS
=$_isl_saved_LDFLAGS
6319 LIBS
=$_isl_saved_LIBS
6327 if test "x${with_isl}" = xno
; then
6328 graphite_requested
=no
6329 elif test "x${with_isl}" != x \
6330 ||
test "x${with_isl_include}" != x \
6331 ||
test "x${with_isl_lib}" != x
; then
6332 graphite_requested
=yes
6334 graphite_requested
=no
6339 if test "${gcc_cv_isl}" = no
; then
6344 if test "${graphite_requested}" = yes \
6345 && test "x${isllibs}" = x \
6346 && test "x${islinc}" = x
; then
6348 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
6354 # If the isl check failed, disable builds of in-tree variant of isl
6355 if test "x$with_isl" = xno ||
6356 test "x$gcc_cv_isl" = xno
; then
6357 noconfigdirs
="$noconfigdirs isl"
6364 # Check for LTO support.
6365 # Check whether --enable-lto was given.
6366 if test "${enable_lto+set}" = set; then :
6367 enableval
=$enable_lto; enable_lto
=$enableval
6369 enable_lto
=yes; default_enable_lto
=yes
6378 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
6379 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
6380 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
6389 if test $target_elf = yes; then :
6390 # ELF platforms build the lto-plugin always.
6391 build_lto_plugin
=yes
6394 if test x
"$default_enable_lto" = x
"yes" ; then
6396 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
6397 # On other non-ELF platforms, LTO has yet to be validated.
6401 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6402 # It would also be nice to check the binutils support, but we don't
6403 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6404 # warn during gcc/ subconfigure; unless you're bootstrapping with
6405 # -flto it won't be needed until after installation anyway.
6407 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
6408 *) if test x
"$enable_lto" = x
"yes"; then
6409 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
6414 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6415 # Build it unless LTO was explicitly disabled.
6417 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
6424 # Check whether --enable-linker-plugin-configure-flags was given.
6425 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6426 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
6428 extra_linker_plugin_configure_flags
=
6432 # Check whether --enable-linker-plugin-flags was given.
6433 if test "${enable_linker_plugin_flags+set}" = set; then :
6434 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
6436 extra_linker_plugin_flags
=
6441 # Enable --enable-host-shared.
6442 # Checked early to determine whether jit is an 'all' language
6443 # Check whether --enable-host-shared was given.
6444 if test "${enable_host_shared+set}" = set; then :
6445 enableval
=$enable_host_shared; host_shared
=$enableval
6452 # By default, C and C++ are the only stage 1 languages.
6453 stage1_languages
=,c
,
6455 # Target libraries that we bootstrap.
6456 bootstrap_target_libs
=,target-libgcc
,
6458 # Figure out what language subdirectories are present.
6459 # Look if the user specified --enable-languages="..."; if not, use
6460 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6462 # NB: embedded tabs in this IF block -- do not untabify
6463 if test -d ${srcdir}/gcc
; then
6464 if test x
"${enable_languages+set}" != xset
; then
6465 if test x
"${LANGUAGES+set}" = xset
; then
6466 enable_languages
="${LANGUAGES}"
6467 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
6469 enable_languages
=default
6472 if test x
"${enable_languages}" = x ||
6473 test x
"${enable_languages}" = xyes
;
6475 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
6479 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6481 # 'f95' is the old name for the 'fortran' language. We issue a warning
6482 # and make the substitution.
6483 case ,${enable_languages}, in
6485 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
6486 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6490 # If bootstrapping, C++ must be enabled.
6491 case ",$enable_languages,:$enable_bootstrap" in
6494 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
6495 enable_languages
="${enable_languages},c++"
6497 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
6502 # First scan to see if an enabled language requires some other language.
6503 # We assume that a given config-lang.in will list all the language
6504 # front ends it requires, even if some are required indirectly.
6505 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6506 case ${lang_frag} in
6508 # The odd quoting in the next line works around
6509 # an apparent bug in bash 1.12 on linux.
6510 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6512 # From the config-lang.in, get $language, $lang_requires, and
6513 # $lang_requires_boot_languages.
6516 lang_requires_boot_languages
=
6517 # set srcdir during sourcing lang_frag to the gcc dir.
6518 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6519 # polutes this shell
6520 saved_srcdir
=${srcdir}
6521 srcdir
=${srcdir}/gcc .
${lang_frag}
6522 srcdir
=${saved_srcdir}
6523 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
6524 case ,${enable_languages}, in
6529 echo " \`$other' language required by \`$language'; enabling" 1>&2
6530 enable_languages
="${enable_languages},${other}"
6534 for other
in ${lang_requires_boot_languages} ; do
6535 if test "$other" != "c"; then
6536 case ,${enable_stage1_languages}, in
6541 case ,${enable_languages}, in
6543 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6544 enable_stage1_languages
="$enable_stage1_languages,${other}"
6555 new_enable_languages
=,c
,
6557 # If LTO is enabled, add the LTO front end.
6558 if test "$enable_lto" = "yes" ; then
6559 case ,${enable_languages}, in
6561 *) enable_languages
="${enable_languages},lto" ;;
6563 if test "${build_lto_plugin}" = "yes" ; then
6564 configdirs
="$configdirs lto-plugin"
6568 # If we're building an offloading compiler, add the LTO front end.
6569 if test x
"$enable_as_accelerator_for" != x
; then
6570 case ,${enable_languages}, in
6572 *) enable_languages
="${enable_languages},lto" ;;
6576 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6577 potential_languages
=,c
,
6579 enabled_target_libs
=
6580 disabled_target_libs
=
6582 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6583 case ${lang_frag} in
6585 # The odd quoting in the next line works around
6586 # an apparent bug in bash 1.12 on linux.
6587 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6589 # From the config-lang.in, get $language, $target_libs,
6590 # $lang_dirs, $boot_language, and $build_by_default
6596 build_by_default
=yes
6597 # set srcdir during sourcing. See above about save & restore
6598 saved_srcdir
=${srcdir}
6599 srcdir
=${srcdir}/gcc .
${lang_frag}
6600 srcdir
=${saved_srcdir}
6601 if test x
${language} = x
; then
6602 echo "${lang_frag} doesn't set \$language." 1>&2
6606 if test "$language" = "c++"; then
6611 # C is always enabled, so no need to add it again
6612 if test "$language" != "c"; then
6613 case ,${enable_languages}, in
6615 # Language was explicitly selected; include it
6619 # All languages are enabled
6623 # 'default' was selected, select it if it is a default language
6624 add_this_lang
=${build_by_default}
6629 # Disable languages that need other directories if these aren't available.
6630 for i
in $subdir_requires; do
6631 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6632 case ${add_this_lang} in
6634 # Specifically requested language; tell them.
6635 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6639 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6640 add_this_lang
=unsupported
6644 add_this_lang
=unsupported
6649 # Disable Ada if no preexisting GNAT is available.
6650 case ${add_this_lang}:${language}:${have_gnat} in
6652 # Specifically requested language; tell them.
6653 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6657 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6658 add_this_lang
=unsupported
6662 add_this_lang
=unsupported
6666 # Disable jit if -enable-host-shared not specified
6667 case ${add_this_lang}:${language}:${host_shared} in
6669 # PR jit/64780: explicitly specify --enable-host-shared
6671 Enabling language \"jit\" requires --enable-host-shared.
6673 --enable-host-shared typically slows the rest of the compiler down by
6674 a few %, so you must explicitly enable it.
6676 If you want to build both the jit and the regular compiler, it is often
6677 best to do this via two separate configure/builds, in separate
6678 directories, to avoid imposing the performance cost of
6679 --enable-host-shared on the regular compiler." "$LINENO" 5
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6683 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6684 add_this_lang
=unsupported
6688 add_this_lang
=unsupported
6692 # Disable a language that is unsupported by the target.
6693 case "${add_this_lang}: $unsupported_languages " in
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6698 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6699 add_this_lang
=unsupported
6703 case $add_this_lang in
6705 # Remove language-dependent dirs.
6706 disabled_target_libs
="$disabled_target_libs $target_libs"
6707 noconfigdirs
="$noconfigdirs $lang_dirs"
6710 # Remove language-dependent dirs; still show language as supported.
6711 disabled_target_libs
="$disabled_target_libs $target_libs"
6712 noconfigdirs
="$noconfigdirs $lang_dirs"
6713 potential_languages
="${potential_languages}${language},"
6716 new_enable_languages
="${new_enable_languages}${language},"
6717 potential_languages
="${potential_languages}${language},"
6718 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
6719 enabled_target_libs
="$enabled_target_libs $target_libs"
6720 case "${boot_language}:,$enable_stage1_languages," in
6721 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
6722 # Add to (comma-separated) list of stage 1 languages.
6723 case ",$stage1_languages," in
6724 *,$language,* |
,yes, |
,all
,) ;;
6725 *) stage1_languages
="${stage1_languages}${language}," ;;
6727 # We need to bootstrap any supporting libraries.
6728 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
6737 # Add target libraries which are only needed for disabled languages
6739 if test -n "$disabled_target_libs"; then
6740 for dir
in $disabled_target_libs; do
6741 case " $enabled_target_libs " in
6743 *) noconfigdirs
="$noconfigdirs $dir" ;;
6748 # Check whether --enable-stage1-languages was given.
6749 if test "${enable_stage1_languages+set}" = set; then :
6750 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6752 # Set it to something that will have no effect in the loop below
6753 enable_stage1_languages
=c
;;
6755 enable_stage1_languages
=`echo $new_enable_languages | \
6756 sed -e "s/^,//" -e "s/,$//" ` ;;
6758 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
6759 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6762 # Add "good" languages from enable_stage1_languages to stage1_languages,
6763 # while "bad" languages go in missing_languages. Leave no duplicates.
6764 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6765 case $potential_languages in
6767 case $stage1_languages in
6769 *) stage1_languages
="$stage1_languages$i," ;;
6772 case $missing_languages in
6774 *) missing_languages
="$missing_languages$i," ;;
6781 # Remove leading/trailing commas that were added for simplicity
6782 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6783 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6784 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6785 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6787 if test "x$missing_languages" != x
; then
6789 The following requested languages could not be built: ${missing_languages}
6790 Supported languages are: ${potential_languages}" "$LINENO" 5
6792 if test "x$new_enable_languages" != "x$enable_languages"; then
6793 echo The following languages will be built
: ${new_enable_languages}
6794 enable_languages
="$new_enable_languages"
6798 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6801 # Handle --disable-<component> generically.
6802 for dir
in $configdirs $build_configdirs $target_configdirs ; do
6803 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6804 varname
=`echo $dirname | sed -e s/+/_/g`
6805 if eval test x\
${enable_${varname}} "=" xno
; then
6806 noconfigdirs
="$noconfigdirs $dir"
6810 # Check for Boehm's garbage collector
6811 # Check whether --enable-objc-gc was given.
6812 if test "${enable_objc_gc+set}" = set; then :
6813 enableval
=$enable_objc_gc;
6817 # Check whether --with-target-bdw-gc was given.
6818 if test "${with_target_bdw_gc+set}" = set; then :
6819 withval
=$with_target_bdw_gc;
6823 # Check whether --with-target-bdw-gc-include was given.
6824 if test "${with_target_bdw_gc_include+set}" = set; then :
6825 withval
=$with_target_bdw_gc_include;
6829 # Check whether --with-target-bdw-gc-lib was given.
6830 if test "${with_target_bdw_gc_lib+set}" = set; then :
6831 withval
=$with_target_bdw_gc_lib;
6835 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6837 $as_echo_n "checking for bdw garbage collector... " >&6; }
6838 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6840 $as_echo "using bdw-gc in default locations" >&6; }
6842 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
6843 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6844 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
6845 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6848 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6853 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6854 case ,${enable_languages}, in
6856 # Disable libitm, libsanitizer if we're not building libstdc++
6857 case "${noconfigdirs}" in
6858 *target-libstdc
++-v3*)
6859 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
6865 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6869 # If gcc/ is not in the source tree then we'll not be building a
6870 # target compiler, assume in that case we don't want to build any
6871 # target libraries or tools.
6873 # This was added primarily for the benefit for binutils-gdb who reuse
6874 # this configure script, but don't always have target tools available.
6875 if test ! -d ${srcdir}/gcc
; then
6876 skipdirs
="${skipdirs} ${target_configdirs}"
6879 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6880 # $build_configdirs and $target_configdirs.
6881 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6884 for dir
in .
$skipdirs $noconfigdirs ; do
6885 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6886 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6887 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6888 if test -r $srcdir/$dirname/configure
; then
6889 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6892 notsupp
="$notsupp $dir"
6896 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6897 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6898 if test -r $srcdir/$dirname/configure
; then
6899 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6902 notsupp
="$notsupp $dir"
6906 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6907 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6908 if test -r $srcdir/$dirname/configure
; then
6909 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6912 notsupp
="$notsupp $dir"
6918 # Quietly strip out all directories which aren't configurable in this tree.
6919 # This relies on all configurable subdirectories being autoconfiscated, which
6921 build_configdirs_all
="$build_configdirs"
6923 for i
in ${build_configdirs_all} ; do
6924 j
=`echo $i | sed -e s/build-//g`
6925 if test -f ${srcdir}/$j/configure
; then
6926 build_configdirs
="${build_configdirs} $i"
6930 configdirs_all
="$configdirs"
6932 for i
in ${configdirs_all} ; do
6933 if test -f ${srcdir}/$i/configure
; then
6934 configdirs
="${configdirs} $i"
6938 target_configdirs_all
="$target_configdirs"
6940 for i
in ${target_configdirs_all} ; do
6941 j
=`echo $i | sed -e s/target-//g`
6942 if test -f ${srcdir}/$j/configure
; then
6943 target_configdirs
="${target_configdirs} $i"
6947 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6948 # so we have to add it after the preceding checks.
6949 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6951 case " $configdirs " in
6953 # If we can build libiberty, we can also build libiberty-linker-plugin.
6954 configdirs
="$configdirs libiberty-linker-plugin"
6955 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
6956 --with-libiberty=../libiberty-linker-plugin";;
6958 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
6962 # Sometimes we have special requirements for the host libiberty.
6963 extra_host_libiberty_configure_flags
=
6964 extra_host_zlib_configure_flags
=
6965 case " $configdirs " in
6966 *" lto-plugin "* |
*" libcc1 "*)
6967 # When these are to be built as shared libraries, the same applies to
6969 extra_host_libiberty_configure_flags
=--enable-shared
6972 # When bfd is to be built as a shared library, the same applies to
6974 if test "$enable_shared" = "yes"; then
6975 extra_host_zlib_configure_flags
=--enable-host-shared
6982 # Produce a warning message for the subdirs we can't configure.
6983 # This isn't especially interesting in the Cygnus tree, but in the individual
6984 # FSF releases, it's important to let people know when their machine isn't
6985 # supported by the one or two programs in a package.
6987 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6988 # If $appdirs is non-empty, at least one of those directories must still
6989 # be configured, or we error out. (E.g., if the gas release supports a
6990 # specified target in some subdirs but not the gas subdir, we shouldn't
6991 # pretend that all is well.)
6992 if test -n "$appdirs" ; then
6993 for dir
in $appdirs ; do
6994 if test -r $dir/Makefile.
in ; then
6995 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6999 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
7005 if test -n "$appdirs" ; then
7006 echo "*** This configuration is not supported by this package." 1>&2
7010 # Okay, some application will build, or we don't care to check. Still
7011 # notify of subdirs not getting built.
7012 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7013 echo " ${notsupp}" 1>&2
7014 echo " (Any other directories should still work fine.)" 1>&2
7022 # To find our prefix, in gcc_cv_tool_prefix.
7024 # The user is always right.
7025 if test "${PATH_SEPARATOR+set}" != set; then
7026 echo "#! /bin/sh" >conf$$.sh
7027 echo "exit 0" >>conf$$.sh
7029 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7038 get_gcc_base_ver
="cat"
7040 # Check whether --with-gcc-major-version-only was given.
7041 if test "${with_gcc_major_version_only+set}" = set; then :
7042 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
7043 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
7053 if test "x$exec_prefix" = xNONE
; then
7054 if test "x$prefix" = xNONE
; then
7055 gcc_cv_tool_prefix
=$ac_default_prefix
7057 gcc_cv_tool_prefix
=$prefix
7060 gcc_cv_tool_prefix
=$exec_prefix
7063 # If there is no compiler in the tree, use the PATH only. In any
7064 # case, if there is no compiler in the tree nobody should use
7065 # AS_FOR_TARGET and LD_FOR_TARGET.
7066 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
7067 if test x
$with_gcc_major_version_only = xyes
; then
7068 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7070 gcc_version
=`cat $srcdir/gcc/BASE-VER`
7072 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7073 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7074 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7075 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7076 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7077 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7082 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
7083 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7091 # Check whether --with-build-sysroot was given.
7092 if test "${with_build_sysroot+set}" = set; then :
7093 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7094 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7097 SYSROOT_CFLAGS_FOR_TARGET
=
7103 # Check whether --with-debug-prefix-map was given.
7104 if test "${with_debug_prefix_map+set}" = set; then :
7105 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
7106 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
7107 for debug_map
in $withval; do
7108 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7112 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
7117 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7118 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7119 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7120 # We want to ensure that TARGET libraries (which we know are built with
7121 # gcc) are built with "-O2 -g", so include those options when setting
7122 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7123 if test "x$CFLAGS_FOR_TARGET" = x
; then
7124 if test "x${is_cross_compiler}" = xyes
; then
7125 CFLAGS_FOR_TARGET
="-g -O2"
7127 CFLAGS_FOR_TARGET
=$CFLAGS
7130 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
7133 *" -g "* |
*" -g3 "*) ;;
7134 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
7140 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
7141 if test "x${is_cross_compiler}" = xyes
; then
7142 CXXFLAGS_FOR_TARGET
="-g -O2"
7144 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
7145 case " $CXXFLAGS " in
7147 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
7149 case " $CXXFLAGS " in
7150 *" -g "* |
*" -g3 "*) ;;
7151 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
7159 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7160 # the named directory are copied to $(tooldir)/sys-include.
7161 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
7162 if test x
${is_cross_compiler} = xno
; then
7163 echo 1>&2 '***' --with-headers is only supported when cross compiling
7166 if test x
"${with_headers}" != xyes
; then
7167 x
=${gcc_cv_tool_prefix}
7168 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7172 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7173 # the name directories are copied to $(tooldir)/lib. Multiple directories
7175 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
7176 if test x
${is_cross_compiler} = xno
; then
7177 echo 1>&2 '***' --with-libs is only supported when cross compiling
7180 if test x
"${with_libs}" != xyes
; then
7181 # Copy the libraries in reverse order, so that files in the first named
7182 # library override files in subsequent libraries.
7183 x
=${gcc_cv_tool_prefix}
7184 for l
in ${with_libs}; do
7185 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7190 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7192 # This is done by determining whether or not the appropriate directory
7193 # is available, and by checking whether or not specific configurations
7194 # have requested that this magic not happen.
7196 # The command line options always override the explicit settings in
7197 # configure.ac, and the settings in configure.ac override this magic.
7199 # If the default for a toolchain is to use GNU as and ld, and you don't
7200 # want to do that, then you should use the --without-gnu-as and
7201 # --without-gnu-ld options for the configure script. Similarly, if
7202 # the default is to use the included zlib and you don't want to do that,
7203 # you should use the --with-system-zlib option for the configure script.
7205 if test x
${use_gnu_as} = x
&&
7206 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
7208 extra_host_args
="$extra_host_args --with-gnu-as"
7211 if test x
${use_gnu_ld} = x
&&
7212 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
7214 extra_host_args
="$extra_host_args --with-gnu-ld"
7217 if test x
${use_included_zlib} = x
&&
7218 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
7221 with_system_zlib
=yes
7222 extra_host_args
="$extra_host_args --with-system-zlib"
7225 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7226 # can detect this case.
7228 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
7230 extra_host_args
="$extra_host_args --with-newlib"
7233 # Handle ${copy_dirs}
7234 set fnord
${copy_dirs}
7236 while test $# != 0 ; do
7237 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
7240 echo Copying
$1 to
$2
7242 # Use the install script to create the directory and all required
7243 # parent directories.
7244 if test -d $2 ; then
7248 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
7251 # Copy the directory, assuming we have tar.
7252 # FIXME: Should we use B in the second tar? Not all systems support it.
7253 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
7255 # It is the responsibility of the user to correctly adjust all
7256 # symlinks. If somebody can figure out how to handle them correctly
7257 # here, feel free to add the code.
7264 # Determine a target-dependent exec_prefix that the installed
7265 # gcc will search in. Keep this list sorted by triplet, with
7266 # the *-*-osname triplets last.
7269 i
[34567]86-pc-msdosdjgpp*)
7270 md_exec_prefix
=/dev
/env
/DJDIR
/bin
7275 md_exec_prefix
=/usr
/ccs
/bin
7279 extra_arflags_for_target
=
7280 extra_nmflags_for_target
=
7281 extra_ranlibflags_for_target
=
7282 target_makefile_frag
=/dev
/null
7285 target_makefile_frag
="config/mt-spu"
7287 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
7288 target_makefile_frag
="config/mt-sde"
7290 mipsisa
*-*-elfoabi*)
7291 target_makefile_frag
="config/mt-mips-elfoabi"
7293 mips
*-*-*linux
* | mips
*-*-gnu*)
7294 target_makefile_frag
="config/mt-mips-gnu"
7297 target_makefile_frag
="config/mt-nios2-elf"
7300 target_makefile_frag
="config/mt-android"
7302 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
7303 target_makefile_frag
="config/mt-gnu"
7305 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
7306 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7307 # commands to handle both 32-bit and 64-bit objects. These flags are
7308 # harmless if we're using GNU nm or ar.
7309 extra_arflags_for_target
=" -X32_64"
7310 extra_nmflags_for_target
=" -B -X32_64"
7314 alphaieee_frag
=/dev
/null
7317 # This just makes sure to use the -mieee option to build target libs.
7318 # This should probably be set individually by each library.
7319 alphaieee_frag
="config/mt-alphaieee"
7323 # If --enable-target-optspace always use -Os instead of -O2 to build
7324 # the target libraries, similarly if it is not specified, use -Os
7325 # on selected platforms.
7326 ospace_frag
=/dev
/null
7327 case "${enable_target_optspace}:${target}" in
7329 ospace_frag
="config/mt-ospace"
7332 ospace_frag
="config/mt-d30v"
7334 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
7335 ospace_frag
="config/mt-ospace"
7340 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7344 # Some systems (e.g., one of the i386-aix systems the gas testers are
7345 # using) don't handle "\$" correctly, so don't use it here.
7346 tooldir
='${exec_prefix}'/${target_noncanonical}
7347 build_tooldir
=${tooldir}
7349 # Create a .gdbinit file which runs the one in srcdir
7350 # and tells GDB to look there for source files.
7352 if test -r ${srcdir}/.gdbinit
; then
7355 *) cat > .
/.gdbinit
<<EOF
7359 source ${srcdir}/.gdbinit
7365 # Make sure that the compiler is able to generate an executable. If it
7366 # can't, we are probably in trouble. We don't care whether we can run the
7367 # executable--we might be using a cross compiler--we only care whether it
7368 # can be created. At this point the main configure script has set CC.
7370 echo "int main () { return 0; }" > conftest.c
7371 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7372 if test $?
= 0 ; then
7373 if test -s conftest ||
test -s conftest.exe
; then
7379 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7380 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7387 # Decide which environment variable is used to find dynamic libraries.
7389 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
7390 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
7391 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
7392 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
7395 # On systems where the dynamic library environment variable is PATH,
7396 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7397 # built executables to PATH.
7398 if test "$RPATH_ENVVAR" = PATH
; then
7399 GCC_SHLIB_SUBDIR
=/shlib
7404 # Adjust the toplevel makefile according to whether bootstrap was selected.
7405 case $enable_bootstrap in
7407 bootstrap_suffix
=bootstrap
7408 BUILD_CONFIG
=bootstrap-debug
7411 bootstrap_suffix
=no-bootstrap
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7417 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7420 # Check whether --with-build-config was given.
7421 if test "${with_build_config+set}" = set; then :
7422 withval
=$with_build_config; case $with_build_config in
7423 yes) with_build_config
= ;;
7424 no
) with_build_config
= BUILD_CONFIG
= ;;
7429 if test "x${with_build_config}" != x
; then
7430 BUILD_CONFIG
=$with_build_config
7432 case $BUILD_CONFIG in
7434 if echo "int f (void) { return 0; }" > conftest.c
&&
7435 ${CC} -c conftest.c
&&
7436 mv conftest.o conftest.o.g0
&&
7437 ${CC} -c -g conftest.c
&&
7438 mv conftest.o conftest.o.g
&&
7439 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
7444 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7449 $as_echo "$BUILD_CONFIG" >&6; }
7452 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7454 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7455 # Check whether --enable-vtable-verify was given.
7456 if test "${enable_vtable_verify+set}" = set; then :
7457 enableval
=$enable_vtable_verify; case "$enableval" in
7458 yes) enable_vtable_verify
=yes ;;
7459 no
) enable_vtable_verify
=no
;;
7460 *) enable_vtable_verify
=no
;;
7463 enable_vtable_verify
=no
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7467 $as_echo "$enable_vtable_verify" >&6; }
7469 # Record target_configdirs and the configure arguments for target and
7470 # build configuration in Makefile.
7471 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7472 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7473 bootstrap_fixincludes
=no
7475 # If we are building libgomp, bootstrap it.
7476 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
7477 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
7480 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7481 # or bootstrap-ubsan, bootstrap it.
7482 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
7483 case "$BUILD_CONFIG" in
7484 *bootstrap-asan
* |
*bootstrap-ubsan
* )
7485 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
7486 bootstrap_fixincludes
=yes
7491 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7492 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
7493 test "$enable_vtable_verify" != no
; then
7494 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
7497 # Determine whether gdb needs tk/tcl or not.
7498 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7499 # and in that case we want gdb to be built without tk. Ugh!
7500 # In fact I believe gdb is the *only* package directly dependent on tk,
7501 # so we should be able to put the 'maybe's in unconditionally and
7502 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7503 # 100% sure that that's safe though.
7505 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7506 case "$enable_gdbtk" in
7510 GDB_TK
="${gdb_tk}" ;;
7512 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7513 # distro. Eventually someone will fix this and move Insight, nee
7514 # gdbtk to a separate directory.
7515 if test -d ${srcdir}/gdb
/gdbtk
; then
7522 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7523 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7525 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7526 # else does, only include them if one of these is built. The Makefile
7527 # provides the ordering, so it's enough here to add to the list.
7528 case " ${configdirs} " in
7530 configdirs
="${configdirs} gnulib gdbsupport"
7533 configdirs
="${configdirs} gnulib gdbsupport"
7536 configdirs
="${configdirs} gnulib"
7540 # Strip out unwanted targets.
7542 # While at that, we remove Makefiles if we were started for recursive
7543 # configuration, so that the top-level Makefile reconfigures them,
7544 # like we used to do when configure itself was recursive.
7546 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7547 # but now we're fixing up the Makefile ourselves with the additional
7548 # commands passed to AC_CONFIG_FILES. Use separate variables
7549 # extrasub-{build,host,target} not because there is any reason to split
7550 # the substitutions up that way, but only to remain below the limit of
7551 # 99 commands in a script, for HP-UX sed.
7553 # Do not nest @if/@endif or @unless/@endunless pairs, because
7554 # configure will not warn you at all.
7556 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7557 yes:yes:*\ gold\
*:*,c
++,*) ;;
7558 yes:yes:*\ gold\
*:*)
7559 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7564 for module
in ${build_configdirs} ; do
7565 if test -z "${no_recursion}" \
7566 && test -f ${build_subdir}/${module}/Makefile
; then
7567 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7568 rm -f ${build_subdir}/${module}/Makefile
7570 extrasub_build
="$extrasub_build
7571 /^@if build-$module\$/d
7572 /^@endif build-$module\$/d
7573 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7574 /^@if build-$module-$bootstrap_suffix\$/d
7575 /^@endif build-$module-$bootstrap_suffix\$/d
7576 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7579 for module
in ${configdirs} ; do
7580 if test -z "${no_recursion}"; then
7581 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
7582 if test -f ${file}; then
7583 echo 1>&2 "*** removing ${file} to force reconfigure"
7588 case ${module},${bootstrap_fixincludes} in
7589 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
7590 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
7592 extrasub_host
="$extrasub_host
7594 /^@endif $module\$/d
7595 /^@unless $module\$/,/^@endunless $module\$/d
7596 /^@if $module-$host_bootstrap_suffix\$/d
7597 /^@endif $module-$host_bootstrap_suffix\$/d
7598 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7601 for module
in ${target_configdirs} ; do
7602 if test -z "${no_recursion}" \
7603 && test -f ${target_subdir}/${module}/Makefile
; then
7604 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7605 rm -f ${target_subdir}/${module}/Makefile
7608 # We only bootstrap target libraries listed in bootstrap_target_libs.
7609 case $bootstrap_target_libs in
7610 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
7611 *) target_bootstrap_suffix
=no-bootstrap
;;
7614 extrasub_target
="$extrasub_target
7615 /^@if target-$module\$/d
7616 /^@endif target-$module\$/d
7617 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7618 /^@if target-$module-$target_bootstrap_suffix\$/d
7619 /^@endif target-$module-$target_bootstrap_suffix\$/d
7620 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7623 # Do the final fixup along with target modules.
7624 extrasub_target
="$extrasub_target
7629 if test "$enable_pgo_build" != "no"; then
7630 extrasub_build
="$extrasub_build
7632 /^@endif pgo-build\$/d"
7635 # Create the serialization dependencies. This uses a temporary file.
7637 # Check whether --enable-serial-configure was given.
7638 if test "${enable_serial_configure+set}" = set; then :
7639 enableval
=$enable_serial_configure;
7643 case ${enable_serial_configure} in
7645 enable_serial_build_configure
=yes
7646 enable_serial_host_configure
=yes
7647 enable_serial_target_configure
=yes
7651 # These force 'configure's to be done one at a time, to avoid problems
7652 # with contention over a shared config.cache.
7654 echo '# serdep.tmp' > serdep.tmp
7656 test "x${enable_serial_build_configure}" = xyes
&&
7657 for item
in ${build_configdirs} ; do
7660 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
7665 test "x${enable_serial_host_configure}" = xyes
&&
7666 for item
in ${configdirs} ; do
7669 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
7674 test "x${enable_serial_target_configure}" = xyes
&&
7675 for item
in ${target_configdirs} ; do
7678 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
7682 serialization_dependencies
=serdep.tmp
7685 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7686 # target, nonopt, and variable assignments. These are the ones we
7687 # might not want to pass down to subconfigures. The exception being
7688 # --cache-file=/dev/null, which is used to turn off the use of cache
7689 # files altogether, and which should be passed on to subconfigures.
7690 # Also strip program-prefix, program-suffix, and program-transform-name,
7691 # so that we can pass down a consistent program-transform-name.
7696 eval "set -- $ac_configure_args"
7699 if test X
"$skip_next" = X
"yes"; then
7703 if test X
"$keep_next" = X
"yes"; then
7706 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7708 baseargs
="$baseargs '$ac_arg'"
7709 tbaseargs
="$tbaseargs '$ac_arg'"
7714 # Handle separated arguments. Based on the logic generated by
7717 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
7718 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
7719 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
7720 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
7734 --with-* |
--without-*)
7735 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7739 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
7742 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
7751 mpc | mpfr | gmp | isl
)
7752 # If we're processing --with-$lib, --with-$lib-include or
7753 # --with-$lib-lib, for one of the libs above, and target is
7754 # different from host, don't pass the current argument to any
7755 # target library's configure.
7756 if test x
$is_cross_compiler = xyes
; then
7765 --cache-file=/dev
/null | \
7766 -cache-file=/dev
/null
)
7767 # Handled here to avoid the test to skip args below.
7768 baseargs
="$baseargs '$ac_arg'"
7769 tbaseargs
="$tbaseargs '$ac_arg'"
7770 # Assert: $separate_arg should always be no.
7771 keep_next
=$separate_arg
7787 -program-prefix* | \
7788 -program-suffix* | \
7789 -program-transform-name* )
7790 skip_next
=$separate_arg
7794 # An option. Add it.
7797 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7799 baseargs
="$baseargs '$ac_arg'"
7800 if test X
"$skip_targ" = Xno
; then
7801 tbaseargs
="$tbaseargs '$ac_arg'"
7803 keep_next
=$separate_arg
7806 # Either a variable assignment, or a nonopt (triplet). Don't
7807 # pass it down; let the Makefile handle this.
7812 # Remove the initial space we just introduced and, as these will be
7813 # expanded by make, quote '$'.
7814 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7816 # Add in --program-transform-name, after --program-prefix and
7817 # --program-suffix have been applied to it. Autoconf has already
7818 # doubled dollar signs and backslashes in program_transform_name; we want
7819 # the backslashes un-doubled, and then the entire thing wrapped in single
7820 # quotes, because this will be expanded first by make and then by the shell.
7821 # Also, because we want to override the logic in subdir configure scripts to
7822 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7823 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7824 ${program_transform_name}
7826 gcc_transform_name
=`cat conftestsed.out`
7827 rm -f conftestsed.out
7828 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
7829 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7830 if test "$silent" = yes; then
7831 baseargs
="$baseargs --silent"
7832 tbaseargs
="$tbaseargs --silent"
7834 baseargs
="$baseargs --disable-option-checking"
7835 tbaseargs
="$tbaseargs --disable-option-checking"
7837 # Record and document user additions to sub configure arguments.
7842 # For the build-side libraries, we just need to pretend we're native,
7843 # and not use the same cache file. Multilibs are neither needed nor
7844 # desired. We can't even use the same cache file for all build-side
7845 # libraries, as they're compiled differently; some with C, some with
7846 # C++ or with different feature-enabling options.
7847 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
7849 # For host modules, accept cache file option, or specification as blank.
7850 case "${cache_file}" in
7852 cache_file_option
="" ;;
7853 /* |
[A-Za-z
]:[\\/]* ) # absolute path
7854 cache_file_option
="--cache-file=${cache_file}" ;;
7856 cache_file_option
="--cache-file=../${cache_file}" ;;
7859 # Host dirs don't like to share a cache file either, horribly enough.
7860 # This seems to be due to autoconf 2.5x stupidity.
7861 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7863 target_configargs
="$target_configargs ${tbaseargs}"
7865 # Passing a --with-cross-host argument lets the target libraries know
7866 # whether they are being built with a cross-compiler or being built
7867 # native. However, it would be better to use other mechanisms to make the
7868 # sorts of decisions they want to make on this basis. Please consider
7869 # this option to be deprecated. FIXME.
7870 if test x
${is_cross_compiler} = xyes
; then
7871 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
7874 # Special user-friendly check for native x86_64-linux build, if
7875 # multilib is not explicitly enabled.
7876 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7877 x86_64-
*linux
*:yes:$build:$build:)
7878 # Make sure we have a development environment that handles 32-bit
7880 echo "int main () { return 0; }" > conftest.c
7881 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7882 if test $?
= 0 ; then
7883 if test -s conftest ||
test -s conftest.exe
; then
7888 if test x
${dev64} != xyes
; then
7889 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
7894 # Default to --enable-multilib.
7895 if test x
${enable_multilib} = x
; then
7896 target_configargs
="--enable-multilib ${target_configargs}"
7899 # Pass --with-newlib if appropriate. Note that target_configdirs has
7900 # changed from the earlier setting of with_newlib.
7901 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
7902 target_configargs
="--with-newlib ${target_configargs}"
7905 # Different target subdirs use different values of certain variables
7906 # (notably CXX). Worse, multilibs use *lots* of different values.
7907 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7908 # it doesn't automatically accept command-line overrides of them.
7909 # This means it's not safe for target subdirs to share a cache file,
7910 # which is disgusting, but there you have it. Hopefully this can be
7911 # fixed in future. It's still worthwhile to use a cache file for each
7912 # directory. I think.
7914 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7915 # We need to pass --target, as newer autoconf's requires consistency
7916 # for target_alias and gcc doesn't manage it consistently.
7917 target_configargs
="--cache-file=./config.cache ${target_configargs}"
7920 case " $target_configdirs " in
7922 case " $target_configargs " in
7923 *" --with-newlib "*)
7926 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7930 # If we're not building GCC, don't discard standard headers.
7931 if test -d ${srcdir}/gcc
; then
7932 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
7934 if test "${build}" != "${host}"; then
7935 # On Canadian crosses, CC_FOR_TARGET will have already been set
7936 # by `configure', so we won't have an opportunity to add -Bgcc/
7937 # to it. This is right: we don't want to search that directory
7938 # for binaries, but we want the header files in there, so add
7940 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7942 # Someone might think of using the pre-installed headers on
7943 # Canadian crosses, in case the installed compiler is not fully
7944 # compatible with the compiler being built. In this case, it
7945 # would be better to flag an error than risking having
7946 # incompatible object files being constructed. We can't
7947 # guarantee that an error will be flagged, but let's hope the
7948 # compiler will do it, when presented with incompatible header
7953 case "${target}-${is_cross_compiler}" in
7954 i
[3456789]86-*-linux*-no)
7955 # Here host == target, so we don't need to build gcc,
7956 # so we don't want to discard standard headers.
7957 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7960 # If we're building newlib, use its generic headers last, but search
7961 # for any libc-related directories first (so make it the last -B
7963 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7965 # If we're building libgloss, find the startup file, simulator library
7966 # and linker script.
7967 case " $target_configdirs " in
7969 # Look for startup file, simulator library and maybe linker script.
7970 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7971 # Look for libnosys.a in case the target needs it.
7972 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7973 # Most targets have the linker script in the source directory.
7974 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7985 x86_64-
*mingw
* |
*-w64-mingw*)
7986 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7987 # however, use a symlink named 'mingw' in ${prefix} .
7988 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7991 # MinGW can't be handled as Cygwin above since it does not use newlib.
7992 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'
7996 # Allow the user to override the flags for
7997 # our build compiler if desired.
7998 if test x
"${build}" = x
"${host}" ; then
7999 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
8000 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8001 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8004 # On Canadian crosses, we'll be searching the right directories for
8005 # the previously-installed cross compiler, so don't bother to add
8006 # flags for directories within the install tree of the compiler
8007 # being built; programs in there won't even run.
8008 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8009 # Search for pre-installed headers if nothing else fits.
8010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8013 if test "x
${use_gnu_ld}" = x &&
8014 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
8015 # Arrange for us to find uninstalled linker scripts.
8016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8019 # Search for other target-specific linker scripts and such.
8022 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8026 # Makefile fragments.
8027 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8029 eval fragval=\$$frag
8030 if test $fragval != /dev/null; then
8031 eval $frag=${srcdir}/$fragval
8039 # Miscellanea: directories, flags, etc.
8048 # Build module lists & subconfigure args.
8052 # Host module lists & subconfigure args.
8057 # Target module lists & subconfigure args.
8078 # Generate default definitions for YACC, M4, LEX and other programs that run
8079 # on the build machine. These are used if the Makefile can't locate these
8080 # programs in objdir.
8081 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8083 for ac_prog in 'bison -y' byacc yacc
8085 # Extract the first word of "$ac_prog", so it can be a program name with args.
8086 set dummy $ac_prog; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8088 $as_echo_n "checking
for $ac_word...
" >&6; }
8089 if ${ac_cv_prog_YACC+:} false; then :
8090 $as_echo_n "(cached
) " >&6
8092 if test -n "$YACC"; then
8093 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_YACC="$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8112 YACC=$ac_cv_prog_YACC
8113 if test -n "$YACC"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
8115 $as_echo "$YACC" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8118 $as_echo "no
" >&6; }
8122 test -n "$YACC" && break
8124 test -n "$YACC" || YACC="$MISSING bison
-y"
8126 case " $build_configdirs " in
8127 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8130 for ac_prog in bison
8132 # Extract the first word of "$ac_prog", so it can be a program name with args.
8133 set dummy $ac_prog; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8135 $as_echo_n "checking
for $ac_word...
" >&6; }
8136 if ${ac_cv_prog_BISON+:} false; then :
8137 $as_echo_n "(cached
) " >&6
8139 if test -n "$BISON"; then
8140 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_BISON="$ac_prog"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8159 BISON=$ac_cv_prog_BISON
8160 if test -n "$BISON"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
8162 $as_echo "$BISON" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8165 $as_echo "no
" >&6; }
8169 test -n "$BISON" && break
8171 test -n "$BISON" || BISON="$MISSING bison
"
8173 case " $build_configdirs " in
8174 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8177 for ac_prog in gm4 gnum4 m4
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8182 $as_echo_n "checking
for $ac_word...
" >&6; }
8183 if ${ac_cv_prog_M4+:} false; then :
8184 $as_echo_n "(cached
) " >&6
8186 if test -n "$M4"; then
8187 ac_cv_prog_M4="$M4" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_M4="$ac_prog"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8207 if test -n "$M4"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
8209 $as_echo "$M4" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8212 $as_echo "no
" >&6; }
8216 test -n "$M4" && break
8218 test -n "$M4" || M4="$MISSING m4"
8220 case " $build_configdirs " in
8221 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8224 for ac_prog in flex lex
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8229 $as_echo_n "checking
for $ac_word...
" >&6; }
8230 if ${ac_cv_prog_LEX+:} false; then :
8231 $as_echo_n "(cached
) " >&6
8233 if test -n "$LEX"; then
8234 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_LEX="$ac_prog"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8254 if test -n "$LEX"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
8256 $as_echo "$LEX" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8259 $as_echo "no
" >&6; }
8263 test -n "$LEX" && break
8265 test -n "$LEX" || LEX="$MISSING flex
"
8267 case " $build_configdirs " in
8268 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8269 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8274 # Extract the first word of "$ac_prog", so it can be a program name with args.
8275 set dummy $ac_prog; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8277 $as_echo_n "checking
for $ac_word...
" >&6; }
8278 if ${ac_cv_prog_FLEX+:} false; then :
8279 $as_echo_n "(cached
) " >&6
8281 if test -n "$FLEX"; then
8282 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_FLEX="$ac_prog"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8301 FLEX=$ac_cv_prog_FLEX
8302 if test -n "$FLEX"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
8304 $as_echo "$FLEX" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8307 $as_echo "no
" >&6; }
8311 test -n "$FLEX" && break
8313 test -n "$FLEX" || FLEX="$MISSING flex
"
8315 case " $build_configdirs " in
8316 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8319 for ac_prog in makeinfo
8321 # Extract the first word of "$ac_prog", so it can be a program name with args.
8322 set dummy $ac_prog; ac_word=$2
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8324 $as_echo_n "checking
for $ac_word...
" >&6; }
8325 if ${ac_cv_prog_MAKEINFO+:} false; then :
8326 $as_echo_n "(cached
) " >&6
8328 if test -n "$MAKEINFO"; then
8329 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338 ac_cv_prog_MAKEINFO="$ac_prog"
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8348 MAKEINFO=$ac_cv_prog_MAKEINFO
8349 if test -n "$MAKEINFO"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
8351 $as_echo "$MAKEINFO" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8354 $as_echo "no
" >&6; }
8358 test -n "$MAKEINFO" && break
8360 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
8362 case " $build_configdirs " in
8363 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8366 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8367 # higher, else we use the "missing
" dummy.
8368 if ${MAKEINFO} --version \
8369 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8372 MAKEINFO="$MISSING makeinfo
"
8378 # FIXME: expect and dejagnu may become build tools?
8380 for ac_prog in expect
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8385 $as_echo_n "checking
for $ac_word...
" >&6; }
8386 if ${ac_cv_prog_EXPECT+:} false; then :
8387 $as_echo_n "(cached
) " >&6
8389 if test -n "$EXPECT"; then
8390 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399 ac_cv_prog_EXPECT="$ac_prog"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8409 EXPECT=$ac_cv_prog_EXPECT
8410 if test -n "$EXPECT"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
8412 $as_echo "$EXPECT" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8415 $as_echo "no
" >&6; }
8419 test -n "$EXPECT" && break
8421 test -n "$EXPECT" || EXPECT="expect
"
8423 case " $configdirs " in
8425 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8429 for ac_prog in runtest
8431 # Extract the first word of "$ac_prog", so it can be a program name with args.
8432 set dummy $ac_prog; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8434 $as_echo_n "checking
for $ac_word...
" >&6; }
8435 if ${ac_cv_prog_RUNTEST+:} false; then :
8436 $as_echo_n "(cached
) " >&6
8438 if test -n "$RUNTEST"; then
8439 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_RUNTEST="$ac_prog"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8458 RUNTEST=$ac_cv_prog_RUNTEST
8459 if test -n "$RUNTEST"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
8461 $as_echo "$RUNTEST" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8464 $as_echo "no
" >&6; }
8468 test -n "$RUNTEST" && break
8470 test -n "$RUNTEST" || RUNTEST="runtest
"
8472 case " $configdirs " in
8474 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8481 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8482 ncn_target_tool_prefix=
8483 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8487 if test -n "$AR"; then
8489 elif test -n "$ac_cv_prog_AR"; then
8493 if test -n "$ac_cv_prog_AR"; then
8494 for ncn_progname in ar; do
8495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8496 set dummy ${ncn_progname}; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8498 $as_echo_n "checking
for $ac_word...
" >&6; }
8499 if ${ac_cv_prog_AR+:} false; then :
8500 $as_echo_n "(cached
) " >&6
8502 if test -n "$AR"; then
8503 ac_cv_prog_AR="$AR" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_AR="${ncn_progname}"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8523 if test -n "$AR"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8525 $as_echo "$AR" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8528 $as_echo "no
" >&6; }
8535 for ncn_progname in ar; do
8536 if test -n "$ncn_tool_prefix"; then
8537 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8538 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8540 $as_echo_n "checking
for $ac_word...
" >&6; }
8541 if ${ac_cv_prog_AR+:} false; then :
8542 $as_echo_n "(cached
) " >&6
8544 if test -n "$AR"; then
8545 ac_cv_prog_AR="$AR" # Let the user override the test.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8565 if test -n "$AR"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8567 $as_echo "$AR" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8570 $as_echo "no
" >&6; }
8575 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577 set dummy ${ncn_progname}; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8579 $as_echo_n "checking
for $ac_word...
" >&6; }
8580 if ${ac_cv_prog_AR+:} false; then :
8581 $as_echo_n "(cached
) " >&6
8583 if test -n "$AR"; then
8584 ac_cv_prog_AR="$AR" # Let the user override the test.
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_AR="${ncn_progname}"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8604 if test -n "$AR"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8606 $as_echo "$AR" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8609 $as_echo "no
" >&6; }
8614 test -n "$ac_cv_prog_AR" && break
8617 if test -z "$ac_cv_prog_AR" ; then
8619 if test $build = $host ; then
8622 AR="${ncn_tool_prefix}$2"
8628 if test -n "$AS"; then
8630 elif test -n "$ac_cv_prog_AS"; then
8634 if test -n "$ac_cv_prog_AS"; then
8635 for ncn_progname in as; do
8636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8637 set dummy ${ncn_progname}; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8639 $as_echo_n "checking
for $ac_word...
" >&6; }
8640 if ${ac_cv_prog_AS+:} false; then :
8641 $as_echo_n "(cached
) " >&6
8643 if test -n "$AS"; then
8644 ac_cv_prog_AS="$AS" # Let the user override the test.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_AS="${ncn_progname}"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8664 if test -n "$AS"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8666 $as_echo "$AS" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8669 $as_echo "no
" >&6; }
8676 for ncn_progname in as; do
8677 if test -n "$ncn_tool_prefix"; then
8678 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8679 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8681 $as_echo_n "checking
for $ac_word...
" >&6; }
8682 if ${ac_cv_prog_AS+:} false; then :
8683 $as_echo_n "(cached
) " >&6
8685 if test -n "$AS"; then
8686 ac_cv_prog_AS="$AS" # Let the user override the test.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8706 if test -n "$AS"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8708 $as_echo "$AS" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8711 $as_echo "no
" >&6; }
8716 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718 set dummy ${ncn_progname}; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8720 $as_echo_n "checking
for $ac_word...
" >&6; }
8721 if ${ac_cv_prog_AS+:} false; then :
8722 $as_echo_n "(cached
) " >&6
8724 if test -n "$AS"; then
8725 ac_cv_prog_AS="$AS" # Let the user override the test.
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734 ac_cv_prog_AS="${ncn_progname}"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8745 if test -n "$AS"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8747 $as_echo "$AS" >&6; }
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8750 $as_echo "no
" >&6; }
8755 test -n "$ac_cv_prog_AS" && break
8758 if test -z "$ac_cv_prog_AS" ; then
8760 if test $build = $host ; then
8763 AS="${ncn_tool_prefix}$2"
8769 if test -n "$DLLTOOL"; then
8770 ac_cv_prog_DLLTOOL=$DLLTOOL
8771 elif test -n "$ac_cv_prog_DLLTOOL"; then
8772 DLLTOOL=$ac_cv_prog_DLLTOOL
8775 if test -n "$ac_cv_prog_DLLTOOL"; then
8776 for ncn_progname in dlltool; do
8777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8778 set dummy ${ncn_progname}; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8780 $as_echo_n "checking
for $ac_word...
" >&6; }
8781 if ${ac_cv_prog_DLLTOOL+:} false; then :
8782 $as_echo_n "(cached
) " >&6
8784 if test -n "$DLLTOOL"; then
8785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8794 ac_cv_prog_DLLTOOL="${ncn_progname}"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8804 DLLTOOL=$ac_cv_prog_DLLTOOL
8805 if test -n "$DLLTOOL"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8807 $as_echo "$DLLTOOL" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8810 $as_echo "no
" >&6; }
8817 for ncn_progname in dlltool; do
8818 if test -n "$ncn_tool_prefix"; then
8819 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8820 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8822 $as_echo_n "checking
for $ac_word...
" >&6; }
8823 if ${ac_cv_prog_DLLTOOL+:} false; then :
8824 $as_echo_n "(cached
) " >&6
8826 if test -n "$DLLTOOL"; then
8827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8846 DLLTOOL=$ac_cv_prog_DLLTOOL
8847 if test -n "$DLLTOOL"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8849 $as_echo "$DLLTOOL" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8852 $as_echo "no
" >&6; }
8857 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859 set dummy ${ncn_progname}; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8861 $as_echo_n "checking
for $ac_word...
" >&6; }
8862 if ${ac_cv_prog_DLLTOOL+:} false; then :
8863 $as_echo_n "(cached
) " >&6
8865 if test -n "$DLLTOOL"; then
8866 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_DLLTOOL="${ncn_progname}"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8885 DLLTOOL=$ac_cv_prog_DLLTOOL
8886 if test -n "$DLLTOOL"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8888 $as_echo "$DLLTOOL" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8891 $as_echo "no
" >&6; }
8896 test -n "$ac_cv_prog_DLLTOOL" && break
8899 if test -z "$ac_cv_prog_DLLTOOL" ; then
8901 if test $build = $host ; then
8904 DLLTOOL="${ncn_tool_prefix}$2"
8910 if test -n "$LD"; then
8912 elif test -n "$ac_cv_prog_LD"; then
8916 if test -n "$ac_cv_prog_LD"; then
8917 for ncn_progname in ld; do
8918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8919 set dummy ${ncn_progname}; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8921 $as_echo_n "checking
for $ac_word...
" >&6; }
8922 if ${ac_cv_prog_LD+:} false; then :
8923 $as_echo_n "(cached
) " >&6
8925 if test -n "$LD"; then
8926 ac_cv_prog_LD="$LD" # Let the user override the test.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_LD="${ncn_progname}"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8946 if test -n "$LD"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8948 $as_echo "$LD" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8951 $as_echo "no
" >&6; }
8958 for ncn_progname in ld; do
8959 if test -n "$ncn_tool_prefix"; then
8960 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8961 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8963 $as_echo_n "checking
for $ac_word...
" >&6; }
8964 if ${ac_cv_prog_LD+:} false; then :
8965 $as_echo_n "(cached
) " >&6
8967 if test -n "$LD"; then
8968 ac_cv_prog_LD="$LD" # Let the user override the test.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8988 if test -n "$LD"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8990 $as_echo "$LD" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8993 $as_echo "no
" >&6; }
8998 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9000 set dummy ${ncn_progname}; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9002 $as_echo_n "checking
for $ac_word...
" >&6; }
9003 if ${ac_cv_prog_LD+:} false; then :
9004 $as_echo_n "(cached
) " >&6
9006 if test -n "$LD"; then
9007 ac_cv_prog_LD="$LD" # Let the user override the test.
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_LD="${ncn_progname}"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9027 if test -n "$LD"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
9029 $as_echo "$LD" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9032 $as_echo "no
" >&6; }
9037 test -n "$ac_cv_prog_LD" && break
9040 if test -z "$ac_cv_prog_LD" ; then
9042 if test $build = $host ; then
9045 LD="${ncn_tool_prefix}$2"
9051 if test -n "$LIPO"; then
9052 ac_cv_prog_LIPO=$LIPO
9053 elif test -n "$ac_cv_prog_LIPO"; then
9054 LIPO=$ac_cv_prog_LIPO
9057 if test -n "$ac_cv_prog_LIPO"; then
9058 for ncn_progname in lipo; do
9059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9060 set dummy ${ncn_progname}; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9062 $as_echo_n "checking
for $ac_word...
" >&6; }
9063 if ${ac_cv_prog_LIPO+:} false; then :
9064 $as_echo_n "(cached
) " >&6
9066 if test -n "$LIPO"; then
9067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 test -z "$as_dir" && as_dir=.
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076 ac_cv_prog_LIPO="${ncn_progname}"
9077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9086 LIPO=$ac_cv_prog_LIPO
9087 if test -n "$LIPO"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9089 $as_echo "$LIPO" >&6; }
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9092 $as_echo "no
" >&6; }
9099 for ncn_progname in lipo; do
9100 if test -n "$ncn_tool_prefix"; then
9101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9102 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9104 $as_echo_n "checking
for $ac_word...
" >&6; }
9105 if ${ac_cv_prog_LIPO+:} false; then :
9106 $as_echo_n "(cached
) " >&6
9108 if test -n "$LIPO"; then
9109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9128 LIPO=$ac_cv_prog_LIPO
9129 if test -n "$LIPO"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9131 $as_echo "$LIPO" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9134 $as_echo "no
" >&6; }
9139 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141 set dummy ${ncn_progname}; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9143 $as_echo_n "checking
for $ac_word...
" >&6; }
9144 if ${ac_cv_prog_LIPO+:} false; then :
9145 $as_echo_n "(cached
) " >&6
9147 if test -n "$LIPO"; then
9148 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_LIPO="${ncn_progname}"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9167 LIPO=$ac_cv_prog_LIPO
9168 if test -n "$LIPO"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9170 $as_echo "$LIPO" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9173 $as_echo "no
" >&6; }
9178 test -n "$ac_cv_prog_LIPO" && break
9181 if test -z "$ac_cv_prog_LIPO" ; then
9183 if test $build = $host ; then
9186 LIPO="${ncn_tool_prefix}$2"
9192 if test -n "$NM"; then
9194 elif test -n "$ac_cv_prog_NM"; then
9198 if test -n "$ac_cv_prog_NM"; then
9199 for ncn_progname in nm; do
9200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9201 set dummy ${ncn_progname}; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9203 $as_echo_n "checking
for $ac_word...
" >&6; }
9204 if ${ac_cv_prog_NM+:} false; then :
9205 $as_echo_n "(cached
) " >&6
9207 if test -n "$NM"; then
9208 ac_cv_prog_NM="$NM" # Let the user override the test.
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_NM="${ncn_progname}"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9228 if test -n "$NM"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9230 $as_echo "$NM" >&6; }
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9233 $as_echo "no
" >&6; }
9240 for ncn_progname in nm; do
9241 if test -n "$ncn_tool_prefix"; then
9242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9243 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9245 $as_echo_n "checking
for $ac_word...
" >&6; }
9246 if ${ac_cv_prog_NM+:} false; then :
9247 $as_echo_n "(cached
) " >&6
9249 if test -n "$NM"; then
9250 ac_cv_prog_NM="$NM" # Let the user override the test.
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9270 if test -n "$NM"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9272 $as_echo "$NM" >&6; }
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9275 $as_echo "no
" >&6; }
9280 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9282 set dummy ${ncn_progname}; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9284 $as_echo_n "checking
for $ac_word...
" >&6; }
9285 if ${ac_cv_prog_NM+:} false; then :
9286 $as_echo_n "(cached
) " >&6
9288 if test -n "$NM"; then
9289 ac_cv_prog_NM="$NM" # Let the user override the test.
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_NM="${ncn_progname}"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9309 if test -n "$NM"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9311 $as_echo "$NM" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9314 $as_echo "no
" >&6; }
9319 test -n "$ac_cv_prog_NM" && break
9322 if test -z "$ac_cv_prog_NM" ; then
9324 if test $build = $host ; then
9327 NM="${ncn_tool_prefix}$2"
9333 if test -n "$RANLIB"; then
9334 ac_cv_prog_RANLIB=$RANLIB
9335 elif test -n "$ac_cv_prog_RANLIB"; then
9336 RANLIB=$ac_cv_prog_RANLIB
9339 if test -n "$ac_cv_prog_RANLIB"; then
9340 for ncn_progname in ranlib; do
9341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9342 set dummy ${ncn_progname}; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9344 $as_echo_n "checking
for $ac_word...
" >&6; }
9345 if ${ac_cv_prog_RANLIB+:} false; then :
9346 $as_echo_n "(cached
) " >&6
9348 if test -n "$RANLIB"; then
9349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_RANLIB="${ncn_progname}"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9368 RANLIB=$ac_cv_prog_RANLIB
9369 if test -n "$RANLIB"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9371 $as_echo "$RANLIB" >&6; }
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9374 $as_echo "no
" >&6; }
9381 for ncn_progname in ranlib; do
9382 if test -n "$ncn_tool_prefix"; then
9383 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9384 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9386 $as_echo_n "checking
for $ac_word...
" >&6; }
9387 if ${ac_cv_prog_RANLIB+:} false; then :
9388 $as_echo_n "(cached
) " >&6
9390 if test -n "$RANLIB"; then
9391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9410 RANLIB=$ac_cv_prog_RANLIB
9411 if test -n "$RANLIB"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9413 $as_echo "$RANLIB" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9416 $as_echo "no
" >&6; }
9421 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9423 set dummy ${ncn_progname}; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9425 $as_echo_n "checking
for $ac_word...
" >&6; }
9426 if ${ac_cv_prog_RANLIB+:} false; then :
9427 $as_echo_n "(cached
) " >&6
9429 if test -n "$RANLIB"; then
9430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_RANLIB="${ncn_progname}"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9449 RANLIB=$ac_cv_prog_RANLIB
9450 if test -n "$RANLIB"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9452 $as_echo "$RANLIB" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9455 $as_echo "no
" >&6; }
9460 test -n "$ac_cv_prog_RANLIB" && break
9463 if test -z "$ac_cv_prog_RANLIB" ; then
9469 if test -n "$STRIP"; then
9470 ac_cv_prog_STRIP=$STRIP
9471 elif test -n "$ac_cv_prog_STRIP"; then
9472 STRIP=$ac_cv_prog_STRIP
9475 if test -n "$ac_cv_prog_STRIP"; then
9476 for ncn_progname in strip; do
9477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478 set dummy ${ncn_progname}; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9480 $as_echo_n "checking
for $ac_word...
" >&6; }
9481 if ${ac_cv_prog_STRIP+:} false; then :
9482 $as_echo_n "(cached
) " >&6
9484 if test -n "$STRIP"; then
9485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_STRIP="${ncn_progname}"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9504 STRIP=$ac_cv_prog_STRIP
9505 if test -n "$STRIP"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9507 $as_echo "$STRIP" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9510 $as_echo "no
" >&6; }
9517 for ncn_progname in strip; do
9518 if test -n "$ncn_tool_prefix"; then
9519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9522 $as_echo_n "checking
for $ac_word...
" >&6; }
9523 if ${ac_cv_prog_STRIP+:} false; then :
9524 $as_echo_n "(cached
) " >&6
9526 if test -n "$STRIP"; then
9527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9546 STRIP=$ac_cv_prog_STRIP
9547 if test -n "$STRIP"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9549 $as_echo "$STRIP" >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9552 $as_echo "no
" >&6; }
9557 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9561 $as_echo_n "checking
for $ac_word...
" >&6; }
9562 if ${ac_cv_prog_STRIP+:} false; then :
9563 $as_echo_n "(cached
) " >&6
9565 if test -n "$STRIP"; then
9566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_prog_STRIP="${ncn_progname}"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9585 STRIP=$ac_cv_prog_STRIP
9586 if test -n "$STRIP"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9588 $as_echo "$STRIP" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9591 $as_echo "no
" >&6; }
9596 test -n "$ac_cv_prog_STRIP" && break
9599 if test -z "$ac_cv_prog_STRIP" ; then
9605 if test -n "$WINDRES"; then
9606 ac_cv_prog_WINDRES=$WINDRES
9607 elif test -n "$ac_cv_prog_WINDRES"; then
9608 WINDRES=$ac_cv_prog_WINDRES
9611 if test -n "$ac_cv_prog_WINDRES"; then
9612 for ncn_progname in windres; do
9613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9614 set dummy ${ncn_progname}; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9616 $as_echo_n "checking
for $ac_word...
" >&6; }
9617 if ${ac_cv_prog_WINDRES+:} false; then :
9618 $as_echo_n "(cached
) " >&6
9620 if test -n "$WINDRES"; then
9621 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630 ac_cv_prog_WINDRES="${ncn_progname}"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9640 WINDRES=$ac_cv_prog_WINDRES
9641 if test -n "$WINDRES"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9643 $as_echo "$WINDRES" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9646 $as_echo "no
" >&6; }
9653 for ncn_progname in windres; do
9654 if test -n "$ncn_tool_prefix"; then
9655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9658 $as_echo_n "checking
for $ac_word...
" >&6; }
9659 if ${ac_cv_prog_WINDRES+:} false; then :
9660 $as_echo_n "(cached
) " >&6
9662 if test -n "$WINDRES"; then
9663 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9682 WINDRES=$ac_cv_prog_WINDRES
9683 if test -n "$WINDRES"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9685 $as_echo "$WINDRES" >&6; }
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9688 $as_echo "no
" >&6; }
9693 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9695 set dummy ${ncn_progname}; ac_word=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9697 $as_echo_n "checking
for $ac_word...
" >&6; }
9698 if ${ac_cv_prog_WINDRES+:} false; then :
9699 $as_echo_n "(cached
) " >&6
9701 if test -n "$WINDRES"; then
9702 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_prog_WINDRES="${ncn_progname}"
9712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9721 WINDRES=$ac_cv_prog_WINDRES
9722 if test -n "$WINDRES"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9724 $as_echo "$WINDRES" >&6; }
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9727 $as_echo "no
" >&6; }
9732 test -n "$ac_cv_prog_WINDRES" && break
9735 if test -z "$ac_cv_prog_WINDRES" ; then
9737 if test $build = $host ; then
9740 WINDRES="${ncn_tool_prefix}$2"
9746 if test -n "$WINDMC"; then
9747 ac_cv_prog_WINDMC=$WINDMC
9748 elif test -n "$ac_cv_prog_WINDMC"; then
9749 WINDMC=$ac_cv_prog_WINDMC
9752 if test -n "$ac_cv_prog_WINDMC"; then
9753 for ncn_progname in windmc; do
9754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9755 set dummy ${ncn_progname}; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9757 $as_echo_n "checking
for $ac_word...
" >&6; }
9758 if ${ac_cv_prog_WINDMC+:} false; then :
9759 $as_echo_n "(cached
) " >&6
9761 if test -n "$WINDMC"; then
9762 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771 ac_cv_prog_WINDMC="${ncn_progname}"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9781 WINDMC=$ac_cv_prog_WINDMC
9782 if test -n "$WINDMC"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9784 $as_echo "$WINDMC" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9787 $as_echo "no
" >&6; }
9794 for ncn_progname in windmc; do
9795 if test -n "$ncn_tool_prefix"; then
9796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9799 $as_echo_n "checking
for $ac_word...
" >&6; }
9800 if ${ac_cv_prog_WINDMC+:} false; then :
9801 $as_echo_n "(cached
) " >&6
9803 if test -n "$WINDMC"; then
9804 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9823 WINDMC=$ac_cv_prog_WINDMC
9824 if test -n "$WINDMC"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9826 $as_echo "$WINDMC" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9829 $as_echo "no
" >&6; }
9834 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9836 set dummy ${ncn_progname}; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9838 $as_echo_n "checking
for $ac_word...
" >&6; }
9839 if ${ac_cv_prog_WINDMC+:} false; then :
9840 $as_echo_n "(cached
) " >&6
9842 if test -n "$WINDMC"; then
9843 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_WINDMC="${ncn_progname}"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9862 WINDMC=$ac_cv_prog_WINDMC
9863 if test -n "$WINDMC"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9865 $as_echo "$WINDMC" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9868 $as_echo "no
" >&6; }
9873 test -n "$ac_cv_prog_WINDMC" && break
9876 if test -z "$ac_cv_prog_WINDMC" ; then
9878 if test $build = $host ; then
9881 WINDMC="${ncn_tool_prefix}$2"
9887 if test -n "$OBJCOPY"; then
9888 ac_cv_prog_OBJCOPY=$OBJCOPY
9889 elif test -n "$ac_cv_prog_OBJCOPY"; then
9890 OBJCOPY=$ac_cv_prog_OBJCOPY
9893 if test -n "$ac_cv_prog_OBJCOPY"; then
9894 for ncn_progname in objcopy; do
9895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9896 set dummy ${ncn_progname}; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9898 $as_echo_n "checking
for $ac_word...
" >&6; }
9899 if ${ac_cv_prog_OBJCOPY+:} false; then :
9900 $as_echo_n "(cached
) " >&6
9902 if test -n "$OBJCOPY"; then
9903 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_OBJCOPY="${ncn_progname}"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9922 OBJCOPY=$ac_cv_prog_OBJCOPY
9923 if test -n "$OBJCOPY"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9925 $as_echo "$OBJCOPY" >&6; }
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9928 $as_echo "no
" >&6; }
9935 for ncn_progname in objcopy; do
9936 if test -n "$ncn_tool_prefix"; then
9937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9940 $as_echo_n "checking
for $ac_word...
" >&6; }
9941 if ${ac_cv_prog_OBJCOPY+:} false; then :
9942 $as_echo_n "(cached
) " >&6
9944 if test -n "$OBJCOPY"; then
9945 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9964 OBJCOPY=$ac_cv_prog_OBJCOPY
9965 if test -n "$OBJCOPY"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9967 $as_echo "$OBJCOPY" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9970 $as_echo "no
" >&6; }
9975 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977 set dummy ${ncn_progname}; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9979 $as_echo_n "checking
for $ac_word...
" >&6; }
9980 if ${ac_cv_prog_OBJCOPY+:} false; then :
9981 $as_echo_n "(cached
) " >&6
9983 if test -n "$OBJCOPY"; then
9984 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9993 ac_cv_prog_OBJCOPY="${ncn_progname}"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10003 OBJCOPY=$ac_cv_prog_OBJCOPY
10004 if test -n "$OBJCOPY"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
10006 $as_echo "$OBJCOPY" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10009 $as_echo "no
" >&6; }
10014 test -n "$ac_cv_prog_OBJCOPY" && break
10017 if test -z "$ac_cv_prog_OBJCOPY" ; then
10019 if test $build = $host ; then
10022 OBJCOPY="${ncn_tool_prefix}$2"
10028 if test -n "$OBJDUMP"; then
10029 ac_cv_prog_OBJDUMP=$OBJDUMP
10030 elif test -n "$ac_cv_prog_OBJDUMP"; then
10031 OBJDUMP=$ac_cv_prog_OBJDUMP
10034 if test -n "$ac_cv_prog_OBJDUMP"; then
10035 for ncn_progname in objdump; do
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037 set dummy ${ncn_progname}; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10039 $as_echo_n "checking
for $ac_word...
" >&6; }
10040 if ${ac_cv_prog_OBJDUMP+:} false; then :
10041 $as_echo_n "(cached
) " >&6
10043 if test -n "$OBJDUMP"; then
10044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_prog_OBJDUMP="${ncn_progname}"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10063 OBJDUMP=$ac_cv_prog_OBJDUMP
10064 if test -n "$OBJDUMP"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10066 $as_echo "$OBJDUMP" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10069 $as_echo "no
" >&6; }
10076 for ncn_progname in objdump; do
10077 if test -n "$ncn_tool_prefix"; then
10078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10081 $as_echo_n "checking
for $ac_word...
" >&6; }
10082 if ${ac_cv_prog_OBJDUMP+:} false; then :
10083 $as_echo_n "(cached
) " >&6
10085 if test -n "$OBJDUMP"; then
10086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10105 OBJDUMP=$ac_cv_prog_OBJDUMP
10106 if test -n "$OBJDUMP"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10108 $as_echo "$OBJDUMP" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10111 $as_echo "no
" >&6; }
10116 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10118 set dummy ${ncn_progname}; ac_word=$2
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10120 $as_echo_n "checking
for $ac_word...
" >&6; }
10121 if ${ac_cv_prog_OBJDUMP+:} false; then :
10122 $as_echo_n "(cached
) " >&6
10124 if test -n "$OBJDUMP"; then
10125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_prog_OBJDUMP="${ncn_progname}"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10144 OBJDUMP=$ac_cv_prog_OBJDUMP
10145 if test -n "$OBJDUMP"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
10147 $as_echo "$OBJDUMP" >&6; }
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10150 $as_echo "no
" >&6; }
10155 test -n "$ac_cv_prog_OBJDUMP" && break
10158 if test -z "$ac_cv_prog_OBJDUMP" ; then
10160 if test $build = $host ; then
10163 OBJDUMP="${ncn_tool_prefix}$2"
10169 if test -n "$READELF"; then
10170 ac_cv_prog_READELF=$READELF
10171 elif test -n "$ac_cv_prog_READELF"; then
10172 READELF=$ac_cv_prog_READELF
10175 if test -n "$ac_cv_prog_READELF"; then
10176 for ncn_progname in readelf; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178 set dummy ${ncn_progname}; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10180 $as_echo_n "checking
for $ac_word...
" >&6; }
10181 if ${ac_cv_prog_READELF+:} false; then :
10182 $as_echo_n "(cached
) " >&6
10184 if test -n "$READELF"; then
10185 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_READELF="${ncn_progname}"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10204 READELF=$ac_cv_prog_READELF
10205 if test -n "$READELF"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10207 $as_echo "$READELF" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10210 $as_echo "no
" >&6; }
10217 for ncn_progname in readelf; do
10218 if test -n "$ncn_tool_prefix"; then
10219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10220 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10222 $as_echo_n "checking
for $ac_word...
" >&6; }
10223 if ${ac_cv_prog_READELF+:} false; then :
10224 $as_echo_n "(cached
) " >&6
10226 if test -n "$READELF"; then
10227 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10246 READELF=$ac_cv_prog_READELF
10247 if test -n "$READELF"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10249 $as_echo "$READELF" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10252 $as_echo "no
" >&6; }
10257 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10259 set dummy ${ncn_progname}; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10261 $as_echo_n "checking
for $ac_word...
" >&6; }
10262 if ${ac_cv_prog_READELF+:} false; then :
10263 $as_echo_n "(cached
) " >&6
10265 if test -n "$READELF"; then
10266 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_READELF="${ncn_progname}"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10285 READELF=$ac_cv_prog_READELF
10286 if test -n "$READELF"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10288 $as_echo "$READELF" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10291 $as_echo "no
" >&6; }
10296 test -n "$ac_cv_prog_READELF" && break
10299 if test -z "$ac_cv_prog_READELF" ; then
10301 if test $build = $host ; then
10304 READELF="${ncn_tool_prefix}$2"
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
10314 $as_echo_n "checking
for -plugin option...
" >&6; }
10316 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
10318 for plugin in $plugin_names; do
10319 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10320 if test x$plugin_so = x$plugin; then
10321 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10323 if test x$plugin_so != x$plugin; then
10324 plugin_option="--plugin $plugin_so"
10328 if test -n "$ac_tool_prefix"; then
10329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10330 set dummy ${ac_tool_prefix}ar; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10332 $as_echo_n "checking
for $ac_word...
" >&6; }
10333 if ${ac_cv_prog_AR+:} false; then :
10334 $as_echo_n "(cached
) " >&6
10336 if test -n "$AR"; then
10337 ac_cv_prog_AR="$AR" # Let the user override the test.
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_AR="${ac_tool_prefix}ar"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10357 if test -n "$AR"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10359 $as_echo "$AR" >&6; }
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10362 $as_echo "no
" >&6; }
10367 if test -z "$ac_cv_prog_AR"; then
10369 # Extract the first word of "ar", so it can be a program name with args.
10370 set dummy ar; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10372 $as_echo_n "checking
for $ac_word...
" >&6; }
10373 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10374 $as_echo_n "(cached
) " >&6
10376 if test -n "$ac_ct_AR"; then
10377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10386 ac_cv_prog_ac_ct_AR="ar"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10397 if test -n "$ac_ct_AR"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
10399 $as_echo "$ac_ct_AR" >&6; }
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10402 $as_echo "no
" >&6; }
10405 if test "x
$ac_ct_AR" = x; then
10408 case $cross_compiling:$ac_tool_warned in
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
10411 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
10412 ac_tool_warned=yes ;;
10417 AR="$ac_cv_prog_AR"
10420 if test "${AR}" = "" ; then
10421 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
10424 ${AR} $plugin_option rc conftest.a conftest.c
10425 if test "$?
" != 0; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
10427 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
10431 if test -n "$plugin_option"; then
10432 PLUGIN_OPTION="$plugin_option"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
10434 $as_echo "$plugin_option" >&6; }
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10437 $as_echo "no
" >&6; }
10441 RANLIB_PLUGIN_OPTION=
10442 if test -n "$PLUGIN_OPTION"; then
10443 if $AR --help 2>&1 | grep -q "\
--plugin"; then
10444 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10446 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
10447 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10450 if test "$enable_pgo_build" != "no
"; then
10451 as_fn_error $? "AR with
--plugin and rc is required
for LTO build
" "$LINENO" 5
10459 # Check whether --with-build-time-tools was given.
10460 if test "${with_build_time_tools+set}" = set; then :
10461 withval=$with_build_time_tools; case x"$withval" in
10464 with_build_time_tools=
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
10466 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
10470 with_build_time_tools=
10476 if test -n "$CC_FOR_TARGET"; then
10477 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10478 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10479 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10482 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10483 for ncn_progname in cc gcc; do
10484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10485 set dummy ${ncn_progname}; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10487 $as_echo_n "checking
for $ac_word...
" >&6; }
10488 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10489 $as_echo_n "(cached
) " >&6
10491 if test -n "$CC_FOR_TARGET"; then
10492 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10511 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10512 if test -n "$CC_FOR_TARGET"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10514 $as_echo "$CC_FOR_TARGET" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10517 $as_echo "no
" >&6; }
10524 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10525 for ncn_progname in cc gcc; do
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10527 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10528 if test -x $with_build_time_tools/${ncn_progname}; then
10529 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10531 $as_echo "yes" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10535 $as_echo "no
" >&6; }
10540 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10541 for ncn_progname in cc gcc; do
10542 if test -n "$ncn_target_tool_prefix"; then
10543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10544 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10546 $as_echo_n "checking
for $ac_word...
" >&6; }
10547 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10548 $as_echo_n "(cached
) " >&6
10550 if test -n "$CC_FOR_TARGET"; then
10551 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10560 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10570 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10571 if test -n "$CC_FOR_TARGET"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10573 $as_echo "$CC_FOR_TARGET" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10576 $as_echo "no
" >&6; }
10581 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10583 set dummy ${ncn_progname}; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10585 $as_echo_n "checking
for $ac_word...
" >&6; }
10586 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10587 $as_echo_n "(cached
) " >&6
10589 if test -n "$CC_FOR_TARGET"; then
10590 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10609 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10610 if test -n "$CC_FOR_TARGET"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10612 $as_echo "$CC_FOR_TARGET" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10615 $as_echo "no
" >&6; }
10620 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10624 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10626 if test $build = $target ; then
10629 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10632 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10637 if test -n "$CXX_FOR_TARGET"; then
10638 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10639 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10640 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10643 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10644 for ncn_progname in c++ g++ cxx gxx; do
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646 set dummy ${ncn_progname}; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10648 $as_echo_n "checking
for $ac_word...
" >&6; }
10649 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10650 $as_echo_n "(cached
) " >&6
10652 if test -n "$CXX_FOR_TARGET"; then
10653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10672 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10673 if test -n "$CXX_FOR_TARGET"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10675 $as_echo "$CXX_FOR_TARGET" >&6; }
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10678 $as_echo "no
" >&6; }
10685 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10686 for ncn_progname in c++ g++ cxx gxx; do
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10688 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10692 $as_echo "yes" >&6; }
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10696 $as_echo "no
" >&6; }
10701 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10702 for ncn_progname in c++ g++ cxx gxx; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10705 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10707 $as_echo_n "checking
for $ac_word...
" >&6; }
10708 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10709 $as_echo_n "(cached
) " >&6
10711 if test -n "$CXX_FOR_TARGET"; then
10712 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10731 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10732 if test -n "$CXX_FOR_TARGET"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10734 $as_echo "$CXX_FOR_TARGET" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10737 $as_echo "no
" >&6; }
10742 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10744 set dummy ${ncn_progname}; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10746 $as_echo_n "checking
for $ac_word...
" >&6; }
10747 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10748 $as_echo_n "(cached
) " >&6
10750 if test -n "$CXX_FOR_TARGET"; then
10751 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10770 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10771 if test -n "$CXX_FOR_TARGET"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10773 $as_echo "$CXX_FOR_TARGET" >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10776 $as_echo "no
" >&6; }
10781 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10785 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10786 set dummy c++ g++ cxx gxx
10787 if test $build = $target ; then
10788 CXX_FOR_TARGET="$2"
10790 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10793 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10798 if test -n "$GCC_FOR_TARGET"; then
10799 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10800 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10801 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10804 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10805 for ncn_progname in gcc; do
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807 set dummy ${ncn_progname}; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10809 $as_echo_n "checking
for $ac_word...
" >&6; }
10810 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10811 $as_echo_n "(cached
) " >&6
10813 if test -n "$GCC_FOR_TARGET"; then
10814 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10833 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10834 if test -n "$GCC_FOR_TARGET"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10836 $as_echo "$GCC_FOR_TARGET" >&6; }
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10839 $as_echo "no
" >&6; }
10846 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10847 for ncn_progname in gcc; do
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10849 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10850 if test -x $with_build_time_tools/${ncn_progname}; then
10851 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10853 $as_echo "yes" >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10857 $as_echo "no
" >&6; }
10862 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10863 for ncn_progname in gcc; do
10864 if test -n "$ncn_target_tool_prefix"; then
10865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10868 $as_echo_n "checking
for $ac_word...
" >&6; }
10869 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10870 $as_echo_n "(cached
) " >&6
10872 if test -n "$GCC_FOR_TARGET"; then
10873 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10892 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10893 if test -n "$GCC_FOR_TARGET"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10895 $as_echo "$GCC_FOR_TARGET" >&6; }
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10898 $as_echo "no
" >&6; }
10903 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10905 set dummy ${ncn_progname}; ac_word=$2
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10907 $as_echo_n "checking
for $ac_word...
" >&6; }
10908 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10909 $as_echo_n "(cached
) " >&6
10911 if test -n "$GCC_FOR_TARGET"; then
10912 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10931 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10932 if test -n "$GCC_FOR_TARGET"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10934 $as_echo "$GCC_FOR_TARGET" >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10937 $as_echo "no
" >&6; }
10942 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10946 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10947 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10949 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10954 if test -n "$GFORTRAN_FOR_TARGET"; then
10955 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10956 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10957 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10960 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10961 for ncn_progname in gfortran; do
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963 set dummy ${ncn_progname}; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10965 $as_echo_n "checking
for $ac_word...
" >&6; }
10966 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10967 $as_echo_n "(cached
) " >&6
10969 if test -n "$GFORTRAN_FOR_TARGET"; then
10970 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10989 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10990 if test -n "$GFORTRAN_FOR_TARGET"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
10992 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10995 $as_echo "no
" >&6; }
11002 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11003 for ncn_progname in gfortran; do
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11005 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11006 if test -x $with_build_time_tools/${ncn_progname}; then
11007 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11009 $as_echo "yes" >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11013 $as_echo "no
" >&6; }
11018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11019 for ncn_progname in gfortran; do
11020 if test -n "$ncn_target_tool_prefix"; then
11021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11024 $as_echo_n "checking
for $ac_word...
" >&6; }
11025 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11026 $as_echo_n "(cached
) " >&6
11028 if test -n "$GFORTRAN_FOR_TARGET"; then
11029 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11048 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11049 if test -n "$GFORTRAN_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
11051 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11054 $as_echo "no
" >&6; }
11059 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11063 $as_echo_n "checking
for $ac_word...
" >&6; }
11064 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11065 $as_echo_n "(cached
) " >&6
11067 if test -n "$GFORTRAN_FOR_TARGET"; then
11068 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11087 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11088 if test -n "$GFORTRAN_FOR_TARGET"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
11090 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11093 $as_echo "no
" >&6; }
11098 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11102 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11104 if test $build = $target ; then
11105 GFORTRAN_FOR_TARGET="$2"
11107 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11110 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11115 if test -n "$GOC_FOR_TARGET"; then
11116 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11117 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11118 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11121 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11122 for ncn_progname in gccgo; do
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11126 $as_echo_n "checking
for $ac_word...
" >&6; }
11127 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11128 $as_echo_n "(cached
) " >&6
11130 if test -n "$GOC_FOR_TARGET"; then
11131 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11150 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11151 if test -n "$GOC_FOR_TARGET"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11153 $as_echo "$GOC_FOR_TARGET" >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11156 $as_echo "no
" >&6; }
11163 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11164 for ncn_progname in gccgo; do
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11166 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11167 if test -x $with_build_time_tools/${ncn_progname}; then
11168 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11170 $as_echo "yes" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11174 $as_echo "no
" >&6; }
11179 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11180 for ncn_progname in gccgo; do
11181 if test -n "$ncn_target_tool_prefix"; then
11182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11183 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11185 $as_echo_n "checking
for $ac_word...
" >&6; }
11186 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11187 $as_echo_n "(cached
) " >&6
11189 if test -n "$GOC_FOR_TARGET"; then
11190 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11209 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11210 if test -n "$GOC_FOR_TARGET"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11212 $as_echo "$GOC_FOR_TARGET" >&6; }
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11215 $as_echo "no
" >&6; }
11220 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11224 $as_echo_n "checking
for $ac_word...
" >&6; }
11225 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11226 $as_echo_n "(cached
) " >&6
11228 if test -n "$GOC_FOR_TARGET"; then
11229 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11248 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11249 if test -n "$GOC_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
11251 $as_echo "$GOC_FOR_TARGET" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11254 $as_echo "no
" >&6; }
11259 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11263 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11265 if test $build = $target ; then
11266 GOC_FOR_TARGET="$2"
11268 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11271 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11276 cat > conftest.c << \EOF
11281 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11282 have_gcc_for_target=yes
11284 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11285 have_gcc_for_target=no
11292 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11293 if test -n "$with_build_time_tools"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
11295 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
11296 if test -x $with_build_time_tools/ar; then
11297 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11298 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
11300 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11303 $as_echo "no
" >&6; }
11305 elif test $build != $host && test $have_gcc_for_target = yes; then
11306 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11307 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11308 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11311 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11312 # Extract the first word of "ar", so it can be a program name with args.
11313 set dummy ar; ac_word=$2
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11315 $as_echo_n "checking
for $ac_word...
" >&6; }
11316 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11317 $as_echo_n "(cached
) " >&6
11319 case $AR_FOR_TARGET in
11321 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $gcc_cv_tool_dirs
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11342 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11343 if test -n "$AR_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11345 $as_echo "$AR_FOR_TARGET" >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11348 $as_echo "no
" >&6; }
11353 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11356 if test -n "$AR_FOR_TARGET"; then
11357 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11358 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11359 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11362 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11363 for ncn_progname in ar; do
11364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11365 set dummy ${ncn_progname}; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11367 $as_echo_n "checking
for $ac_word...
" >&6; }
11368 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11369 $as_echo_n "(cached
) " >&6
11371 if test -n "$AR_FOR_TARGET"; then
11372 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11391 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11392 if test -n "$AR_FOR_TARGET"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11394 $as_echo "$AR_FOR_TARGET" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11397 $as_echo "no
" >&6; }
11404 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11405 for ncn_progname in ar; do
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11407 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11408 if test -x $with_build_time_tools/${ncn_progname}; then
11409 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11411 $as_echo "yes" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11415 $as_echo "no
" >&6; }
11420 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11421 for ncn_progname in ar; do
11422 if test -n "$ncn_target_tool_prefix"; then
11423 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11424 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11426 $as_echo_n "checking
for $ac_word...
" >&6; }
11427 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11428 $as_echo_n "(cached
) " >&6
11430 if test -n "$AR_FOR_TARGET"; then
11431 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11450 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11451 if test -n "$AR_FOR_TARGET"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11453 $as_echo "$AR_FOR_TARGET" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11456 $as_echo "no
" >&6; }
11461 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11463 set dummy ${ncn_progname}; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11465 $as_echo_n "checking
for $ac_word...
" >&6; }
11466 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11467 $as_echo_n "(cached
) " >&6
11469 if test -n "$AR_FOR_TARGET"; then
11470 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11489 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11490 if test -n "$AR_FOR_TARGET"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11492 $as_echo "$AR_FOR_TARGET" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11495 $as_echo "no
" >&6; }
11500 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11504 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11506 if test $build = $target ; then
11509 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11512 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11516 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11522 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11523 if test -n "$with_build_time_tools"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
11525 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
11526 if test -x $with_build_time_tools/as; then
11527 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11528 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
11530 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11533 $as_echo "no
" >&6; }
11535 elif test $build != $host && test $have_gcc_for_target = yes; then
11536 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11537 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11538 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11541 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11542 # Extract the first word of "as
", so it can be a program name with args.
11543 set dummy as; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11545 $as_echo_n "checking
for $ac_word...
" >&6; }
11546 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11547 $as_echo_n "(cached
) " >&6
11549 case $AS_FOR_TARGET in
11551 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $gcc_cv_tool_dirs
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11572 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11573 if test -n "$AS_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11575 $as_echo "$AS_FOR_TARGET" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11578 $as_echo "no
" >&6; }
11583 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11586 if test -n "$AS_FOR_TARGET"; then
11587 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11588 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11589 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11592 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11593 for ncn_progname in as; do
11594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11595 set dummy ${ncn_progname}; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11597 $as_echo_n "checking
for $ac_word...
" >&6; }
11598 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11599 $as_echo_n "(cached
) " >&6
11601 if test -n "$AS_FOR_TARGET"; then
11602 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11621 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11622 if test -n "$AS_FOR_TARGET"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11624 $as_echo "$AS_FOR_TARGET" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11627 $as_echo "no
" >&6; }
11634 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11635 for ncn_progname in as; do
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11637 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11638 if test -x $with_build_time_tools/${ncn_progname}; then
11639 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11641 $as_echo "yes" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11645 $as_echo "no
" >&6; }
11650 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11651 for ncn_progname in as; do
11652 if test -n "$ncn_target_tool_prefix"; then
11653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11654 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11656 $as_echo_n "checking
for $ac_word...
" >&6; }
11657 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11658 $as_echo_n "(cached
) " >&6
11660 if test -n "$AS_FOR_TARGET"; then
11661 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11680 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11681 if test -n "$AS_FOR_TARGET"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11683 $as_echo "$AS_FOR_TARGET" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11686 $as_echo "no
" >&6; }
11691 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11693 set dummy ${ncn_progname}; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11695 $as_echo_n "checking
for $ac_word...
" >&6; }
11696 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11697 $as_echo_n "(cached
) " >&6
11699 if test -n "$AS_FOR_TARGET"; then
11700 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11719 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11720 if test -n "$AS_FOR_TARGET"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11722 $as_echo "$AS_FOR_TARGET" >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11725 $as_echo "no
" >&6; }
11730 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11734 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11736 if test $build = $target ; then
11739 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11742 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11746 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11752 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11753 if test -n "$with_build_time_tools"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
11755 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
11756 if test -x $with_build_time_tools/dlltool; then
11757 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11758 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11760 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11763 $as_echo "no
" >&6; }
11765 elif test $build != $host && test $have_gcc_for_target = yes; then
11766 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11767 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11768 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11771 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11772 # Extract the first word of "dlltool
", so it can be a program name with args.
11773 set dummy dlltool; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11775 $as_echo_n "checking
for $ac_word...
" >&6; }
11776 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11777 $as_echo_n "(cached
) " >&6
11779 case $DLLTOOL_FOR_TARGET in
11781 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $gcc_cv_tool_dirs
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11802 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11803 if test -n "$DLLTOOL_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11805 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11808 $as_echo "no
" >&6; }
11813 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11816 if test -n "$DLLTOOL_FOR_TARGET"; then
11817 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11818 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11819 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11822 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11823 for ncn_progname in dlltool; do
11824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11825 set dummy ${ncn_progname}; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11827 $as_echo_n "checking
for $ac_word...
" >&6; }
11828 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11829 $as_echo_n "(cached
) " >&6
11831 if test -n "$DLLTOOL_FOR_TARGET"; then
11832 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11851 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11852 if test -n "$DLLTOOL_FOR_TARGET"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11854 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11857 $as_echo "no
" >&6; }
11864 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11865 for ncn_progname in dlltool; do
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11867 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11868 if test -x $with_build_time_tools/${ncn_progname}; then
11869 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11871 $as_echo "yes" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11875 $as_echo "no
" >&6; }
11880 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11881 for ncn_progname in dlltool; do
11882 if test -n "$ncn_target_tool_prefix"; then
11883 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11884 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11886 $as_echo_n "checking
for $ac_word...
" >&6; }
11887 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11888 $as_echo_n "(cached
) " >&6
11890 if test -n "$DLLTOOL_FOR_TARGET"; then
11891 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11910 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11911 if test -n "$DLLTOOL_FOR_TARGET"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11913 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11916 $as_echo "no
" >&6; }
11921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11925 $as_echo_n "checking
for $ac_word...
" >&6; }
11926 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11927 $as_echo_n "(cached
) " >&6
11929 if test -n "$DLLTOOL_FOR_TARGET"; then
11930 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11949 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11950 if test -n "$DLLTOOL_FOR_TARGET"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11952 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11955 $as_echo "no
" >&6; }
11960 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11964 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11966 if test $build = $target ; then
11967 DLLTOOL_FOR_TARGET="$2"
11969 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11972 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11976 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11982 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11983 if test -n "$with_build_time_tools"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
11985 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
11986 if test -x $with_build_time_tools/ld; then
11987 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11988 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
11990 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11993 $as_echo "no
" >&6; }
11995 elif test $build != $host && test $have_gcc_for_target = yes; then
11996 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11997 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11998 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12001 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12002 # Extract the first word of "ld
", so it can be a program name with args.
12003 set dummy ld; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12005 $as_echo_n "checking
for $ac_word...
" >&6; }
12006 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12007 $as_echo_n "(cached
) " >&6
12009 case $LD_FOR_TARGET in
12011 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $gcc_cv_tool_dirs
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12032 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12033 if test -n "$LD_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12035 $as_echo "$LD_FOR_TARGET" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12038 $as_echo "no
" >&6; }
12043 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12046 if test -n "$LD_FOR_TARGET"; then
12047 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12048 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12049 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12052 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12053 for ncn_progname in ld; do
12054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12055 set dummy ${ncn_progname}; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12057 $as_echo_n "checking
for $ac_word...
" >&6; }
12058 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12059 $as_echo_n "(cached
) " >&6
12061 if test -n "$LD_FOR_TARGET"; then
12062 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12081 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12082 if test -n "$LD_FOR_TARGET"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12084 $as_echo "$LD_FOR_TARGET" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12087 $as_echo "no
" >&6; }
12094 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12095 for ncn_progname in ld; do
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12097 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12098 if test -x $with_build_time_tools/${ncn_progname}; then
12099 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12101 $as_echo "yes" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12105 $as_echo "no
" >&6; }
12110 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12111 for ncn_progname in ld; do
12112 if test -n "$ncn_target_tool_prefix"; then
12113 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12114 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12116 $as_echo_n "checking
for $ac_word...
" >&6; }
12117 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12118 $as_echo_n "(cached
) " >&6
12120 if test -n "$LD_FOR_TARGET"; then
12121 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12140 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12141 if test -n "$LD_FOR_TARGET"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12143 $as_echo "$LD_FOR_TARGET" >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12146 $as_echo "no
" >&6; }
12151 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12155 $as_echo_n "checking
for $ac_word...
" >&6; }
12156 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12157 $as_echo_n "(cached
) " >&6
12159 if test -n "$LD_FOR_TARGET"; then
12160 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12179 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12180 if test -n "$LD_FOR_TARGET"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
12182 $as_echo "$LD_FOR_TARGET" >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12185 $as_echo "no
" >&6; }
12190 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12194 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12196 if test $build = $target ; then
12199 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12202 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12206 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12212 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12213 if test -n "$with_build_time_tools"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
12215 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
12216 if test -x $with_build_time_tools/lipo; then
12217 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12218 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
12220 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12223 $as_echo "no
" >&6; }
12225 elif test $build != $host && test $have_gcc_for_target = yes; then
12226 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12227 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12228 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12231 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12232 # Extract the first word of "lipo
", so it can be a program name with args.
12233 set dummy lipo; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12235 $as_echo_n "checking
for $ac_word...
" >&6; }
12236 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12237 $as_echo_n "(cached
) " >&6
12239 case $LIPO_FOR_TARGET in
12241 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $gcc_cv_tool_dirs
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12262 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12263 if test -n "$LIPO_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12265 $as_echo "$LIPO_FOR_TARGET" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12268 $as_echo "no
" >&6; }
12273 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12276 if test -n "$LIPO_FOR_TARGET"; then
12277 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12278 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12279 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12282 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12283 for ncn_progname in lipo; do
12284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12285 set dummy ${ncn_progname}; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12287 $as_echo_n "checking
for $ac_word...
" >&6; }
12288 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12289 $as_echo_n "(cached
) " >&6
12291 if test -n "$LIPO_FOR_TARGET"; then
12292 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12311 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12312 if test -n "$LIPO_FOR_TARGET"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12314 $as_echo "$LIPO_FOR_TARGET" >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12317 $as_echo "no
" >&6; }
12324 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12325 for ncn_progname in lipo; do
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12327 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12328 if test -x $with_build_time_tools/${ncn_progname}; then
12329 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12331 $as_echo "yes" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12335 $as_echo "no
" >&6; }
12340 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12341 for ncn_progname in lipo; do
12342 if test -n "$ncn_target_tool_prefix"; then
12343 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12344 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12346 $as_echo_n "checking
for $ac_word...
" >&6; }
12347 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12348 $as_echo_n "(cached
) " >&6
12350 if test -n "$LIPO_FOR_TARGET"; then
12351 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12370 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12371 if test -n "$LIPO_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12373 $as_echo "$LIPO_FOR_TARGET" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12376 $as_echo "no
" >&6; }
12381 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12385 $as_echo_n "checking
for $ac_word...
" >&6; }
12386 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12387 $as_echo_n "(cached
) " >&6
12389 if test -n "$LIPO_FOR_TARGET"; then
12390 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12409 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12410 if test -n "$LIPO_FOR_TARGET"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12412 $as_echo "$LIPO_FOR_TARGET" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12415 $as_echo "no
" >&6; }
12420 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12424 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12426 if test $build = $target ; then
12427 LIPO_FOR_TARGET="$2"
12429 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12432 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12436 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12442 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12443 if test -n "$with_build_time_tools"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
12445 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
12446 if test -x $with_build_time_tools/nm; then
12447 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12448 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
12450 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12453 $as_echo "no
" >&6; }
12455 elif test $build != $host && test $have_gcc_for_target = yes; then
12456 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12457 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12458 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12461 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12462 # Extract the first word of "nm
", so it can be a program name with args.
12463 set dummy nm; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12465 $as_echo_n "checking
for $ac_word...
" >&6; }
12466 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12467 $as_echo_n "(cached
) " >&6
12469 case $NM_FOR_TARGET in
12471 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $gcc_cv_tool_dirs
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12492 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12493 if test -n "$NM_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12495 $as_echo "$NM_FOR_TARGET" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12498 $as_echo "no
" >&6; }
12503 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12506 if test -n "$NM_FOR_TARGET"; then
12507 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12508 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12509 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12512 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12513 for ncn_progname in nm; do
12514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_progname}; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12517 $as_echo_n "checking
for $ac_word...
" >&6; }
12518 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12519 $as_echo_n "(cached
) " >&6
12521 if test -n "$NM_FOR_TARGET"; then
12522 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12541 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12542 if test -n "$NM_FOR_TARGET"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12544 $as_echo "$NM_FOR_TARGET" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12547 $as_echo "no
" >&6; }
12554 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12555 for ncn_progname in nm; do
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12557 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12558 if test -x $with_build_time_tools/${ncn_progname}; then
12559 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12561 $as_echo "yes" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12565 $as_echo "no
" >&6; }
12570 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12571 for ncn_progname in nm; do
12572 if test -n "$ncn_target_tool_prefix"; then
12573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12576 $as_echo_n "checking
for $ac_word...
" >&6; }
12577 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12578 $as_echo_n "(cached
) " >&6
12580 if test -n "$NM_FOR_TARGET"; then
12581 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12600 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12601 if test -n "$NM_FOR_TARGET"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12603 $as_echo "$NM_FOR_TARGET" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12606 $as_echo "no
" >&6; }
12611 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12615 $as_echo_n "checking
for $ac_word...
" >&6; }
12616 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12617 $as_echo_n "(cached
) " >&6
12619 if test -n "$NM_FOR_TARGET"; then
12620 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12639 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12640 if test -n "$NM_FOR_TARGET"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12642 $as_echo "$NM_FOR_TARGET" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12645 $as_echo "no
" >&6; }
12650 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12654 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12656 if test $build = $target ; then
12659 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12662 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12666 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12672 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12673 if test -n "$with_build_time_tools"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
12675 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
12676 if test -x $with_build_time_tools/objcopy; then
12677 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12678 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12680 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12683 $as_echo "no
" >&6; }
12685 elif test $build != $host && test $have_gcc_for_target = yes; then
12686 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12687 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12688 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12691 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12692 # Extract the first word of "objcopy
", so it can be a program name with args.
12693 set dummy objcopy; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12695 $as_echo_n "checking
for $ac_word...
" >&6; }
12696 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12697 $as_echo_n "(cached
) " >&6
12699 case $OBJCOPY_FOR_TARGET in
12701 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $gcc_cv_tool_dirs
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12722 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12723 if test -n "$OBJCOPY_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12725 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12728 $as_echo "no
" >&6; }
12733 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12736 if test -n "$OBJCOPY_FOR_TARGET"; then
12737 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12738 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12739 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12742 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12743 for ncn_progname in objcopy; do
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12747 $as_echo_n "checking
for $ac_word...
" >&6; }
12748 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached
) " >&6
12751 if test -n "$OBJCOPY_FOR_TARGET"; then
12752 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12771 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12772 if test -n "$OBJCOPY_FOR_TARGET"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12774 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12777 $as_echo "no
" >&6; }
12784 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12785 for ncn_progname in objcopy; do
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12787 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12788 if test -x $with_build_time_tools/${ncn_progname}; then
12789 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12791 $as_echo "yes" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12795 $as_echo "no
" >&6; }
12800 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12801 for ncn_progname in objcopy; do
12802 if test -n "$ncn_target_tool_prefix"; then
12803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12804 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12806 $as_echo_n "checking
for $ac_word...
" >&6; }
12807 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12808 $as_echo_n "(cached
) " >&6
12810 if test -n "$OBJCOPY_FOR_TARGET"; then
12811 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12830 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12831 if test -n "$OBJCOPY_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12833 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12836 $as_echo "no
" >&6; }
12841 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12843 set dummy ${ncn_progname}; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12845 $as_echo_n "checking
for $ac_word...
" >&6; }
12846 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12847 $as_echo_n "(cached
) " >&6
12849 if test -n "$OBJCOPY_FOR_TARGET"; then
12850 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12869 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12870 if test -n "$OBJCOPY_FOR_TARGET"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12872 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12875 $as_echo "no
" >&6; }
12880 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12884 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12886 if test $build = $target ; then
12887 OBJCOPY_FOR_TARGET="$2"
12889 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12892 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12896 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12902 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12903 if test -n "$with_build_time_tools"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
12905 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
12906 if test -x $with_build_time_tools/objdump; then
12907 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12908 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12910 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12913 $as_echo "no
" >&6; }
12915 elif test $build != $host && test $have_gcc_for_target = yes; then
12916 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12917 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12918 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12921 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12922 # Extract the first word of "objdump
", so it can be a program name with args.
12923 set dummy objdump; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12925 $as_echo_n "checking
for $ac_word...
" >&6; }
12926 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12927 $as_echo_n "(cached
) " >&6
12929 case $OBJDUMP_FOR_TARGET in
12931 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $gcc_cv_tool_dirs
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12952 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12953 if test -n "$OBJDUMP_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12955 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12958 $as_echo "no
" >&6; }
12963 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12966 if test -n "$OBJDUMP_FOR_TARGET"; then
12967 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12968 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12969 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12972 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12973 for ncn_progname in objdump; do
12974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12975 set dummy ${ncn_progname}; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12977 $as_echo_n "checking
for $ac_word...
" >&6; }
12978 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12979 $as_echo_n "(cached
) " >&6
12981 if test -n "$OBJDUMP_FOR_TARGET"; then
12982 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13001 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13002 if test -n "$OBJDUMP_FOR_TARGET"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13004 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13007 $as_echo "no
" >&6; }
13014 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13015 for ncn_progname in objdump; do
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13017 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13018 if test -x $with_build_time_tools/${ncn_progname}; then
13019 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13021 $as_echo "yes" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13025 $as_echo "no
" >&6; }
13030 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13031 for ncn_progname in objdump; do
13032 if test -n "$ncn_target_tool_prefix"; then
13033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13036 $as_echo_n "checking
for $ac_word...
" >&6; }
13037 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13038 $as_echo_n "(cached
) " >&6
13040 if test -n "$OBJDUMP_FOR_TARGET"; then
13041 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13060 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13061 if test -n "$OBJDUMP_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13063 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13066 $as_echo "no
" >&6; }
13071 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13073 set dummy ${ncn_progname}; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13075 $as_echo_n "checking
for $ac_word...
" >&6; }
13076 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13077 $as_echo_n "(cached
) " >&6
13079 if test -n "$OBJDUMP_FOR_TARGET"; then
13080 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13089 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13099 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13100 if test -n "$OBJDUMP_FOR_TARGET"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
13102 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13105 $as_echo "no
" >&6; }
13110 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13114 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13116 if test $build = $target ; then
13117 OBJDUMP_FOR_TARGET="$2"
13119 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13122 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13126 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13132 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13133 if test -n "$with_build_time_tools"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
13135 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
13136 if test -x $with_build_time_tools/ranlib; then
13137 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13138 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13140 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13143 $as_echo "no
" >&6; }
13145 elif test $build != $host && test $have_gcc_for_target = yes; then
13146 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13147 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13148 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13151 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13152 # Extract the first word of "ranlib
", so it can be a program name with args.
13153 set dummy ranlib; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13155 $as_echo_n "checking
for $ac_word...
" >&6; }
13156 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13157 $as_echo_n "(cached
) " >&6
13159 case $RANLIB_FOR_TARGET in
13161 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $gcc_cv_tool_dirs
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13182 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13183 if test -n "$RANLIB_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13185 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13188 $as_echo "no
" >&6; }
13193 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13196 if test -n "$RANLIB_FOR_TARGET"; then
13197 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13198 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13199 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13202 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13203 for ncn_progname in ranlib; do
13204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13205 set dummy ${ncn_progname}; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13207 $as_echo_n "checking
for $ac_word...
" >&6; }
13208 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13209 $as_echo_n "(cached
) " >&6
13211 if test -n "$RANLIB_FOR_TARGET"; then
13212 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13231 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13232 if test -n "$RANLIB_FOR_TARGET"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13234 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13237 $as_echo "no
" >&6; }
13244 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13245 for ncn_progname in ranlib; do
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13247 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13248 if test -x $with_build_time_tools/${ncn_progname}; then
13249 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13251 $as_echo "yes" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13255 $as_echo "no
" >&6; }
13260 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13261 for ncn_progname in ranlib; do
13262 if test -n "$ncn_target_tool_prefix"; then
13263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13266 $as_echo_n "checking
for $ac_word...
" >&6; }
13267 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached
) " >&6
13270 if test -n "$RANLIB_FOR_TARGET"; then
13271 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13290 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13291 if test -n "$RANLIB_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13293 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13296 $as_echo "no
" >&6; }
13301 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13305 $as_echo_n "checking
for $ac_word...
" >&6; }
13306 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13307 $as_echo_n "(cached
) " >&6
13309 if test -n "$RANLIB_FOR_TARGET"; then
13310 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13329 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13330 if test -n "$RANLIB_FOR_TARGET"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
13332 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13335 $as_echo "no
" >&6; }
13340 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13344 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13346 if test $build = $target ; then
13347 RANLIB_FOR_TARGET="$2"
13349 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13352 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13356 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13362 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13363 if test -n "$with_build_time_tools"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
13365 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
13366 if test -x $with_build_time_tools/readelf; then
13367 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13368 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
13370 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13373 $as_echo "no
" >&6; }
13375 elif test $build != $host && test $have_gcc_for_target = yes; then
13376 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13377 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13378 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13381 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13382 # Extract the first word of "readelf
", so it can be a program name with args.
13383 set dummy readelf; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13385 $as_echo_n "checking
for $ac_word...
" >&6; }
13386 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13387 $as_echo_n "(cached
) " >&6
13389 case $READELF_FOR_TARGET in
13391 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $gcc_cv_tool_dirs
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13412 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13413 if test -n "$READELF_FOR_TARGET"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13415 $as_echo "$READELF_FOR_TARGET" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13418 $as_echo "no
" >&6; }
13423 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13426 if test -n "$READELF_FOR_TARGET"; then
13427 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13428 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13429 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13432 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13433 for ncn_progname in readelf; do
13434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13435 set dummy ${ncn_progname}; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13437 $as_echo_n "checking
for $ac_word...
" >&6; }
13438 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13439 $as_echo_n "(cached
) " >&6
13441 if test -n "$READELF_FOR_TARGET"; then
13442 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13461 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13462 if test -n "$READELF_FOR_TARGET"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13464 $as_echo "$READELF_FOR_TARGET" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13467 $as_echo "no
" >&6; }
13474 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13475 for ncn_progname in readelf; do
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13477 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13478 if test -x $with_build_time_tools/${ncn_progname}; then
13479 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13481 $as_echo "yes" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13485 $as_echo "no
" >&6; }
13490 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13491 for ncn_progname in readelf; do
13492 if test -n "$ncn_target_tool_prefix"; then
13493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13496 $as_echo_n "checking
for $ac_word...
" >&6; }
13497 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13498 $as_echo_n "(cached
) " >&6
13500 if test -n "$READELF_FOR_TARGET"; then
13501 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13510 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13520 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13521 if test -n "$READELF_FOR_TARGET"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13523 $as_echo "$READELF_FOR_TARGET" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13526 $as_echo "no
" >&6; }
13531 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13533 set dummy ${ncn_progname}; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13535 $as_echo_n "checking
for $ac_word...
" >&6; }
13536 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13537 $as_echo_n "(cached
) " >&6
13539 if test -n "$READELF_FOR_TARGET"; then
13540 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13559 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13560 if test -n "$READELF_FOR_TARGET"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13562 $as_echo "$READELF_FOR_TARGET" >&6; }
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13565 $as_echo "no
" >&6; }
13570 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13574 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13576 if test $build = $target ; then
13577 READELF_FOR_TARGET="$2"
13579 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13582 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13586 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13592 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13593 if test -n "$with_build_time_tools"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
13595 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
13596 if test -x $with_build_time_tools/strip; then
13597 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13598 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
13600 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13603 $as_echo "no
" >&6; }
13605 elif test $build != $host && test $have_gcc_for_target = yes; then
13606 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13607 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13608 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13611 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13612 # Extract the first word of "strip
", so it can be a program name with args.
13613 set dummy strip; ac_word=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13615 $as_echo_n "checking
for $ac_word...
" >&6; }
13616 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13617 $as_echo_n "(cached
) " >&6
13619 case $STRIP_FOR_TARGET in
13621 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $gcc_cv_tool_dirs
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13642 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13643 if test -n "$STRIP_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13645 $as_echo "$STRIP_FOR_TARGET" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13648 $as_echo "no
" >&6; }
13653 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13656 if test -n "$STRIP_FOR_TARGET"; then
13657 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13658 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13659 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13662 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13663 for ncn_progname in strip; do
13664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13665 set dummy ${ncn_progname}; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13667 $as_echo_n "checking
for $ac_word...
" >&6; }
13668 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13669 $as_echo_n "(cached
) " >&6
13671 if test -n "$STRIP_FOR_TARGET"; then
13672 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13691 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13692 if test -n "$STRIP_FOR_TARGET"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13694 $as_echo "$STRIP_FOR_TARGET" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13697 $as_echo "no
" >&6; }
13704 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13705 for ncn_progname in strip; do
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13707 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13708 if test -x $with_build_time_tools/${ncn_progname}; then
13709 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13711 $as_echo "yes" >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13715 $as_echo "no
" >&6; }
13720 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13721 for ncn_progname in strip; do
13722 if test -n "$ncn_target_tool_prefix"; then
13723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13726 $as_echo_n "checking
for $ac_word...
" >&6; }
13727 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13728 $as_echo_n "(cached
) " >&6
13730 if test -n "$STRIP_FOR_TARGET"; then
13731 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13750 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13751 if test -n "$STRIP_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13753 $as_echo "$STRIP_FOR_TARGET" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13756 $as_echo "no
" >&6; }
13761 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13763 set dummy ${ncn_progname}; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13765 $as_echo_n "checking
for $ac_word...
" >&6; }
13766 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13767 $as_echo_n "(cached
) " >&6
13769 if test -n "$STRIP_FOR_TARGET"; then
13770 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13789 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13790 if test -n "$STRIP_FOR_TARGET"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13792 $as_echo "$STRIP_FOR_TARGET" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13795 $as_echo "no
" >&6; }
13800 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13804 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13806 if test $build = $target ; then
13807 STRIP_FOR_TARGET="$2"
13809 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13812 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13816 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13822 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13823 if test -n "$with_build_time_tools"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
13825 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
13826 if test -x $with_build_time_tools/windres; then
13827 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13828 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13830 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13833 $as_echo "no
" >&6; }
13835 elif test $build != $host && test $have_gcc_for_target = yes; then
13836 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13837 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13838 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13841 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13842 # Extract the first word of "windres
", so it can be a program name with args.
13843 set dummy windres; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13845 $as_echo_n "checking
for $ac_word...
" >&6; }
13846 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13847 $as_echo_n "(cached
) " >&6
13849 case $WINDRES_FOR_TARGET in
13851 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $gcc_cv_tool_dirs
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13872 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13873 if test -n "$WINDRES_FOR_TARGET"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13875 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13878 $as_echo "no
" >&6; }
13883 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13886 if test -n "$WINDRES_FOR_TARGET"; then
13887 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13888 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13889 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13892 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13893 for ncn_progname in windres; do
13894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13895 set dummy ${ncn_progname}; ac_word=$2
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13897 $as_echo_n "checking
for $ac_word...
" >&6; }
13898 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13899 $as_echo_n "(cached
) " >&6
13901 if test -n "$WINDRES_FOR_TARGET"; then
13902 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13911 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13921 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13922 if test -n "$WINDRES_FOR_TARGET"; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13924 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13927 $as_echo "no
" >&6; }
13934 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13935 for ncn_progname in windres; do
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13937 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13938 if test -x $with_build_time_tools/${ncn_progname}; then
13939 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13941 $as_echo "yes" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13945 $as_echo "no
" >&6; }
13950 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13951 for ncn_progname in windres; do
13952 if test -n "$ncn_target_tool_prefix"; then
13953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13956 $as_echo_n "checking
for $ac_word...
" >&6; }
13957 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13958 $as_echo_n "(cached
) " >&6
13960 if test -n "$WINDRES_FOR_TARGET"; then
13961 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964 for as_dir in $PATH
13967 test -z "$as_dir" && as_dir=.
13968 for ac_exec_ext in '' $ac_executable_extensions; do
13969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13970 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13980 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13981 if test -n "$WINDRES_FOR_TARGET"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13983 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13986 $as_echo "no
" >&6; }
13991 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13993 set dummy ${ncn_progname}; ac_word=$2
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13995 $as_echo_n "checking
for $ac_word...
" >&6; }
13996 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13997 $as_echo_n "(cached
) " >&6
13999 if test -n "$WINDRES_FOR_TARGET"; then
14000 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14019 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14020 if test -n "$WINDRES_FOR_TARGET"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
14022 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14025 $as_echo "no
" >&6; }
14030 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14034 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14036 if test $build = $target ; then
14037 WINDRES_FOR_TARGET="$2"
14039 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14042 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14046 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14052 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14053 if test -n "$with_build_time_tools"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
14055 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
14056 if test -x $with_build_time_tools/windmc; then
14057 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14058 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14060 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14063 $as_echo "no
" >&6; }
14065 elif test $build != $host && test $have_gcc_for_target = yes; then
14066 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14067 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14068 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14071 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14072 # Extract the first word of "windmc
", so it can be a program name with args.
14073 set dummy windmc; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14075 $as_echo_n "checking
for $ac_word...
" >&6; }
14076 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14077 $as_echo_n "(cached
) " >&6
14079 case $WINDMC_FOR_TARGET in
14081 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $gcc_cv_tool_dirs
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14102 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14103 if test -n "$WINDMC_FOR_TARGET"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14105 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14108 $as_echo "no
" >&6; }
14113 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14116 if test -n "$WINDMC_FOR_TARGET"; then
14117 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14118 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14119 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14122 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14123 for ncn_progname in windmc; do
14124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14125 set dummy ${ncn_progname}; ac_word=$2
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14127 $as_echo_n "checking
for $ac_word...
" >&6; }
14128 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14129 $as_echo_n "(cached
) " >&6
14131 if test -n "$WINDMC_FOR_TARGET"; then
14132 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
14140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14141 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14151 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14152 if test -n "$WINDMC_FOR_TARGET"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14154 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14157 $as_echo "no
" >&6; }
14164 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14165 for ncn_progname in windmc; do
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14167 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14168 if test -x $with_build_time_tools/${ncn_progname}; then
14169 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14171 $as_echo "yes" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14175 $as_echo "no
" >&6; }
14180 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14181 for ncn_progname in windmc; do
14182 if test -n "$ncn_target_tool_prefix"; then
14183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14186 $as_echo_n "checking
for $ac_word...
" >&6; }
14187 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14188 $as_echo_n "(cached
) " >&6
14190 if test -n "$WINDMC_FOR_TARGET"; then
14191 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14210 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14211 if test -n "$WINDMC_FOR_TARGET"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14213 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14216 $as_echo "no
" >&6; }
14221 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14223 set dummy ${ncn_progname}; ac_word=$2
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14225 $as_echo_n "checking
for $ac_word...
" >&6; }
14226 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14227 $as_echo_n "(cached
) " >&6
14229 if test -n "$WINDMC_FOR_TARGET"; then
14230 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14249 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14250 if test -n "$WINDMC_FOR_TARGET"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
14252 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14255 $as_echo "no
" >&6; }
14260 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14264 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14266 if test $build = $target ; then
14267 WINDMC_FOR_TARGET="$2"
14269 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14272 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14276 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14280 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
14283 $as_echo_n "checking where to
find the target
ar...
" >&6; }
14284 if test "x
${build}" != "x
${host}" ; then
14285 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
14286 # We already found the complete path
14287 ac_dir=`dirname $AR_FOR_TARGET`
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14289 $as_echo "pre-installed
in $ac_dir" >&6; }
14291 # Canadian cross, just use what we found
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14293 $as_echo "pre-installed
" >&6; }
14297 case " ${configdirs} " in
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14306 $as_echo "just compiled
" >&6; }
14307 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $AR_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14311 $as_echo "pre-installed
in $ac_dir" >&6; }
14312 elif test "x
$target" = "x
$host"; then
14313 # We can use an host tool
14314 AR_FOR_TARGET='$(AR)'
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14316 $as_echo "host tool
" >&6; }
14318 # We need a cross tool
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14320 $as_echo "pre-installed
" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
14325 $as_echo_n "checking where to
find the target as...
" >&6; }
14326 if test "x
${build}" != "x
${host}" ; then
14327 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $AS_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14331 $as_echo "pre-installed
in $ac_dir" >&6; }
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14335 $as_echo "pre-installed
" >&6; }
14339 case " ${configdirs} " in
14344 if test $ok = yes; then
14345 # An in-tree tool is available and we can use it
14346 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14348 $as_echo "just compiled
" >&6; }
14349 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
14350 # We already found the complete path
14351 ac_dir=`dirname $AS_FOR_TARGET`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14353 $as_echo "pre-installed
in $ac_dir" >&6; }
14354 elif test "x
$target" = "x
$host"; then
14355 # We can use an host tool
14356 AS_FOR_TARGET='$(AS)'
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14358 $as_echo "host tool
" >&6; }
14360 # We need a cross tool
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14362 $as_echo "pre-installed
" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
14367 $as_echo_n "checking where to
find the target cc...
" >&6; }
14368 if test "x
${build}" != "x
${host}" ; then
14369 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14370 # We already found the complete path
14371 ac_dir=`dirname $CC_FOR_TARGET`
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14373 $as_echo "pre-installed
in $ac_dir" >&6; }
14375 # Canadian cross, just use what we found
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14377 $as_echo "pre-installed
" >&6; }
14381 case " ${configdirs} " in
14386 if test $ok = yes; then
14387 # An in-tree tool is available and we can use it
14388 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14390 $as_echo "just compiled
" >&6; }
14391 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14392 # We already found the complete path
14393 ac_dir=`dirname $CC_FOR_TARGET`
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14395 $as_echo "pre-installed
in $ac_dir" >&6; }
14396 elif test "x
$target" = "x
$host"; then
14397 # We can use an host tool
14398 CC_FOR_TARGET='$(CC)'
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14400 $as_echo "host tool
" >&6; }
14402 # We need a cross tool
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14404 $as_echo "pre-installed
" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
14409 $as_echo_n "checking where to
find the target c
++...
" >&6; }
14410 if test "x
${build}" != "x
${host}" ; then
14411 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14412 # We already found the complete path
14413 ac_dir=`dirname $CXX_FOR_TARGET`
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14415 $as_echo "pre-installed
in $ac_dir" >&6; }
14417 # Canadian cross, just use what we found
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14419 $as_echo "pre-installed
" >&6; }
14423 case " ${configdirs} " in
14427 case ,${enable_languages}, in
14431 if test $ok = yes; then
14432 # An in-tree tool is available and we can use it
14433 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'
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14435 $as_echo "just compiled
" >&6; }
14436 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14437 # We already found the complete path
14438 ac_dir=`dirname $CXX_FOR_TARGET`
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14440 $as_echo "pre-installed
in $ac_dir" >&6; }
14441 elif test "x
$target" = "x
$host"; then
14442 # We can use an host tool
14443 CXX_FOR_TARGET='$(CXX)'
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14445 $as_echo "host tool
" >&6; }
14447 # We need a cross tool
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14449 $as_echo "pre-installed
" >&6; }
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
14454 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
14455 if test "x
${build}" != "x
${host}" ; then
14456 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14457 # We already found the complete path
14458 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14460 $as_echo "pre-installed
in $ac_dir" >&6; }
14462 # Canadian cross, just use what we found
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14464 $as_echo "pre-installed
" >&6; }
14468 case " ${configdirs} " in
14472 case ,${enable_languages}, in
14476 if test $ok = yes; then
14477 # An in-tree tool is available and we can use it
14478 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'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14480 $as_echo "just compiled
" >&6; }
14481 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14485 $as_echo "pre-installed
in $ac_dir" >&6; }
14486 elif test "x
$target" = "x
$host"; then
14487 # We can use an host tool
14488 RAW_CXX_FOR_TARGET='$(CXX)'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14490 $as_echo "host tool
" >&6; }
14492 # We need a cross tool
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14494 $as_echo "pre-installed
" >&6; }
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
14499 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
14500 if test "x
${build}" != "x
${host}" ; then
14501 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14502 # We already found the complete path
14503 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14505 $as_echo "pre-installed
in $ac_dir" >&6; }
14507 # Canadian cross, just use what we found
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14509 $as_echo "pre-installed
" >&6; }
14513 case " ${configdirs} " in
14518 if test $ok = yes; then
14519 # An in-tree tool is available and we can use it
14520 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14522 $as_echo "just compiled
" >&6; }
14523 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14524 # We already found the complete path
14525 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14527 $as_echo "pre-installed
in $ac_dir" >&6; }
14528 elif test "x
$target" = "x
$host"; then
14529 # We can use an host tool
14530 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14532 $as_echo "host tool
" >&6; }
14534 # We need a cross tool
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14536 $as_echo "pre-installed
" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
14541 $as_echo_n "checking where to
find the target gcc...
" >&6; }
14542 if test "x
${build}" != "x
${host}" ; then
14543 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14544 # We already found the complete path
14545 ac_dir=`dirname $GCC_FOR_TARGET`
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14547 $as_echo "pre-installed
in $ac_dir" >&6; }
14549 # Canadian cross, just use what we found
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14551 $as_echo "pre-installed
" >&6; }
14555 case " ${configdirs} " in
14560 if test $ok = yes; then
14561 # An in-tree tool is available and we can use it
14562 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14564 $as_echo "just compiled
" >&6; }
14565 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14566 # We already found the complete path
14567 ac_dir=`dirname $GCC_FOR_TARGET`
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14569 $as_echo "pre-installed
in $ac_dir" >&6; }
14570 elif test "x
$target" = "x
$host"; then
14571 # We can use an host tool
14572 GCC_FOR_TARGET='$()'
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14574 $as_echo "host tool
" >&6; }
14576 # We need a cross tool
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14578 $as_echo "pre-installed
" >&6; }
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
14583 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
14584 if test "x
${build}" != "x
${host}" ; then
14585 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14586 # We already found the complete path
14587 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14589 $as_echo "pre-installed
in $ac_dir" >&6; }
14591 # Canadian cross, just use what we found
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14593 $as_echo "pre-installed
" >&6; }
14597 case " ${configdirs} " in
14601 case ,${enable_languages}, in
14605 if test $ok = yes; then
14606 # An in-tree tool is available and we can use it
14607 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14609 $as_echo "just compiled
" >&6; }
14610 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14611 # We already found the complete path
14612 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14614 $as_echo "pre-installed
in $ac_dir" >&6; }
14615 elif test "x
$target" = "x
$host"; then
14616 # We can use an host tool
14617 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14619 $as_echo "host tool
" >&6; }
14621 # We need a cross tool
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14623 $as_echo "pre-installed
" >&6; }
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
14628 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
14629 if test "x
${build}" != "x
${host}" ; then
14630 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14631 # We already found the complete path
14632 ac_dir=`dirname $GOC_FOR_TARGET`
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14634 $as_echo "pre-installed
in $ac_dir" >&6; }
14636 # Canadian cross, just use what we found
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14638 $as_echo "pre-installed
" >&6; }
14642 case " ${configdirs} " in
14646 case ,${enable_languages}, in
14650 if test $ok = yes; then
14651 # An in-tree tool is available and we can use it
14652 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14654 $as_echo "just compiled
" >&6; }
14655 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14656 # We already found the complete path
14657 ac_dir=`dirname $GOC_FOR_TARGET`
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14659 $as_echo "pre-installed
in $ac_dir" >&6; }
14660 elif test "x
$target" = "x
$host"; then
14661 # We can use an host tool
14662 GOC_FOR_TARGET='$(GOC)'
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14664 $as_echo "host tool
" >&6; }
14666 # We need a cross tool
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14668 $as_echo "pre-installed
" >&6; }
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
14673 $as_echo_n "checking where to
find the target ld...
" >&6; }
14674 if test "x
${build}" != "x
${host}" ; then
14675 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14676 # We already found the complete path
14677 ac_dir=`dirname $LD_FOR_TARGET`
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14679 $as_echo "pre-installed
in $ac_dir" >&6; }
14681 # Canadian cross, just use what we found
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14683 $as_echo "pre-installed
" >&6; }
14687 case " ${configdirs} " in
14692 if test $ok = yes; then
14693 # An in-tree tool is available and we can use it
14694 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14696 $as_echo "just compiled
" >&6; }
14697 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14698 # We already found the complete path
14699 ac_dir=`dirname $LD_FOR_TARGET`
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14701 $as_echo "pre-installed
in $ac_dir" >&6; }
14702 elif test "x
$target" = "x
$host"; then
14703 # We can use an host tool
14704 LD_FOR_TARGET='$(LD)'
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14706 $as_echo "host tool
" >&6; }
14708 # We need a cross tool
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14710 $as_echo "pre-installed
" >&6; }
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
14715 $as_echo_n "checking where to
find the target lipo...
" >&6; }
14716 if test "x
${build}" != "x
${host}" ; then
14717 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14718 # We already found the complete path
14719 ac_dir=`dirname $LIPO_FOR_TARGET`
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14721 $as_echo "pre-installed
in $ac_dir" >&6; }
14723 # Canadian cross, just use what we found
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14725 $as_echo "pre-installed
" >&6; }
14728 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14729 # We already found the complete path
14730 ac_dir=`dirname $LIPO_FOR_TARGET`
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14732 $as_echo "pre-installed
in $ac_dir" >&6; }
14733 elif test "x
$target" = "x
$host"; then
14734 # We can use an host tool
14735 LIPO_FOR_TARGET='$(LIPO)'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14737 $as_echo "host tool
" >&6; }
14739 # We need a cross tool
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14741 $as_echo "pre-installed
" >&6; }
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
14746 $as_echo_n "checking where to
find the target nm...
" >&6; }
14747 if test "x
${build}" != "x
${host}" ; then
14748 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14749 # We already found the complete path
14750 ac_dir=`dirname $NM_FOR_TARGET`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14752 $as_echo "pre-installed
in $ac_dir" >&6; }
14754 # Canadian cross, just use what we found
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14756 $as_echo "pre-installed
" >&6; }
14760 case " ${configdirs} " in
14765 if test $ok = yes; then
14766 # An in-tree tool is available and we can use it
14767 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14769 $as_echo "just compiled
" >&6; }
14770 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14771 # We already found the complete path
14772 ac_dir=`dirname $NM_FOR_TARGET`
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14774 $as_echo "pre-installed
in $ac_dir" >&6; }
14775 elif test "x
$target" = "x
$host"; then
14776 # We can use an host tool
14777 NM_FOR_TARGET='$(NM)'
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14779 $as_echo "host tool
" >&6; }
14781 # We need a cross tool
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14783 $as_echo "pre-installed
" >&6; }
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
14788 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
14789 if test "x
${build}" != "x
${host}" ; then
14790 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14791 # We already found the complete path
14792 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14794 $as_echo "pre-installed
in $ac_dir" >&6; }
14796 # Canadian cross, just use what we found
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14798 $as_echo "pre-installed
" >&6; }
14802 case " ${configdirs} " in
14807 if test $ok = yes; then
14808 # An in-tree tool is available and we can use it
14809 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14811 $as_echo "just compiled
" >&6; }
14812 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14813 # We already found the complete path
14814 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14816 $as_echo "pre-installed
in $ac_dir" >&6; }
14817 elif test "x
$target" = "x
$host"; then
14818 # We can use an host tool
14819 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14821 $as_echo "host tool
" >&6; }
14823 # We need a cross tool
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14825 $as_echo "pre-installed
" >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
14830 $as_echo_n "checking where to
find the target objdump...
" >&6; }
14831 if test "x
${build}" != "x
${host}" ; then
14832 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14833 # We already found the complete path
14834 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14836 $as_echo "pre-installed
in $ac_dir" >&6; }
14838 # Canadian cross, just use what we found
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14840 $as_echo "pre-installed
" >&6; }
14844 case " ${configdirs} " in
14849 if test $ok = yes; then
14850 # An in-tree tool is available and we can use it
14851 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14853 $as_echo "just compiled
" >&6; }
14854 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14855 # We already found the complete path
14856 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14858 $as_echo "pre-installed
in $ac_dir" >&6; }
14859 elif test "x
$target" = "x
$host"; then
14860 # We can use an host tool
14861 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14863 $as_echo "host tool
" >&6; }
14865 # We need a cross tool
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14867 $as_echo "pre-installed
" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
14872 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
14873 if test "x
${build}" != "x
${host}" ; then
14874 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14875 # We already found the complete path
14876 ac_dir=`dirname $RANLIB_FOR_TARGET`
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14878 $as_echo "pre-installed
in $ac_dir" >&6; }
14880 # Canadian cross, just use what we found
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14882 $as_echo "pre-installed
" >&6; }
14886 case " ${configdirs} " in
14891 if test $ok = yes; then
14892 # An in-tree tool is available and we can use it
14893 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14895 $as_echo "just compiled
" >&6; }
14896 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14897 # We already found the complete path
14898 ac_dir=`dirname $RANLIB_FOR_TARGET`
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14900 $as_echo "pre-installed
in $ac_dir" >&6; }
14901 elif test "x
$target" = "x
$host"; then
14902 # We can use an host tool
14903 RANLIB_FOR_TARGET='$(RANLIB)'
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14905 $as_echo "host tool
" >&6; }
14907 # We need a cross tool
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14909 $as_echo "pre-installed
" >&6; }
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
14914 $as_echo_n "checking where to
find the target readelf...
" >&6; }
14915 if test "x
${build}" != "x
${host}" ; then
14916 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14917 # We already found the complete path
14918 ac_dir=`dirname $READELF_FOR_TARGET`
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14920 $as_echo "pre-installed
in $ac_dir" >&6; }
14922 # Canadian cross, just use what we found
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14924 $as_echo "pre-installed
" >&6; }
14928 case " ${configdirs} " in
14933 if test $ok = yes; then
14934 # An in-tree tool is available and we can use it
14935 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14937 $as_echo "just compiled
" >&6; }
14938 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14939 # We already found the complete path
14940 ac_dir=`dirname $READELF_FOR_TARGET`
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14942 $as_echo "pre-installed
in $ac_dir" >&6; }
14943 elif test "x
$target" = "x
$host"; then
14944 # We can use an host tool
14945 READELF_FOR_TARGET='$(READELF)'
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14947 $as_echo "host tool
" >&6; }
14949 # We need a cross tool
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14951 $as_echo "pre-installed
" >&6; }
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
14956 $as_echo_n "checking where to
find the target strip...
" >&6; }
14957 if test "x
${build}" != "x
${host}" ; then
14958 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14959 # We already found the complete path
14960 ac_dir=`dirname $STRIP_FOR_TARGET`
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14962 $as_echo "pre-installed
in $ac_dir" >&6; }
14964 # Canadian cross, just use what we found
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14966 $as_echo "pre-installed
" >&6; }
14970 case " ${configdirs} " in
14975 if test $ok = yes; then
14976 # An in-tree tool is available and we can use it
14977 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14979 $as_echo "just compiled
" >&6; }
14980 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14981 # We already found the complete path
14982 ac_dir=`dirname $STRIP_FOR_TARGET`
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14984 $as_echo "pre-installed
in $ac_dir" >&6; }
14985 elif test "x
$target" = "x
$host"; then
14986 # We can use an host tool
14987 STRIP_FOR_TARGET='$(STRIP)'
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14989 $as_echo "host tool
" >&6; }
14991 # We need a cross tool
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14993 $as_echo "pre-installed
" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
14998 $as_echo_n "checking where to
find the target windres...
" >&6; }
14999 if test "x
${build}" != "x
${host}" ; then
15000 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
15001 # We already found the complete path
15002 ac_dir=`dirname $WINDRES_FOR_TARGET`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15004 $as_echo "pre-installed
in $ac_dir" >&6; }
15006 # Canadian cross, just use what we found
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15008 $as_echo "pre-installed
" >&6; }
15012 case " ${configdirs} " in
15017 if test $ok = yes; then
15018 # An in-tree tool is available and we can use it
15019 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
15021 $as_echo "just compiled
" >&6; }
15022 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
15023 # We already found the complete path
15024 ac_dir=`dirname $WINDRES_FOR_TARGET`
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15026 $as_echo "pre-installed
in $ac_dir" >&6; }
15027 elif test "x
$target" = "x
$host"; then
15028 # We can use an host tool
15029 WINDRES_FOR_TARGET='$(WINDRES)'
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
15031 $as_echo "host tool
" >&6; }
15033 # We need a cross tool
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15035 $as_echo "pre-installed
" >&6; }
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
15040 $as_echo_n "checking where to
find the target windmc...
" >&6; }
15041 if test "x
${build}" != "x
${host}" ; then
15042 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
15043 # We already found the complete path
15044 ac_dir=`dirname $WINDMC_FOR_TARGET`
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15046 $as_echo "pre-installed
in $ac_dir" >&6; }
15048 # Canadian cross, just use what we found
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15050 $as_echo "pre-installed
" >&6; }
15054 case " ${configdirs} " in
15059 if test $ok = yes; then
15060 # An in-tree tool is available and we can use it
15061 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
15063 $as_echo "just compiled
" >&6; }
15064 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
15065 # We already found the complete path
15066 ac_dir=`dirname $WINDMC_FOR_TARGET`
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
15068 $as_echo "pre-installed
in $ac_dir" >&6; }
15069 elif test "x
$target" = "x
$host"; then
15070 # We can use an host tool
15071 WINDMC_FOR_TARGET='$(WINDMC)'
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
15073 $as_echo "host tool
" >&6; }
15075 # We need a cross tool
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
15077 $as_echo "pre-installed
" >&6; }
15085 # Certain tools may need extra flags.
15086 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15087 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15088 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15090 # When building target libraries, except in a Canadian cross, we use
15091 # the same toolchain as the compiler we just built.
15092 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15093 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15094 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15095 if test $host = $build; then
15096 case " $configdirs " in
15098 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15099 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15100 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
15110 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
15111 # Check whether --enable-maintainer-mode was given.
15112 if test "${enable_maintainer_mode+set}" = set; then :
15113 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15115 USE_MAINTAINER_MODE=no
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
15119 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15122 if test "$USE_MAINTAINER_MODE" = yes; then
15123 MAINTAINER_MODE_TRUE=
15124 MAINTAINER_MODE_FALSE='#'
15126 MAINTAINER_MODE_TRUE='#'
15127 MAINTAINER_MODE_FALSE=
15129 MAINT=$MAINTAINER_MODE_TRUE
15131 # ---------------------
15132 # GCC bootstrap support
15133 # ---------------------
15135 # Stage specific cflags for build.
15140 yes) stage1_cflags="-g -Wa,-J" ;;
15141 *) stage1_cflags="-g -J" ;;
15147 # Enable --enable-checking in stage1 of the compiler.
15148 # Check whether --enable-stage1-checking was given.
15149 if test "${enable_stage1_checking+set}" = set; then :
15150 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15152 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
15153 # For --disable-checking or implicit --enable-checking=release, avoid
15154 # setting --enable-checking=gc in the default stage1 checking for LTO
15155 # bootstraps. See PR62077.
15156 case $BUILD_CONFIG in
15158 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15160 stage1_checking=--enable-checking=yes,types;;
15162 if test "x
$enable_checking" = x && \
15163 test -d ${srcdir}/gcc && \
15164 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15165 stage1_checking=--enable-checking=yes,types,extra
15168 stage1_checking=--enable-checking=$enable_checking,types
15174 # Enable -Werror in bootstrap stage2 and later.
15175 # Check whether --enable-werror was given.
15176 if test "${enable_werror+set}" = set; then :
15177 enableval=$enable_werror;
15178 case ${enable_werror} in
15179 yes) stage2_werror_flag="--enable-werror-always" ;;
15180 *) stage2_werror_flag="" ;;
15185 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15186 case $BUILD_CONFIG in
15188 stage2_werror_flag="--enable-werror-always" ;;
15190 stage2_werror_flag="--enable-werror-always" ;;
15199 # Specify what files to not compare during bootstrap.
15201 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
15203 hppa*64*-*-hpux*) ;;
15204 hppa*-*-hpux*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) |
*/libgcc
/lib2funcs
* | gcc
/ada
/*tools
/* | gcc
/function-tests.o
" ;;
15205 powerpc*-ibm-aix*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/* |
*libgomp
*\$
(objext
)" ;;
15209 ac_config_files="$ac_config_files Makefile
"
15211 cat >confcache <<\_ACEOF
15212 # This file is a shell script that caches the results of configure
15213 # tests run on this system so they can be shared between configure
15214 # scripts and configure runs, see configure's option --config-cache.
15215 # It is not useful on other systems. If it contains results you don't
15216 # want to keep, you may remove or edit it.
15218 # config.status only pays attention to the cache file if you give it
15219 # the --recheck option to rerun configure.
15221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15223 # following values.
15227 # The following way of writing the cache mishandles newlines in values,
15228 # but we know of no workaround that is simple, portable, and efficient.
15229 # So, we kill variables containing newlines.
15230 # Ultrix sh set writes to stderr and can't be redirected directly,
15231 # and sets the high bit in the cache file unless we assign to the vars.
15233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15234 eval ac_val=\$$ac_var
15238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
15239 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
15242 _ | IFS | as_nl) ;; #(
15243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15244 *) { eval $ac_var=; unset $ac_var;} ;;
15250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15251 *${as_nl}ac_space=\ *)
15252 # `set' does not quote correctly, so add quotes: double-quote
15253 # substitution turns \\\\ into \\, and sed turns \\ into \.
15256 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
15259 # `set' quotes correctly as required by POSIX, so do not add quotes.
15260 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
15269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15274 if test -w "$cache_file"; then
15275 if test "x
$cache_file" != "x
/dev
/null
"; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
15277 $as_echo "$as_me: updating cache
$cache_file" >&6;}
15278 if test ! -f "$cache_file" || test -h "$cache_file"; then
15279 cat confcache >"$cache_file"
15281 case $cache_file in #(
15283 mv -f confcache "$cache_file"$$ &&
15284 mv -f "$cache_file"$$ "$cache_file" ;; #(
15286 mv -f confcache "$cache_file" ;;
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
15292 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
15297 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
15298 # Let make expand exec_prefix.
15299 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
15301 # Transform confdefs.h into DEFS.
15302 # Protect against shell expansion while executing Makefile rules.
15303 # Protect against Makefile macro expansion.
15305 # If the first sed substitution is executed (which looks for macros that
15306 # take arguments), then branch to the quote section. Otherwise,
15307 # look for a macro that doesn't take arguments.
15317 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15319 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15323 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
15336 DEFS=`sed -n "$ac_script" confdefs.h`
15342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15343 # 1. Remove the extension, and $U if already installed.
15344 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
15345 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15347 # will be set to the directory where LIBOBJS objects are built.
15348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
15351 LIBOBJS=$ac_libobjs
15353 LTLIBOBJS=$ac_ltlibobjs
15357 : "${CONFIG_STATUS=./config.status}"
15359 ac_clean_files_save=$ac_clean_files
15360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15366 # Generated by $as_me.
15367 # Run this file to recreate the current configuration.
15368 # Compiler output produced by configure, useful for debugging
15369 # configure, is in config.log if it exists.
15372 ac_cs_recheck=false
15375 SHELL=\${CONFIG_SHELL-$SHELL}
15378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15379 ## -------------------- ##
15380 ## M4sh Initialization. ##
15381 ## -------------------- ##
15383 # Be more Bourne compatible
15384 DUALCASE=1; export DUALCASE # for MKS sh
15385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15389 # is contrary to our usage. Disable this feature.
15390 alias -g '${1+"$@"}'='"$@"'
15391 setopt NO_GLOB_SUBST
15393 case `(set -o) 2>/dev/null` in #(
15405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15407 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
15408 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15409 # Prefer a ksh shell builtin over an external printf program on Solaris,
15410 # but without wasting forks for bash or zsh.
15411 if test -z "$BASH_VERSION$ZSH_VERSION" \
15412 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15413 as_echo
='print -r --'
15414 as_echo_n
='print -rn --'
15415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15416 as_echo
='printf %s\n'
15417 as_echo_n
='printf %s'
15419 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15420 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
15421 as_echo_n
='/usr/ucb/echo -n'
15423 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
15424 as_echo_n_body
='eval
15428 expr "X$arg" : "X\\(.*\\)$as_nl";
15429 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15431 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15433 export as_echo_n_body
15434 as_echo_n
='sh -c $as_echo_n_body as_echo'
15436 export as_echo_body
15437 as_echo
='sh -c $as_echo_body as_echo'
15440 # The user is always right.
15441 if test "${PATH_SEPARATOR+set}" != set; then
15443 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
15444 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
15451 # We need space, tab and new line, in precisely that order. Quoting is
15452 # there to prevent editors from complaining about space-tab.
15453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15454 # splitting by setting IFS to empty value.)
15457 # Find who we are. Look in the path if we contain no directory separator.
15460 *[\\/]* ) as_myself
=$0 ;;
15461 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15462 for as_dir
in $PATH
15465 test -z "$as_dir" && as_dir
=.
15466 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15472 # We did not find ourselves, most probably we were run as `sh COMMAND'
15473 # in which case we are not to be found in the path.
15474 if test "x$as_myself" = x
; then
15477 if test ! -f "$as_myself"; then
15478 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15482 # Unset variables that we do not need and which cause bugs (e.g. in
15483 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15484 # suppresses any "Segmentation fault" message there. '((' could
15485 # trigger a bug in pdksh 5.2.14.
15486 for as_var
in BASH_ENV ENV MAIL MAILPATH
15487 do eval test x\
${$as_var+set} = xset \
15488 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15501 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15505 # ----------------------------------------
15506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15508 # script with STATUS, using 1 if that was 0.
15511 as_status
=$1; test $as_status -eq 0 && as_status
=1
15513 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15514 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15516 $as_echo "$as_me: error: $2" >&2
15517 as_fn_exit
$as_status
15521 # as_fn_set_status STATUS
15522 # -----------------------
15523 # Set $? to STATUS, without forking.
15524 as_fn_set_status
()
15527 } # as_fn_set_status
15529 # as_fn_exit STATUS
15530 # -----------------
15531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15535 as_fn_set_status
$1
15541 # Portably unset VAR.
15544 { eval $1=; unset $1;}
15546 as_unset
=as_fn_unset
15547 # as_fn_append VAR VALUE
15548 # ----------------------
15549 # Append the text in VALUE to the end of the definition contained in VAR. Take
15550 # advantage of any shell optimizations that allow amortized linear growth over
15551 # repeated appends, instead of the typical quadratic growth present in naive
15553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15554 eval 'as_fn_append ()
15565 # as_fn_arith ARG...
15566 # ------------------
15567 # Perform arithmetic evaluation on the ARGs, and store the result in the
15568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15569 # must be portable across $(()) and expr.
15570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15571 eval 'as_fn_arith ()
15578 as_val
=`expr "$@" || test $? -eq 1`
15583 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15584 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15590 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15591 as_basename
=basename
15596 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15602 as_me
=`$as_basename -- "$0" ||
15603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15604 X"$0" : 'X\(//\)$' \| \
15605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15607 sed '/^.*\/\([^/][^/]*\)\/*$/{
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits
='0123456789'
15626 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15628 ECHO_C
= ECHO_N
= ECHO_T
=
15629 case `echo -n x` in #(((((
15631 case `echo 'xy\c'` in
15632 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15634 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15641 rm -f conf$$ conf$$.exe conf$$.
file
15642 if test -d conf$$.dir
; then
15643 rm -f conf$$.dir
/conf$$.
file
15646 mkdir conf$$.dir
2>/dev
/null
15648 if (echo >conf$$.
file) 2>/dev
/null
; then
15649 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15651 # ... but there are two gotchas:
15652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15654 # In both cases, we have to default to `cp -pR'.
15655 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15657 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15665 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15666 rmdir conf$$.dir
2>/dev
/null
15671 # Create "$as_dir" as a directory, including parents if necessary.
15676 -*) as_dir
=.
/$as_dir;;
15678 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15682 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15683 *) as_qdir
=$as_dir;;
15685 as_dirs
="'$as_qdir' $as_dirs"
15686 as_dir
=`$as_dirname -- "$as_dir" ||
15687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15688 X"$as_dir" : 'X\(//\)[^/]' \| \
15689 X"$as_dir" : 'X\(//\)$' \| \
15690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15691 $as_echo X"$as_dir" |
15692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15696 /^X\(\/\/\)[^/].*/{
15709 test -d "$as_dir" && break
15711 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15712 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15716 if mkdir
-p .
2>/dev
/null
; then
15717 as_mkdir_p
='mkdir -p "$as_dir"'
15719 test -d .
/-p && rmdir .
/-p
15724 # as_fn_executable_p FILE
15725 # -----------------------
15726 # Test if FILE is an executable regular file.
15727 as_fn_executable_p
()
15729 test -f "$1" && test -x "$1"
15730 } # as_fn_executable_p
15731 as_test_x
='test -x'
15732 as_executable_p
=as_fn_executable_p
15734 # Sed expression to map a string onto a valid CPP name.
15735 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15737 # Sed expression to map a string onto a valid variable name.
15738 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15742 ## ----------------------------------- ##
15743 ## Main body of $CONFIG_STATUS script. ##
15744 ## ----------------------------------- ##
15746 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15749 # Save the log message, to keep $0 and so on meaningful, and to
15750 # report actual input values of CONFIG_FILES etc. instead of their
15751 # values after options handling.
15753 This file was extended by $as_me, which was
15754 generated by GNU Autoconf 2.69. Invocation command line was
15756 CONFIG_FILES = $CONFIG_FILES
15757 CONFIG_HEADERS = $CONFIG_HEADERS
15758 CONFIG_LINKS = $CONFIG_LINKS
15759 CONFIG_COMMANDS = $CONFIG_COMMANDS
15762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15767 case $ac_config_files in *"
15768 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15774 # Files that config.status was made for.
15775 config_files="$ac_config_files"
15779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15781 \`$as_me' instantiates files and other configuration actions
15782 from templates according to the current configuration. Unless the files
15783 and actions are specified as TAGs, all are instantiated by default.
15785 Usage: $0 [OPTION]... [TAG]...
15787 -h, --help print this help, then exit
15788 -V, --version print version number and configuration settings, then exit
15789 --config print configuration, then exit
15790 -q, --quiet, --silent
15791 do not print progress messages
15792 -d, --debug don't remove temporary files
15793 --recheck update $as_me by reconfiguring in the same conditions
15794 --file=FILE[:TEMPLATE]
15795 instantiate the configuration file FILE
15797 Configuration files:
15800 Report bugs to the package provider."
15803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15807 configured by $0, generated by GNU Autoconf 2.69,
15808 with options \\"\$ac_cs_config\\"
15810 Copyright (C) 2012 Free Software Foundation, Inc.
15811 This config.status script is free software; the Free Software Foundation
15812 gives unlimited permission to copy, distribute and modify it."
15818 test -n "\$AWK" || AWK=awk
15821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15822 # The default lists apply if the user does not specify any file.
15828 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15829 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15833 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15845 # Handling of the options.
15846 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15848 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15849 $as_echo "$ac_cs_version"; exit ;;
15850 --config |
--confi |
--conf |
--con |
--co |
--c )
15851 $as_echo "$ac_cs_config"; exit ;;
15852 --debug |
--debu |
--deb |
--de |
--d |
-d )
15854 --file |
--fil |
--fi |
--f )
15857 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15858 '') as_fn_error $?
"missing file argument" ;;
15860 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15861 ac_need_defaults
=false
;;
15862 --he |
--h |
--help |
--hel |
-h )
15863 $as_echo "$ac_cs_usage"; exit ;;
15864 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15865 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15868 # This is an error.
15869 -*) as_fn_error $?
"unrecognized option: \`$1'
15870 Try \`$0 --help' for more information." ;;
15872 *) as_fn_append ac_config_targets
" $1"
15873 ac_need_defaults
=false
;;
15879 ac_configure_extra_args
=
15881 if $ac_cs_silent; then
15883 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 if \$ac_cs_recheck; then
15889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15892 CONFIG_SHELL='$SHELL'
15893 export CONFIG_SHELL
15898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15903 ## Running $as_me. ##
15909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 extrasub_build="$extrasub_build"
15914 extrasub_host="$extrasub_host"
15915 extrasub_target="$extrasub_target"
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15921 # Handling of arguments.
15922 for ac_config_target
in $ac_config_targets
15924 case $ac_config_target in
15925 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15927 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15932 # If the user did not use the arguments to specify the items to instantiate,
15933 # then the envvar interface is used. Set only those that are not.
15934 # We use the long form for the default assignment because of an extremely
15935 # bizarre bug on SunOS 4.1.3.
15936 if $ac_need_defaults; then
15937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15940 # Have a temporary directory for convenience. Make it in the build tree
15941 # simply because there is no reason against having it here, and in addition,
15942 # creating and moving files from /tmp can sometimes cause problems.
15943 # Hook for its removal unless debugging.
15944 # Note that there is a small window in which the directory will not be cleaned:
15945 # after its creation but before its name has been assigned to `$tmp'.
15949 trap 'exit_status=$?
15950 : "${ac_tmp:=$tmp}"
15951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15953 trap 'as_fn_exit 1' 1 2 13 15
15955 # Create a (secure) tmp directory for tmp files.
15958 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15962 tmp
=.
/conf$$
-$RANDOM
15963 (umask 077 && mkdir
"$tmp")
15964 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15967 # Set up the scripts for CONFIG_FILES section.
15968 # No need to generate them if there are no CONFIG_FILES.
15969 # This happens for instance with `./config.status config.h'.
15970 if test -n "$CONFIG_FILES"; then
15972 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15973 ac_cs_awk_getline
=:
15974 ac_cs_awk_pipe_init
=
15975 ac_cs_awk_read_file
='
15976 while ((getline aline < (F[key])) > 0)
15979 ac_cs_awk_pipe_fini
=
15981 ac_cs_awk_getline
=false
15982 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15983 ac_cs_awk_read_file
='
15985 print "cat " F[key] " &&"
15986 '$ac_cs_awk_pipe_init
15987 # The final `:' finishes the AND list.
15988 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15990 ac_cr
=`echo X | tr X '\015'`
15991 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15992 # But we know of no other shell where ac_cr would be empty at this
15993 # point, so we can use a bashism as a fallback.
15994 if test "x$ac_cr" = x
; then
15995 eval ac_cr
=\$
\'\\r
\'
15997 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15998 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16001 ac_cs_awk_cr
=$ac_cr
16004 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16007 # Create commands to substitute file output variables.
16009 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16010 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16011 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16014 } >conf$
$files.sh
&&
16015 . .
/conf$
$files.sh ||
16016 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16017 rm -f conf$
$files.sh
16020 echo "cat >conf$$subs.awk <<_ACEOF" &&
16021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16023 } >conf$$subs.sh ||
16024 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16027 for ac_last_try in false false false false false :; do
16028 . ./conf$$subs.sh ||
16029 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16031 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16032 if test $ac_delim_n = $ac_delim_num; then
16034 elif $ac_last_try; then
16035 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16037 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16040 rm -f conf$$subs.sh
16042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16047 s/^/S["/; s
/!.
*/"]=/
16057 s/\(.\{148\}\)..*/\1/
16059 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16064 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16071 s/\(.\{148\}\)..*/\1/
16073 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16077 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16082 ' <conf$$subs.awk | sed '
16087 ' >>$CONFIG_STATUS || ac_write_fail=1
16088 rm -f conf$$subs.awk
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16092 for (key in S) S_is_set[key] = 1
16094 \$ac_cs_awk_pipe_init
16098 nfields = split(line, field, "@
")
16100 len = length(field[1])
16101 for (i = 2; i < nfields; i++) {
16103 keylen = length(key)
16104 if (S_is_set[key]) {
16106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16107 len += length(value) + length(field[++i])
16112 if (nfields == 3 && !substed) {
16114 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16115 \$ac_cs_awk_read_file
16121 \$ac_cs_awk_pipe_fini
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16126 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16129 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16130 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16135 # trailing colons and then remove the whole line if VPATH becomes empty
16136 # (actually we leave an empty line to preserve line numbers).
16137 if test "x
$srcdir" = x.; then
16138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 fi # test -n "$CONFIG_FILES"
16160 eval set X " :F
$CONFIG_FILES "
16165 :[FHLC]) ac_mode=$ac_tag; continue;;
16167 case $ac_mode$ac_tag in
16169 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
16170 :[FH]-) ac_tag=-:-;;
16171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16188 -) ac_f="$ac_tmp/stdin";;
16189 *) # Look for the file first in the build tree, then in the source tree
16190 # (if the path is not absolute). The absolute path cannot be DOS-style,
16191 # because $ac_f cannot contain `:'.
16195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
16200 as_fn_append ac_file_inputs " '$ac_f'"
16203 # Let's still pretend it is `configure' which instantiates (i.e., don't
16204 # use $as_me), people would be surprised to read:
16205 # /* config.h. Generated by config.status. */
16206 configure_input='Generated from '`
16207 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16209 if test x"$ac_file" != x-; then
16210 configure_input="$ac_file.
$configure_input"
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
16212 $as_echo "$as_me: creating
$ac_file" >&6;}
16214 # Neutralize special characters interpreted by sed in replacement strings.
16215 case $configure_input in #(
16216 *\&* | *\|* | *\\* )
16217 ac_sed_conf_input=`$as_echo "$configure_input" |
16218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16219 *) ac_sed_conf_input=$configure_input;;
16223 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
16224 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
16229 ac_dir=`$as_dirname -- "$ac_file" ||
16230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16231 X"$ac_file" : 'X\(//\)[^/]' \| \
16232 X"$ac_file" : 'X\(//\)$' \| \
16233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16234 $as_echo X"$ac_file" |
16235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16239 /^X\(\/\/\)[^/].*/{
16252 as_dir="$ac_dir"; as_fn_mkdir_p
16256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16259 # A "..
" for each directory in $ac_dir_suffix.
16260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16261 case $ac_top_builddir_sub in
16262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16266 ac_abs_top_builddir=$ac_pwd
16267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16268 # for backward compatibility:
16269 ac_top_builddir=$ac_top_build_prefix
16272 .) # We are building in place.
16274 ac_top_srcdir=$ac_top_builddir_sub
16275 ac_abs_top_srcdir=$ac_pwd ;;
16276 [\\/]* | ?:[\\/]* ) # Absolute name.
16277 ac_srcdir=$srcdir$ac_dir_suffix;
16278 ac_top_srcdir=$srcdir
16279 ac_abs_top_srcdir=$srcdir ;;
16280 *) # Relative name.
16281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16282 ac_top_srcdir=$ac_top_build_prefix$srcdir
16283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 # If the template does not know about datarootdir, expand it.
16302 # FIXME: This hack should be removed a few years after 2.60.
16303 ac_datarootdir_hack=; ac_datarootdir_seen=
16314 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
16315 *datarootdir*) ac_datarootdir_seen=yes;;
16316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
16318 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 ac_datarootdir_hack='
16322 s&@datadir@&$datadir&g
16323 s&@docdir@&$docdir&g
16324 s&@infodir@&$infodir&g
16325 s&@localedir@&$localedir&g
16326 s&@mandir@&$mandir&g
16327 s&\\\${datarootdir}&$datarootdir&g' ;;
16331 # Neutralize VPATH when `$srcdir' = `.'.
16332 # Shell code in configure.ac might set extrasub.
16333 # FIXME: do we really want to maintain this feature?
16334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335 ac_sed_extra="$ac_vpsub
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16340 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16341 s|@configure_input@|
$ac_sed_conf_input|
;t t
16342 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16343 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16344 s
&@srcdir@
&$ac_srcdir&;t t
16345 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16346 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16347 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16348 s
&@builddir@
&$ac_builddir&;t t
16349 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16350 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16351 s
&@INSTALL@
&$ac_INSTALL&;t t
16352 $ac_datarootdir_hack
16354 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16355 if $ac_cs_awk_getline; then
16356 $AWK -f "$ac_tmp/subs.
awk"
16358 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
16360 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16365 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16367 which seems to be undefined. Please make sure it is defined" >&5
16368 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16369 which seems to be undefined. Please make sure it is defined" >&2;}
16371 rm -f "$ac_tmp/stdin"
16373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16384 case $ac_file$ac_mode in
16385 "Makefile":F) sed "$extrasub_build" Makefile |
16386 sed "$extrasub_host" |
16387 sed "$extrasub_target" > mf$$
16388 mv -f mf$$ Makefile ;;
16396 ac_clean_files=$ac_clean_files_save
16398 test $ac_write_fail = 0 ||
16399 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16402 # configure is writing to config.log, and then calls config.status.
16403 # config.status does its own redirection, appending to config.log.
16404 # Unfortunately, on DOS this fails, as config.log is still kept open
16405 # by configure, so config.status won't be able to
write to it
; its
16406 # output is simply discarded. So we exec the FD to /dev/null,
16407 # effectively closing config.log, so it can be properly (re)opened and
16408 # appended to by config.status. When coming back to configure, we
16409 # need to make the FD available again.
16410 if test "$no_create" != yes; then
16412 ac_config_status_args
=
16413 test "$silent" = yes &&
16414 ac_config_status_args
="$ac_config_status_args --quiet"
16416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16419 # would make configure fail if this is the last instruction.
16420 $ac_cs_success || as_fn_exit
1
16422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}