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
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
662 common_out_object_file
678 gcc_gxx_include_dir_add_sysroot
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
688 TM_MULTILIB_EXCEPTIONS_CONFIG
698 build_xm_include_list
700 build_install_headers_dir
702 all_selected_languages
705 all_lang_configurefrags
721 ld_version_script_option
726 ORIGINAL_NM_FOR_TARGET
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
733 ORIGINAL_AS_FOR_TARGET
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
762 BUILD_SYSTEM_HEADER_DIR
782 NATIVE_SYSTEM_HEADER_DIR
819 omp_device_property_deps
820 omp_device_properties
822 real_target_noncanonical
823 enable_as_accelerator
839 valgrind_path_defines
869 CROSS_SYSTEM_HEADER_DIR
870 TARGET_SYSTEM_ROOT_DEFINE
872 SYSROOT_CFLAGS_FOR_TARGET
918 program_transform_name
929 ac_subst_files
='option_includes
932 enable_option_checking
935 with_native_system_header_dir
940 enable_generated_files_in_srcdir
947 enable_build_format_warnings
951 enable_gather_detailed_mem_stats
952 enable_valgrind_annotations
956 with_stack_clash_protection_guard_size
971 with_documentation_root_url
972 with_changes_root_url
981 enable_sjlj_exceptions
982 with_gcc_major_version_only
984 enable_mingw_wildcard
985 enable_large_address_aware
986 enable_leading_mingw64_underscores
989 enable_win32_registry
997 enable_gnu_indirect_function
998 enable_initfini_array
1000 enable_newlib_nano_formatted_io
1001 enable_standard_branch_protection
1002 enable_fix_cortex_a53_835769
1003 enable_fix_cortex_a53_843419
1005 enable_gnu_unique_object
1006 enable_linker_build_id
1009 with_long_double_128
1010 with_long_double_format
1013 enable_maintainer_mode
1015 enable_version_specific_runtime_libs
1018 enable_libquadmath_support
1019 with_linker_hash_style
1020 with_diagnostics_color
1021 with_diagnostics_urls
1025 ac_precious_vars
='build_alias
1044 # Initialize some variables set by options.
1046 ac_init_version
=false
1047 ac_unrecognized_opts
=
1048 ac_unrecognized_sep
=
1049 # The variables have the same names as the options, with
1050 # dashes changed to underlines.
1051 cache_file
=/dev
/null
1058 program_transform_name
=s
,x
,x
,
1066 # Installation directory options.
1067 # These are left unexpanded so users can "make install exec_prefix=/foo"
1068 # and all the variables that are supposed to be based on exec_prefix
1069 # by default will actually change.
1070 # Use braces instead of parens because sh, perl, etc. also accept them.
1071 # (The list follows the same order as the GNU Coding Standards.)
1072 bindir
='${exec_prefix}/bin'
1073 sbindir
='${exec_prefix}/sbin'
1074 libexecdir
='${exec_prefix}/libexec'
1075 datarootdir
='${prefix}/share'
1076 datadir
='${datarootdir}'
1077 sysconfdir
='${prefix}/etc'
1078 sharedstatedir
='${prefix}/com'
1079 localstatedir
='${prefix}/var'
1080 includedir
='${prefix}/include'
1081 oldincludedir
='/usr/include'
1082 docdir
='${datarootdir}/doc/${PACKAGE}'
1083 infodir
='${datarootdir}/info'
1088 libdir
='${exec_prefix}/lib'
1089 localedir
='${datarootdir}/locale'
1090 mandir
='${datarootdir}/man'
1096 # If the previous option needs an argument, assign it.
1097 if test -n "$ac_prev"; then
1098 eval $ac_prev=\
$ac_option
1104 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1111 case $ac_dashdash$ac_option in
1115 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1117 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1118 bindir
=$ac_optarg ;;
1120 -build |
--build |
--buil |
--bui |
--bu)
1121 ac_prev
=build_alias
;;
1122 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1123 build_alias
=$ac_optarg ;;
1125 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1126 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1127 ac_prev
=cache_file
;;
1128 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1129 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1130 cache_file
=$ac_optarg ;;
1132 --config-cache |
-C)
1133 cache_file
=config.cache
;;
1135 -datadir |
--datadir |
--datadi |
--datad)
1137 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1138 datadir
=$ac_optarg ;;
1140 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1141 |
--dataroo |
--dataro |
--datar)
1142 ac_prev
=datarootdir
;;
1143 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1144 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1145 datarootdir
=$ac_optarg ;;
1147 -disable-* |
--disable-*)
1148 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1151 as_fn_error $?
"invalid feature name: $ac_useropt"
1152 ac_useropt_orig
=$ac_useropt
1153 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "enable_
$ac_useropt"
1158 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1159 ac_unrecognized_sep
=', ';;
1161 eval enable_
$ac_useropt=no
;;
1163 -docdir |
--docdir |
--docdi |
--doc |
--do)
1165 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1166 docdir
=$ac_optarg ;;
1168 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1170 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1171 dvidir
=$ac_optarg ;;
1173 -enable-* |
--enable-*)
1174 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 as_fn_error $?
"invalid feature name: $ac_useropt"
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_
$ac_useropt"
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval enable_
$ac_useropt=\
$ac_optarg ;;
1189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1191 |
--exec |
--exe |
--ex)
1192 ac_prev
=exec_prefix
;;
1193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1195 |
--exec=* |
--exe=* |
--ex=*)
1196 exec_prefix
=$ac_optarg ;;
1198 -gas |
--gas |
--ga |
--g)
1199 # Obsolete; use --with-gas.
1202 -help |
--help |
--hel |
--he |
-h)
1203 ac_init_help
=long
;;
1204 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1205 ac_init_help
=recursive
;;
1206 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1207 ac_init_help
=short
;;
1209 -host |
--host |
--hos |
--ho)
1210 ac_prev
=host_alias
;;
1211 -host=* |
--host=* |
--hos=* |
--ho=*)
1212 host_alias
=$ac_optarg ;;
1214 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1216 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1218 htmldir
=$ac_optarg ;;
1220 -includedir |
--includedir |
--includedi |
--included |
--include \
1221 |
--includ |
--inclu |
--incl |
--inc)
1222 ac_prev
=includedir
;;
1223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1225 includedir
=$ac_optarg ;;
1227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1230 infodir
=$ac_optarg ;;
1232 -libdir |
--libdir |
--libdi |
--libd)
1234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1235 libdir
=$ac_optarg ;;
1237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1238 |
--libexe |
--libex |
--libe)
1239 ac_prev
=libexecdir
;;
1240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1241 |
--libexe=* |
--libex=* |
--libe=*)
1242 libexecdir
=$ac_optarg ;;
1244 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1245 ac_prev
=localedir
;;
1246 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1247 localedir
=$ac_optarg ;;
1249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1250 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1251 ac_prev
=localstatedir
;;
1252 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1253 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1254 localstatedir
=$ac_optarg ;;
1256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1259 mandir
=$ac_optarg ;;
1261 -nfp |
--nfp |
--nf)
1262 # Obsolete; use --without-fp.
1265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1266 |
--no-cr |
--no-c |
-n)
1269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1275 |
--oldin |
--oldi |
--old |
--ol |
--o)
1276 ac_prev
=oldincludedir
;;
1277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1280 oldincludedir
=$ac_optarg ;;
1282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1285 prefix
=$ac_optarg ;;
1287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1288 |
--program-pre |
--program-pr |
--program-p)
1289 ac_prev
=program_prefix
;;
1290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1292 program_prefix
=$ac_optarg ;;
1294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1295 |
--program-suf |
--program-su |
--program-s)
1296 ac_prev
=program_suffix
;;
1297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1299 program_suffix
=$ac_optarg ;;
1301 -program-transform-name |
--program-transform-name \
1302 |
--program-transform-nam |
--program-transform-na \
1303 |
--program-transform-n |
--program-transform- \
1304 |
--program-transform |
--program-transfor \
1305 |
--program-transfo |
--program-transf \
1306 |
--program-trans |
--program-tran \
1307 |
--progr-tra |
--program-tr |
--program-t)
1308 ac_prev
=program_transform_name
;;
1309 -program-transform-name=* |
--program-transform-name=* \
1310 |
--program-transform-nam=* |
--program-transform-na=* \
1311 |
--program-transform-n=* |
--program-transform-=* \
1312 |
--program-transform=* |
--program-transfor=* \
1313 |
--program-transfo=* |
--program-transf=* \
1314 |
--program-trans=* |
--program-tran=* \
1315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1316 program_transform_name
=$ac_optarg ;;
1318 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1320 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1321 pdfdir
=$ac_optarg ;;
1323 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1325 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1328 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1329 |
-silent |
--silent |
--silen |
--sile |
--sil)
1332 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1334 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1336 sbindir
=$ac_optarg ;;
1338 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1339 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1340 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1342 ac_prev
=sharedstatedir
;;
1343 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1344 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1345 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1347 sharedstatedir
=$ac_optarg ;;
1349 -site |
--site |
--sit)
1351 -site=* |
--site=* |
--sit=*)
1354 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1356 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1357 srcdir
=$ac_optarg ;;
1359 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1360 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1361 ac_prev
=sysconfdir
;;
1362 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1363 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1364 sysconfdir
=$ac_optarg ;;
1366 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1367 ac_prev
=target_alias
;;
1368 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1369 target_alias
=$ac_optarg ;;
1371 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1374 -version |
--version |
--versio |
--versi |
--vers |
-V)
1375 ac_init_version
=: ;;
1378 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1381 as_fn_error $?
"invalid package name: $ac_useropt"
1382 ac_useropt_orig
=$ac_useropt
1383 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1388 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1389 ac_unrecognized_sep
=', ';;
1391 eval with_
$ac_useropt=\
$ac_optarg ;;
1393 -without-* |
--without-*)
1394 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1397 as_fn_error $?
"invalid package name: $ac_useropt"
1398 ac_useropt_orig
=$ac_useropt
1399 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1404 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1405 ac_unrecognized_sep
=', ';;
1407 eval with_
$ac_useropt=no
;;
1410 # Obsolete; use --with-x.
1413 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1414 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1415 ac_prev
=x_includes
;;
1416 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1417 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1418 x_includes
=$ac_optarg ;;
1420 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1421 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1422 ac_prev
=x_libraries
;;
1423 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1424 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1425 x_libraries
=$ac_optarg ;;
1427 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1428 Try \`$0 --help' for more information"
1432 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1433 # Reject names that are not valid shell variable names.
1434 case $ac_envvar in #(
1435 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1436 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1438 eval $ac_envvar=\
$ac_optarg
1439 export $ac_envvar ;;
1442 # FIXME: should be removed in autoconf 3.0.
1443 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1444 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1445 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1446 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1452 if test -n "$ac_prev"; then
1453 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1454 as_fn_error $?
"missing argument to $ac_option"
1457 if test -n "$ac_unrecognized_opts"; then
1458 case $enable_option_checking in
1460 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1461 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1465 # Check all directory arguments for consistency.
1466 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val
=\$
$ac_var
1472 # Remove trailing slashes.
1475 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1476 eval $ac_var=\
$ac_val;;
1478 # Be sure to have absolute directory names.
1480 [\\/$
]* | ?
:[\\/]* ) continue;;
1481 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1483 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1486 # There might be people who depend on the old broken behavior: `$host'
1487 # used to hold the argument of --host etc.
1488 # FIXME: To remove some day.
1491 target
=$target_alias
1493 # FIXME: To remove some day.
1494 if test "x$host_alias" != x
; then
1495 if test "x$build_alias" = x
; then
1496 cross_compiling
=maybe
1497 elif test "x$build_alias" != "x$host_alias"; then
1503 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1505 test "$silent" = yes && exec 6>/dev
/null
1508 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1509 ac_ls_di
=`ls -di .` &&
1510 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1511 as_fn_error $?
"working directory cannot be determined"
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 as_fn_error $?
"pwd does not report name of working directory"
1516 # Find the source files, if location was not specified.
1517 if test -z "$srcdir"; then
1518 ac_srcdir_defaulted
=yes
1519 # Try the directory containing this script, then the parent directory.
1520 ac_confdir
=`$as_dirname -- "$as_myself" ||
1521 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1522 X"$as_myself" : 'X\(//\)[^/]' \| \
1523 X"$as_myself" : 'X\(//\)$' \| \
1524 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1525 $as_echo X"$as_myself" |
1526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1548 ac_srcdir_defaulted
=no
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1552 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1554 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var
in $ac_precious_vars; do
1569 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1571 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking ...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1645 --build=BUILD configure
for building on BUILD
[guessed
]
1646 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1647 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1651 if test -n "$ac_init_help"; then
1656 --disable-option-checking ignore unrecognized
--enable/--with options
1657 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1658 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1659 --enable-generated-files-in-srcdir
1660 put copies of generated files
in source dir intended
1661 for creating
source tarballs
for users without
1662 texinfo bison or flex
1663 --disable-largefile omit support
for large files
1664 --disable-build-format-warnings
1665 don
't use -Wformat while building GCC
1666 --enable-werror-always enable -Werror despite compiler version
1667 --enable-checking[=LIST]
1668 enable expensive run-time checks. With LIST, enable
1669 only specific categories of checks. Categories are:
1670 yes,no,all,none,release. Flags are:
1671 assert,df,extra,fold,gc,gcac,gimple,misc,
1672 rtlflag,rtl,runtime,tree,valgrind,types
1673 --enable-coverage[=LEVEL]
1674 enable compiler's code coverage collection. Use to
1675 measure compiler performance and
locate unused parts
1676 of the compiler. With LEVEL
, specify optimization.
1677 Values are opt
, noopt
, default is noopt
1678 --enable-gather-detailed-mem-stats
1679 enable detailed memory allocation stats gathering
1680 --enable-valgrind-annotations
1681 enable valgrind runtime interaction
1682 --enable-multilib enable library support
for multiple ABIs
1683 --enable-multiarch enable support
for multiarch paths
1684 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1685 --enable-decimal-float={no
,yes,bid
,dpd
}
1686 enable decimal float extension to C. Selecting
'bid'
1687 or
'dpd' choses
which decimal floating point format
1689 --enable-fixed-point enable fixed-point arithmetic extension to C
1690 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1692 --enable-tls enable or disable generation of tls code overriding
1693 the assembler check
for tls support
1694 --enable-vtable-verify enable vtable verification feature
1695 --disable-analyzer disable
-fanalyzer static analyzer
1696 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1697 GNU Objective-C runtime
1698 --disable-shared don't provide a shared libgcc
1699 --disable-gcov don
't provide libgcov and related host tools
1700 --enable-languages=LIST specify which front-ends to build
1701 --disable-rpath do not hardcode runtime library paths
1702 --enable-sjlj-exceptions
1703 arrange to use setjmp/longjmp exception handling
1704 --enable-secureplt enable -msecure-plt by default for PowerPC
1705 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1706 Default to platform configuration
1707 --enable-large-address-aware
1708 Link mingw executables with --large-address-aware
1709 --enable-leading-mingw64-underscores
1710 enable leading underscores on 64 bit mingw targets
1711 --enable-cld enable -mcld by default for 32bit x86
1712 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1713 --disable-win32-registry
1714 disable lookup of installation paths in the Registry
1716 --enable-win32-registry enable registry lookup (default)
1717 --enable-win32-registry=KEY
1718 use KEY instead of GCC version as the last portion
1720 --enable-shared[=PKGS] build shared libraries [default=yes]
1721 --enable-static[=PKGS] build static libraries [default=yes]
1722 --enable-fast-install[=PKGS]
1723 optimize for fast installation [default=yes]
1724 --disable-libtool-lock avoid locking (might break parallel builds)
1725 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1726 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1727 --enable-gnu-indirect-function
1728 enable the use of the @gnu_indirect_function to
1730 --enable-initfini-array use .init_array/.fini_array sections
1731 --enable-comdat enable COMDAT group support
1732 --enable-newlib-nano-formatted-io
1733 Use nano version formatted IO
1735 --enable-standard-branch-protection
1736 enable Branch Target Identification Mechanism and
1737 Return Address Signing by default for AArch64
1738 --disable-standard-branch-protection
1739 disable Branch Target Identification Mechanism and
1740 Return Address Signing by default for AArch64
1743 --enable-fix-cortex-a53-835769
1744 enable workaround for AArch64 Cortex-A53 erratum
1746 --disable-fix-cortex-a53-835769
1747 disable workaround for AArch64 Cortex-A53 erratum
1751 --enable-fix-cortex-a53-843419
1752 enable workaround for AArch64 Cortex-A53 erratum
1754 --disable-fix-cortex-a53-843419
1755 disable workaround for AArch64 Cortex-A53 erratum
1758 --enable-gnu-unique-object
1759 enable the use of the @gnu_unique_object ELF
1760 extension on glibc systems
1761 --enable-linker-build-id
1762 compiler will always pass --build-id to linker
1763 --enable-libssp enable linking against libssp
1764 --enable-default-ssp enable Stack Smashing Protection as default
1765 --enable-maintainer-mode
1766 enable make rules and dependencies not useful (and
1767 sometimes confusing) to the casual installer
1768 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1769 thrashing on the build machine
1770 --enable-version-specific-runtime-libs
1771 specify that runtime libraries should be installed
1772 in a compiler-specific directory
1773 --enable-plugin enable plugin support
1774 --enable-host-shared build host code as shared libraries
1775 --disable-libquadmath-support
1776 disable libquadmath support for Fortran
1777 --enable-default-pie enable Position Independent Executable as default
1778 --enable-cet enable Intel CET in host libraries [default=auto]
1781 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1782 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1783 --with-build-libsubdir=DIR Directory where to find libraries for build system
1784 --with-local-prefix=DIR specifies directory to put local include
1785 --with-native-system-header-dir=dir
1786 use dir as the directory to look for standard
1787 system header files in. Defaults to /usr/include.
1788 --with-build-sysroot=sysroot
1789 use sysroot as the system root during the build
1790 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1791 --with-gxx-include-dir=DIR
1792 specifies directory to put g++ header files
1793 --with-cpp-install-dir=DIR
1794 install the user visible C preprocessor in DIR
1795 (relative to PREFIX) as well as PREFIX/bin
1796 --with-gnu-ld arrange to work with GNU ld
1797 --with-ld arrange to use the specified ld (full pathname)
1798 --with-demangler-in-ld try to use demangler in GNU ld
1799 --with-gnu-as arrange to work with GNU as
1800 --with-as arrange to use the specified as (full pathname)
1801 --with-stabs arrange to use stabs instead of host debug format
1802 --with-stack-clash-protection-guard-size=size
1803 Set the default stack clash protection guard size
1804 for specific targets as a power of two in bytes.
1805 --with-dwarf2 force the default debug format to be DWARF 2
1806 --with-specs=SPECS add SPECS to driver command-line processing
1807 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1808 --with-bugurl=URL Direct users to URL to report a bug
1809 --with-documentation-root-url=URL
1810 Root for documentation URLs
1811 --with-changes-root-url=URL
1812 Root for GCC changes URLs
1813 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1814 --with-zstd=PATH specify prefix directory for installed zstd library.
1815 Equivalent to --with-zstd-include=PATH/include plus
1816 --with-zstd-lib=PATH/lib
1817 --with-zstd-include=PATH
1818 specify directory for installed zstd include files
1819 --with-zstd-lib=PATH specify directory for the installed zstd library
1820 --with-gnu-ld assume the C compiler uses GNU ld default=no
1821 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1822 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1823 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1824 --with-gcc-major-version-only
1825 use only GCC major number
in filesystem paths
1826 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1828 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1829 --with-plugin-ld=[ARG
] specify the plugin linker
1830 --with-glibc-version=M.N
1831 assume GCC used with glibc version M.N or later
1832 --with-long-double-128 use
128-bit long double by default
1833 --with-long-double-format={ieee
,ibm
}
1834 Specify whether PowerPC long double uses IEEE or IBM format
1836 --with-gc={page
,zone
} this option is not supported anymore. It used to
1837 choose the garbage collection mechanism to use with
1839 --with-system-zlib use installed libz
1840 --with-linker-hash-style={sysv
,gnu
,both
}
1841 specify the linker
hash style
1842 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1843 specify the default of
-fdiagnostics-color option
1844 auto-if-env stands
for -fdiagnostics-color=auto
if
1845 GCC_COLOR environment variable is present and
1846 -fdiagnostics-color=never otherwise
1847 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1848 specify the default of
-fdiagnostics-urls option
1849 auto-if-env stands
for -fdiagnostics-urls=auto
if
1850 GCC_URLS or TERM_URLS environment variable is
1851 present and
-fdiagnostics-urls=never otherwise
1853 Some influential environment variables
:
1854 CC C compiler
command
1855 CFLAGS C compiler flags
1856 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1857 nonstandard directory
<lib dir
>
1858 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1859 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1860 you have headers
in a nonstandard directory
<include dir
>
1861 CXX C
++ compiler
command
1862 CXXFLAGS C
++ compiler flags
1863 CXXCPP C
++ preprocessor
1865 GMPLIBS How to link GMP
1866 GMPINC How to
find GMP include files
1867 ISLLIBS How to link isl
1868 ISLINC How to
find isl include files
1870 Use these variables to override the choices made by
`configure' or to help
1871 it to find libraries and programs with nonstandard names/locations.
1873 Report bugs to the package provider.
1878 if test "$ac_init_help" = "recursive"; then
1879 # If there are subdirs, report their specific --help.
1880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1881 test -d "$ac_dir" ||
1882 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1890 # A ".." for each directory in $ac_dir_suffix.
1891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1892 case $ac_top_builddir_sub in
1893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1897 ac_abs_top_builddir=$ac_pwd
1898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1899 # for backward compatibility:
1900 ac_top_builddir=$ac_top_build_prefix
1903 .) # We are building in place.
1905 ac_top_srcdir=$ac_top_builddir_sub
1906 ac_abs_top_srcdir=$ac_pwd ;;
1907 [\\/]* | ?:[\\/]* ) # Absolute name.
1908 ac_srcdir=$srcdir$ac_dir_suffix;
1909 ac_top_srcdir=$srcdir
1910 ac_abs_top_srcdir=$srcdir ;;
1912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1913 ac_top_srcdir=$ac_top_build_prefix$srcdir
1914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918 cd "$ac_dir" || { ac_status=$?; continue; }
1919 # Check for guested configure.
1920 if test -f "$ac_srcdir/configure.gnu"; then
1922 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1923 elif test -f "$ac_srcdir/configure"; then
1925 $SHELL "$ac_srcdir/configure" --help=recursive
1927 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1929 cd "$ac_pwd" || { ac_status=$?; break; }
1933 test -n "$ac_init_help" && exit $ac_status
1934 if $ac_init_version; then
1937 generated by GNU Autoconf 2.69
1939 Copyright (C) 2012 Free Software Foundation, Inc.
1940 This configure script is free software; the Free Software Foundation
1941 gives unlimited permission to copy, distribute and modify it.
1946 ## ------------------------ ##
1947 ## Autoconf initialization. ##
1948 ## ------------------------ ##
1950 # ac_fn_c_try_compile LINENO
1951 # --------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext
1957 if { { ac_try="$ac_compile"
1959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1960 *) ac_try_echo
=$ac_try;;
1962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1966 if test -s conftest.err
; then
1967 grep -v '^ *+' conftest.err
>conftest.er1
1968 cat conftest.er1
>&5
1969 mv -f conftest.er1 conftest.err
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.
$ac_objext; then :
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.
$ac_ext >&5
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status
$ac_retval
1986 } # ac_fn_c_try_compile
1988 # ac_fn_cxx_try_compile LINENO
1989 # ----------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_compile
()
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 rm -f conftest.
$ac_objext
1995 if { { ac_try
="$ac_compile"
1997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_cxx_try_compile
2026 # ac_fn_cxx_try_cpp LINENO
2027 # ------------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_cpp ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if { { ac_try="$ac_cpp conftest.$ac_ext"
2034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2035 *) ac_try_echo
=$ac_try;;
2037 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2041 if test -s conftest.err
; then
2042 grep -v '^ *+' conftest.err
>conftest.er1
2043 cat conftest.er1
>&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } > conftest.i
&& {
2048 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2049 test ! -s conftest.err
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.
$ac_ext >&5
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status
$ac_retval
2061 } # ac_fn_cxx_try_cpp
2063 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # ---------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2068 ac_fn_cxx_check_header_mongrel
()
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 if eval \
${$3+:} false
; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \
${$3+:} false
; then :
2075 $as_echo_n "(cached) " >&6
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2089 if ac_fn_cxx_try_compile
"$LINENO"; then :
2090 ac_header_compiler
=yes
2092 ac_header_compiler
=no
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2106 ac_header_preproc
=yes
2108 ac_header_preproc
=no
2110 rm -f conftest.err conftest.i conftest.
$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \
${$3+:} false
; then :
2138 $as_echo_n "(cached) " >&6
2140 eval "$3=\$ac_header_compiler"
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_cxx_check_header_mongrel
2150 # ac_fn_cxx_try_run LINENO
2151 # ------------------------
2152 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2153 # that executables *can* be run.
2154 ac_fn_cxx_try_run
()
2156 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2157 if { { ac_try
="$ac_link"
2159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_link") 2>&5
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2168 { { case "(($ac_try" in
2169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2170 *) ac_try_echo
=$ac_try;;
2172 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_try") 2>&5
2176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177 test $ac_status = 0; }; }; then :
2180 $as_echo "$as_me: program exited with status $ac_status" >&5
2181 $as_echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.
$ac_ext >&5
2184 ac_retval
=$ac_status
2186 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 as_fn_set_status
$ac_retval
2190 } # ac_fn_cxx_try_run
2192 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2193 # ---------------------------------------------------------
2194 # Tests whether HEADER exists and can be compiled using the include files in
2195 # INCLUDES, setting the cache variable VAR accordingly.
2196 ac_fn_cxx_check_header_compile
()
2198 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval \
${$3+:} false
; then :
2202 $as_echo_n "(cached) " >&6
2204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2209 if ac_fn_cxx_try_compile
"$LINENO"; then :
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 } # ac_fn_cxx_check_header_compile
2223 # ac_fn_c_try_cpp LINENO
2224 # ----------------------
2225 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2228 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2229 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } > conftest.i && {
2245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2246 test ! -s conftest.err
2250 $as_echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 as_fn_set_status $ac_retval
2260 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2261 # ----------------------------------------------
2262 # Tries to find the compile-time value of EXPR in a program that includes
2263 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2265 ac_fn_cxx_compute_int ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if test "$cross_compiling" = yes; then
2269 # Depending upon the size, compute the lo and hi bounds.
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) >= 0)];
2278 return test_array [0];
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 return test_array [0];
2301 if ac_fn_cxx_try_compile "$LINENO"; then :
2302 ac_hi=$ac_mid; break
2304 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2305 if test $ac_lo -le $ac_mid; then
2309 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) < 0)];
2322 return test_array [0];
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2337 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2339 return test_array [0];
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 ac_lo=$ac_mid; break
2348 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2349 if test $ac_mid -le $ac_hi; then
2353 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 # Binary search between lo and hi bounds.
2364 while test "x$ac_lo" != "x$ac_hi"; do
2365 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2372 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2374 return test_array [0];
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2383 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2395 static long int longval () { return $2; }
2396 static unsigned long int ulongval () { return $2; }
2403 FILE *f = fopen ("conftest.val", "w");
2408 long int i = longval ();
2411 fprintf (f, "%ld", i);
2415 unsigned long int i = ulongval ();
2418 fprintf (f, "%lu", i);
2420 /* Do not output a trailing newline, as this causes \r\n confusion
2421 on some platforms. */
2422 return ferror (f) || fclose (f) != 0;
2428 if ac_fn_cxx_try_run "$LINENO"; then :
2429 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2434 conftest.$ac_objext conftest.beam conftest.$ac_ext
2438 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 as_fn_set_status $ac_retval
2441 } # ac_fn_cxx_compute_int
2443 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2444 # ---------------------------------------------
2445 # Tests whether TYPE exists after having included INCLUDES, setting cache
2446 # variable VAR accordingly.
2447 ac_fn_cxx_check_type ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if eval \${$3+:} false; then :
2453 $as_echo_n "(cached) " >&6
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2468 if ac_fn_cxx_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2481 if ac_fn_cxx_try_compile "$LINENO"; then :
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 } # ac_fn_cxx_check_type
2497 # ac_fn_c_find_intX_t LINENO BITS VAR
2498 # -----------------------------------
2499 # Finds a signed integer type with width BITS, setting cache variable VAR
2501 ac_fn_c_find_intX_t ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2505 $as_echo_n "checking for int$2_t... " >&6; }
2506 if eval \${$3+:} false; then :
2507 $as_echo_n "(cached) " >&6
2510 # Order is important - never check a type that is potentially smaller
2511 # than half of the expected target width.
2512 for ac_type in int$2_t 'int' 'long int' \
2513 'long long int' 'short int' 'signed char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2517 enum { N = $2 / 2 - 1 };
2521 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2523 return test_array [0];
2529 if ac_fn_cxx_try_compile "$LINENO"; then :
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $ac_includes_default
2533 enum { N = $2 / 2 - 1 };
2537 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2538 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2540 return test_array [0];
2546 if ac_fn_cxx_try_compile "$LINENO"; then :
2553 eval "$3=\$ac_type" ;;
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 if eval test \"x\$"$3"\" = x"no"; then :
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 } # ac_fn_c_find_intX_t
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2583 *) ac_try_echo
=$ac_try;;
2585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2589 if test -s conftest.err
; then
2590 grep -v '^ *+' conftest.err
>conftest.er1
2591 cat conftest.er1
>&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest
$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 test -x conftest
$ac_exeext
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.
$ac_ext >&5
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615 as_fn_set_status
$ac_retval
2617 } # ac_fn_cxx_try_link
2619 # ac_fn_c_find_uintX_t LINENO BITS VAR
2620 # ------------------------------------
2621 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2623 ac_fn_c_find_uintX_t
()
2625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2627 $as_echo_n "checking for uint$2_t... " >&6; }
2628 if eval \
${$3+:} false
; then :
2629 $as_echo_n "(cached) " >&6
2632 # Order is important - never check a type that is potentially smaller
2633 # than half of the expected target width.
2634 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2635 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2638 $ac_includes_default
2642 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2644 return test_array [0];
2650 if ac_fn_cxx_try_compile
"$LINENO"; then :
2655 eval "$3=\$ac_type" ;;
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2659 if eval test \"x\$
"$3"\" = x
"no"; then :
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 } # ac_fn_c_find_uintX_t
2673 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2674 # ------------------------------------------------
2675 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2676 ac_fn_cxx_check_header_preproc
()
2678 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if eval \
${$3+:} false
; then :
2682 $as_echo_n "(cached) " >&6
2684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2688 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2693 rm -f conftest.err conftest.i conftest.
$ac_ext
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 } # ac_fn_cxx_check_header_preproc
2702 # ac_fn_cxx_check_func LINENO FUNC VAR
2703 # ------------------------------------
2704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2705 ac_fn_cxx_check_func
()
2707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if eval \
${$3+:} false
; then :
2711 $as_echo_n "(cached) " >&6
2713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2717 #define $2 innocuous_$2
2719 /* System header to define __stub macros and hopefully few prototypes,
2720 which can conflict with char $2 (); below.
2721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2722 <limits.h> exists even on freestanding compilers. */
2725 # include <limits.h>
2727 # include <assert.h>
2732 /* Override any GCC internal prototype to avoid an error.
2733 Use char because int might match the return type of a GCC
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined __stub_$2 || defined __stub___$2
2754 if ac_fn_cxx_try_link
"$LINENO"; then :
2759 rm -f core conftest.err conftest.
$ac_objext \
2760 conftest
$ac_exeext conftest.
$ac_ext
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 } # ac_fn_cxx_check_func
2769 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2770 # -----------------------------------------------
2771 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2773 ac_fn_cxx_check_decl
()
2775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2776 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2777 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2779 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2780 if eval \
${$3+:} false
; then :
2781 $as_echo_n "(cached) " >&6
2783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2789 #ifndef $as_decl_name
2791 (void) $as_decl_use;
2793 (void) $as_decl_name;
2801 if ac_fn_cxx_try_compile
"$LINENO"; then :
2806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2810 $as_echo "$ac_res" >&6; }
2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2813 } # ac_fn_cxx_check_decl
2815 # ac_fn_c_try_link LINENO
2816 # -----------------------
2817 # Try to link conftest.$ac_ext, and return whether this succeeded.
2820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2821 rm -f conftest.
$ac_objext conftest
$ac_exeext
2822 if { { ac_try
="$ac_link"
2824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 $as_echo "$ac_try_echo"; } >&5
2829 (eval "$ac_link") 2>conftest.err
2831 if test -s conftest.err; then
2832 grep -v '^ *+' conftest.err >conftest.er1
2833 cat conftest.er1 >&5
2834 mv -f conftest.er1 conftest.err
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest$ac_exeext && {
2841 test "$cross_compiling" = yes ||
2842 test -x conftest$ac_exeext
2846 $as_echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2853 # interfere with the next link command; also delete a directory that is
2854 # left behind by Apple's compiler. We do this before executing the actions.
2855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2857 as_fn_set_status $ac_retval
2859 } # ac_fn_c_try_link
2861 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2862 # ----------------------------------------------
2863 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2864 ac_fn_c_check_header_preproc ()
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2876 if ac_fn_c_try_cpp "$LINENO"; then :
2881 rm -f conftest.err conftest.i conftest.$ac_ext
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888 } # ac_fn_c_check_header_preproc
2890 # ac_fn_c_check_func LINENO FUNC VAR
2891 # ----------------------------------
2892 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2893 ac_fn_c_check_func ()
2895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897 $as_echo_n "checking for $2... " >&6; }
2898 if eval \${$3+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2903 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2905 #define $2 innocuous_$2
2907 /* System header to define __stub macros and hopefully few prototypes,
2908 which can conflict with char $2 (); below.
2909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2910 <limits.h> exists even on freestanding compilers. */
2913 # include <limits.h>
2915 # include <assert.h>
2920 /* Override any GCC internal prototype to avoid an error.
2921 Use char because int might match the return type of a GCC
2922 builtin and then its argument prototype would still apply. */
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined __stub_$2 || defined __stub___$2
2942 if ac_fn_c_try_link "$LINENO"; then :
2947 rm -f core conftest.err conftest.$ac_objext \
2948 conftest$ac_exeext conftest.$ac_ext
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2952 $as_echo "$ac_res" >&6; }
2953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2955 } # ac_fn_c_check_func
2956 cat >config.log <<_ACEOF
2957 This file contains any messages produced by compilers while
2958 running configure, to aid debugging if configure makes a mistake.
2960 It was created by $as_me, which was
2961 generated by GNU Autoconf 2.69. Invocation command line was
2973 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2974 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2975 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2976 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2977 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2979 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2980 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2982 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2983 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2984 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2985 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2986 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2987 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2988 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 $as_echo "PATH: $as_dir"
3013 # Keep a trace of the command line.
3014 # Strip out --no-create and --no-recursion so they do not pile up.
3015 # Strip out --silent because we don't want to record it for future runs.
3016 # Also quote any args containing shell meta-characters.
3017 # Make two passes to allow for proper duplicate-argument suppression.
3021 ac_must_keep_next=false
3027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3029 | -silent | --silent | --silen | --sile | --sil)
3032 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3037 as_fn_append ac_configure_args1 " '$ac_arg'"
3038 if test $ac_must_keep_next = true; then
3039 ac_must_keep_next=false # Got value, back to normal.
3042 *=* | --config-cache | -C | -disable-* | --disable-* \
3043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3045 | -with-* | --with-* | -without-* | --without-* | --x)
3046 case "$ac_configure_args0 " in
3047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3050 -* ) ac_must_keep_next=true ;;
3053 as_fn_append ac_configure_args " '$ac_arg'"
3058 { ac_configure_args0=; unset ac_configure_args0;}
3059 { ac_configure_args1=; unset ac_configure_args1;}
3061 # When interrupted or exit'd, cleanup temporary files, and complete
3062 # config.log. We remove comments because anyway the quotes in there
3063 # would cause problems or look ugly.
3064 # WARNING: Use '\'' to represent an apostrophe within the trap.
3065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3066 trap 'exit_status=$?
3067 # Save into config.log some information that might help in debugging.
3071 $as_echo "## ---------------- ##
3072 ## Cache variables. ##
3073 ## ---------------- ##"
3075 # The following way of writing the cache mishandles newlines in values,
3077 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3078 eval ac_val=\$$ac_var
3082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3086 _ | IFS | as_nl) ;; #(
3087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3088 *) { eval $ac_var=; unset $ac_var;} ;;
3093 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3094 *${as_nl}ac_space=\ *)
3096 "s/'\''/'\''\\\\'\'''\''/g;
3097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3107 $as_echo "## ----------------- ##
3108 ## Output variables. ##
3109 ## ----------------- ##"
3111 for ac_var in $ac_subst_vars
3113 eval ac_val=\$$ac_var
3115 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3117 $as_echo "$ac_var='\''$ac_val'\''"
3121 if test -n "$ac_subst_files"; then
3122 $as_echo "## ------------------- ##
3123 ## File substitutions. ##
3124 ## ------------------- ##"
3126 for ac_var in $ac_subst_files
3128 eval ac_val=\$$ac_var
3130 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3132 $as_echo "$ac_var='\''$ac_val'\''"
3137 if test -s confdefs.h; then
3138 $as_echo "## ----------- ##
3145 test "$ac_signal" != 0 &&
3146 $as_echo "$as_me: caught signal $ac_signal"
3147 $as_echo "$as_me: exit $exit_status"
3149 rm -f core *.core core.conftest.* &&
3150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3153 for ac_signal in 1 2 13 15; do
3154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3159 rm -f -r conftest* confdefs.h
3161 $as_echo "/* confdefs.h */" > confdefs.h
3163 # Predefined preprocessor variables.
3165 cat >>confdefs.h <<_ACEOF
3166 #define PACKAGE_NAME "$PACKAGE_NAME"
3169 cat >>confdefs.h <<_ACEOF
3170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3173 cat >>confdefs.h <<_ACEOF
3174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE_STRING "$PACKAGE_STRING"
3181 cat >>confdefs.h <<_ACEOF
3182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3185 cat >>confdefs.h <<_ACEOF
3186 #define PACKAGE_URL "$PACKAGE_URL"
3190 # Let the site file select an alternate cache file if it wants to.
3191 # Prefer an explicitly selected file to automatically selected ones.
3194 if test -n "$CONFIG_SITE"; then
3195 # We do not want a PATH search for config.site.
3196 case $CONFIG_SITE in #((
3197 -*) ac_site_file1=./$CONFIG_SITE;;
3198 */*) ac_site_file1=$CONFIG_SITE;;
3199 *) ac_site_file1=./$CONFIG_SITE;;
3201 elif test "x$prefix" != xNONE; then
3202 ac_site_file1=$prefix/share/config.site
3203 ac_site_file2=$prefix/etc/config.site
3205 ac_site_file1=$ac_default_prefix/share/config.site
3206 ac_site_file2=$ac_default_prefix/etc/config.site
3208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3210 test "x$ac_site_file" = xNONE && continue
3211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3214 sed 's/^/| /' "$ac_site_file" >&5
3216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "failed to load site
script $ac_site_file
3219 See \
`config.log' for more details" "$LINENO" 5; }
3223 if test -r "$cache_file"; then
3224 # Some versions of bash will fail to source /dev/null (special files
3225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3228 $as_echo "$as_me: loading cache $cache_file" >&6;}
3230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3231 *) . "./$cache_file";;
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3236 $as_echo "$as_me: creating cache $cache_file" >&6;}
3240 # Check that the precious variables saved in the cache have kept the same
3242 ac_cache_corrupted=false
3243 for ac_var in $ac_precious_vars; do
3244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3245 eval ac_new_set=\$ac_env_${ac_var}_set
3246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3247 eval ac_new_val=\$ac_env_${ac_var}_value
3248 case $ac_old_set,$ac_new_set in
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3251 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3252 ac_cache_corrupted=: ;;
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3255 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3256 ac_cache_corrupted=: ;;
3259 if test "x$ac_old_val" != "x$ac_new_val"; then
3260 # differences in whitespace do not lead to failure.
3261 ac_old_val_w=`echo x
$ac_old_val`
3262 ac_new_val_w=`echo x
$ac_new_val`
3263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3266 ac_cache_corrupted=:
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3270 eval $ac_var=\$ac_old_val
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3273 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3278 # Pass precious variables to config.status.
3279 if test "$ac_new_set" = set; then
3281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3282 *) ac_arg=$ac_var=$ac_new_val ;;
3284 case " $ac_configure_args " in
3285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3290 if $ac_cache_corrupted; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3295 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3297 ## -------------------- ##
3298 ## Main body of script. ##
3299 ## -------------------- ##
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3315 gcc_version=`cat $srcdir/BASE-VER
`
3317 # Determine the host, build, and target systems
3319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3320 if test -f "$ac_dir/install-sh"; then
3322 ac_install_sh="$ac_aux_dir/install-sh -c"
3324 elif test -f "$ac_dir/install.sh"; then
3326 ac_install_sh="$ac_aux_dir/install.sh -c"
3328 elif test -f "$ac_dir/shtool"; then
3330 ac_install_sh="$ac_aux_dir/shtool install -c"
3334 if test -z "$ac_aux_dir"; then
3335 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3338 # These three variables are undocumented and unsupported,
3339 # and are intended to be withdrawn in a future Autoconf release.
3340 # They can cause serious problems if a builder's source tree is in a directory
3341 # whose full name contains unusual characters.
3342 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3343 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3344 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3347 # Make sure we can run config.sub.
3348 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3349 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3352 $as_echo_n "checking build system type... " >&6; }
3353 if ${ac_cv_build+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 ac_build_alias=$build_alias
3357 test "x$ac_build_alias" = x &&
3358 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3359 test "x$ac_build_alias" = x &&
3360 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3361 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3362 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3366 $as_echo "$ac_cv_build" >&6; }
3367 case $ac_cv_build in
3369 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3372 ac_save_IFS=$IFS; IFS='-'
3378 # Remember, the first character of IFS is used to create $*,
3379 # except with old shells:
3382 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3386 $as_echo_n "checking host system type... " >&6; }
3387 if ${ac_cv_host+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 if test "x$host_alias" = x; then
3391 ac_cv_host=$ac_cv_build
3393 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3399 $as_echo "$ac_cv_host" >&6; }
3402 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3405 ac_save_IFS=$IFS; IFS='-'
3411 # Remember, the first character of IFS is used to create $*,
3412 # except with old shells:
3415 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3419 $as_echo_n "checking target system type... " >&6; }
3420 if ${ac_cv_target+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 if test "x$target_alias" = x; then
3424 ac_cv_target=$ac_cv_host
3426 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3432 $as_echo "$ac_cv_target" >&6; }
3433 case $ac_cv_target in
3435 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3437 target=$ac_cv_target
3438 ac_save_IFS=$IFS; IFS='-'
3444 # Remember, the first character of IFS is used to create $*,
3445 # except with old shells:
3448 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3451 # The aliases save the names the user supplied, while $host etc.
3452 # will get canonicalized.
3453 test -n "$target_alias" &&
3454 test "$program_prefix$program_suffix$program_transform_name" = \
3456 program_prefix=${target_alias}-
3458 # Determine the noncanonical host name, for Ada.
3459 case ${build_alias} in
3460 "") build_noncanonical=${build} ;;
3461 *) build_noncanonical=${build_alias} ;;
3464 case ${host_alias} in
3465 "") host_noncanonical=${build_noncanonical} ;;
3466 *) host_noncanonical=${host_alias} ;;
3472 # Determine the noncanonical target name, for directory use.
3473 case ${target_alias} in
3474 "") target_noncanonical=${host_noncanonical} ;;
3475 *) target_noncanonical=${target_alias} ;;
3481 # Used for constructing correct paths for offload compilers.
3482 real_target_noncanonical=${target_noncanonical}
3485 # Determine the target- and build-specific subdirectories
3487 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3488 # have matching libraries, they should use host libraries: Makefile.tpl
3489 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3490 # However, they still use the build modules, because the corresponding
3491 # host modules (e.g. bison) are only built for the host when bootstrap
3493 # - build_subdir is where we find build modules, and never changes.
3494 # - build_libsubdir is where we find build libraries, and can be overridden.
3496 # Prefix 'build-' so this never conflicts with target_subdir.
3497 build_subdir="build-${build_noncanonical}"
3499 # Check whether --with-build-libsubdir was given.
3500 if test "${with_build_libsubdir+set}" = set; then :
3501 withval=$with_build_libsubdir; build_libsubdir="$withval"
3503 build_libsubdir="$build_subdir"
3506 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3507 if ( test $srcdir = . && test -d gcc ) \
3508 || test -d $srcdir/../host-${host_noncanonical}; then
3509 host_subdir="host-${host_noncanonical}"
3514 target_subdir=${target_noncanonical}
3517 # Set program_transform_name
3518 test "$program_prefix" != NONE &&
3519 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3520 # Use a double $ so make ignores it.
3521 test "$program_suffix" != NONE &&
3522 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3523 # Double any \ or $.
3524 # By default was `s
,x
,x
', remove it if useless.
3525 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3526 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3529 # Check for bogus environment variables.
3530 # Test if LIBRARY_PATH contains the notation for the current directory
3531 # since this would lead to problems installing/building glibc.
3532 # LIBRARY_PATH contains the current directory if one of the following
3534 # - one of the terminals (":" and ";") is the first or last sign
3535 # - two terminals occur directly after each other
3536 # - the path contains an element with a dot in it
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3538 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3539 case ${LIBRARY_PATH} in
3540 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3541 library_path_setting="contains current directory"
3544 library_path_setting="ok"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3548 $as_echo "$library_path_setting" >&6; }
3549 if test "$library_path_setting" != "ok"; then
3551 *** LIBRARY_PATH shouldn't contain the current directory when
3552 *** building gcc. Please change the environment variable
3553 *** and run configure again.
" "$LINENO" 5
3556 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3557 # since this would lead to problems installing/building glibc.
3558 # GCC_EXEC_PREFIX contains the current directory if one of the following
3560 # - one of the terminals (":" and ";") is the first or last sign
3561 # - two terminals occur directly after each other
3562 # - the path contains an element with a dot in it
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3564 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3565 case ${GCC_EXEC_PREFIX} in
3566 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3567 gcc_exec_prefix_setting="contains current directory
"
3570 gcc_exec_prefix_setting="ok
"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3574 $as_echo "$gcc_exec_prefix_setting" >&6; }
3575 if test "$gcc_exec_prefix_setting" != "ok
"; then
3577 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3578 *** building gcc. Please change the environment variable
3579 *** and run configure again." "$LINENO" 5
3586 # Specify the local prefix
3589 # Check whether --with-local-prefix was given.
3590 if test "${with_local_prefix+set}" = set; then :
3591 withval=$with_local_prefix; case "${withval}" in
3592 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3594 *) local_prefix=$with_local_prefix ;;
3599 # Default local prefix if it is empty
3600 if test x$local_prefix = x; then
3601 local_prefix=/usr/local
3605 # Check whether --with-native-system-header-dir was given.
3606 if test "${with_native_system_header_dir+set}" = set; then :
3607 withval=$with_native_system_header_dir;
3608 case ${with_native_system_header_dir} in
3609 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3610 /* | [A-Za-z]:[\\/]*) ;;
3611 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3613 configured_native_system_header_dir="${withval}"
3616 configured_native_system_header_dir=
3621 # Check whether --with-build-sysroot was given.
3622 if test "${with_build_sysroot+set}" = set; then :
3623 withval=$with_build_sysroot; if test x"$withval" != x ; then
3624 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3627 SYSROOT_CFLAGS_FOR_TARGET=
3632 if test "x$prefix" = xNONE; then
3633 test_prefix=/usr/local
3637 if test "x$exec_prefix" = xNONE; then
3638 test_exec_prefix=$test_prefix
3640 test_exec_prefix=$exec_prefix
3644 # Check whether --with-sysroot was given.
3645 if test "${with_sysroot+set}" = set; then :
3646 withval=$with_sysroot;
3647 case ${with_sysroot} in
3649 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3651 case ${with_sysroot} in
3652 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3653 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3656 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3657 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3659 case ${TARGET_SYSTEM_ROOT} in
3660 "${test_prefix}"|"${test_prefix}/"*|\
3661 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3662 '${prefix}'|'${prefix}/'*|\
3663 '${exec_prefix}'|'${exec_prefix}/'*)
3664 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3665 TARGET_SYSTEM_ROOT_DEFINE="$t"
3672 TARGET_SYSTEM_ROOT_DEFINE=
3673 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3681 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3682 # passed in by the toplevel make and thus we'd get different behavior
3683 # depending on where we built the sources.
3684 gcc_gxx_include_dir
=
3685 # Specify the g++ header file directory
3687 # Check whether --with-gxx-include-dir was given.
3688 if test "${with_gxx_include_dir+set}" = set; then :
3689 withval
=$with_gxx_include_dir; case "${withval}" in
3690 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3692 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3697 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3698 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3699 # relative to the sysroot.
3700 gcc_gxx_include_dir_add_sysroot
=0
3702 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3703 if test x
${gcc_gxx_include_dir} = x
; then
3704 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3705 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3707 libstdcxx_incdir
='include/c++/$(version)'
3708 if test x
$host != x
$target; then
3709 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3711 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3713 elif test "${with_sysroot+set}" = set; then
3714 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3715 if test "${gcc_gxx_without_sysroot}"; then
3716 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3717 gcc_gxx_include_dir_add_sysroot
=1
3722 # Check whether --with-cpp_install_dir was given.
3723 if test "${with_cpp_install_dir+set}" = set; then :
3724 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3725 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3726 elif test x
$withval != xno
; then
3727 cpp_install_dir
=$withval
3732 # We would like to our source tree to be readonly. However when releases or
3733 # pre-releases are generated, the flex/bison generated files as well as the
3734 # various formats of manuals need to be included along with the rest of the
3735 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3739 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3740 # Check whether --enable-generated-files-in-srcdir was given.
3741 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3742 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3744 generated_files_in_srcdir
=no
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3749 $as_echo "$generated_files_in_srcdir" >&6; }
3751 if test "$generated_files_in_srcdir" = "yes"; then
3758 # -------------------
3759 # Find default linker
3760 # -------------------
3764 # Check whether --with-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then :
3766 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3773 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3777 # With pre-defined ld
3779 # Check whether --with-ld was given.
3780 if test "${with_ld+set}" = set; then :
3781 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3784 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3785 if test ! -x "$DEFAULT_LINKER"; then
3786 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3787 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3789 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3793 cat >>confdefs.h
<<_ACEOF
3794 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3800 $as_echo_n "checking whether a default linker was specified... " >&6; }
3801 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3802 if test x
"$gnu_ld_flag" = x
"no"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3804 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3807 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3814 # With demangler in GNU ld
3816 # Check whether --with-demangler-in-ld was given.
3817 if test "${with_demangler_in_ld+set}" = set; then :
3818 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3824 # ----------------------
3825 # Find default assembler
3826 # ----------------------
3830 # Check whether --with-gnu-as was given.
3831 if test "${with_gnu_as+set}" = set; then :
3832 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3839 # Check whether --with-as was given.
3840 if test "${with_as+set}" = set; then :
3841 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3844 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3845 if test ! -x "$DEFAULT_ASSEMBLER"; then
3846 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3847 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3851 cat >>confdefs.h
<<_ACEOF
3852 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3858 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3859 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3860 if test x
"$gas_flag" = x
"no"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3862 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3865 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3876 # If a non-executable a.out is present (e.g. created by GNU as above even if
3877 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3878 # file, even when creating an executable, so an execution test fails.
3879 # Remove possible default executable files to avoid this.
3881 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3882 # Autoconf includes it.
3883 rm -f a.out a.exe b.out
3885 # Find the native compiler
3887 ac_cpp
='$CPP $CPPFLAGS'
3888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3893 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC
="$CC" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_CC"; then
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc
; ac_word
=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$ac_ct_CC"; then
3940 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_CC
="gcc"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 $as_echo "$ac_ct_CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_CC" = x
; then
3971 case $cross_compiling:$ac_tool_warned in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned
=yes ;;
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false
; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC
="$CC" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4024 if test -z "$CC"; then
4025 # Extract the first word of "cc", so it can be a program name with args.
4026 set dummy cc
; ac_word
=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CC+:} false
; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC
="$CC" # Let the user override the test.
4036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir
=.
4041 for ac_exec_ext
in '' $ac_executable_extensions; do
4042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4044 ac_prog_rejected
=yes
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test $ac_prog_rejected = yes; then
4056 # We found a bogon in the path, so make sure we never use it.
4057 set dummy
$ac_cv_prog_CC
4059 if test $# != 0; then
4060 # We chose a different compiler from the bogus one.
4061 # However, it has the same basename, so the bogon will be chosen
4062 # first if we set CC to just the basename; use the full file name.
4064 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 for ac_prog
in cl.exe
4084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC
="$CC" # Let the user override the test.
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$CC" && break
4124 if test -z "$CC"; then
4126 for ac_prog
in cl.exe
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy
$ac_prog; ac_word
=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$ac_ct_CC"; then
4136 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir
=.
4143 for ac_exec_ext
in '' $ac_executable_extensions; do
4144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_CC
="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4156 if test -n "$ac_ct_CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4158 $as_echo "$ac_ct_CC" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$ac_ct_CC" && break
4168 if test "x$ac_ct_CC" = x
; then
4171 case $cross_compiling:$ac_tool_warned in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned
=yes ;;
4184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $?
"no acceptable C compiler found in \$PATH
4187 See \`config.log' for more details" "$LINENO" 5; }
4189 # Provide some information about the compiler.
4190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4193 for ac_option
in --version -v -V -qversion; do
4194 { { ac_try
="$ac_compiler $ac_option >&5"
4196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200 $as_echo "$ac_try_echo"; } >&5
4201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4203 if test -s conftest.err; then
4205 ... rest of stderr output deleted ...
4206 10q' conftest.err >conftest.er1
4207 cat conftest.er1 >&5
4209 rm -f conftest.er1 conftest.err
4210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4225 ac_clean_files_save=$ac_clean_files
4226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4227 # Try to create an executable without -o first, disregard a.out.
4228 # It will help us diagnose broken compilers, and finding out an intuition
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4231 $as_echo_n "checking whether the C compiler works... " >&6; }
4232 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4234 # The possible output files:
4235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4238 for ac_file in $ac_files
4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4247 if { { ac_try="$ac_link_default"
4249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4250 *) ac_try_echo
=$ac_try;;
4252 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link_default") 2>&5
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4261 # so that the user can short-circuit this test for compilers unknown to
4263 for ac_file
in $ac_files ''
4265 test -f "$ac_file" ||
continue
4267 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4270 # We found the default executable, but exeext='' is most
4274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4276 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4278 # We set ac_cv_exeext here because the later test for it is not
4279 # safe: cross compilers may not add the suffix if given an `-o'
4280 # argument, so we may need to know it at that point already.
4281 # Even if this section looks crufty: it has the advantage of
4288 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4293 if test -z "$ac_file"; then :
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.
$ac_ext >&5
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error
77 "C compiler cannot create executables
4302 See \`config.log' for more details" "$LINENO" 5; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4308 $as_echo_n "checking for C compiler default output file name... " >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4310 $as_echo "$ac_file" >&6; }
4311 ac_exeext
=$ac_cv_exeext
4313 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4314 ac_clean_files
=$ac_clean_files_save
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4316 $as_echo_n "checking for suffix of executables... " >&6; }
4317 if { { ac_try
="$ac_link"
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_link") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; then :
4328 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4329 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4330 # work properly (i.e., refer to `conftest.exe'), while it won't with
4332 for ac_file
in conftest.exe conftest conftest.
*; do
4333 test -f "$ac_file" ||
continue
4335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4336 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4344 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4345 See \`config.log' for more details" "$LINENO" 5; }
4347 rm -f conftest conftest
$ac_cv_exeext
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4349 $as_echo "$ac_cv_exeext" >&6; }
4351 rm -f conftest.
$ac_ext
4352 EXEEXT
=$ac_cv_exeext
4354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4360 FILE *f = fopen ("conftest.out", "w");
4361 return ferror (f) || fclose (f) != 0;
4367 ac_clean_files
="$ac_clean_files conftest.out"
4368 # Check that the compiler produces executables we can run. If not, either
4369 # the compiler is broken, or we cross compile.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4371 $as_echo_n "checking whether we are cross compiling... " >&6; }
4372 if test "$cross_compiling" != yes; then
4373 { { ac_try
="$ac_link"
4375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_link") 2>&5
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }
4384 if { ac_try='./conftest$ac_cv_exeext'
4385 { { case "(($ac_try" in
4386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4387 *) ac_try_echo
=$ac_try;;
4389 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }; }; then
4397 if test "$cross_compiling" = maybe
; then
4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error $?
"cannot run C compiled programs.
4403 If you meant to cross compile, use \`--host'.
4404 See \`config.log' for more details" "$LINENO" 5; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4409 $as_echo "$cross_compiling" >&6; }
4411 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4412 ac_clean_files
=$ac_clean_files_save
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4414 $as_echo_n "checking for suffix of object files... " >&6; }
4415 if ${ac_cv_objext+:} false
; then :
4416 $as_echo_n "(cached) " >&6
4418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4429 rm -f conftest.o conftest.obj
4430 if { { ac_try
="$ac_compile"
4432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compile") 2>&5
4439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; then :
4441 for ac_file in conftest.o conftest.obj conftest.*; do
4442 test -f "$ac_file" || continue;
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4456 See \
`config.log' for more details" "$LINENO" 5; }
4458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4461 $as_echo "$ac_cv_objext" >&6; }
4462 OBJEXT=$ac_cv_objext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4466 if ${ac_cv_c_compiler_gnu+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4483 if ac_fn_c_try_compile "$LINENO"; then :
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4494 if test $ac_compiler_gnu = yes; then
4499 ac_test_CFLAGS=${CFLAGS+set}
4500 ac_save_CFLAGS=$CFLAGS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4503 if ${ac_cv_prog_cc_g+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 ac_save_c_werror_flag=$ac_c_werror_flag
4507 ac_c_werror_flag=yes
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 if ac_fn_c_try_compile "$LINENO"; then :
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4536 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_c_werror_flag=$ac_save_c_werror_flag
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 if ac_fn_c_try_compile "$LINENO"; then :
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4563 $as_echo "$ac_cv_prog_cc_g" >&6; }
4564 if test "$ac_test_CFLAGS" = set; then
4565 CFLAGS=$ac_save_CFLAGS
4566 elif test $ac_cv_prog_cc_g = yes; then
4567 if test "$GCC" = yes; then
4573 if test "$GCC" = yes; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4581 if ${ac_cv_prog_cc_c89+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 ac_cv_prog_cc_c89=no
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4592 struct buf { int x; };
4593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4594 static char *e (p, i)
4600 static char *f (char * (*g) (char **, int), char **p, ...)
4605 s = g (p, va_arg (v,int));
4610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4611 function prototypes and stuff, but not '\xHH' hex character constants.
4612 These don't provoke an error unfortunately, instead are silently treated
4613 as 'x'. The following induces an error, until -std is added to get
4614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4615 array size at least. It's necessary to write '\x00'==0 to get something
4616 that's true only with -std. */
4617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4620 inside strings and character constants. */
4622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4624 int test (int i, double x);
4625 struct s1 {int (*f) (int a);};
4626 struct s2 {int (*f) (double a);};
4627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4641 CC="$ac_save_CC $ac_arg"
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_c89=$ac_arg
4645 rm -f core conftest.err conftest.$ac_objext
4646 test "x$ac_cv_prog_cc_c89" != "xno" && break
4648 rm -f conftest.$ac_ext
4653 case "x$ac_cv_prog_cc_c89" in
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4656 $as_echo "none needed" >&6; } ;;
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 $as_echo "unsupported" >&6; } ;;
4661 CC="$CC $ac_cv_prog_cc_c89"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4665 if test "x$ac_cv_prog_cc_c89" != xno; then :
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 ac_cpp='$CXXCPP $CPPFLAGS'
4677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4680 if test -z "$CXX"; then
4681 if test -n "$CCC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_CXX+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$CXX"; then
4695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 if test -n "$CXX"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4717 $as_echo "$CXX" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4724 test -n "$CXX" && break
4727 if test -z "$CXX"; then
4729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$ac_ct_CXX"; then
4739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_ac_ct_CXX="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4759 if test -n "$ac_ct_CXX"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4761 $as_echo "$ac_ct_CXX" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$ac_ct_CXX" && break
4771 if test "x$ac_ct_CXX" = x; then
4774 case $cross_compiling:$ac_tool_warned in
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4786 # Provide some information about the compiler.
4787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4790 for ac_option in --version -v -V -qversion; do
4791 { { ac_try="$ac_compiler $ac_option >&5"
4793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4794 *) ac_try_echo
=$ac_try;;
4796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797 $as_echo "$ac_try_echo"; } >&5
4798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4800 if test -s conftest.err
; then
4802 ... rest of stderr output deleted ...
4803 10q' conftest.err
>conftest.er1
4804 cat conftest.er1
>&5
4806 rm -f conftest.er1 conftest.err
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4813 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4814 $as_echo_n "(cached) " >&6
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4830 if ac_fn_cxx_try_compile
"$LINENO"; then :
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4841 if test $ac_compiler_gnu = yes; then
4846 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4847 ac_save_CXXFLAGS
=$CXXFLAGS
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4850 if ${ac_cv_prog_cxx_g+:} false
; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4854 ac_cxx_werror_flag
=yes
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4868 if ac_fn_cxx_try_compile
"$LINENO"; then :
4869 ac_cv_prog_cxx_g
=yes
4872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4883 if ac_fn_cxx_try_compile
"$LINENO"; then :
4886 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4899 if ac_fn_cxx_try_compile
"$LINENO"; then :
4900 ac_cv_prog_cxx_g
=yes
4902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4911 if test "$ac_test_CXXFLAGS" = set; then
4912 CXXFLAGS
=$ac_save_CXXFLAGS
4913 elif test $ac_cv_prog_cxx_g = yes; then
4914 if test "$GXX" = yes; then
4920 if test "$GXX" = yes; then
4927 ac_cpp
='$CPP $CPPFLAGS'
4928 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4937 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_GNATBIND+:} false
; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -n "$GNATBIND"; then
4944 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir
=.
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 GNATBIND
=$ac_cv_prog_GNATBIND
4964 if test -n "$GNATBIND"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4966 $as_echo "$GNATBIND" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4974 if test -z "$ac_cv_prog_GNATBIND"; then
4975 ac_ct_GNATBIND
=$GNATBIND
4976 # Extract the first word of "gnatbind", so it can be a program name with args.
4977 set dummy gnatbind
; ac_word
=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4981 $as_echo_n "(cached) " >&6
4983 if test -n "$ac_ct_GNATBIND"; then
4984 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir
=.
4991 for ac_exec_ext
in '' $ac_executable_extensions; do
4992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5004 if test -n "$ac_ct_GNATBIND"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5006 $as_echo "$ac_ct_GNATBIND" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5012 if test "x$ac_ct_GNATBIND" = x
; then
5015 case $cross_compiling:$ac_tool_warned in
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned
=yes ;;
5021 GNATBIND
=$ac_ct_GNATBIND
5024 GNATBIND
="$ac_cv_prog_GNATBIND"
5027 if test -n "$ac_tool_prefix"; then
5028 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5029 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$GNATMAKE"; then
5036 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 GNATMAKE
=$ac_cv_prog_GNATMAKE
5056 if test -n "$GNATMAKE"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5058 $as_echo "$GNATMAKE" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5066 if test -z "$ac_cv_prog_GNATMAKE"; then
5067 ac_ct_GNATMAKE
=$GNATMAKE
5068 # Extract the first word of "gnatmake", so it can be a program name with args.
5069 set dummy gnatmake
; ac_word
=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5073 $as_echo_n "(cached) " >&6
5075 if test -n "$ac_ct_GNATMAKE"; then
5076 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir
=.
5083 for ac_exec_ext
in '' $ac_executable_extensions; do
5084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5096 if test -n "$ac_ct_GNATMAKE"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5098 $as_echo "$ac_ct_GNATMAKE" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5104 if test "x$ac_ct_GNATMAKE" = x
; then
5107 case $cross_compiling:$ac_tool_warned in
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111 ac_tool_warned
=yes ;;
5113 GNATMAKE
=$ac_ct_GNATMAKE
5116 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5120 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5121 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5122 $as_echo_n "(cached) " >&6
5124 cat >conftest.adb
<<EOF
5125 procedure conftest is begin null; end conftest;
5127 acx_cv_cc_gcc_supports_ada
=no
5128 # There is a bug in old released versions of GCC which causes the
5129 # driver to exit successfully when the appropriate language module
5130 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5131 # Therefore we must check for the error message as well as an
5132 # unsuccessful exit.
5133 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5134 # given a .adb file, but produce no object file. So we must check
5135 # if an object file was really produced to guard against this.
5136 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5137 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5138 acx_cv_cc_gcc_supports_ada
=yes
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5143 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5145 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5152 # Do configure tests with the C++ compiler, since that's what we build with.
5154 ac_cpp
='$CXXCPP $CPPFLAGS'
5155 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5160 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5161 # optimizations to be activated explicitly by the toplevel.
5163 */prev-gcc
/xgcc
*) ;;
5164 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5165 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5170 # Determine PICFLAG for target gnatlib.
5176 # PIC is the default on some targets or must not be used.
5178 # For darwin, common symbols are not allowed in MH_DYLIB files
5180 # If we are using a compiler supporting mdynamic-no-pic
5181 # and the option has been tested as safe to add, then cancel
5182 # it here, since the code generated is incompatible with shared
5184 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5185 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5189 # PIC is the default.
5192 # PIC is the default for 64-bit PA HP-UX.
5194 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5196 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5198 i
[34567]86-*-interix[3-9]*)
5199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5200 # Instead, we relocate shared libraries at runtime.
5202 i
[34567]86-*-nto-qnx*)
5203 # QNX uses GNU C++, but need to define -shared option too, otherwise
5205 PICFLAG_FOR_TARGET
='-fPIC -shared'
5207 i
[34567]86-pc-msdosdjgpp*)
5208 # DJGPP does not support shared libraries at all.
5211 # On IA64 HP-UX, PIC is the default but the pic flag
5212 # sets the default TLS model and affects inlining.
5213 PICFLAG_FOR_TARGET
=-fPIC
5216 # PIC is the default.
5218 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5219 # All AIX code is PIC.
5222 # Some targets support both -fPIC and -fpic, but prefer the latter.
5224 i
[34567]86-*-* | x86_64-
*-*)
5225 PICFLAG_FOR_TARGET
=-fpic
5227 # FIXME: Override -fPIC default in libgcc only?
5228 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5229 PICFLAG_FOR_TARGET
=-fpic
5231 # FIXME: Simplify to sh*-*-netbsd*?
5232 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5233 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5234 PICFLAG_FOR_TARGET
=-fpic
5236 # Default to -fPIC unless specified otherwise.
5238 PICFLAG_FOR_TARGET
=-fPIC
5242 # If the user explicitly uses -fpic/-fPIC, keep that.
5243 case "${CFLAGS_FOR_TARGET}" in
5245 PICFLAG_FOR_TARGET
=-fpic
5248 PICFLAG_FOR_TARGET
=-fPIC
5254 # -------------------------
5255 # Check C compiler features
5256 # -------------------------
5260 ac_cpp
='$CXXCPP $CPPFLAGS'
5261 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5265 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5266 if test -z "$CXXCPP"; then
5267 if ${ac_cv_prog_CXXCPP+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5270 # Double quotes because CXXCPP needs to be expanded
5271 for CXXCPP
in "$CXX -E" "/lib/cpp"
5274 for ac_cxx_preproc_warn_flag
in '' yes
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5285 # include <limits.h>
5287 # include <assert.h>
5291 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5294 # Broken: fails on valid input.
5297 rm -f conftest.err conftest.i conftest.
$ac_ext
5299 # OK, works on sane cases. Now check whether nonexistent headers
5300 # can be detected and how.
5301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #include <ac_nonexistent.h>
5305 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5306 # Broken: success on invalid input.
5309 # Passes both tests.
5313 rm -f conftest.err conftest.i conftest.
$ac_ext
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.i conftest.err conftest.
$ac_ext
5318 if $ac_preproc_ok; then :
5323 ac_cv_prog_CXXCPP
=$CXXCPP
5326 CXXCPP
=$ac_cv_prog_CXXCPP
5328 ac_cv_prog_CXXCPP
=$CXXCPP
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5331 $as_echo "$CXXCPP" >&6; }
5333 for ac_cxx_preproc_warn_flag
in '' yes
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5344 # include <limits.h>
5346 # include <assert.h>
5350 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5353 # Broken: fails on valid input.
5356 rm -f conftest.err conftest.i conftest.
$ac_ext
5358 # OK, works on sane cases. Now check whether nonexistent headers
5359 # can be detected and how.
5360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <ac_nonexistent.h>
5364 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5365 # Broken: success on invalid input.
5368 # Passes both tests.
5372 rm -f conftest.err conftest.i conftest.
$ac_ext
5375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376 rm -f conftest.i conftest.err conftest.
$ac_ext
5377 if $ac_preproc_ok; then :
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5383 See \`config.log' for more details" "$LINENO" 5; }
5387 ac_cpp
='$CXXCPP $CPPFLAGS'
5388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5395 if ${ac_cv_path_GREP+:} false
; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -z "$GREP"; then
5399 ac_path_GREP_found
=false
5400 # Loop through the user's path and test for each of PROGNAME-LIST
5401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5402 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5405 test -z "$as_dir" && as_dir
=.
5406 for ac_prog
in grep ggrep
; do
5407 for ac_exec_ext
in '' $ac_executable_extensions; do
5408 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5409 as_fn_executable_p
"$ac_path_GREP" ||
continue
5410 # Check for GNU ac_path_GREP and select it if it is found.
5411 # Check for GNU $ac_path_GREP
5412 case `"$ac_path_GREP" --version 2>&1` in
5414 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5417 $as_echo_n 0123456789 >"conftest.in"
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 $as_echo 'GREP' >> "conftest.nl"
5424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5425 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5426 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5427 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_GREP
="$ac_path_GREP"
5430 ac_path_GREP_max
=$ac_count
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5435 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5438 $ac_path_GREP_found && break 3
5443 if test -z "$ac_cv_path_GREP"; then
5444 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5447 ac_cv_path_GREP
=$GREP
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5452 $as_echo "$ac_cv_path_GREP" >&6; }
5453 GREP
="$ac_cv_path_GREP"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5457 $as_echo_n "checking for egrep... " >&6; }
5458 if ${ac_cv_path_EGREP+:} false
; then :
5459 $as_echo_n "(cached) " >&6
5461 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5462 then ac_cv_path_EGREP
="$GREP -E"
5464 if test -z "$EGREP"; then
5465 ac_path_EGREP_found
=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5468 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5471 test -z "$as_dir" && as_dir
=.
5472 for ac_prog
in egrep; do
5473 for ac_exec_ext
in '' $ac_executable_extensions; do
5474 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5476 # Check for GNU ac_path_EGREP and select it if it is found.
5477 # Check for GNU $ac_path_EGREP
5478 case `"$ac_path_EGREP" --version 2>&1` in
5480 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'EGREP' >> "conftest.nl"
5490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5491 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5492 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_EGREP
="$ac_path_EGREP"
5496 ac_path_EGREP_max
=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5504 $ac_path_EGREP_found && break 3
5509 if test -z "$ac_cv_path_EGREP"; then
5510 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513 ac_cv_path_EGREP
=$EGREP
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5519 $as_echo "$ac_cv_path_EGREP" >&6; }
5520 EGREP
="$ac_cv_path_EGREP"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5524 $as_echo_n "checking for ANSI C header files... " >&6; }
5525 if ${ac_cv_header_stdc+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5543 if ac_fn_cxx_try_compile
"$LINENO"; then :
5544 ac_cv_header_stdc
=yes
5546 ac_cv_header_stdc
=no
5548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5550 if test $ac_cv_header_stdc = yes; then
5551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558 $EGREP "memchr" >/dev
/null
2>&1; then :
5561 ac_cv_header_stdc
=no
5567 if test $ac_cv_header_stdc = yes; then
5568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5575 $EGREP "free" >/dev
/null
2>&1; then :
5578 ac_cv_header_stdc
=no
5584 if test $ac_cv_header_stdc = yes; then
5585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5586 if test "$cross_compiling" = yes; then :
5589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5593 #if ((' ' & 0x0FF) == 0x020)
5594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5597 # define ISLOWER(c) \
5598 (('a' <= (c) && (c) <= 'i') \
5599 || ('j' <= (c) && (c) <= 'r') \
5600 || ('s' <= (c) && (c) <= 'z'))
5601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5609 for (i = 0; i < 256; i++)
5610 if (XOR (islower (i), ISLOWER (i))
5611 || toupper (i) != TOUPPER (i))
5616 if ac_fn_cxx_try_run
"$LINENO"; then :
5619 ac_cv_header_stdc
=no
5621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5628 $as_echo "$ac_cv_header_stdc" >&6; }
5629 if test $ac_cv_header_stdc = yes; then
5631 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5636 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5637 inttypes.h stdint.h unistd.h
5639 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5642 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5643 cat >>confdefs.h
<<_ACEOF
5644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5653 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5654 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5661 if test "$MINIX" = yes; then
5663 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5666 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5669 $as_echo "#define _MINIX 1" >>confdefs.h
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5675 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5676 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5677 $as_echo_n "(cached) " >&6
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5682 # define __EXTENSIONS__ 1
5683 $ac_includes_default
5692 if ac_fn_cxx_try_compile
"$LINENO"; then :
5693 ac_cv_safe_to_define___extensions__
=yes
5695 ac_cv_safe_to_define___extensions__
=no
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5700 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5701 test $ac_cv_safe_to_define___extensions__ = yes &&
5702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5706 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5708 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5710 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5715 ac_cpp
='$CPP $CPPFLAGS'
5716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5720 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5721 # On Suns, sometimes $CPP names a directory.
5722 if test -n "$CPP" && test -d "$CPP"; then
5725 if test -z "$CPP"; then
5726 if ${ac_cv_prog_CPP+:} false
; then :
5727 $as_echo_n "(cached) " >&6
5729 # Double quotes because CPP needs to be expanded
5730 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5733 for ac_c_preproc_warn_flag
in '' yes
5735 # Use a header file that comes with gcc, so configuring glibc
5736 # with a fresh cross-compiler works.
5737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738 # <limits.h> exists even on freestanding compilers.
5739 # On the NeXT, cc -E runs the code through the compiler's parser,
5740 # not just through cpp. "Syntax error" is here to catch this case.
5741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5744 # include <limits.h>
5746 # include <assert.h>
5750 if ac_fn_c_try_cpp
"$LINENO"; then :
5753 # Broken: fails on valid input.
5756 rm -f conftest.err conftest.i conftest.
$ac_ext
5758 # OK, works on sane cases. Now check whether nonexistent headers
5759 # can be detected and how.
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <ac_nonexistent.h>
5764 if ac_fn_c_try_cpp
"$LINENO"; then :
5765 # Broken: success on invalid input.
5768 # Passes both tests.
5772 rm -f conftest.err conftest.i conftest.
$ac_ext
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.i conftest.err conftest.
$ac_ext
5777 if $ac_preproc_ok; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5790 $as_echo "$CPP" >&6; }
5792 for ac_c_preproc_warn_flag
in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5803 # include <limits.h>
5805 # include <assert.h>
5809 if ac_fn_c_try_cpp
"$LINENO"; then :
5812 # Broken: fails on valid input.
5815 rm -f conftest.err conftest.i conftest.
$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5823 if ac_fn_c_try_cpp
"$LINENO"; then :
5824 # Broken: success on invalid input.
5827 # Passes both tests.
5831 rm -f conftest.err conftest.i conftest.
$ac_ext
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.i conftest.err conftest.
$ac_ext
5836 if $ac_preproc_ok; then :
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5842 See \`config.log' for more details" "$LINENO" 5; }
5846 ac_cpp
='$CXXCPP $CPPFLAGS'
5847 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5852 $as_echo_n "checking for inline... " >&6; }
5853 if ${ac_cv_c_inline+:} false
; then :
5854 $as_echo_n "(cached) " >&6
5857 for ac_kw
in inline __inline__ __inline
; do
5858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5862 static $ac_kw foo_t static_foo () {return 0; }
5863 $ac_kw foo_t foo () {return 0; }
5867 if ac_fn_cxx_try_compile
"$LINENO"; then :
5868 ac_cv_c_inline
=$ac_kw
5870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5871 test "$ac_cv_c_inline" != no
&& break
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5876 $as_echo "$ac_cv_c_inline" >&6; }
5878 case $ac_cv_c_inline in
5881 case $ac_cv_c_inline in
5883 *) ac_val
=$ac_cv_c_inline;;
5885 cat >>confdefs.h
<<_ACEOF
5887 #define inline $ac_val
5894 # Check whether --enable-largefile was given.
5895 if test "${enable_largefile+set}" = set; then :
5896 enableval
=$enable_largefile;
5899 if test "$enable_largefile" != no
; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5902 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5903 if ${ac_cv_sys_largefile_CC+:} false
; then :
5904 $as_echo_n "(cached) " >&6
5906 ac_cv_sys_largefile_CC
=no
5907 if test "$GCC" != yes; then
5910 # IRIX 6.2 and later do not support large files by default,
5911 # so use the C compiler's -n32 option if that helps.
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5915 /* Check that off_t can represent 2**63 - 1 correctly.
5916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5917 since some C++ compilers masquerading as C compilers
5918 incorrectly reject 9223372036854775807. */
5919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5921 && LARGE_OFF_T % 2147483647 == 1)
5931 if ac_fn_cxx_try_compile
"$LINENO"; then :
5934 rm -f core conftest.err conftest.
$ac_objext
5936 if ac_fn_cxx_try_compile
"$LINENO"; then :
5937 ac_cv_sys_largefile_CC
=' -n32'; break
5939 rm -f core conftest.err conftest.
$ac_objext
5943 rm -f conftest.
$ac_ext
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5947 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5948 if test "$ac_cv_sys_largefile_CC" != no
; then
5949 CC
=$CC$ac_cv_sys_largefile_CC
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5953 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5954 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5955 $as_echo_n "(cached) " >&6
5958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <sys/types.h>
5961 /* Check that off_t can represent 2**63 - 1 correctly.
5962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5963 since some C++ compilers masquerading as C compilers
5964 incorrectly reject 9223372036854775807. */
5965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5967 && LARGE_OFF_T % 2147483647 == 1)
5977 if ac_fn_cxx_try_compile
"$LINENO"; then :
5978 ac_cv_sys_file_offset_bits
=no
; break
5980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #define _FILE_OFFSET_BITS 64
5984 #include <sys/types.h>
5985 /* Check that off_t can represent 2**63 - 1 correctly.
5986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5987 since some C++ compilers masquerading as C compilers
5988 incorrectly reject 9223372036854775807. */
5989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5991 && LARGE_OFF_T % 2147483647 == 1)
6001 if ac_fn_cxx_try_compile
"$LINENO"; then :
6002 ac_cv_sys_file_offset_bits
=64; break
6004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6005 ac_cv_sys_file_offset_bits
=unknown
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6010 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6011 case $ac_cv_sys_file_offset_bits in #(
6014 cat >>confdefs.h
<<_ACEOF
6015 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6020 if test $ac_cv_sys_file_offset_bits = unknown
; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6022 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6023 if ${ac_cv_sys_large_files+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #include <sys/types.h>
6030 /* Check that off_t can represent 2**63 - 1 correctly.
6031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6032 since some C++ compilers masquerading as C compilers
6033 incorrectly reject 9223372036854775807. */
6034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6036 && LARGE_OFF_T % 2147483647 == 1)
6046 if ac_fn_cxx_try_compile
"$LINENO"; then :
6047 ac_cv_sys_large_files
=no
; break
6049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #define _LARGE_FILES 1
6053 #include <sys/types.h>
6054 /* Check that off_t can represent 2**63 - 1 correctly.
6055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6056 since some C++ compilers masquerading as C compilers
6057 incorrectly reject 9223372036854775807. */
6058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6060 && LARGE_OFF_T % 2147483647 == 1)
6070 if ac_fn_cxx_try_compile
"$LINENO"; then :
6071 ac_cv_sys_large_files
=1; break
6073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6074 ac_cv_sys_large_files
=unknown
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6079 $as_echo "$ac_cv_sys_large_files" >&6; }
6080 case $ac_cv_sys_large_files in #(
6083 cat >>confdefs.h
<<_ACEOF
6084 #define _LARGE_FILES $ac_cv_sys_large_files
6095 # sizeof(char) is 1 by definition.
6096 # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6101 $as_echo_n "checking size of void *... " >&6; }
6102 if ${ac_cv_sizeof_void_p+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6108 if test "$ac_cv_type_void_p" = yes; then
6109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error
77 "cannot compute sizeof (void *)
6112 See \`config.log' for more details" "$LINENO" 5; }
6114 ac_cv_sizeof_void_p
=0
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6120 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6124 cat >>confdefs.h
<<_ACEOF
6125 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6129 # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6134 $as_echo_n "checking size of short... " >&6; }
6135 if ${ac_cv_sizeof_short+:} false
; then :
6136 $as_echo_n "(cached) " >&6
6138 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6141 if test "$ac_cv_type_short" = yes; then
6142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error
77 "cannot compute sizeof (short)
6145 See \`config.log' for more details" "$LINENO" 5; }
6147 ac_cv_sizeof_short
=0
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6153 $as_echo "$ac_cv_sizeof_short" >&6; }
6157 cat >>confdefs.h
<<_ACEOF
6158 #define SIZEOF_SHORT $ac_cv_sizeof_short
6162 # The cast to long int works around a bug in the HP C Compiler
6163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6165 # This bug is HP SR number 8606223364.
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6167 $as_echo_n "checking size of int... " >&6; }
6168 if ${ac_cv_sizeof_int+:} false
; then :
6169 $as_echo_n "(cached) " >&6
6171 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6174 if test "$ac_cv_type_int" = yes; then
6175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6177 as_fn_error
77 "cannot compute sizeof (int)
6178 See \`config.log' for more details" "$LINENO" 5; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6186 $as_echo "$ac_cv_sizeof_int" >&6; }
6190 cat >>confdefs.h
<<_ACEOF
6191 #define SIZEOF_INT $ac_cv_sizeof_int
6195 # The cast to long int works around a bug in the HP C Compiler
6196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6198 # This bug is HP SR number 8606223364.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6200 $as_echo_n "checking size of long... " >&6; }
6201 if ${ac_cv_sizeof_long+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6207 if test "$ac_cv_type_long" = yes; then
6208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 as_fn_error
77 "cannot compute sizeof (long)
6211 See \`config.log' for more details" "$LINENO" 5; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6219 $as_echo "$ac_cv_sizeof_long" >&6; }
6223 cat >>confdefs.h
<<_ACEOF
6224 #define SIZEOF_LONG $ac_cv_sizeof_long
6228 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6229 if test "x$ac_cv_type_long_long" = xyes
; then :
6231 cat >>confdefs.h
<<_ACEOF
6232 #define HAVE_LONG_LONG 1
6235 # The cast to long int works around a bug in the HP C Compiler
6236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6238 # This bug is HP SR number 8606223364.
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6240 $as_echo_n "checking size of long long... " >&6; }
6241 if ${ac_cv_sizeof_long_long+:} false
; then :
6242 $as_echo_n "(cached) " >&6
6244 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6247 if test "$ac_cv_type_long_long" = yes; then
6248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6250 as_fn_error
77 "cannot compute sizeof (long long)
6251 See \`config.log' for more details" "$LINENO" 5; }
6253 ac_cv_sizeof_long_long
=0
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6259 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6263 cat >>confdefs.h
<<_ACEOF
6264 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6270 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6271 case $ac_cv_c_int8_t in #(
6275 cat >>confdefs.h
<<_ACEOF
6276 #define int8_t $ac_cv_c_int8_t
6281 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6282 case $ac_cv_c_int16_t in #(
6286 cat >>confdefs.h
<<_ACEOF
6287 #define int16_t $ac_cv_c_int16_t
6292 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6293 case $ac_cv_c_int32_t in #(
6297 cat >>confdefs.h
<<_ACEOF
6298 #define int32_t $ac_cv_c_int32_t
6303 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6304 case $ac_cv_c_int64_t in #(
6308 cat >>confdefs.h
<<_ACEOF
6309 #define int64_t $ac_cv_c_int64_t
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6316 $as_echo_n "checking for unsigned long long int... " >&6; }
6317 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6318 $as_echo_n "(cached) " >&6
6320 ac_cv_type_unsigned_long_long_int
=yes
6321 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* For now, do not test the preprocessor; as of 2007 there are too many
6326 implementations with broken preprocessors. Perhaps this can
6327 be revisited in 2012. In the meantime, code should not expect
6328 #if to work with literals wider than 32 bits. */
6329 /* Test literals. */
6330 long long int ll = 9223372036854775807ll;
6331 long long int nll = -9223372036854775807LL;
6332 unsigned long long int ull = 18446744073709551615ULL;
6333 /* Test constant expressions. */
6334 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6336 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6342 /* Test availability of runtime routines for shift and division. */
6343 long long int llmax = 9223372036854775807ll;
6344 unsigned long long int ullmax = 18446744073709551615ull;
6345 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6346 | (llmax / ll) | (llmax % ll)
6347 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6348 | (ullmax / ull) | (ullmax % ull));
6354 if ac_fn_cxx_try_link
"$LINENO"; then :
6357 ac_cv_type_unsigned_long_long_int
=no
6359 rm -f core conftest.err conftest.
$ac_objext \
6360 conftest
$ac_exeext conftest.
$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6364 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6365 if test $ac_cv_type_unsigned_long_long_int = yes; then
6367 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6374 $as_echo_n "checking for long long int... " >&6; }
6375 if ${ac_cv_type_long_long_int+:} false
; then :
6376 $as_echo_n "(cached) " >&6
6378 ac_cv_type_long_long_int
=yes
6379 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6380 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6381 if test $ac_cv_type_long_long_int = yes; then
6382 if test "$cross_compiling" = yes; then :
6385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6390 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6391 # define LLONG_MAX (HALF - 1 + HALF)
6396 long long int n = 1;
6400 long long int m = n << i;
6403 if (LLONG_MAX / 2 < m)
6411 if ac_fn_cxx_try_run
"$LINENO"; then :
6414 ac_cv_type_long_long_int
=no
6416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6424 $as_echo "$ac_cv_type_long_long_int" >&6; }
6425 if test $ac_cv_type_long_long_int = yes; then
6427 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6433 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6434 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6436 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6439 test $ac_cv_type_long_long_int = yes \
6440 && ac_type
='long long int' \
6441 || ac_type
='long int'
6443 cat >>confdefs.h
<<_ACEOF
6444 #define intmax_t $ac_type
6451 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6452 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6454 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6457 for ac_type
in 'int' 'long int' 'long long int'; do
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6464 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6466 return test_array [0];
6472 if ac_fn_cxx_try_compile
"$LINENO"; then :
6474 cat >>confdefs.h
<<_ACEOF
6475 #define intptr_t $ac_type
6480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6481 test -z "$ac_type" && break
6486 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6487 case $ac_cv_c_uint8_t in #(
6491 $as_echo "#define _UINT8_T 1" >>confdefs.h
6494 cat >>confdefs.h
<<_ACEOF
6495 #define uint8_t $ac_cv_c_uint8_t
6500 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6501 case $ac_cv_c_uint16_t in #(
6506 cat >>confdefs.h
<<_ACEOF
6507 #define uint16_t $ac_cv_c_uint16_t
6512 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6513 case $ac_cv_c_uint32_t in #(
6517 $as_echo "#define _UINT32_T 1" >>confdefs.h
6520 cat >>confdefs.h
<<_ACEOF
6521 #define uint32_t $ac_cv_c_uint32_t
6526 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6527 case $ac_cv_c_uint64_t in #(
6531 $as_echo "#define _UINT64_T 1" >>confdefs.h
6534 cat >>confdefs.h
<<_ACEOF
6535 #define uint64_t $ac_cv_c_uint64_t
6542 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6543 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6545 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6548 test $ac_cv_type_unsigned_long_long_int = yes \
6549 && ac_type
='unsigned long long int' \
6550 || ac_type
='unsigned long int'
6552 cat >>confdefs.h
<<_ACEOF
6553 #define uintmax_t $ac_type
6560 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6561 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6563 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6566 for ac_type
in 'unsigned int' 'unsigned long int' \
6567 'unsigned long long int'; do
6568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 $ac_includes_default
6574 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6576 return test_array [0];
6582 if ac_fn_cxx_try_compile
"$LINENO"; then :
6584 cat >>confdefs.h
<<_ACEOF
6585 #define uintptr_t $ac_type
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 test -z "$ac_type" && break
6608 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6609 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6612 # check what underlying integer type int64_t uses
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6614 $as_echo_n "checking for int64_t underlying type... " >&6; }
6615 if ${ac_cv_int64_t_type+:} false
; then :
6616 $as_echo_n "(cached) " >&6
6619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6622 #ifdef HAVE_STDINT_H
6625 template <typename T> struct X { };
6627 struct X<long> { typedef long t; };
6637 if ac_fn_cxx_try_compile
"$LINENO"; then :
6638 ac_cv_int64_t_type
=long
6640 ac_cv_int64_t_type
="long long"
6642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6645 $as_echo "$ac_cv_int64_t_type" >&6; }
6646 if test "$ac_cv_int64_t_type" = "long"; then
6648 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 #ifdef HAVE_STDINT_H
6657 template <typename T> struct X { };
6659 struct X<long long> { typedef long long t; };
6669 if ac_fn_cxx_try_compile
"$LINENO"; then :
6672 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6678 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6679 if ${ac_cv_std_swap_in_utility+:} false
; then :
6680 $as_echo_n "(cached) " >&6
6683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6691 int a, b; std::swap(a,b);
6696 if ac_fn_cxx_try_compile
"$LINENO"; then :
6697 ac_cv_std_swap_in_utility
=yes
6699 ac_cv_std_swap_in_utility
=no
6701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6704 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6705 if test $ac_cv_std_swap_in_utility = yes; then
6707 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6711 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6712 # If the host compiler is affected by the bug, and we build with optimization
6713 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6714 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6715 # Since there is no reliable feature check for the presence of this bug,
6716 # we simply use a GCC version number check. (This should never trigger for
6717 # stages 2 or 3 of a native bootstrap.)
6719 if test "$GCC" = yes; then
6720 saved_CXXFLAGS
="$CXXFLAGS"
6722 # The following test compilation will succeed if and only if $CXX accepts
6723 # -fno-strict-aliasing *and* is older than GCC 4.3.
6724 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6726 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6730 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6731 #error compiler not affected by placement new aliasing bug
6735 if ac_fn_cxx_try_compile
"$LINENO"; then :
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6737 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 CXXFLAGS
="$saved_CXXFLAGS"
6750 # ---------------------
6751 # Warnings and checking
6752 # ---------------------
6754 # Check $CC warning features (if it's GCC).
6755 # We want to use -pedantic, but we don't want warnings about
6758 # * overlong strings
6759 # * C++11 narrowing conversions in { }
6760 # So, we only use -pedantic if we can disable those warnings.
6762 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6763 # Check whether --enable-build-format-warnings was given.
6764 if test "${enable_build_format_warnings+set}" = set; then :
6765 enableval
=$enable_build_format_warnings;
6767 enable_build_format_warnings
=yes
6770 if test $enable_build_format_warnings = no
; then :
6776 ac_cpp
='$CXXCPP $CPPFLAGS'
6777 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6782 save_CXXFLAGS
="$CXXFLAGS"
6783 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6784 # Do the check with the no- prefix removed since gcc silently
6785 # accepts any -Wno-* option on purpose
6786 case $real_option in
6787 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6788 *) option
=$real_option ;;
6790 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6793 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6794 if eval \
${$as_acx_Woption+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6809 if ac_fn_cxx_try_compile
"$LINENO"; then :
6810 eval "$as_acx_Woption=yes"
6812 eval "$as_acx_Woption=no"
6814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6817 eval ac_res
=\$
$as_acx_Woption
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6821 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6824 CXXFLAGS
="$save_CXXFLAGS"
6826 ac_cpp
='$CXXCPP $CPPFLAGS'
6827 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6834 ac_cpp
='$CPP $CPPFLAGS'
6835 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6840 save_CFLAGS
="$CFLAGS"
6841 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6842 # Do the check with the no- prefix removed since gcc silently
6843 # accepts any -Wno-* option on purpose
6844 case $real_option in
6845 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6846 *) option
=$real_option ;;
6848 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6851 $as_echo_n "checking whether $CC supports $option... " >&6; }
6852 if eval \
${$as_acx_Woption+:} false
; then :
6853 $as_echo_n "(cached) " >&6
6856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6867 if ac_fn_c_try_compile
"$LINENO"; then :
6868 eval "$as_acx_Woption=yes"
6870 eval "$as_acx_Woption=no"
6872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6875 eval ac_res
=\$
$as_acx_Woption
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6879 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6882 CFLAGS
="$save_CFLAGS"
6884 ac_cpp
='$CXXCPP $CPPFLAGS'
6885 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6891 ac_cpp
='$CXXCPP $CPPFLAGS'
6892 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6897 save_CXXFLAGS
="$CXXFLAGS"
6898 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6899 # Do the check with the no- prefix removed since gcc silently
6900 # accepts any -Wno-* option on purpose
6901 case $real_option in
6902 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6903 *) option
=$real_option ;;
6905 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6908 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6909 if eval \
${$as_acx_Woption+:} false
; then :
6910 $as_echo_n "(cached) " >&6
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6924 if ac_fn_cxx_try_compile
"$LINENO"; then :
6925 eval "$as_acx_Woption=yes"
6927 eval "$as_acx_Woption=no"
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 eval ac_res
=\$
$as_acx_Woption
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6936 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6939 CXXFLAGS
="$save_CXXFLAGS"
6941 ac_cpp
='$CXXCPP $CPPFLAGS'
6942 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6948 ac_cpp
='$CPP $CPPFLAGS'
6949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6954 save_CFLAGS
="$CFLAGS"
6955 for real_option
in -Wold-style-definition -Wc++-compat; do
6956 # Do the check with the no- prefix removed since gcc silently
6957 # accepts any -Wno-* option on purpose
6958 case $real_option in
6959 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6960 *) option
=$real_option ;;
6962 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6965 $as_echo_n "checking whether $CC supports $option... " >&6; }
6966 if eval \
${$as_acx_Woption+:} false
; then :
6967 $as_echo_n "(cached) " >&6
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6981 if ac_fn_c_try_compile
"$LINENO"; then :
6982 eval "$as_acx_Woption=yes"
6984 eval "$as_acx_Woption=no"
6986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6989 eval ac_res
=\$
$as_acx_Woption
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6991 $as_echo "$ac_res" >&6; }
6992 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6993 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6996 CFLAGS
="$save_CFLAGS"
6998 ac_cpp
='$CXXCPP $CPPFLAGS'
6999 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7005 ac_cpp
='$CXXCPP $CPPFLAGS'
7006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7010 # Do the check with the no- prefix removed from the warning options
7011 # since gcc silently accepts any -Wno-* option on purpose
7012 if test "$GXX" = yes; then :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7014 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7015 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7016 $as_echo_n "(cached) " >&6
7018 save_CXXFLAGS
="$CXXFLAGS"
7019 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7031 if ac_fn_cxx_try_compile
"$LINENO"; then :
7032 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7034 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7037 CXXFLAGS
="$save_CXXFLAGS"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7040 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7041 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7042 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7047 ac_cpp
='$CXXCPP $CPPFLAGS'
7048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7054 ac_cpp
='$CXXCPP $CPPFLAGS'
7055 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7059 # Check whether --enable-werror-always was given.
7060 if test "${enable_werror_always+set}" = set; then :
7061 enableval
=$enable_werror_always;
7063 enable_werror_always
=no
7066 if test $enable_werror_always = yes; then :
7067 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7071 ac_cpp
='$CXXCPP $CPPFLAGS'
7072 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7078 # The above macros do nothing if the compiler is not GCC. However, the
7079 # Makefile has more goo to add other flags, so these variables are used
7080 # to enable warnings only for GCC.
7083 if test "x$GCC" = "xyes"; then
7084 warn_cflags
='$(GCC_WARN_CFLAGS)'
7085 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7090 # Disable exceptions and RTTI if building with g++
7092 ac_cpp
='$CPP $CPPFLAGS'
7093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7098 save_CFLAGS
="$CFLAGS"
7099 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7100 # Do the check with the no- prefix removed since gcc silently
7101 # accepts any -Wno-* option on purpose
7102 case $real_option in
7103 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7104 *) option
=$real_option ;;
7106 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7109 $as_echo_n "checking whether $CC supports $option... " >&6; }
7110 if eval \
${$as_acx_Woption+:} false
; then :
7111 $as_echo_n "(cached) " >&6
7114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_c_try_compile
"$LINENO"; then :
7126 eval "$as_acx_Woption=yes"
7128 eval "$as_acx_Woption=no"
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 eval ac_res
=\$
$as_acx_Woption
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7135 $as_echo "$ac_res" >&6; }
7136 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7137 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7140 CFLAGS
="$save_CFLAGS"
7142 ac_cpp
='$CXXCPP $CPPFLAGS'
7143 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7149 # Enable expensive internal checks
7151 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7155 # Check whether --enable-checking was given.
7156 if test "${enable_checking+set}" = set; then :
7157 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7160 # Determine the default checks.
7161 if test x
$is_release = x
; then
7162 ac_checking_flags
=yes,extra
7164 ac_checking_flags
=release
7168 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7169 for check
in release
$ac_checking_flags
7172 # these set all the flags to specific states
7173 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7174 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7175 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7176 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7177 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7178 ac_types_checking
=1 ;;
7179 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7180 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7181 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7182 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7183 ac_tree_checking
= ; ac_valgrind_checking
= ;
7184 ac_types_checking
= ;;
7185 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7186 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7187 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7188 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7189 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7190 ac_types_checking
=1 ;;
7191 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7192 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7193 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7194 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7195 ac_tree_checking
= ; ac_valgrind_checking
= ;
7196 ac_types_checking
= ;;
7197 # these enable particular checks
7198 assert
) ac_assert_checking
=1 ;;
7199 df
) ac_df_checking
=1 ;;
7200 extra
) ac_extra_checking
=1 ;;
7201 fold) ac_fold_checking
=1 ;;
7202 gc
) ac_gc_checking
=1 ;;
7203 gcac
) ac_gc_always_collect
=1 ;;
7204 gimple
) ac_gimple_checking
=1 ;;
7205 misc
) ac_checking
=1 ;;
7206 rtl
) ac_rtl_checking
=1 ;;
7207 rtlflag
) ac_rtlflag_checking
=1 ;;
7208 runtime
) ac_runtime_checking
=1 ;;
7209 tree
) ac_tree_checking
=1 ;;
7210 types
) ac_types_checking
=1 ;;
7211 valgrind
) ac_valgrind_checking
=1 ;;
7212 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7218 if test x
$ac_checking != x
; then
7220 $as_echo "#define CHECKING_P 1" >>confdefs.h
7222 nocommon_flag
=-fno-common
7224 $as_echo "#define CHECKING_P 0" >>confdefs.h
7228 if test x
$ac_extra_checking != x
; then
7230 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7233 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7236 if test x
$ac_df_checking != x
; then
7238 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7241 if test x
$ac_assert_checking != x
; then
7243 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7246 if test x
$ac_gimple_checking != x
; then
7248 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7252 if test x
$ac_runtime_checking != x
; then
7254 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7257 if test x
$ac_tree_checking != x
; then
7259 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7263 if test x
$ac_types_checking != x
; then
7265 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7269 if test x
$ac_rtl_checking != x
; then
7271 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7274 if test x
$ac_rtlflag_checking != x
; then
7276 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7279 if test x
$ac_gc_checking != x
; then
7281 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7284 if test x
$ac_gc_always_collect != x
; then
7286 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7289 if test x
$ac_fold_checking != x
; then
7291 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7294 valgrind_path_defines
=
7297 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7298 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7306 # It is certainly possible that there's valgrind but no valgrind.h.
7307 # GCC relies on making annotations so we must have both.
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7309 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #include <valgrind/memcheck.h>
7313 #ifndef VALGRIND_DISCARD
7314 #error VALGRIND_DISCARD not defined
7317 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7318 gcc_cv_header_valgrind_memcheck_h
=yes
7320 gcc_cv_header_valgrind_memcheck_h
=no
7322 rm -f conftest.err conftest.i conftest.
$ac_ext
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7324 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7326 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <memcheck.h>
7330 #ifndef VALGRIND_DISCARD
7331 #error VALGRIND_DISCARD not defined
7334 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7335 gcc_cv_header_memcheck_h
=yes
7337 gcc_cv_header_memcheck_h
=no
7339 rm -f conftest.err conftest.i conftest.
$ac_ext
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7341 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7342 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7344 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7347 if test $gcc_cv_header_memcheck_h = yes; then
7349 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7353 if test x
$ac_valgrind_checking != x
; then
7355 # Prepare PATH_SEPARATOR.
7356 # The user is always right.
7357 if test "${PATH_SEPARATOR+set}" != set; then
7358 echo "#! /bin/sh" >conf$$.sh
7359 echo "exit 0" >>conf$$.sh
7361 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7369 # Find out how to test for executable files. Don't use a zero-byte file,
7370 # as systems may use methods other than mode bits to determine executability.
7371 cat >conf$$.
file <<_ASEOF
7375 chmod +x conf$$.
file
7376 if test -x conf$$.
file >/dev
/null
2>&1; then
7377 ac_executable_p
="test -x"
7379 ac_executable_p
="test -f"
7383 # Extract the first word of "valgrind", so it can be a program name with args.
7384 set dummy valgrind
; ac_word
=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_path_valgrind_path+:} false
; then :
7388 $as_echo_n "(cached) " >&6
7390 case "$valgrind_path" in
7392 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7395 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7396 for ac_dir
in $PATH; do
7398 test -z "$ac_dir" && ac_dir
=.
7399 for ac_exec_ext
in '' $ac_executable_extensions; do
7400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7401 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7402 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7412 valgrind_path
="$ac_cv_path_valgrind_path"
7413 if test -n "$valgrind_path"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7415 $as_echo "$valgrind_path" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7421 if test "x$valgrind_path" = "x" \
7422 ||
(test $have_valgrind_h = no \
7423 && test $gcc_cv_header_memcheck_h = no \
7424 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7425 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7427 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7428 valgrind_command
="$valgrind_path -q"
7430 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7436 # Enable code coverage collection
7437 # Check whether --enable-coverage was given.
7438 if test "${enable_coverage+set}" = set; then :
7439 enableval
=$enable_coverage; case "${enableval}" in
7441 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7444 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7447 # a.k.a. --disable-coverage
7451 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7460 # Check whether --enable-gather-detailed-mem-stats was given.
7461 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7462 enableval
=$enable_gather_detailed_mem_stats;
7464 enable_gather_detailed_mem_stats
=no
7467 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7469 cat >>confdefs.h
<<_ACEOF
7470 #define GATHER_STATISTICS $gather_stats
7474 # Check whether --enable-valgrind-annotations was given.
7475 if test "${enable_valgrind_annotations+set}" = set; then :
7476 enableval
=$enable_valgrind_annotations;
7478 enable_valgrind_annotations
=no
7481 if test x
$enable_valgrind_annotations != xno \
7482 ||
test x
$ac_valgrind_checking != x
; then
7483 if (test $have_valgrind_h = no \
7484 && test $gcc_cv_header_memcheck_h = no \
7485 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7486 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7489 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7493 # -------------------------------
7494 # Miscenalleous configure options
7495 # -------------------------------
7499 # Check whether --with-stabs was given.
7500 if test "${with_stabs+set}" = set; then :
7501 withval
=$with_stabs; stabs
="$with_stabs"
7507 # Determine whether or not multilibs are enabled.
7508 # Check whether --enable-multilib was given.
7509 if test "${enable_multilib+set}" = set; then :
7510 enableval
=$enable_multilib;
7517 # Determine whether or not multiarch is enabled.
7518 # Check whether --enable-multiarch was given.
7519 if test "${enable_multiarch+set}" = set; then :
7520 enableval
=$enable_multiarch; case "${enableval}" in
7521 yes|no|auto
) enable_multiarch
=$enableval;;
7522 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7525 enable_multiarch
=auto
7528 if test x
${enable_multiarch} = xauto
; then
7529 if test x
${with_native_system_header_dir} != x
; then
7530 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7533 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7534 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7539 $as_echo_n "checking for multiarch configuration... " >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7542 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7544 # needed for setting the multiarch name for soft-float/hard-float ABIs
7548 # default stack clash protection guard size as power of twos in bytes.
7549 # Please keep these in sync with params.def.
7553 # Keep the default value when the option is not used to 0, this allows us to
7554 # distinguish between the cases where the user specifially set a value via
7555 # configure and when the normal default value is used.
7557 # Check whether --with-stack-clash-protection-guard-size was given.
7558 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7559 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7561 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7564 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7565 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7566 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7567 as_fn_error $?
"Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7571 cat >>confdefs.h
<<_ACEOF
7572 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7576 # Enable __cxa_atexit for C++.
7577 # Check whether --enable-__cxa_atexit was given.
7578 if test "${enable___cxa_atexit+set}" = set; then :
7579 enableval
=$enable___cxa_atexit;
7583 # Enable C extension for decimal float if target supports it.
7585 # Check whether --enable-decimal-float was given.
7586 if test "${enable_decimal_float+set}" = set; then :
7587 enableval
=$enable_decimal_float;
7588 case $enable_decimal_float in
7589 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7590 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7591 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7597 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7598 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7599 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7600 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7601 enable_decimal_float
=yes
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7605 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7606 enable_decimal_float
=no
7613 # x86's use BID format instead of DPD
7614 case x
$enable_decimal_float in
7617 i?
86*-*-* | x86_64
*-*-*)
7618 enable_decimal_float
=bid
7621 enable_decimal_float
=dpd
7624 default_decimal_float
=$enable_decimal_float
7627 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7628 # dependency on libdecnumber.
7629 default_decimal_float
=dpd
7636 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7638 cat >>confdefs.h
<<_ACEOF
7639 #define ENABLE_DECIMAL_FLOAT $dfp
7643 # Use default_decimal_float for dependency.
7644 enable_decimal_float
=$default_decimal_float
7646 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7648 cat >>confdefs.h
<<_ACEOF
7649 #define ENABLE_DECIMAL_BID_FORMAT $bid
7653 # Enable C extension for fixed-point arithmetic.
7654 # Check whether --enable-fixed-point was given.
7655 if test "${enable_fixed_point+set}" = set; then :
7656 enableval
=$enable_fixed_point;
7661 enable_fixed_point
=yes
7665 enable_fixed_point
=yes
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7669 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7670 enable_fixed_point
=no
7678 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7680 cat >>confdefs.h
<<_ACEOF
7681 #define ENABLE_FIXED_POINT $fixedpoint
7686 # Pass with no value to take the default
7687 # Pass with a value to specify a thread package
7688 # Check whether --enable-threads was given.
7689 if test "${enable_threads+set}" = set; then :
7690 enableval
=$enable_threads;
7696 # Check whether --enable-tls was given.
7697 if test "${enable_tls+set}" = set; then :
7698 enableval
=$enable_tls;
7701 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7702 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7710 # Check whether --enable-vtable-verify was given.
7711 if test "${enable_vtable_verify+set}" = set; then :
7712 enableval
=$enable_vtable_verify;
7714 enable_vtable_verify
=no
7717 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7719 cat >>confdefs.h
<<_ACEOF
7720 #define ENABLE_VTABLE_VERIFY $vtable_verify
7724 # Check whether --enable-analyzer was given.
7725 if test "${enable_analyzer+set}" = set; then :
7726 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7736 cat >>confdefs.h
<<_ACEOF
7737 #define ENABLE_ANALYZER $analyzer
7741 # Check whether --enable-objc-gc was given.
7742 if test "${enable_objc_gc+set}" = set; then :
7743 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7754 # Check whether --with-dwarf2 was given.
7755 if test "${with_dwarf2+set}" = set; then :
7756 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7762 # Check whether --enable-shared was given.
7763 if test "${enable_shared+set}" = set; then :
7764 enableval
=$enable_shared;
7765 case $enable_shared in
7769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7770 for pkg
in $enableval; do
7771 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7785 # Check whether --enable-gcov was given.
7786 if test "${enable_gcov+set}" = set; then :
7787 enableval
=$enable_gcov;
7795 # Check whether --with-specs was given.
7796 if test "${with_specs+set}" = set; then :
7797 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7807 # Check whether --with-pkgversion was given.
7808 if test "${with_pkgversion+set}" = set; then :
7809 withval
=$with_pkgversion; case "$withval" in
7810 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7812 *) PKGVERSION
="($withval) " ;;
7823 # Check whether --with-bugurl was given.
7824 if test "${with_bugurl+set}" = set; then :
7825 withval
=$with_bugurl; case "$withval" in
7826 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7829 *) BUGURL
="$withval"
7833 BUGURL
="https://gcc.gnu.org/bugs/"
7843 REPORT_BUGS_TO
="<$BUGURL>"
7844 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7851 # Allow overriding the default URL for documentation
7853 # Check whether --with-documentation-root-url was given.
7854 if test "${with_documentation_root_url+set}" = set; then :
7855 withval
=$with_documentation_root_url; case "$withval" in
7856 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7857 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7858 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
7859 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
7862 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
7867 cat >>confdefs.h
<<_ACEOF
7868 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7872 # Allow overriding the default URL for GCC changes
7874 # Check whether --with-changes-root-url was given.
7875 if test "${with_changes_root_url+set}" = set; then :
7876 withval
=$with_changes_root_url; case "$withval" in
7877 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7878 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7879 */) CHANGES_ROOT_URL
="$withval" ;;
7880 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
7883 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
7888 cat >>confdefs.h
<<_ACEOF
7889 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7893 # Sanity check enable_languages in case someone does not run the toplevel
7894 # configure # script.
7895 # Check whether --enable-languages was given.
7896 if test "${enable_languages+set}" = set; then :
7897 enableval
=$enable_languages; case ,${enable_languages}, in
7899 # go safe -- we cannot be much sure without the toplevel
7901 # analysis of which target libs are present and usable
7905 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7910 enable_languages
=c
,${enable_languages}
7918 # If top-level libada has been disabled, then wire in install-gnatlib
7919 # invocation with `make install', so that one can build and install
7920 # the library manually with `make -C gcc all gnatlib gnattools install'.
7921 if test x
"$enable_libada" = xno
; then
7922 gnat_install_lib
=gnat-install-lib
7928 if test x
"$enable_as_accelerator_for" != x
; then
7930 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7932 enable_as_accelerator
=yes
7935 # In this case we expect offload compiler to be built as native, so we
7936 # need to rename the driver to avoid clashes with host's drivers.
7937 program_transform_name
="s&^&${target}-&" ;;
7939 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7940 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7941 accel_dir_suffix
=/accel
/${target_noncanonical}
7942 real_target_noncanonical
=${enable_as_accelerator_for}
7948 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7949 tgt
=`echo $tgt | sed 's/=.*//'`
7953 *-intelmic-* |
*-intelmicemul-*)
7954 omp_device_property
=omp-device-properties-i386
7955 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7958 omp_device_property
=omp-device-properties-gcn
7959 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7962 omp_device_property
=omp-device-properties-nvptx
7963 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7966 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
7969 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7970 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7972 if test x
"$offload_targets" = x
; then
7973 offload_targets
=$tgt
7975 offload_targets
="$offload_targets,$tgt"
7982 cat >>confdefs.h
<<_ACEOF
7983 #define OFFLOAD_TARGETS "$offload_targets"
7986 if test x
"$enable_offloading" != x
; then
7988 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7992 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7997 # Check whether --with-multilib-list was given.
7998 if test "${with_multilib_list+set}" = set; then :
7999 withval
=$with_multilib_list; :
8001 with_multilib_list
=default
8005 # -------------------------
8006 # Checks for other programs
8007 # -------------------------
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8012 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8013 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8014 $as_echo_n "(cached) " >&6
8016 cat >conftest.
make <<\_ACEOF
8019 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8021 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8024 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8026 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8030 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032 $as_echo "yes" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 SET_MAKE
="MAKE=${MAKE-make}"
8041 # Find some useful tools
8042 for ac_prog
in gawk mawk nawk
awk
8044 # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy
$ac_prog; ac_word
=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_AWK+:} false
; then :
8049 $as_echo_n "(cached) " >&6
8051 if test -n "$AWK"; then
8052 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir
=.
8059 for ac_exec_ext
in '' $ac_executable_extensions; do
8060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_AWK
="$ac_prog"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 if test -n "$AWK"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8074 $as_echo "$AWK" >&6; }
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8081 test -n "$AWK" && break
8084 # We need awk to create options.c and options.h.
8085 # Bail out if it's missing.
8087 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8091 $as_echo_n "checking whether ln -s works... " >&6; }
8092 if ${gcc_cv_prog_LN_S+:} false
; then :
8093 $as_echo_n "(cached) " >&6
8095 rm -f conftestdata_t
8096 echo >conftestdata_f
8097 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8099 gcc_cv_prog_LN_S
="ln -s"
8101 if ln conftestdata_f conftestdata_t
2>/dev
/null
8105 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8107 gcc_cv_prog_LN_S
="cp -p"
8113 rm -f conftestdata_f conftestdata_t
8116 LN_S
="$gcc_cv_prog_LN_S"
8117 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8121 if test "$gcc_cv_prog_LN_S" = "ln"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8123 $as_echo "no, using ln" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8126 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8131 $as_echo_n "checking whether ln works... " >&6; }
8132 if ${acx_cv_prog_LN+:} false
; then :
8133 $as_echo_n "(cached) " >&6
8135 rm -f conftestdata_t
8136 echo >conftestdata_f
8137 if ln conftestdata_f conftestdata_t
2>/dev
/null
8143 rm -f conftestdata_f conftestdata_t
8146 if test $acx_cv_prog_LN = no
; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8149 $as_echo "no, using $LN" >&6; }
8151 LN
="$acx_cv_prog_LN"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8158 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_RANLIB+:} false
; then :
8162 $as_echo_n "(cached) " >&6
8164 if test -n "$RANLIB"; then
8165 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir
=.
8172 for ac_exec_ext
in '' $ac_executable_extensions; do
8173 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 RANLIB
=$ac_cv_prog_RANLIB
8185 if test -n "$RANLIB"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8187 $as_echo "$RANLIB" >&6; }
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8195 if test -z "$ac_cv_prog_RANLIB"; then
8196 ac_ct_RANLIB
=$RANLIB
8197 # Extract the first word of "ranlib", so it can be a program name with args.
8198 set dummy ranlib
; ac_word
=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8202 $as_echo_n "(cached) " >&6
8204 if test -n "$ac_ct_RANLIB"; then
8205 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir
=.
8212 for ac_exec_ext
in '' $ac_executable_extensions; do
8213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8225 if test -n "$ac_ct_RANLIB"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8227 $as_echo "$ac_ct_RANLIB" >&6; }
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8233 if test "x$ac_ct_RANLIB" = x
; then
8236 case $cross_compiling:$ac_tool_warned in
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned
=yes ;;
8242 RANLIB
=$ac_ct_RANLIB
8245 RANLIB
="$ac_cv_prog_RANLIB"
8251 # Find a good install program. We prefer a C program (faster),
8252 # so one script is as good as another. But avoid the broken or
8253 # incompatible versions:
8254 # SysV /etc/install, /usr/sbin/install
8255 # SunOS /usr/etc/install
8256 # IRIX /sbin/install
8258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8260 # ./install, which can be erroneously created by make from ./install.sh.
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8262 $as_echo_n "checking for a BSD compatible install... " >&6; }
8263 if test -z "$INSTALL"; then
8264 if ${ac_cv_path_install+:} false
; then :
8265 $as_echo_n "(cached) " >&6
8267 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8268 for ac_dir
in $PATH; do
8269 # Account for people who put trailing slashes in PATH elements.
8271 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8273 # OSF1 and SCO ODT 3.0 have their own names for install.
8274 for ac_prog
in ginstall scoinst
install; do
8275 if test -f $ac_dir/$ac_prog; then
8276 if test $ac_prog = install &&
8277 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8278 # AIX install. It has an incompatible calling convention.
8279 # OSF/1 installbsd also uses dspmsg, but is usable.
8282 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8293 if test "${ac_cv_path_install+set}" = set; then
8294 INSTALL
="$ac_cv_path_install"
8296 # As a last resort, use the slow shell script. We don't cache a
8297 # path for INSTALL within a source directory, because that will
8298 # break other packages using the cache if that directory is
8299 # removed, or if the path is relative.
8300 INSTALL
="$ac_install_sh"
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8304 $as_echo "$INSTALL" >&6; }
8306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8307 # It thinks the first close brace ends the variable substitution.
8308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8310 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8313 # See if cmp has --ignore-initial.
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8315 $as_echo_n "checking for cmp's capabilities... " >&6; }
8316 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8317 $as_echo_n "(cached) " >&6
8321 gcc_cv_prog_cmp_skip
=slowcompare
8322 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8323 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8326 gcc_cv_prog_cmp_skip
=gnucompare
8329 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8330 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8331 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8334 gcc_cv_prog_cmp_skip
=fastcompare
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8342 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8343 make_compare_target
=$gcc_cv_prog_cmp_skip
8347 # See if we have the mktemp command.
8348 # Extract the first word of "mktemp", so it can be a program name with args.
8349 set dummy mktemp
; ac_word
=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8353 $as_echo_n "(cached) " >&6
8355 if test -n "$have_mktemp_command"; then
8356 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir
=.
8363 for ac_exec_ext
in '' $ac_executable_extensions; do
8364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_have_mktemp_command
="yes"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8376 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8377 if test -n "$have_mktemp_command"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8379 $as_echo "$have_mktemp_command" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 # See if makeinfo has been installed and is modern enough
8388 # that we can use it.
8390 # Extract the first word of "makeinfo", so it can be a program name with args.
8391 set dummy makeinfo
; ac_word
=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8395 $as_echo_n "(cached) " >&6
8397 if test -n "$MAKEINFO"; then
8398 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir
=.
8405 for ac_exec_ext
in '' $ac_executable_extensions; do
8406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_MAKEINFO
="makeinfo"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 MAKEINFO
=$ac_cv_prog_MAKEINFO
8418 if test -n "$MAKEINFO"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8420 $as_echo "$MAKEINFO" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8427 if test -n "$MAKEINFO"; then
8428 # Found it, now check the version.
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8430 $as_echo_n "checking for modern makeinfo... " >&6; }
8431 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8432 $as_echo_n "(cached) " >&6
8434 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8435 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8437 case $ac_prog_version in
8438 '') gcc_cv_prog_makeinfo_modern
=no
;;
8439 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8440 *) gcc_cv_prog_makeinfo_modern
=no
;;
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8445 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8447 gcc_cv_prog_makeinfo_modern
=no
8449 if test $gcc_cv_prog_makeinfo_modern = no
; then
8450 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8453 if test $gcc_cv_prog_makeinfo_modern = no
; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8455 *** Makeinfo is missing or too old.
8456 *** Info documentation will not be built." >&5
8457 $as_echo "$as_me: WARNING:
8458 *** Makeinfo is missing or too old.
8459 *** Info documentation will not be built." >&2;}
8466 # Is pod2man recent enough to regenerate manpages?
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8468 $as_echo_n "checking for recent Pod::Man... " >&6; }
8469 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 $as_echo "yes" >&6; }
8472 GENERATED_MANPAGES
=generated-manpages
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8480 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8485 # Extract the first word of "$ac_prog", so it can be a program name with args.
8486 set dummy
$ac_prog; ac_word
=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_FLEX+:} false
; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$FLEX"; then
8493 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir
=.
8500 for ac_exec_ext
in '' $ac_executable_extensions; do
8501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_FLEX
="$ac_prog"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 FLEX
=$ac_cv_prog_FLEX
8513 if test -n "$FLEX"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8515 $as_echo "$FLEX" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8522 test -n "$FLEX" && break
8524 test -n "$FLEX" || FLEX
="$MISSING flex"
8528 for ac_prog
in bison
8530 # Extract the first word of "$ac_prog", so it can be a program name with args.
8531 set dummy
$ac_prog; ac_word
=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_BISON+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$BISON"; then
8538 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir
=.
8545 for ac_exec_ext
in '' $ac_executable_extensions; do
8546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_BISON
="$ac_prog"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 BISON
=$ac_cv_prog_BISON
8558 if test -n "$BISON"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8560 $as_echo "$BISON" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8567 test -n "$BISON" && break
8569 test -n "$BISON" || BISON
="$MISSING bison"
8572 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8573 # check for build == host before using them.
8576 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8577 && test -d ..
/binutils
; then
8578 NM
='${objdir}/../binutils/nm-new'
8580 # Extract the first word of "nm", so it can be a program name with args.
8581 set dummy nm
; ac_word
=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_NM+:} false
; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$NM"; then
8588 ac_cv_prog_NM
="$NM" # Let the user override the test.
8590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir
=.
8595 for ac_exec_ext
in '' $ac_executable_extensions; do
8596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8609 if test -n "$NM"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8611 $as_echo "$NM" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8621 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8622 && test -d ..
/binutils
; then
8623 AR
='${objdir}/../binutils/ar'
8625 # Extract the first word of "ar", so it can be a program name with args.
8626 set dummy
ar; ac_word
=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_prog_AR+:} false
; then :
8630 $as_echo_n "(cached) " >&6
8632 if test -n "$AR"; then
8633 ac_cv_prog_AR
="$AR" # Let the user override the test.
8635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir
=.
8640 for ac_exec_ext
in '' $ac_executable_extensions; do
8641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8654 if test -n "$AR"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8656 $as_echo "$AR" >&6; }
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8665 # The jit documentation looks better if built with sphinx, but can be
8666 # built with texinfo if sphinx is not available.
8667 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8668 # Extract the first word of "sphinx-build", so it can be a program name with args.
8669 set dummy sphinx-build
; ac_word
=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8673 $as_echo_n "(cached) " >&6
8675 if test -n "$doc_build_sys"; then
8676 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir
=.
8683 for ac_exec_ext
in '' $ac_executable_extensions; do
8684 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_doc_build_sys
="sphinx"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8696 doc_build_sys
=$ac_cv_prog_doc_build_sys
8697 if test -n "$doc_build_sys"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8699 $as_echo "$doc_build_sys" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8707 # --------------------
8708 # Checks for C headers
8709 # --------------------
8711 # Need to reject headers which give warnings, so that the -Werror bootstrap
8712 # works later. *sigh* This needs to come before all header checks.
8714 ac_c_preproc_warn_flag
=yes
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8717 $as_echo_n "checking for ANSI C header files... " >&6; }
8718 if ${ac_cv_header_stdc+:} false
; then :
8719 $as_echo_n "(cached) " >&6
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8736 if ac_fn_cxx_try_compile
"$LINENO"; then :
8737 ac_cv_header_stdc
=yes
8739 ac_cv_header_stdc
=no
8741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8743 if test $ac_cv_header_stdc = yes; then
8744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 $EGREP "memchr" >/dev
/null
2>&1; then :
8754 ac_cv_header_stdc
=no
8760 if test $ac_cv_header_stdc = yes; then
8761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8768 $EGREP "free" >/dev
/null
2>&1; then :
8771 ac_cv_header_stdc
=no
8777 if test $ac_cv_header_stdc = yes; then
8778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8779 if test "$cross_compiling" = yes; then :
8782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8786 #if ((' ' & 0x0FF) == 0x020)
8787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8790 # define ISLOWER(c) \
8791 (('a' <= (c) && (c) <= 'i') \
8792 || ('j' <= (c) && (c) <= 'r') \
8793 || ('s' <= (c) && (c) <= 'z'))
8794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8802 for (i = 0; i < 256; i++)
8803 if (XOR (islower (i), ISLOWER (i))
8804 || toupper (i) != TOUPPER (i))
8809 if ac_fn_cxx_try_run
"$LINENO"; then :
8812 ac_cv_header_stdc
=no
8814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8821 $as_echo "$ac_cv_header_stdc" >&6; }
8822 if test $ac_cv_header_stdc = yes; then
8824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8830 if ${ac_cv_header_time+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 #include <sys/types.h>
8836 #include <sys/time.h>
8842 if ((struct tm *) 0)
8848 if ac_fn_cxx_try_compile
"$LINENO"; then :
8849 ac_cv_header_time
=yes
8851 ac_cv_header_time
=no
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8856 $as_echo "$ac_cv_header_time" >&6; }
8857 if test $ac_cv_header_time = yes; then
8859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8864 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8865 if ${gcc_cv_header_string+:} false
; then :
8866 $as_echo_n "(cached) " >&6
8868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8871 #include <strings.h>
8880 if ac_fn_cxx_try_compile
"$LINENO"; then :
8881 gcc_cv_header_string
=yes
8883 gcc_cv_header_string
=no
8885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8888 $as_echo "$gcc_cv_header_string" >&6; }
8889 if test $gcc_cv_header_string = yes; then
8891 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8896 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8897 if ${ac_cv_header_sys_wait_h+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 #include <sys/types.h>
8903 #include <sys/wait.h>
8905 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8908 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8916 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8921 if ac_fn_cxx_try_compile
"$LINENO"; then :
8922 ac_cv_header_sys_wait_h
=yes
8924 ac_cv_header_sys_wait_h
=no
8926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8929 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8930 if test $ac_cv_header_sys_wait_h = yes; then
8932 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8937 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8938 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8939 $as_echo_n "(cached) " >&6
8941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <sys/types.h>
8944 #include <termios.h>
8950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8951 $EGREP "yes" >/dev
/null
2>&1; then :
8952 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8954 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8960 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8962 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8964 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8965 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8966 $as_echo_n "(cached) " >&6
8968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #include <sys/types.h>
8971 #include <sys/ioctl.h>
8977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8978 $EGREP "yes" >/dev
/null
2>&1; then :
8979 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8981 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8987 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8989 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8991 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8996 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8997 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8998 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8999 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9001 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9003 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9004 cat >>confdefs.h
<<_ACEOF
9005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9012 # Check for thread headers.
9013 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9014 if test "x$ac_cv_header_thread_h" = xyes
; then :
9020 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9021 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9028 # These tests can't be done till we know if we have limits.h.
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9030 $as_echo_n "checking for CHAR_BIT... " >&6; }
9031 if ${gcc_cv_decl_char_bit+:} false
; then :
9032 $as_echo_n "(cached) " >&6
9034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #ifdef HAVE_LIMITS_H
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "found" >/dev
/null
2>&1; then :
9045 gcc_cv_decl_char_bit
=yes
9047 gcc_cv_decl_char_bit
=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9054 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9055 if test $gcc_cv_decl_char_bit = no
; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9057 $as_echo_n "checking number of bits in a byte... " >&6; }
9058 if ${gcc_cv_c_nbby+:} false
; then :
9059 $as_echo_n "(cached) " >&6
9063 while test $i -lt 65; do
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9071 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9072 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9078 if ac_fn_cxx_try_compile
"$LINENO"; then :
9079 gcc_cv_c_nbby
=$i; break
9081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9084 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9088 $as_echo "$gcc_cv_c_nbby" >&6; }
9089 if test $gcc_cv_c_nbby = failed
; then
9090 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9093 cat >>confdefs.h
<<_ACEOF
9094 #define CHAR_BIT $gcc_cv_c_nbby
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9100 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9101 if ${ac_cv_c_bigendian+:} false
; then :
9102 $as_echo_n "(cached) " >&6
9104 ac_cv_c_bigendian
=unknown
9105 # See if we're dealing with a universal compiler.
9106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 #ifndef __APPLE_CC__
9109 not a universal capable compiler
9114 if ac_fn_cxx_try_compile
"$LINENO"; then :
9116 # Check for potential -arch flags. It is not universal unless
9117 # there are at least two -arch flags with different values.
9120 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9121 if test -n "$ac_prev"; then
9123 i?
86 | x86_64 | ppc | ppc64
)
9124 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9127 ac_cv_c_bigendian
=universal
9133 elif test "x$ac_word" = "x-arch"; then
9138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 if test $ac_cv_c_bigendian = unknown
; then
9140 # See if sys/param.h defines the BYTE_ORDER macro.
9141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 #include <sys/types.h>
9144 #include <sys/param.h>
9149 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9150 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9159 if ac_fn_cxx_try_compile
"$LINENO"; then :
9160 # It does; now see whether it defined to BIG_ENDIAN or not.
9161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <sys/param.h>
9169 #if BYTE_ORDER != BIG_ENDIAN
9177 if ac_fn_cxx_try_compile
"$LINENO"; then :
9178 ac_cv_c_bigendian
=yes
9180 ac_cv_c_bigendian
=no
9182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9186 if test $ac_cv_c_bigendian = unknown
; then
9187 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9195 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9203 if ac_fn_cxx_try_compile
"$LINENO"; then :
9204 # It does; now see whether it defined to _BIG_ENDIAN or not.
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9220 if ac_fn_cxx_try_compile
"$LINENO"; then :
9221 ac_cv_c_bigendian
=yes
9223 ac_cv_c_bigendian
=no
9225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9229 if test $ac_cv_c_bigendian = unknown
; then
9230 # Compile a test program.
9231 if test "$cross_compiling" = yes; then :
9232 # Try to guess by grepping values from an object file.
9233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 short int ascii_mm[] =
9236 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9237 short int ascii_ii[] =
9238 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9239 int use_ascii (int i) {
9240 return ascii_mm[i] + ascii_ii[i];
9242 short int ebcdic_ii[] =
9243 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9244 short int ebcdic_mm[] =
9245 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9246 int use_ebcdic (int i) {
9247 return ebcdic_mm[i] + ebcdic_ii[i];
9254 return use_ascii (foo) == use_ebcdic (foo);
9259 if ac_fn_cxx_try_compile
"$LINENO"; then :
9260 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9261 ac_cv_c_bigendian
=yes
9263 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9264 if test "$ac_cv_c_bigendian" = unknown
; then
9265 ac_cv_c_bigendian
=no
9267 # finding both strings is unlikely to happen, but who knows?
9268 ac_cv_c_bigendian
=unknown
9272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 $ac_includes_default
9281 /* Are we little or big endian? From Harbison&Steele. */
9285 char c[sizeof (long int)];
9288 return u.c[sizeof (long int) - 1] == 1;
9294 if ac_fn_cxx_try_run
"$LINENO"; then :
9295 ac_cv_c_bigendian
=no
9297 ac_cv_c_bigendian
=yes
9299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9300 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9306 $as_echo "$ac_cv_c_bigendian" >&6; }
9307 case $ac_cv_c_bigendian in #(
9309 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9315 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9319 as_fn_error $?
"unknown endianness
9320 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9324 # ----------------------
9325 # Checks for C++ headers
9326 # ----------------------
9329 ac_cpp
='$CXXCPP $CPPFLAGS'
9330 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9334 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9335 if test -z "$CXXCPP"; then
9336 if ${ac_cv_prog_CXXCPP+:} false
; then :
9337 $as_echo_n "(cached) " >&6
9339 # Double quotes because CXXCPP needs to be expanded
9340 for CXXCPP
in "$CXX -E" "/lib/cpp"
9343 for ac_cxx_preproc_warn_flag
in '' yes
9345 # Use a header file that comes with gcc, so configuring glibc
9346 # with a fresh cross-compiler works.
9347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9348 # <limits.h> exists even on freestanding compilers.
9349 # On the NeXT, cc -E runs the code through the compiler's parser,
9350 # not just through cpp. "Syntax error" is here to catch this case.
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9354 # include <limits.h>
9356 # include <assert.h>
9360 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9363 # Broken: fails on valid input.
9366 rm -f conftest.err conftest.i conftest.
$ac_ext
9368 # OK, works on sane cases. Now check whether nonexistent headers
9369 # can be detected and how.
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372 #include <ac_nonexistent.h>
9374 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9375 # Broken: success on invalid input.
9378 # Passes both tests.
9382 rm -f conftest.err conftest.i conftest.
$ac_ext
9385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9386 rm -f conftest.i conftest.err conftest.
$ac_ext
9387 if $ac_preproc_ok; then :
9392 ac_cv_prog_CXXCPP
=$CXXCPP
9395 CXXCPP
=$ac_cv_prog_CXXCPP
9397 ac_cv_prog_CXXCPP
=$CXXCPP
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9400 $as_echo "$CXXCPP" >&6; }
9402 for ac_cxx_preproc_warn_flag
in '' yes
9404 # Use a header file that comes with gcc, so configuring glibc
9405 # with a fresh cross-compiler works.
9406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 # <limits.h> exists even on freestanding compilers.
9408 # On the NeXT, cc -E runs the code through the compiler's parser,
9409 # not just through cpp. "Syntax error" is here to catch this case.
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9413 # include <limits.h>
9415 # include <assert.h>
9419 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9422 # Broken: fails on valid input.
9425 rm -f conftest.err conftest.i conftest.
$ac_ext
9427 # OK, works on sane cases. Now check whether nonexistent headers
9428 # can be detected and how.
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 #include <ac_nonexistent.h>
9433 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9434 # Broken: success on invalid input.
9437 # Passes both tests.
9441 rm -f conftest.err conftest.i conftest.
$ac_ext
9444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9445 rm -f conftest.i conftest.err conftest.
$ac_ext
9446 if $ac_preproc_ok; then :
9449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9452 See \`config.log' for more details" >&5
9453 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9454 See \`config.log' for more details" >&2;}; }
9458 ac_cpp
='$CXXCPP $CPPFLAGS'
9459 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9464 for ac_header
in unordered_map
9466 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9467 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9468 cat >>confdefs.h
<<_ACEOF
9469 #define HAVE_UNORDERED_MAP 1
9475 for ac_header
in tr1/unordered_map
9477 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9478 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9479 cat >>confdefs.h
<<_ACEOF
9480 #define HAVE_TR1_UNORDERED_MAP 1
9486 for ac_header
in ext
/hash_map
9488 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9489 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9490 cat >>confdefs.h
<<_ACEOF
9491 #define HAVE_EXT_HASH_MAP 1
9499 # Dependency checking.
9502 rm -rf .tst
2>/dev
/null
9503 mkdir .tst
2>/dev
/null
9504 if test -d .tst
; then
9509 rmdir .tst
2>/dev
/null
9511 DEPDIR
="${am__leading_dot}deps"
9513 ac_config_commands
="$ac_config_commands depdir"
9516 ac_config_commands
="$ac_config_commands gccdepdir"
9519 depcc
="$CXX" am_compiler_list
=
9521 am_depcomp
=$ac_aux_dir/depcomp
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9523 $as_echo_n "checking dependency style of $depcc... " >&6; }
9524 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -f "$am_depcomp"; then
9528 # We make a subdir and do the tests there. Otherwise we can end up
9529 # making bogus files that we don't know about and never remove. For
9530 # instance it was reported that on HP-UX the gcc test will end up
9531 # making a dummy file named `D' -- because `-MD' means `put the output
9534 # Copy depcomp to subdir because otherwise we won't find it if we're
9535 # using a relative directory.
9536 cp "$am_depcomp" conftest.dir
9538 # We will build objects and dependencies in a subdirectory because
9539 # it helps to detect inapplicable dependency modes. For instance
9540 # both Tru64's cc and ICC support -MD to output dependencies as a
9541 # side effect of compilation, but ICC will put the dependencies in
9542 # the current directory while Tru64 will put them in the object
9546 am_cv_CXX_dependencies_compiler_type
=none
9547 if test "$am_compiler_list" = ""; then
9548 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9550 for depmode
in $am_compiler_list; do
9551 if test $depmode = none
; then break; fi
9553 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9554 # Setup a source with many dependencies, because some compilers
9555 # like to wrap large dependency lists on column 80 (with \), and
9556 # we should not choose a depcomp mode which is confused by this.
9558 # We need to recreate these files for each test, as the compiler may
9559 # overwrite some of them when testing with obscure command lines.
9560 # This happens at least with the AIX C compiler.
9562 for i
in 1 2 3 4 5 6; do
9563 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9565 # Solaris 8's {/usr,}/bin/sh.
9566 touch sub
/conftst
$i.h
9568 echo "include sub/conftest.Po" > confmf
9570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9571 # mode. It turns out that the SunPro C++ compiler does not properly
9572 # handle `-M -o', and we need to detect this.
9573 depcmd
="depmode=$depmode \
9574 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9576 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9577 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9578 if env
$depcmd > conftest.err
2>&1 &&
9579 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9580 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9581 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9582 # icc doesn't choke on unknown options, it will just issue warnings
9583 # or remarks (even with -Werror). So we grep stderr for any message
9584 # that says an option was ignored or not supported.
9585 # When given -MP, icc 7.0 and 7.1 complain thusly:
9586 # icc: Command line warning: ignoring option '-M'; no argument required
9587 # The diagnosis changed in icc 8.0:
9588 # icc: Command line remark: option '-MP' not supported
9589 if (grep 'ignoring option' conftest.err ||
9590 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9591 am_cv_CXX_dependencies_compiler_type
=$depmode
9592 $as_echo "$as_me:$LINENO: success" >&5
9596 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9597 sed -e 's/^/| /' < conftest.err
>&5
9603 am_cv_CXX_dependencies_compiler_type
=none
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9608 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9609 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9610 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9611 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9621 # These libraries may be used by collect2.
9622 # We may need a special search path to get them linked.
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9624 $as_echo_n "checking for collect2 libraries... " >&6; }
9625 if ${gcc_cv_collect2_libs+:} false
; then :
9626 $as_echo_n "(cached) " >&6
9629 for libs
in '' -lld -lmld \
9630 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9631 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9652 if ac_fn_cxx_try_link
"$LINENO"; then :
9653 gcc_cv_collect2_libs
="$libs"; break
9655 rm -f core conftest.err conftest.
$ac_objext \
9656 conftest
$ac_exeext conftest.
$ac_ext
9659 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9662 $as_echo "$gcc_cv_collect2_libs" >&6; }
9663 case $gcc_cv_collect2_libs in
9665 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9669 # When building Ada code on Alpha, we need exc_resume which is usually in
9670 # -lexc. So test for it.
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9674 $as_echo_n "checking for library containing exc_resume... " >&6; }
9675 if ${ac_cv_search_exc_resume+:} false
; then :
9676 $as_echo_n "(cached) " >&6
9678 ac_func_search_save_LIBS
=$LIBS
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9692 return exc_resume ();
9697 for ac_lib
in '' exc
; do
9698 if test -z "$ac_lib"; then
9699 ac_res
="none required"
9702 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9704 if ac_fn_cxx_try_link
"$LINENO"; then :
9705 ac_cv_search_exc_resume
=$ac_res
9707 rm -f core conftest.err conftest.
$ac_objext \
9709 if ${ac_cv_search_exc_resume+:} false
; then :
9713 if ${ac_cv_search_exc_resume+:} false
; then :
9716 ac_cv_search_exc_resume
=no
9719 LIBS
=$ac_func_search_save_LIBS
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9722 $as_echo "$ac_cv_search_exc_resume" >&6; }
9723 ac_res
=$ac_cv_search_exc_resume
9724 if test "$ac_res" != no
; then :
9725 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9733 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9737 $as_echo_n "checking for library containing kstat_open... " >&6; }
9738 if ${ac_cv_search_kstat_open+:} false
; then :
9739 $as_echo_n "(cached) " >&6
9741 ac_func_search_save_LIBS
=$LIBS
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9755 return kstat_open ();
9760 for ac_lib
in '' kstat
; do
9761 if test -z "$ac_lib"; then
9762 ac_res
="none required"
9765 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9767 if ac_fn_cxx_try_link
"$LINENO"; then :
9768 ac_cv_search_kstat_open
=$ac_res
9770 rm -f core conftest.err conftest.
$ac_objext \
9772 if ${ac_cv_search_kstat_open+:} false
; then :
9776 if ${ac_cv_search_kstat_open+:} false
; then :
9779 ac_cv_search_kstat_open
=no
9782 LIBS
=$ac_func_search_save_LIBS
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9785 $as_echo "$ac_cv_search_kstat_open" >&6; }
9786 ac_res
=$ac_cv_search_kstat_open
9787 if test "$ac_res" != no
; then :
9788 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9792 EXTRA_GCC_LIBS
="$LIBS"
9796 # Some systems put ldexp and frexp in libm instead of libc; assume
9797 # they're both in the same place. jcf-dump needs them.
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9801 $as_echo_n "checking for library containing ldexp... " >&6; }
9802 if ${ac_cv_search_ldexp+:} false
; then :
9803 $as_echo_n "(cached) " >&6
9805 ac_func_search_save_LIBS
=$LIBS
9806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9824 for ac_lib
in '' m
; do
9825 if test -z "$ac_lib"; then
9826 ac_res
="none required"
9829 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9831 if ac_fn_cxx_try_link
"$LINENO"; then :
9832 ac_cv_search_ldexp
=$ac_res
9834 rm -f core conftest.err conftest.
$ac_objext \
9836 if ${ac_cv_search_ldexp+:} false
; then :
9840 if ${ac_cv_search_ldexp+:} false
; then :
9843 ac_cv_search_ldexp
=no
9846 LIBS
=$ac_func_search_save_LIBS
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9849 $as_echo "$ac_cv_search_ldexp" >&6; }
9850 ac_res
=$ac_cv_search_ldexp
9851 if test "$ac_res" != no
; then :
9852 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9860 # Some systems need dlopen
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9864 $as_echo_n "checking for library containing dlopen... " >&6; }
9865 if ${ac_cv_search_dlopen+:} false
; then :
9866 $as_echo_n "(cached) " >&6
9868 ac_func_search_save_LIBS
=$LIBS
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9872 /* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9887 for ac_lib
in '' dl
; do
9888 if test -z "$ac_lib"; then
9889 ac_res
="none required"
9892 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9894 if ac_fn_cxx_try_link
"$LINENO"; then :
9895 ac_cv_search_dlopen
=$ac_res
9897 rm -f core conftest.err conftest.
$ac_objext \
9899 if ${ac_cv_search_dlopen+:} false
; then :
9903 if ${ac_cv_search_dlopen+:} false
; then :
9906 ac_cv_search_dlopen
=no
9909 LIBS
=$ac_func_search_save_LIBS
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9912 $as_echo "$ac_cv_search_dlopen" >&6; }
9913 ac_res
=$ac_cv_search_dlopen
9914 if test "$ac_res" != no
; then :
9915 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9923 # Use <inttypes.h> only if it exists,
9924 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9927 $as_echo_n "checking for inttypes.h... " >&6; }
9928 if ${gcc_cv_header_inttypes_h+:} false
; then :
9929 $as_echo_n "(cached) " >&6
9931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933 #define __STDC_FORMAT_MACROS
9934 #include <sys/types.h>
9935 #include <inttypes.h>
9947 if ac_fn_cxx_try_compile
"$LINENO"; then :
9948 gcc_cv_header_inttypes_h
=yes
9950 gcc_cv_header_inttypes_h
=no
9952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9956 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9957 if test $gcc_cv_header_inttypes_h = yes; then
9959 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9963 # Look for the ZSTD package.
9973 # Check whether --with-zstd was given.
9974 if test "${with_zstd+set}" = set; then :
9979 # Check whether --with-zstd-include was given.
9980 if test "${with_zstd_include+set}" = set; then :
9981 withval
=$with_zstd_include;
9985 # Check whether --with-zstd-lib was given.
9986 if test "${with_zstd_lib+set}" = set; then :
9987 withval
=$with_zstd_lib;
9990 case "x$with_zstd" in
9996 *) ZSTD_INCLUDE
=$with_zstd/include
9997 ZSTD_LIB
=$with_zstd/lib
10001 if test "x$with_zstd" != xno
; then
10002 if test "x$with_zstd_include" != x
; then
10003 ZSTD_INCLUDE
=$with_zstd_include
10005 if test "x$with_zstd_lib" != x
; then
10006 ZSTD_LIB
=$with_zstd_lib
10008 if test "x$ZSTD_INCLUDE" != x \
10009 && test "x$ZSTD_INCLUDE" != xno
; then
10010 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10012 if test "x$ZSTD_LIB" != x \
10013 && test "x$ZSTD_LIB" != xno
; then
10014 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10017 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10018 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10021 $as_echo_n "checking for zstd.h... " >&6; }
10022 if ${gcc_cv_header_zstd_h+:} false
; then :
10023 $as_echo_n "(cached) " >&6
10025 # We require version 1.3.0 or later. This is the first version that has
10026 # ZSTD_getFrameContentSize.
10027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10030 #if ZSTD_VERSION_NUMBER < 10300
10031 #error "need zstd 1.3.0 or better"
10041 if ac_fn_cxx_try_compile
"$LINENO"; then :
10042 gcc_cv_header_zstd_h
=yes
10044 gcc_cv_header_zstd_h
=no
10046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10050 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10051 if test $gcc_cv_header_zstd_h = yes; then
10053 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10055 elif test "x$with_zstd" != x
; then
10056 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10059 # LTO can use zstd compression algorithm
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10063 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10064 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10065 $as_echo_n "(cached) " >&6
10067 ac_func_search_save_LIBS
=$LIBS
10068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10077 char ZSTD_compress ();
10081 return ZSTD_compress ();
10086 for ac_lib
in '' zstd
; do
10087 if test -z "$ac_lib"; then
10088 ac_res
="none required"
10091 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10093 if ac_fn_cxx_try_link
"$LINENO"; then :
10094 ac_cv_search_ZSTD_compress
=$ac_res
10096 rm -f core conftest.err conftest.
$ac_objext \
10098 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10102 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10105 ac_cv_search_ZSTD_compress
=no
10107 rm conftest.
$ac_ext
10108 LIBS
=$ac_func_search_save_LIBS
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10111 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10112 ac_res
=$ac_cv_search_ZSTD_compress
10113 if test "$ac_res" != no
; then :
10114 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10125 for ac_func
in times clock kill getrlimit setrlimit atoq \
10126 popen sysconf strsignal getrusage nl_langinfo \
10127 gettimeofday mbstowcs wcswidth mmap setlocale \
10128 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2
10130 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10132 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10133 cat >>confdefs.h
<<_ACEOF
10134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10141 if test x
$ac_cv_func_mbstowcs = xyes
; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10143 $as_echo_n "checking whether mbstowcs works... " >&6; }
10144 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10145 $as_echo_n "(cached) " >&6
10147 if test "$cross_compiling" = yes; then :
10148 gcc_cv_func_mbstowcs_works
=yes
10150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 #include <stdlib.h>
10155 mbstowcs(0, "", 0);
10159 if ac_fn_cxx_try_run
"$LINENO"; then :
10160 gcc_cv_func_mbstowcs_works
=yes
10162 gcc_cv_func_mbstowcs_works
=no
10164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10170 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10171 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10173 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10178 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10179 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10183 cat >>confdefs.h
<<_ACEOF
10184 #define ssize_t int
10189 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10190 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10194 cat >>confdefs.h
<<_ACEOF
10195 #define caddr_t char *
10202 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10203 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10204 gcc_header_sys_mman_h
=yes
10206 gcc_header_sys_mman_h
=no
10209 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10210 if test "x$ac_cv_func_mmap" = xyes
; then :
10216 if test "$gcc_header_sys_mman_h" != yes \
10217 ||
test "$gcc_func_mmap" != yes; then
10218 gcc_cv_func_mmap_file
=no
10219 gcc_cv_func_mmap_dev_zero
=no
10220 gcc_cv_func_mmap_anon
=no
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10223 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10224 if ${gcc_cv_func_mmap_file+:} false
; then :
10225 $as_echo_n "(cached) " >&6
10227 # Add a system to this blacklist if
10228 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10229 # memory area containing the same data that you'd get if you applied
10230 # read() to the same fd. The only system known to have a problem here
10231 # is VMS, where text files have record structure.
10234 gcc_cv_func_mmap_file
=no
;;
10236 gcc_cv_func_mmap_file
=yes;;
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10240 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10242 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10243 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10244 $as_echo_n "(cached) " >&6
10246 # Add a system to this blacklist if it has mmap() but /dev/zero
10247 # does not exist, or if mmapping /dev/zero does not give anonymous
10248 # zeroed pages with both the following properties:
10249 # 1. If you map N consecutive pages in with one call, and then
10250 # unmap any subset of those pages, the pages that were not
10251 # explicitly unmapped remain accessible.
10252 # 2. If you map two adjacent blocks of memory and then unmap them
10253 # both at once, they must both go away.
10254 # Systems known to be in this category are Windows (all variants),
10257 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10258 gcc_cv_func_mmap_dev_zero
=no
;;
10260 gcc_cv_func_mmap_dev_zero
=yes;;
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10264 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10266 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10268 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10269 if ${gcc_cv_decl_map_anon+:} false
; then :
10270 $as_echo_n "(cached) " >&6
10272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 #include <sys/types.h>
10275 #include <sys/mman.h>
10276 #include <unistd.h>
10278 #ifndef MAP_ANONYMOUS
10279 #define MAP_ANONYMOUS MAP_ANON
10285 int n = MAP_ANONYMOUS;
10290 if ac_fn_cxx_try_compile
"$LINENO"; then :
10291 gcc_cv_decl_map_anon
=yes
10293 gcc_cv_decl_map_anon
=no
10295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10298 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10300 if test $gcc_cv_decl_map_anon = no
; then
10301 gcc_cv_func_mmap_anon
=no
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10304 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10305 if ${gcc_cv_func_mmap_anon+:} false
; then :
10306 $as_echo_n "(cached) " >&6
10308 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10309 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10310 # doesn't give anonymous zeroed pages with the same properties listed
10311 # above for use of /dev/zero.
10312 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10314 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10315 gcc_cv_func_mmap_anon
=no
;;
10317 gcc_cv_func_mmap_anon
=yes;;
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10321 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10325 if test $gcc_cv_func_mmap_file = yes; then
10327 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10330 if test $gcc_cv_func_mmap_dev_zero = yes; then
10332 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10335 if test $gcc_cv_func_mmap_anon = yes; then
10337 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10344 # Under VMS, vfork works very differently than on Unix. The standard test
10345 # won't work, and it isn't easily adaptable. It makes more sense to
10347 ac_cv_func_vfork_works
=yes
10350 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10351 if test "x$ac_cv_type_pid_t" = xyes
; then :
10355 cat >>confdefs.h
<<_ACEOF
10361 for ac_header
in vfork.h
10363 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10364 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10365 cat >>confdefs.h
<<_ACEOF
10366 #define HAVE_VFORK_H 1
10372 for ac_func
in fork vfork
10374 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10376 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10377 cat >>confdefs.h
<<_ACEOF
10378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10384 if test "x$ac_cv_func_fork" = xyes
; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10386 $as_echo_n "checking for working fork... " >&6; }
10387 if ${ac_cv_func_fork_works+:} false
; then :
10388 $as_echo_n "(cached) " >&6
10390 if test "$cross_compiling" = yes; then :
10391 ac_cv_func_fork_works
=cross
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 $ac_includes_default
10400 /* By Ruediger Kuhlmann. */
10401 return fork () < 0;
10407 if ac_fn_cxx_try_run
"$LINENO"; then :
10408 ac_cv_func_fork_works
=yes
10410 ac_cv_func_fork_works
=no
10412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10418 $as_echo "$ac_cv_func_fork_works" >&6; }
10421 ac_cv_func_fork_works
=$ac_cv_func_fork
10423 if test "x$ac_cv_func_fork_works" = xcross
; then
10425 *-*-amigaos* |
*-*-msdosdjgpp*)
10426 # Override, as these systems have only a dummy fork() stub
10427 ac_cv_func_fork_works
=no
10430 ac_cv_func_fork_works
=yes
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10434 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10436 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10437 if test "x$ac_cv_func_vfork" = xyes
; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10439 $as_echo_n "checking for working vfork... " >&6; }
10440 if ${ac_cv_func_vfork_works+:} false
; then :
10441 $as_echo_n "(cached) " >&6
10443 if test "$cross_compiling" = yes; then :
10444 ac_cv_func_vfork_works
=cross
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 /* Thanks to Paul Eggert for this test. */
10449 $ac_includes_default
10450 #include <sys/wait.h>
10451 #ifdef HAVE_VFORK_H
10452 # include <vfork.h>
10454 /* On some sparc systems, changes by the child to local and incoming
10455 argument registers are propagated back to the parent. The compiler
10456 is told about this with #include <vfork.h>, but some compilers
10457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10458 static variable whose address is put into a register that is
10459 clobbered by the vfork. */
10462 sparc_address_test (int arg)
10464 sparc_address_test (arg) int arg;
10467 static pid_t child;
10485 pid_t parent = getpid ();
10488 sparc_address_test (0);
10493 /* Here is another test for sparc vfork register problems. This
10494 test uses lots of local variables, at least as many local
10495 variables as main has allocated so far including compiler
10496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10498 reuse the register of parent for one of the local variables,
10499 since it will think that parent can't possibly be used any more
10500 in this routine. Assigning to the local variable will thus
10501 munge parent in the parent process. */
10503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10505 /* Convince the compiler that p..p7 are live; otherwise, it might
10506 use the same hardware register for all 8 local variables. */
10507 if (p != p1 || p != p2 || p != p3 || p != p4
10508 || p != p5 || p != p6 || p != p7)
10511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10512 from child file descriptors. If the child closes a descriptor
10513 before it execs or exits, this munges the parent's descriptor
10514 as well. Test for this by closing stdout in the child. */
10515 _exit(close(fileno(stdout)) != 0);
10520 while (wait(&status) != child)
10523 /* Was there some problem with vforking? */
10526 /* Did the child fail? (This shouldn't happen.) */
10529 /* Did the vfork/compiler bug occur? */
10530 || parent != getpid()
10532 /* Did the file descriptor bug occur? */
10533 || fstat(fileno(stdout), &st) != 0
10538 if ac_fn_cxx_try_run
"$LINENO"; then :
10539 ac_cv_func_vfork_works
=yes
10541 ac_cv_func_vfork_works
=no
10543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10549 $as_echo "$ac_cv_func_vfork_works" >&6; }
10552 if test "x$ac_cv_func_fork_works" = xcross
; then
10553 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10555 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10558 if test "x$ac_cv_func_vfork_works" = xyes
; then
10560 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10564 $as_echo "#define vfork fork" >>confdefs.h
10567 if test "x$ac_cv_func_fork_works" = xyes
; then
10569 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10575 if test "X$prefix" = "XNONE"; then
10576 acl_final_prefix
="$ac_default_prefix"
10578 acl_final_prefix
="$prefix"
10580 if test "X$exec_prefix" = "XNONE"; then
10581 acl_final_exec_prefix
='${prefix}'
10583 acl_final_exec_prefix
="$exec_prefix"
10585 acl_save_prefix
="$prefix"
10586 prefix
="$acl_final_prefix"
10587 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10588 prefix
="$acl_save_prefix"
10591 # Check whether --with-gnu-ld was given.
10592 if test "${with_gnu_ld+set}" = set; then :
10593 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10598 # Prepare PATH_SEPARATOR.
10599 # The user is always right.
10600 if test "${PATH_SEPARATOR+set}" != set; then
10601 echo "#! /bin/sh" >conf$$.sh
10602 echo "exit 0" >>conf$$.sh
10604 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10612 if test "$GCC" = yes; then
10613 # Check if gcc -print-prog-name=ld gives a path.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10615 $as_echo_n "checking for ld used by GCC... " >&6; }
10618 # gcc leaves a trailing carriage return which upsets mingw
10619 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10621 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10624 # Accept absolute paths.
10625 [\\/]* |
[A-Za-z
]:[\\/]*)
10626 re_direlt
='/[^/][^/]*/\.\./'
10627 # Canonicalize the path of ld
10628 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10629 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10630 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10632 test -z "$LD" && LD
="$ac_prog"
10635 # If it fails, then pretend we aren't using GCC.
10639 # If it is relative, then search for the first ld in PATH.
10640 with_gnu_ld
=unknown
10643 elif test "$with_gnu_ld" = yes; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10645 $as_echo_n "checking for GNU ld... " >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10648 $as_echo_n "checking for non-GNU ld... " >&6; }
10650 if ${acl_cv_path_LD+:} false
; then :
10651 $as_echo_n "(cached) " >&6
10653 if test -z "$LD"; then
10654 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10655 for ac_dir
in $PATH; do
10656 test -z "$ac_dir" && ac_dir
=.
10657 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10658 acl_cv_path_LD
="$ac_dir/$ac_prog"
10659 # Check to see if the program is GNU ld. I'd rather use --version,
10660 # but apparently some GNU ld's only accept -v.
10661 # Break only if it was the GNU/non-GNU ld that we prefer.
10662 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10663 test "$with_gnu_ld" != no
&& break
10665 test "$with_gnu_ld" != yes && break
10671 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10675 LD
="$acl_cv_path_LD"
10676 if test -n "$LD"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10678 $as_echo "$LD" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10683 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10685 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10686 if ${acl_cv_prog_gnu_ld+:} false
; then :
10687 $as_echo_n "(cached) " >&6
10689 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10690 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10691 acl_cv_prog_gnu_ld
=yes
10693 acl_cv_prog_gnu_ld
=no
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10697 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10698 with_gnu_ld
=$acl_cv_prog_gnu_ld
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10703 $as_echo_n "checking for shared library run path origin... " >&6; }
10704 if ${acl_cv_rpath+:} false
; then :
10705 $as_echo_n "(cached) " >&6
10708 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10709 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10711 rm -f .
/conftest.sh
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10716 $as_echo "$acl_cv_rpath" >&6; }
10718 libext
="$acl_cv_libext"
10719 shlibext
="$acl_cv_shlibext"
10720 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10721 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10722 hardcode_direct
="$acl_cv_hardcode_direct"
10723 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10724 # Check whether --enable-rpath was given.
10725 if test "${enable_rpath+set}" = set; then :
10726 enableval
=$enable_rpath; :
10740 acl_save_prefix
="$prefix"
10741 prefix
="$acl_final_prefix"
10742 acl_save_exec_prefix
="$exec_prefix"
10743 exec_prefix
="$acl_final_exec_prefix"
10745 eval additional_includedir
=\"$includedir\"
10746 eval additional_libdir
=\"$libdir\"
10748 exec_prefix
="$acl_save_exec_prefix"
10749 prefix
="$acl_save_prefix"
10752 # Check whether --with-libiconv-prefix was given.
10753 if test "${with_libiconv_prefix+set}" = set; then :
10754 withval
=$with_libiconv_prefix;
10755 if test "X$withval" = "Xno"; then
10758 if test "X$withval" = "X"; then
10760 acl_save_prefix
="$prefix"
10761 prefix
="$acl_final_prefix"
10762 acl_save_exec_prefix
="$exec_prefix"
10763 exec_prefix
="$acl_final_exec_prefix"
10765 eval additional_includedir
=\"$includedir\"
10766 eval additional_libdir
=\"$libdir\"
10768 exec_prefix
="$acl_save_exec_prefix"
10769 prefix
="$acl_save_prefix"
10772 additional_includedir
="$withval/include"
10773 additional_libdir
="$withval/lib"
10780 # Check whether --with-libiconv-type was given.
10781 if test "${with_libiconv_type+set}" = set; then :
10782 withval
=$with_libiconv_type; with_libiconv_type
=$withval
10784 with_libiconv_type
=auto
10787 lib_type
=`eval echo \$with_libiconv_type`
10794 names_already_handled
=
10795 names_next_round
='iconv '
10796 while test -n "$names_next_round"; do
10797 names_this_round
="$names_next_round"
10799 for name
in $names_this_round; do
10801 for n
in $names_already_handled; do
10802 if test "$n" = "$name"; then
10803 already_handled
=yes
10807 if test -z "$already_handled"; then
10808 names_already_handled
="$names_already_handled $name"
10809 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10810 eval value
=\"\
$HAVE_LIB$uppername\"
10811 if test -n "$value"; then
10812 if test "$value" = yes; then
10813 eval value
=\"\
$LIB$uppername\"
10814 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10815 eval value
=\"\
$LTLIB$uppername\"
10816 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10825 if test $use_additional = yes; then
10826 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10827 found_dir
="$additional_libdir"
10828 found_so
="$additional_libdir/lib$name.$shlibext"
10829 if test -f "$additional_libdir/lib$name.la"; then
10830 found_la
="$additional_libdir/lib$name.la"
10832 elif test x
$lib_type != xshared
; then
10833 if test -f "$additional_libdir/lib$name.$libext"; then
10834 found_dir
="$additional_libdir"
10835 found_a
="$additional_libdir/lib$name.$libext"
10836 if test -f "$additional_libdir/lib$name.la"; then
10837 found_la
="$additional_libdir/lib$name.la"
10842 if test "X$found_dir" = "X"; then
10843 for x
in $LDFLAGS $LTLIBICONV; do
10845 acl_save_prefix
="$prefix"
10846 prefix
="$acl_final_prefix"
10847 acl_save_exec_prefix
="$exec_prefix"
10848 exec_prefix
="$acl_final_exec_prefix"
10850 exec_prefix
="$acl_save_exec_prefix"
10851 prefix
="$acl_save_prefix"
10855 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10856 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10858 found_so
="$dir/lib$name.$shlibext"
10859 if test -f "$dir/lib$name.la"; then
10860 found_la
="$dir/lib$name.la"
10862 elif test x
$lib_type != xshared
; then
10863 if test -f "$dir/lib$name.$libext"; then
10865 found_a
="$dir/lib$name.$libext"
10866 if test -f "$dir/lib$name.la"; then
10867 found_la
="$dir/lib$name.la"
10873 if test "X$found_dir" != "X"; then
10878 if test "X$found_dir" != "X"; then
10879 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10880 if test "X$found_so" != "X"; then
10881 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10882 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10885 for x
in $ltrpathdirs; do
10886 if test "X$x" = "X$found_dir"; then
10891 if test -z "$haveit"; then
10892 ltrpathdirs
="$ltrpathdirs $found_dir"
10894 if test "$hardcode_direct" = yes; then
10895 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10897 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10898 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10900 for x
in $rpathdirs; do
10901 if test "X$x" = "X$found_dir"; then
10906 if test -z "$haveit"; then
10907 rpathdirs
="$rpathdirs $found_dir"
10911 for x
in $LDFLAGS $LIBICONV; do
10913 acl_save_prefix
="$prefix"
10914 prefix
="$acl_final_prefix"
10915 acl_save_exec_prefix
="$exec_prefix"
10916 exec_prefix
="$acl_final_exec_prefix"
10918 exec_prefix
="$acl_save_exec_prefix"
10919 prefix
="$acl_save_prefix"
10921 if test "X$x" = "X-L$found_dir"; then
10926 if test -z "$haveit"; then
10927 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10929 if test "$hardcode_minus_L" != no
; then
10930 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10932 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10938 if test "X$found_a" != "X"; then
10939 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10941 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10944 additional_includedir
=
10945 case "$found_dir" in
10947 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10948 additional_includedir
="$basedir/include"
10951 if test "X$additional_includedir" != "X"; then
10952 if test "X$additional_includedir" != "X/usr/include"; then
10954 if test "X$additional_includedir" = "X/usr/local/include"; then
10955 if test -n "$GCC"; then
10957 linux
*) haveit
=yes;;
10961 if test -z "$haveit"; then
10962 for x
in $CPPFLAGS $INCICONV; do
10964 acl_save_prefix
="$prefix"
10965 prefix
="$acl_final_prefix"
10966 acl_save_exec_prefix
="$exec_prefix"
10967 exec_prefix
="$acl_final_exec_prefix"
10969 exec_prefix
="$acl_save_exec_prefix"
10970 prefix
="$acl_save_prefix"
10972 if test "X$x" = "X-I$additional_includedir"; then
10977 if test -z "$haveit"; then
10978 if test -d "$additional_includedir"; then
10979 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10985 if test -n "$found_la"; then
10986 save_libdir
="$libdir"
10987 case "$found_la" in
10988 */* |
*\\*) .
"$found_la" ;;
10989 *) .
"./$found_la" ;;
10991 libdir
="$save_libdir"
10992 for dep
in $dependency_libs; do
10995 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10996 if test "X$additional_libdir" != "X/usr/lib"; then
10998 if test "X$additional_libdir" = "X/usr/local/lib"; then
10999 if test -n "$GCC"; then
11001 linux
*) haveit
=yes;;
11005 if test -z "$haveit"; then
11007 for x
in $LDFLAGS $LIBICONV; do
11009 acl_save_prefix
="$prefix"
11010 prefix
="$acl_final_prefix"
11011 acl_save_exec_prefix
="$exec_prefix"
11012 exec_prefix
="$acl_final_exec_prefix"
11014 exec_prefix
="$acl_save_exec_prefix"
11015 prefix
="$acl_save_prefix"
11017 if test "X$x" = "X-L$additional_libdir"; then
11022 if test -z "$haveit"; then
11023 if test -d "$additional_libdir"; then
11024 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11028 for x
in $LDFLAGS $LTLIBICONV; do
11030 acl_save_prefix
="$prefix"
11031 prefix
="$acl_final_prefix"
11032 acl_save_exec_prefix
="$exec_prefix"
11033 exec_prefix
="$acl_final_exec_prefix"
11035 exec_prefix
="$acl_save_exec_prefix"
11036 prefix
="$acl_save_prefix"
11038 if test "X$x" = "X-L$additional_libdir"; then
11043 if test -z "$haveit"; then
11044 if test -d "$additional_libdir"; then
11045 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11052 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11053 if test "$enable_rpath" != no
; then
11055 for x
in $rpathdirs; do
11056 if test "X$x" = "X$dir"; then
11061 if test -z "$haveit"; then
11062 rpathdirs
="$rpathdirs $dir"
11065 for x
in $ltrpathdirs; do
11066 if test "X$x" = "X$dir"; then
11071 if test -z "$haveit"; then
11072 ltrpathdirs
="$ltrpathdirs $dir"
11077 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11080 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11083 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11084 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11090 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11091 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11092 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11094 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11095 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11102 if test "X$rpathdirs" != "X"; then
11103 if test -n "$hardcode_libdir_separator"; then
11105 for found_dir
in $rpathdirs; do
11106 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11108 acl_save_libdir
="$libdir"
11110 eval flag
=\"$hardcode_libdir_flag_spec\"
11111 libdir
="$acl_save_libdir"
11112 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11114 for found_dir
in $rpathdirs; do
11115 acl_save_libdir
="$libdir"
11116 libdir
="$found_dir"
11117 eval flag
=\"$hardcode_libdir_flag_spec\"
11118 libdir
="$acl_save_libdir"
11119 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11123 if test "X$ltrpathdirs" != "X"; then
11124 for found_dir
in $ltrpathdirs; do
11125 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11136 $as_echo_n "checking for iconv... " >&6; }
11137 if ${am_cv_func_iconv+:} false
; then :
11138 $as_echo_n "(cached) " >&6
11141 am_cv_func_iconv
="no, consider installing GNU libiconv"
11143 am_save_CPPFLAGS
="$CPPFLAGS"
11144 CPPFLAGS
="$CPPFLAGS $INCICONV"
11145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #include <stdlib.h>
11152 iconv_t cd = iconv_open("","");
11153 iconv(cd,NULL,NULL,NULL,NULL);
11159 if ac_fn_cxx_try_link
"$LINENO"; then :
11160 am_cv_func_iconv
=yes
11162 rm -f core conftest.err conftest.
$ac_objext \
11163 conftest
$ac_exeext conftest.
$ac_ext
11164 CPPFLAGS
="$am_save_CPPFLAGS"
11166 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11167 for _libs
in .libs _libs
; do
11168 am_save_CPPFLAGS
="$CPPFLAGS"
11169 am_save_LIBS
="$LIBS"
11170 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11171 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11174 #include <stdlib.h>
11179 iconv_t cd = iconv_open("","");
11180 iconv(cd,NULL,NULL,NULL,NULL);
11186 if ac_fn_cxx_try_link
"$LINENO"; then :
11187 INCICONV
="-I../libiconv/include"
11188 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11189 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11190 am_cv_lib_iconv
=yes
11191 am_cv_func_iconv
=yes
11193 rm -f core conftest.err conftest.
$ac_objext \
11194 conftest
$ac_exeext conftest.
$ac_ext
11195 CPPFLAGS
="$am_save_CPPFLAGS"
11196 LIBS
="$am_save_LIBS"
11197 if test "$am_cv_func_iconv" = "yes"; then
11203 if test "$am_cv_func_iconv" != yes; then
11204 am_save_CPPFLAGS
="$CPPFLAGS"
11205 am_save_LIBS
="$LIBS"
11206 CPPFLAGS
="$CPPFLAGS $INCICONV"
11207 LIBS
="$LIBS $LIBICONV"
11208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include <stdlib.h>
11215 iconv_t cd = iconv_open("","");
11216 iconv(cd,NULL,NULL,NULL,NULL);
11222 if ac_fn_cxx_try_link
"$LINENO"; then :
11223 am_cv_lib_iconv
=yes
11224 am_cv_func_iconv
=yes
11226 rm -f core conftest.err conftest.
$ac_objext \
11227 conftest
$ac_exeext conftest.
$ac_ext
11228 CPPFLAGS
="$am_save_CPPFLAGS"
11229 LIBS
="$am_save_LIBS"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11234 $as_echo "$am_cv_func_iconv" >&6; }
11235 if test "$am_cv_func_iconv" = yes; then
11237 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11240 if test "$am_cv_lib_iconv" = yes; then
11242 for element
in $INCICONV; do
11244 for x
in $CPPFLAGS; do
11246 acl_save_prefix
="$prefix"
11247 prefix
="$acl_final_prefix"
11248 acl_save_exec_prefix
="$exec_prefix"
11249 exec_prefix
="$acl_final_exec_prefix"
11251 exec_prefix
="$acl_save_exec_prefix"
11252 prefix
="$acl_save_prefix"
11254 if test "X$x" = "X$element"; then
11259 if test -z "$haveit"; then
11260 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11265 $as_echo_n "checking how to link with libiconv... " >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11267 $as_echo "$LIBICONV" >&6; }
11275 if test "$am_cv_func_iconv" = yes; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11277 $as_echo_n "checking for iconv declaration... " >&6; }
11278 if ${am_cv_proto_iconv+:} false
; then :
11279 $as_echo_n "(cached) " >&6
11282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 #include <stdlib.h>
11291 #if defined(__STDC__) || defined(__cplusplus)
11292 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11305 if ac_fn_cxx_try_compile
"$LINENO"; then :
11306 am_cv_proto_iconv_arg1
=""
11308 am_cv_proto_iconv_arg1
="const"
11310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11311 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11314 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11316 }$am_cv_proto_iconv" >&5
11318 }$am_cv_proto_iconv" >&6; }
11320 cat >>confdefs.h
<<_ACEOF
11321 #define ICONV_CONST $am_cv_proto_iconv_arg1
11327 # Until we have in-tree GNU iconv:
11329 if test -f "$LTLIBICONV"; then
11330 LIBICONV_DEP
=$LTLIBICONV
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11336 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11337 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11338 $as_echo_n "(cached) " >&6
11340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342 #include <locale.h>
11351 if ac_fn_cxx_try_link
"$LINENO"; then :
11352 am_cv_val_LC_MESSAGES
=yes
11354 am_cv_val_LC_MESSAGES
=no
11356 rm -f core conftest.err conftest.
$ac_objext \
11357 conftest
$ac_exeext conftest.
$ac_ext
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11360 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11361 if test $am_cv_val_LC_MESSAGES = yes; then
11363 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11370 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11371 if ${am_cv_langinfo_codeset+:} false
; then :
11372 $as_echo_n "(cached) " >&6
11374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376 #include <langinfo.h>
11380 char* cs = nl_langinfo(CODESET);
11385 if ac_fn_cxx_try_link
"$LINENO"; then :
11386 am_cv_langinfo_codeset
=yes
11388 am_cv_langinfo_codeset
=no
11390 rm -f core conftest.err conftest.
$ac_objext \
11391 conftest
$ac_exeext conftest.
$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11395 $as_echo "$am_cv_langinfo_codeset" >&6; }
11396 if test $am_cv_langinfo_codeset = yes; then
11398 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11403 # We will need to find libiberty.h and ansidecl.h
11404 saved_CFLAGS
="$CFLAGS"
11405 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11406 saved_CXXFLAGS
="$CXXFLAGS"
11407 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11409 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11410 # normal autoconf function for these. But force definition of
11411 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11412 # basename handling in libiberty.h.
11413 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11414 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11415 #undef HAVE_DECL_BASENAME
11416 #define HAVE_DECL_BASENAME 1
11417 #include \"ansidecl.h\"
11418 #include \"system.h\"
11420 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11426 cat >>confdefs.h
<<_ACEOF
11427 #define HAVE_DECL_BASENAME $ac_have_decl
11429 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11430 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11431 #undef HAVE_DECL_BASENAME
11432 #define HAVE_DECL_BASENAME 1
11433 #include \"ansidecl.h\"
11434 #include \"system.h\"
11436 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11442 cat >>confdefs.h
<<_ACEOF
11443 #define HAVE_DECL_STRSTR $ac_have_decl
11447 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11448 madvise stpcpy strnlen strsignal strverscmp \
11449 strtol strtoul strtoll strtoull setenv unsetenv \
11450 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11451 free getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11453 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11455 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11456 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11457 $as_echo_n "(cached) " >&6
11459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 #define $ac_tr_decl 1
11464 #include "ansidecl.h"
11465 #include "system.h"
11471 char *(*pfn) = (char *(*)) $ac_func ;
11477 if ac_fn_cxx_try_compile
"$LINENO"; then :
11478 eval "gcc_cv_have_decl_$ac_func=yes"
11480 eval "gcc_cv_have_decl_$ac_func=no"
11482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11487 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11488 #define $ac_tr_decl 1
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11494 #define $ac_tr_decl 0
11502 for ac_func
in getrlimit setrlimit getrusage
11504 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11506 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11507 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11508 $as_echo_n "(cached) " >&6
11510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11513 #define $ac_tr_decl 1
11515 #include "ansidecl.h"
11516 #include "system.h"
11517 #ifdef HAVE_SYS_RESOURCE_H
11518 #include <sys/resource.h>
11526 char *(*pfn) = (char *(*)) $ac_func ;
11532 if ac_fn_cxx_try_compile
"$LINENO"; then :
11533 eval "gcc_cv_have_decl_$ac_func=yes"
11535 eval "gcc_cv_have_decl_$ac_func=no"
11537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11543 #define $ac_tr_decl 1
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11549 #define $ac_tr_decl 0
11557 for ac_func
in mallinfo mallinfo2
11559 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11561 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11562 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11563 $as_echo_n "(cached) " >&6
11565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11568 #define $ac_tr_decl 1
11570 #include "ansidecl.h"
11571 #include "system.h"
11572 #ifdef HAVE_MALLOC_H
11573 #include <malloc.h>
11581 char *(*pfn) = (char *(*)) $ac_func ;
11587 if ac_fn_cxx_try_compile
"$LINENO"; then :
11588 eval "gcc_cv_have_decl_$ac_func=yes"
11590 eval "gcc_cv_have_decl_$ac_func=no"
11592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11597 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11598 #define $ac_tr_decl 1
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11604 #define $ac_tr_decl 0
11612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 #include "ansidecl.h"
11616 #include "system.h"
11617 #ifdef HAVE_SYS_RESOURCE_H
11618 #include <sys/resource.h>
11629 if ac_fn_cxx_try_compile
"$LINENO"; then :
11633 $as_echo "#define rlim_t long" >>confdefs.h
11636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11638 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11639 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11640 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11641 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11642 for ac_func
in ldgetname
11644 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11647 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11648 $as_echo_n "(cached) " >&6
11650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11653 #define $ac_tr_decl 1
11655 #include "ansidecl.h"
11656 #include "system.h"
11657 #ifdef HAVE_LDFCN_H
11668 char *(*pfn) = (char *(*)) $ac_func ;
11674 if ac_fn_cxx_try_compile
"$LINENO"; then :
11675 eval "gcc_cv_have_decl_$ac_func=yes"
11677 eval "gcc_cv_have_decl_$ac_func=no"
11679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11682 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11685 #define $ac_tr_decl 1
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11691 #define $ac_tr_decl 0
11699 for ac_func
in times
11701 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11703 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11704 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11705 $as_echo_n "(cached) " >&6
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 #define $ac_tr_decl 1
11712 #include "ansidecl.h"
11713 #include "system.h"
11714 #ifdef HAVE_SYS_TIMES_H
11715 #include <sys/times.h>
11723 char *(*pfn) = (char *(*)) $ac_func ;
11729 if ac_fn_cxx_try_compile
"$LINENO"; then :
11730 eval "gcc_cv_have_decl_$ac_func=yes"
11732 eval "gcc_cv_have_decl_$ac_func=no"
11734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11740 #define $ac_tr_decl 1
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11746 #define $ac_tr_decl 0
11754 for ac_func
in sigaltstack
11756 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11758 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11759 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11765 #define $ac_tr_decl 1
11767 #include "ansidecl.h"
11768 #include "system.h"
11769 #include <signal.h>
11776 char *(*pfn) = (char *(*)) $ac_func ;
11782 if ac_fn_cxx_try_compile
"$LINENO"; then :
11783 eval "gcc_cv_have_decl_$ac_func=yes"
11785 eval "gcc_cv_have_decl_$ac_func=no"
11787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11790 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11793 #define $ac_tr_decl 1
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11799 #define $ac_tr_decl 0
11807 # More time-related stuff.
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11809 $as_echo_n "checking for struct tms... " >&6; }
11810 if ${ac_cv_struct_tms+:} false
; then :
11811 $as_echo_n "(cached) " >&6
11814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11817 #include "ansidecl.h"
11818 #include "system.h"
11819 #ifdef HAVE_SYS_TIMES_H
11820 #include <sys/times.h>
11831 if ac_fn_cxx_try_compile
"$LINENO"; then :
11832 ac_cv_struct_tms
=yes
11834 ac_cv_struct_tms
=no
11836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11839 $as_echo "$ac_cv_struct_tms" >&6; }
11840 if test $ac_cv_struct_tms = yes; then
11842 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11846 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11847 # revisit after autoconf 2.50.
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11849 $as_echo_n "checking for clock_t... " >&6; }
11850 if ${gcc_cv_type_clock_t+:} false
; then :
11851 $as_echo_n "(cached) " >&6
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 #include "ansidecl.h"
11858 #include "system.h"
11868 if ac_fn_cxx_try_compile
"$LINENO"; then :
11869 gcc_cv_type_clock_t
=yes
11871 gcc_cv_type_clock_t
=no
11873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11876 $as_echo "$gcc_cv_type_clock_t" >&6; }
11877 if test $gcc_cv_type_clock_t = yes; then
11879 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11883 # Check if F_SETLKW is supported by fcntl.
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11885 $as_echo_n "checking for F_SETLKW... " >&6; }
11886 if ${ac_cv_f_setlkw+:} false
; then :
11887 $as_echo_n "(cached) " >&6
11890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11903 return fcntl (1, F_SETLKW, &fl);
11908 if ac_fn_cxx_try_compile
"$LINENO"; then :
11913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11916 $as_echo "$ac_cv_f_setlkw" >&6; }
11917 if test $ac_cv_f_setlkw = yes; then
11919 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11923 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11924 CFLAGS
="$saved_CFLAGS"
11925 CXXFLAGS
="$saved_CXXFLAGS"
11927 # mkdir takes a single argument on some systems.
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11929 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11930 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11931 $as_echo_n "(cached) " >&6
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 #include <sys/types.h>
11937 #ifdef HAVE_SYS_STAT_H
11938 # include <sys/stat.h>
11940 #ifdef HAVE_UNISTD_H
11941 # include <unistd.h>
11943 #ifdef HAVE_DIRECT_H
11944 # include <direct.h>
11954 if ac_fn_cxx_try_compile
"$LINENO"; then :
11955 gcc_cv_mkdir_takes_one_arg
=no
11957 gcc_cv_mkdir_takes_one_arg
=yes
11959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11962 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11963 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11965 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11976 # With Setjmp/Longjmp based exception handling.
11977 # Check whether --enable-sjlj-exceptions was given.
11978 if test "${enable_sjlj_exceptions+set}" = set; then :
11979 enableval
=$enable_sjlj_exceptions; case $target in
11981 if test $enableval != yes; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11983 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11988 force_sjlj_exceptions
=yes
11992 force_sjlj_exceptions
=yes
11996 force_sjlj_exceptions
=yes
12000 force_sjlj_exceptions
=no
12005 if test $force_sjlj_exceptions = yes; then
12006 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12008 cat >>confdefs.h
<<_ACEOF
12009 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12014 # --------------------------------------------------------
12015 # Build, host, and target specific configuration fragments
12016 # --------------------------------------------------------
12018 # Collect build-machine-specific information.
12019 .
${srcdir}/config.build ||
exit 1
12021 # Collect host-machine-specific information.
12022 .
${srcdir}/config.
host ||
exit 1
12026 # Collect target-machine-specific information.
12027 .
${srcdir}/config.gcc ||
exit 1
12029 extra_objs
="${host_extra_objs} ${extra_objs}"
12030 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12032 # Default the target-machine variables that were not explicitly set.
12033 if test x
"$tm_file" = x
12034 then tm_file
=$cpu_type/$cpu_type.h
; fi
12036 if test x
"$extra_headers" = x
12037 then extra_headers
=; fi
12039 if test x
$md_file = x
12040 then md_file
=$cpu_type/$cpu_type.md
; fi
12042 if test x
$out_file = x
12043 then out_file
=$cpu_type/$cpu_type.c
; fi
12045 if test x
"$tmake_file" = x
12046 then tmake_file
=$cpu_type/t-
$cpu_type
12049 # Support --enable-initfini-array.
12050 if test x
$enable_initfini_array != xno
; then
12051 tm_file
="${tm_file} initfini-array.h"
12054 if test x
"$dwarf2" = xyes
12055 then tm_file
="$tm_file tm-dwarf2.h"
12058 # Say what files are being used for the output code and MD file.
12059 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12060 echo "Using \`$srcdir/config/$md_file' as machine description file."
12062 # If any of the xm_file variables contain nonexistent files, warn
12063 # about them and drop them.
12066 for x
in $build_xm_file; do
12067 if test -f $srcdir/config
/$x
12069 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12070 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12073 build_xm_file
="$bx"
12076 for x
in $host_xm_file; do
12077 if test -f $srcdir/config
/$x
12079 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12080 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12086 for x
in $xm_file; do
12087 if test -f $srcdir/config
/$x
12089 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12090 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12096 for f
in $tm_file; do
12099 if test $count = ax
; then
12100 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12102 echo "Using the following target machine macro files:"
12103 for f
in $tm_file; do
12104 echo " $srcdir/config/$f"
12108 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12110 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12114 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12116 cat >>confdefs.h
<<_ACEOF
12117 #define HAVE_GNU_LD $gnu_ld_bool
12121 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12123 cat >>confdefs.h
<<_ACEOF
12124 #define HAVE_GNU_AS $gnu_as_bool
12129 for f
in $host_xm_file; do
12132 if test $count = a
; then
12134 elif test $count = ax
; then
12135 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12137 echo "Using the following host machine macro files:"
12138 for f
in $host_xm_file; do
12139 echo " $srcdir/config/$f"
12142 echo "Using ${out_host_hook_obj} for host machine hooks."
12144 if test "$host_xm_file" != "$build_xm_file"; then
12146 for f
in $build_xm_file; do
12149 if test $count = a
; then
12151 elif test $count = ax
; then
12152 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12154 echo "Using the following build machine macro files:"
12155 for f
in $build_xm_file; do
12156 echo " $srcdir/config/$f"
12161 if test -n "$configured_native_system_header_dir"; then
12162 native_system_header_dir
=$configured_native_system_header_dir
12164 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12168 powerpc
*-*-darwin*)
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12170 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12171 if ${gcc_cv_mcontext_underscores+:} false
; then :
12172 $as_echo_n "(cached) " >&6
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #include <sys/cdefs.h>
12178 #include <sys/signal.h>
12179 #include <ucontext.h>
12180 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12183 if ac_fn_cxx_try_compile
"$LINENO"; then :
12184 gcc_cv_mcontext_underscores
=no
12186 gcc_cv_mcontext_underscores
=yes
12188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12191 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12192 if test $gcc_cv_mcontext_underscores = yes; then
12194 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12204 # Check if a valid thread package
12205 case ${enable_threads} in
12208 target_thread_file
='single'
12212 target_thread_file
='single'
12214 aix | dce | lynx | mipssde | posix | rtems | \
12215 single | tpf | vxworks | win32
)
12216 target_thread_file
=${enable_threads}
12219 echo "${enable_threads} is an unknown thread package" 1>&2
12224 if test x
${thread_file} = x
; then
12225 # No thread file set by target-specific clauses in config.gcc,
12226 # so use file chosen by default logic above
12227 thread_file
=${target_thread_file}
12235 if test x
$enable___cxa_atexit = xyes || \
12236 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12237 if test x
$host = x
$target; then
12239 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12240 # keyed to flag_use_cxa_atexit
12248 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12249 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12252 echo "__cxa_atexit can't be enabled on this target"
12258 # We can't check for __cxa_atexit when building a cross, so assume
12262 if test x
$use_cxa_atexit = xyes
; then
12264 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12269 # Look for a file containing extra machine modes.
12270 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12271 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12274 cat >>confdefs.h
<<_ACEOF
12275 #define EXTRA_MODES_FILE "config/$extra_modes"
12280 # Convert extra_options into a form suitable for Makefile use.
12283 for f
in $extra_options; do
12284 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12285 all_opt_files
="$all_opt_files $srcdir/config/$f"
12289 # auto-host.h is the file containing items generated by autoconf and is
12290 # the first file included by config.h.
12291 # If host=build, it is correct to have bconfig include auto-host.h
12292 # as well. If host!=build, we are in error and need to do more
12293 # work to find out the build config parameters.
12294 if test x
$host = x
$build
12296 build_auto
=auto-host.h
12297 HAVE_AUTO_BUILD
='# '
12299 # We create a subdir, then run autoconf in the subdir.
12300 # To prevent recursion we set host and build for the new
12301 # invocation of configure to the build for this invocation
12308 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12309 *) realsrcdir
=..
/${srcdir};;
12311 # Clearing GMPINC is necessary to prevent host headers being
12312 # used by the build compiler. Defining GENERATOR_FILE stops
12313 # system.h from including gmp.h.
12314 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12315 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12316 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12317 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12318 ${realsrcdir}/configure \
12319 --enable-languages=${enable_languages-all} \
12320 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12321 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12322 --target=$target_alias --host=$build_alias \
12323 --build=$build_alias ||
exit # retaining $tempdir
12325 # We just finished tests for the build machine, so rename
12326 # the file auto-build.h in the gcc directory.
12327 mv auto-host.h ..
/auto-build.h
12330 build_auto
=auto-build.h
12336 tm_file
="${tm_file} defaults.h"
12337 tm_p_file
="${tm_p_file} tm-preds.h"
12338 tm_d_file
="${tm_d_file} defaults.h"
12339 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12340 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12341 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12342 # put this back in temporarily.
12343 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12349 # Compile in configure arguments.
12350 if test -f configargs.h
; then
12351 # Being re-configured.
12352 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12353 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12354 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12355 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12358 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12361 # Double all backslashes and backslash all quotes to turn
12362 # gcc_config_arguments into a C string.
12363 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12364 $gcc_config_arguments
12366 gcc_config_arguments_str
=`cat conftest.out`
12369 cat > configargs.h
<<EOF
12370 /* Generated automatically. */
12371 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12372 static const char thread_model[] = "$thread_file";
12374 static const struct {
12375 const char *name, *value;
12376 } configure_default_options[] = $configure_default_options;
12379 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12380 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12381 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12382 if test -f $srcdir/REVISION
; then
12383 gcc_REVISION
=`cat $srcdir/REVISION`
12387 cat > plugin-version.h
<<EOF
12388 #include "configargs.h"
12390 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12391 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12392 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12393 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12395 static char basever[] = "$gcc_BASEVER";
12396 static char datestamp[] = "$gcc_DATESTAMP";
12397 static char devphase[] = "$gcc_DEVPHASE";
12398 static char revision[] = "$gcc_REVISION";
12400 /* FIXME plugins: We should make the version information more precise.
12401 One way to do is to add a checksum. */
12403 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12404 devphase, revision,
12405 configuration_arguments};
12408 # Determine what GCC version number to use in filesystem paths.
12410 get_gcc_base_ver
="cat"
12412 # Check whether --with-gcc-major-version-only was given.
12413 if test "${with_gcc_major_version_only+set}" = set; then :
12414 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12415 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12423 # Internationalization
12424 # If we haven't got the data from the intl directory,
12425 # assume NLS is disabled.
12434 if test -f ..
/intl
/config.intl
; then
12435 . ..
/intl
/config.intl
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12438 $as_echo_n "checking whether NLS is requested... " >&6; }
12439 if test x
"$USE_NLS" != xyes
; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444 $as_echo "yes" >&6; }
12446 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12450 $as_echo_n "checking for catalogs to be installed... " >&6; }
12451 # Look for .po and .gmo files in the source directory.
12454 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12455 # If there aren't any .gmo files the shell will give us the
12456 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12458 case "$cat" in *\
**)
12461 # The quadruple backslash is collapsed to a double backslash
12462 # by the backticks, then collapsed again by the double quotes,
12463 # leaving us with one backslash in the sed expression (right
12464 # before the dot that mustn't act as a wildcard).
12465 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12466 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12467 # The user is allowed to set LINGUAS to a list of languages to
12468 # install catalogs for. If it's empty that means "all of them."
12469 if test "x$LINGUAS" = x
; then
12470 CATALOGS
="$CATALOGS $cat"
12471 XLINGUAS
="$XLINGUAS $lang"
12473 case "$LINGUAS" in *$lang*)
12474 CATALOGS
="$CATALOGS $cat"
12475 XLINGUAS
="$XLINGUAS $lang"
12480 LINGUAS
="$XLINGUAS"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12482 $as_echo "$LINGUAS" >&6; }
12495 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12496 # -liconv on the link line twice.
12497 case "$LIBINTL" in *$LIBICONV*)
12501 # Check whether --enable-secureplt was given.
12502 if test "${enable_secureplt+set}" = set; then :
12503 enableval
=$enable_secureplt;
12507 # Check whether --enable-mingw-wildcard was given.
12508 if test "${enable_mingw_wildcard+set}" = set; then :
12509 enableval
=$enable_mingw_wildcard;
12511 enable_mingw_wildcard
=platform
12514 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12522 # Check whether --enable-large-address-aware was given.
12523 if test "${enable_large_address_aware+set}" = set; then :
12524 enableval
=$enable_large_address_aware;
12527 if test x
"$enable_large_address_aware" = xyes
; then :
12529 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12533 # Check whether --enable-leading-mingw64-underscores was given.
12534 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12535 enableval
=$enable_leading_mingw64_underscores;
12538 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12540 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12544 # Check whether --enable-cld was given.
12545 if test "${enable_cld+set}" = set; then :
12546 enableval
=$enable_cld;
12552 # Check whether --enable-frame-pointer was given.
12553 if test "${enable_frame_pointer+set}" = set; then :
12554 enableval
=$enable_frame_pointer;
12558 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12559 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12560 enable_frame_pointer
=no
12563 enable_frame_pointer
=yes
12571 i
[34567]86-*-* | x86_64-
*-*)
12572 if test "x$enable_cld" = xyes
; then
12573 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12575 if test "x$enable_frame_pointer" = xyes
; then
12576 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12581 # Windows32 Registry support for specifying GCC installation paths.
12582 # Check whether --enable-win32-registry was given.
12583 if test "${enable_win32_registry+set}" = set; then :
12584 enableval
=$enable_win32_registry;
12589 win32 | pe | cygwin
* | mingw32
*)
12590 if test "x$enable_win32_registry" != xno
; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12592 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12593 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12594 $as_echo_n "(cached) " >&6
12596 ac_func_search_save_LIBS
=$LIBS
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12606 char RegOpenKeyExA ();
12610 return RegOpenKeyExA ();
12615 for ac_lib
in '' advapi32
; do
12616 if test -z "$ac_lib"; then
12617 ac_res
="none required"
12620 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12622 if ac_fn_cxx_try_link
"$LINENO"; then :
12623 ac_cv_search_RegOpenKeyExA
=$ac_res
12625 rm -f core conftest.err conftest.
$ac_objext \
12627 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12631 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12634 ac_cv_search_RegOpenKeyExA
=no
12636 rm conftest.
$ac_ext
12637 LIBS
=$ac_func_search_save_LIBS
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12640 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12641 ac_res
=$ac_cv_search_RegOpenKeyExA
12642 if test "$ac_res" != no
; then :
12643 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12646 enable_win32_registry
=no
12651 if test "x$enable_win32_registry" != xno
; then
12653 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12656 if test "x$enable_win32_registry" != xyes \
12657 && test "x$enable_win32_registry" != x
; then
12659 cat >>confdefs.h
<<_ACEOF
12660 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12668 # Get an absolute path to the GCC top-level source directory
12669 holddir
=`${PWDCMD-pwd}`
12671 topdir
=`${PWDCMD-pwd}`
12674 # Conditionalize the makefile for this host machine.
12676 for f
in ${host_xmake_file}
12678 if test -f ${srcdir}/config
/$f
12680 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12684 # Conditionalize the makefile for this target machine.
12686 for f
in ${tmake_file}
12688 if test -f ${srcdir}/config
/$f
12690 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12693 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12695 out_object_file
=`basename $out_file .c`.o
12696 common_out_object_file
=`basename $common_out_file .c`.o
12698 tm_file_list
="options.h"
12699 tm_include_list
="options.h insn-constants.h"
12700 for f
in $tm_file; do
12703 f
=`echo $f | sed 's/^..//'`
12704 tm_file_list
="${tm_file_list} $f"
12705 tm_include_list
="${tm_include_list} $f"
12708 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12709 tm_include_list
="${tm_include_list} $f"
12712 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12713 tm_include_list
="${tm_include_list} config/$f"
12720 for f
in $tm_p_file; do
12723 tm_p_file_list
="${tm_p_file_list} $f"
12724 tm_p_include_list
="${tm_p_include_list} $f"
12727 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12728 tm_p_include_list
="${tm_p_include_list} config/$f"
12733 tm_d_include_list
="options.h insn-constants.h"
12734 for f
in $tm_d_file; do
12737 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12738 tm_d_include_list
="${tm_d_include_list} $f"
12741 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12742 tm_d_include_list
="${tm_d_include_list} config/$f"
12749 for f
in $xm_file; do
12752 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12753 xm_include_list
="${xm_include_list} $f"
12756 xm_file_list
="${xm_file_list} $f"
12757 xm_include_list
="${xm_include_list} $f"
12760 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12761 xm_include_list
="${xm_include_list} config/$f"
12767 host_xm_include_list
=
12768 for f
in $host_xm_file; do
12771 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12772 host_xm_include_list
="${host_xm_include_list} $f"
12775 host_xm_file_list
="${host_xm_file_list} $f"
12776 host_xm_include_list
="${host_xm_include_list} $f"
12779 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12780 host_xm_include_list
="${host_xm_include_list} config/$f"
12785 build_xm_file_list
=
12786 for f
in $build_xm_file; do
12789 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12790 build_xm_include_list
="${build_xm_include_list} $f"
12792 auto-build.h | auto-host.h
)
12793 build_xm_file_list
="${build_xm_file_list} $f"
12794 build_xm_include_list
="${build_xm_include_list} $f"
12797 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12798 build_xm_include_list
="${build_xm_include_list} config/$f"
12803 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12804 # cross-compiler which does not use the native headers and libraries.
12805 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12808 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12809 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12811 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12812 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12813 if test "x$with_build_sysroot" != x
; then
12814 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12816 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12819 if test x
$host != x
$target
12821 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12823 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12824 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12825 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12828 if test "x$with_build_sysroot" != "x"; then
12829 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12830 elif test "x$with_sysroot" = x
; then
12831 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12832 elif test "x$with_sysroot" = xyes
; then
12833 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12835 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12838 target_header_dir
=${native_system_header_dir}
12841 # If this is a cross-compiler that does not
12842 # have its own set of headers then define
12845 # If this is using newlib, without having the headers available now,
12846 # then define inhibit_libc in LIBGCC2_CFLAGS.
12847 # This prevents libgcc2 from containing any code which requires libc
12849 : ${inhibit_libc=false}
12850 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12851 test x
$with_newlib = xyes
; } &&
12852 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12857 # When building gcc with a cross-compiler, we need to adjust things so
12858 # that the generator programs are still built with the native compiler.
12859 # Also, we cannot run fixincludes.
12861 # These are the normal (build=host) settings:
12862 CC_FOR_BUILD
='$(CC)'
12863 CXX_FOR_BUILD
='$(CXX)'
12864 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12865 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12866 BUILD_LDFLAGS
='$(LDFLAGS)'
12867 STMP_FIXINC
=stmp-fixinc
12869 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12870 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12872 # And these apply if build != host, or we are generating coverage data
12873 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12875 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12876 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12877 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12879 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12880 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12881 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12882 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12887 # Expand extra_headers to include complete path.
12888 # This substitutes for lots of t-* files.
12889 extra_headers_list
=
12890 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12891 for file in ${extra_headers} ; do
12892 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12895 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12896 if test x
"$use_gcc_tgmath" = xyes
12897 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12900 # Define collect2 in Makefile.
12901 case $host_can_use_collect2 in
12903 *) collect2
='collect2$(exeext)' ;;
12907 # Add a definition of USE_COLLECT2 if system wants one.
12908 case $use_collect2 in
12909 no
) use_collect2
= ;;
12912 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12913 xm_defines
="${xm_defines} USE_COLLECT2"
12914 case $host_can_use_collect2 in
12916 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12923 cat >>confdefs.h
<<_ACEOF
12924 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12928 # ---------------------------
12929 # Assembler & linker features
12930 # ---------------------------
12932 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12933 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12934 # However when ld-new is first executed from the build tree, libtool will
12935 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12936 # to the build tree. While doing this we need to use the previous-stage
12937 # linker, or we have an infinite loop. The presence of a shell script as
12938 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12939 # the gcc/collect-ld script. So we need to know how libtool works, or
12940 # exec-tool will fail.
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12946 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12951 macro_version
='2.2.7a'
12952 macro_revision
='1.3134'
12966 ltmain
="$ac_aux_dir/ltmain.sh"
12968 # Backslashify metacharacters that are still active within
12969 # double-quoted strings.
12970 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12972 # Same as above, but do not quote variable references.
12973 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12975 # Sed substitution to delay expansion of an escaped shell variable in a
12976 # double_quote_subst'ed string.
12977 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12979 # Sed substitution to delay expansion of an escaped single quote.
12980 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12982 # Sed substitution to avoid accidental globbing in evaled expressions
12983 no_glob_subst
='s/\*/\\\*/g'
12985 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12990 $as_echo_n "checking how to print strings... " >&6; }
12991 # Test print first, because it will be a builtin if present.
12992 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12995 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12998 # Use this function as a fallback that always works.
12999 func_fallback_echo ()
13001 eval 'cat <<_LTECHO_EOF
13005 ECHO='func_fallback_echo
'
13008 # func_echo_all arg...
13009 # Invoke $ECHO with all args, space-separated.
13016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13017 $as_echo "printf" >&6; } ;;
13018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13019 $as_echo "print -r" >&6; } ;;
13020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13021 $as_echo "cat" >&6; } ;;
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13038 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13039 if ${ac_cv_path_SED+:} false; then :
13040 $as_echo_n "(cached) " >&6
13042 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13043 for ac_i in 1 2 3 4 5 6 7; do
13044 ac_script="$ac_script$as_nl$ac_script"
13046 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13047 { ac_script=; unset ac_script;}
13048 if test -z "$SED"; then
13049 ac_path_SED_found=false
13050 # Loop through the user's path and
test for each of PROGNAME-LIST
13051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13052 for as_dir
in $PATH
13055 test -z "$as_dir" && as_dir
=.
13056 for ac_prog
in sed gsed
; do
13057 for ac_exec_ext
in '' $ac_executable_extensions; do
13058 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13059 as_fn_executable_p
"$ac_path_SED" ||
continue
13060 # Check for GNU ac_path_SED and select it if it is found.
13061 # Check for GNU $ac_path_SED
13062 case `"$ac_path_SED" --version 2>&1` in
13064 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13067 $as_echo_n 0123456789 >"conftest.in"
13070 cat "conftest.in" "conftest.in" >"conftest.tmp"
13071 mv "conftest.tmp" "conftest.in"
13072 cp "conftest.in" "conftest.nl"
13073 $as_echo '' >> "conftest.nl"
13074 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13075 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13076 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13077 if test $ac_count -gt ${ac_path_SED_max-0}; then
13078 # Best one so far, save it but keep looking for a better one
13079 ac_cv_path_SED
="$ac_path_SED"
13080 ac_path_SED_max
=$ac_count
13082 # 10*(2^10) chars as input seems more than enough
13083 test $ac_count -gt 10 && break
13085 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13088 $ac_path_SED_found && break 3
13093 if test -z "$ac_cv_path_SED"; then
13094 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13097 ac_cv_path_SED
=$SED
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13102 $as_echo "$ac_cv_path_SED" >&6; }
13103 SED
="$ac_cv_path_SED"
13106 test -z "$SED" && SED
=sed
13107 Xsed
="$SED -e 1s/^X//"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13120 $as_echo_n "checking for fgrep... " >&6; }
13121 if ${ac_cv_path_FGREP+:} false
; then :
13122 $as_echo_n "(cached) " >&6
13124 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13125 then ac_cv_path_FGREP
="$GREP -F"
13127 if test -z "$FGREP"; then
13128 ac_path_FGREP_found
=false
13129 # Loop through the user's path and test for each of PROGNAME-LIST
13130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13131 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13134 test -z "$as_dir" && as_dir
=.
13135 for ac_prog
in fgrep
; do
13136 for ac_exec_ext
in '' $ac_executable_extensions; do
13137 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13138 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13139 # Check for GNU ac_path_FGREP and select it if it is found.
13140 # Check for GNU $ac_path_FGREP
13141 case `"$ac_path_FGREP" --version 2>&1` in
13143 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13146 $as_echo_n 0123456789 >"conftest.in"
13149 cat "conftest.in" "conftest.in" >"conftest.tmp"
13150 mv "conftest.tmp" "conftest.in"
13151 cp "conftest.in" "conftest.nl"
13152 $as_echo 'FGREP' >> "conftest.nl"
13153 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13154 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13155 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13157 # Best one so far, save it but keep looking for a better one
13158 ac_cv_path_FGREP
="$ac_path_FGREP"
13159 ac_path_FGREP_max
=$ac_count
13161 # 10*(2^10) chars as input seems more than enough
13162 test $ac_count -gt 10 && break
13164 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13167 $ac_path_FGREP_found && break 3
13172 if test -z "$ac_cv_path_FGREP"; then
13173 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13176 ac_cv_path_FGREP
=$FGREP
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13182 $as_echo "$ac_cv_path_FGREP" >&6; }
13183 FGREP
="$ac_cv_path_FGREP"
13186 test -z "$GREP" && GREP
=grep
13206 # Check whether --with-gnu-ld was given.
13207 if test "${with_gnu_ld+set}" = set; then :
13208 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13214 if test "$GCC" = yes; then
13215 # Check if gcc -print-prog-name=ld gives a path.
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13217 $as_echo_n "checking for ld used by $CC... " >&6; }
13220 # gcc leaves a trailing carriage return which upsets mingw
13221 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13223 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13226 # Accept absolute paths.
13228 re_direlt
='/[^/][^/]*/\.\./'
13229 # Canonicalize the pathname of ld
13230 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13231 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13232 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13234 test -z "$LD" && LD
="$ac_prog"
13237 # If it fails, then pretend we aren't using GCC.
13241 # If it is relative, then search for the first ld in PATH.
13242 with_gnu_ld
=unknown
13245 elif test "$with_gnu_ld" = yes; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13247 $as_echo_n "checking for GNU ld... " >&6; }
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13250 $as_echo_n "checking for non-GNU ld... " >&6; }
13252 if ${lt_cv_path_LD+:} false
; then :
13253 $as_echo_n "(cached) " >&6
13255 if test -z "$LD"; then
13256 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13257 for ac_dir
in $PATH; do
13259 test -z "$ac_dir" && ac_dir
=.
13260 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13261 lt_cv_path_LD
="$ac_dir/$ac_prog"
13262 # Check to see if the program is GNU ld. I'd rather use --version,
13263 # but apparently some variants of GNU ld only accept -v.
13264 # Break only if it was the GNU/non-GNU ld that we prefer.
13265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13266 *GNU
* |
*'with BFD'*)
13267 test "$with_gnu_ld" != no
&& break
13270 test "$with_gnu_ld" != yes && break
13277 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13281 LD
="$lt_cv_path_LD"
13282 if test -n "$LD"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13284 $as_echo "$LD" >&6; }
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13289 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13292 if ${lt_cv_prog_gnu_ld+:} false
; then :
13293 $as_echo_n "(cached) " >&6
13295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13296 case `$LD -v 2>&1 </dev/null` in
13297 *GNU
* |
*'with BFD'*)
13298 lt_cv_prog_gnu_ld
=yes
13301 lt_cv_prog_gnu_ld
=no
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13307 with_gnu_ld
=$lt_cv_prog_gnu_ld
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13319 if ${lt_cv_path_NM+:} false
; then :
13320 $as_echo_n "(cached) " >&6
13322 if test -n "$NM"; then
13323 # Let the user override the test.
13324 lt_cv_path_NM
="$NM"
13326 lt_nm_to_check
="${ac_tool_prefix}nm"
13327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13328 lt_nm_to_check
="$lt_nm_to_check nm"
13330 for lt_tmp_nm
in $lt_nm_to_check; do
13331 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13332 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13334 test -z "$ac_dir" && ac_dir
=.
13335 tmp_nm
="$ac_dir/$lt_tmp_nm"
13336 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13337 # Check to see if the nm accepts a BSD-compat flag.
13338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13339 # nm: unknown option "B" ignored
13340 # Tru64's nm complains that /dev/null is an invalid object file
13341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13342 */dev
/null
* |
*'Invalid file or object type'*)
13343 lt_cv_path_NM
="$tmp_nm -B"
13347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13349 lt_cv_path_NM
="$tmp_nm -p"
13353 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13354 continue # so that we can try to find one that supports BSD flags
13363 : ${lt_cv_path_NM=no}
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13367 $as_echo "$lt_cv_path_NM" >&6; }
13368 if test "$lt_cv_path_NM" != "no"; then
13369 NM
="$lt_cv_path_NM"
13371 # Didn't find any BSD compatible name lister, look for dumpbin.
13372 if test -n "$DUMPBIN"; then :
13373 # Let the user override the test.
13375 if test -n "$ac_tool_prefix"; then
13376 for ac_prog
in dumpbin
"link -dump"
13378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13379 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13383 $as_echo_n "(cached) " >&6
13385 if test -n "$DUMPBIN"; then
13386 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13389 for as_dir
in $PATH
13392 test -z "$as_dir" && as_dir
=.
13393 for ac_exec_ext
in '' $ac_executable_extensions; do
13394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13395 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 DUMPBIN
=$ac_cv_prog_DUMPBIN
13406 if test -n "$DUMPBIN"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13408 $as_echo "$DUMPBIN" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13415 test -n "$DUMPBIN" && break
13418 if test -z "$DUMPBIN"; then
13419 ac_ct_DUMPBIN
=$DUMPBIN
13420 for ac_prog
in dumpbin
"link -dump"
13422 # Extract the first word of "$ac_prog", so it can be a program name with args.
13423 set dummy
$ac_prog; ac_word
=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13427 $as_echo_n "(cached) " >&6
13429 if test -n "$ac_ct_DUMPBIN"; then
13430 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13433 for as_dir
in $PATH
13436 test -z "$as_dir" && as_dir
=.
13437 for ac_exec_ext
in '' $ac_executable_extensions; do
13438 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13450 if test -n "$ac_ct_DUMPBIN"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13452 $as_echo "$ac_ct_DUMPBIN" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13459 test -n "$ac_ct_DUMPBIN" && break
13462 if test "x$ac_ct_DUMPBIN" = x
; then
13465 case $cross_compiling:$ac_tool_warned in
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469 ac_tool_warned
=yes ;;
13471 DUMPBIN
=$ac_ct_DUMPBIN
13475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13477 DUMPBIN
="$DUMPBIN -symbols"
13485 if test "$DUMPBIN" != ":"; then
13489 test -z "$NM" && NM
=nm
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13498 if ${lt_cv_nm_interface+:} false
; then :
13499 $as_echo_n "(cached) " >&6
13501 lt_cv_nm_interface
="BSD nm"
13502 echo "int some_variable = 0;" > conftest.
$ac_ext
13503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13504 (eval "$ac_compile" 2>conftest.err
)
13505 cat conftest.err
>&5
13506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13508 cat conftest.err
>&5
13509 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13510 cat conftest.out
>&5
13511 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13512 lt_cv_nm_interface
="MS dumpbin"
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13517 $as_echo "$lt_cv_nm_interface" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13520 $as_echo_n "checking whether ln -s works... " >&6; }
13522 if test "$LN_S" = "ln -s"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13527 $as_echo "no, using $LN_S" >&6; }
13530 # find the maximum length of command line arguments
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13533 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13534 $as_echo_n "(cached) " >&6
13541 # On DJGPP, this test can blow up pretty badly due to problems in libc
13542 # (any single argument exceeding 2000 bytes causes a buffer overrun
13543 # during glob expansion). Even if it were fixed, the result of this
13544 # check would be larger than it should be.
13545 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13549 # Under GNU Hurd, this test is not required because there is
13550 # no limit to the length of command line arguments.
13551 # Libtool will interpret -1 as no limit whatsoever
13552 lt_cv_sys_max_cmd_len
=-1;
13555 cygwin
* | mingw
* | cegcc
*)
13556 # On Win9x/ME, this test blows up -- it succeeds, but takes
13557 # about 5 minutes as the teststring grows exponentially.
13558 # Worse, since 9x/ME are not pre-emptively multitasking,
13559 # you end up with a "frozen" computer, even though with patience
13560 # the test eventually succeeds (with a max line length of 256k).
13561 # Instead, let's just punt: use the minimum linelength reported by
13562 # all of the supported platforms: 8192 (on NT/2K/XP).
13563 lt_cv_sys_max_cmd_len
=8192;
13567 # On MiNT this can take a long time and run out of memory.
13568 lt_cv_sys_max_cmd_len
=8192;
13572 # On AmigaOS with pdksh, this test takes hours, literally.
13573 # So we just punt and use a minimum line length of 8192.
13574 lt_cv_sys_max_cmd_len
=8192;
13577 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13578 # This has been around since 386BSD, at least. Likely further.
13579 if test -x /sbin
/sysctl
; then
13580 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13581 elif test -x /usr
/sbin
/sysctl
; then
13582 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13584 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13586 # And add a safety zone
13587 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13588 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593 lt_cv_sys_max_cmd_len
=196608
13597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599 # nice to cause kernel panics so lets avoid the loop below.
13600 # First set a reasonable default.
13601 lt_cv_sys_max_cmd_len
=16384
13603 if test -x /sbin
/sysconfig
; then
13604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13610 lt_cv_sys_max_cmd_len
=102400
13612 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13613 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614 if test -n "$kargmax"; then
13615 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13617 lt_cv_sys_max_cmd_len
=32768
13621 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13622 if test -n "$lt_cv_sys_max_cmd_len"; then
13623 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13624 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13626 # Make teststring a little bigger before we do anything with it.
13627 # a 1K string should be a reasonable start.
13628 for i
in 1 2 3 4 5 6 7 8 ; do
13629 teststring
=$teststring$teststring
13631 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13632 # If test is not a shell built-in, we'll probably end up computing a
13633 # maximum length that is only half of the actual maximum length, but
13635 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13636 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13637 test $i != 17 # 1/2 MB should be enough
13640 teststring
=$teststring$teststring
13642 # Only check the string length outside the loop.
13643 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13645 # Add a significant safety factor because C++ compilers can tack on
13646 # massive amounts of additional arguments before passing them to the
13647 # linker. It appears as though 1/2 is a usable value.
13648 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13655 if test -n $lt_cv_sys_max_cmd_len ; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13657 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13660 $as_echo "none" >&6; }
13662 max_cmd_len
=$lt_cv_sys_max_cmd_len
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13674 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13675 # Try some XSI features
13677 ( _lt_dummy
="a/b/c"
13678 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13680 && eval 'test $(( 1 + 1 )) -eq 2 \
13681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13684 $as_echo "$xsi_shell" >&6; }
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13688 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13690 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13692 && lt_shell_append=yes
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13694 $as_echo "$lt_shell_append" >&6; }
13697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13707 # test EBCDIC or ASCII
13708 case `echo X|tr X '\101'` in
13709 A) # ASCII based system
13710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13711 lt_SP2NL='tr \040 \012'
13712 lt_NL2SP='tr \015\012 \040\040'
13714 *) # EBCDIC based system
13715 lt_SP2NL='tr \100 \n'
13716 lt_NL2SP='tr \r\n \100\100'
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13729 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13730 if ${lt_cv_ld_reload_flag+:} false; then :
13731 $as_echo_n "(cached
) " >&6
13733 lt_cv_ld_reload_flag='-r'
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13736 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13737 reload_flag=$lt_cv_ld_reload_flag
13738 case $reload_flag in
13740 *) reload_flag=" $reload_flag" ;;
13742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13745 if test "$GCC" = yes; then
13746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13761 if test -n "$ac_tool_prefix"; then
13762 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13763 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
13767 $as_echo_n "(cached
) " >&6
13769 if test -n "$OBJDUMP"; then
13770 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump
"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13789 OBJDUMP=$ac_cv_prog_OBJDUMP
13790 if test -n "$OBJDUMP"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13792 $as_echo "$OBJDUMP" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13795 $as_echo "no
" >&6; }
13800 if test -z "$ac_cv_prog_OBJDUMP"; then
13801 ac_ct_OBJDUMP=$OBJDUMP
13802 # Extract the first word of "objdump
", so it can be a program name with args.
13803 set dummy objdump; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13805 $as_echo_n "checking
for $ac_word...
" >&6; }
13806 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13807 $as_echo_n "(cached
) " >&6
13809 if test -n "$ac_ct_OBJDUMP"; then
13810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13830 if test -n "$ac_ct_OBJDUMP"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13832 $as_echo "$ac_ct_OBJDUMP" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13835 $as_echo "no
" >&6; }
13838 if test "x
$ac_ct_OBJDUMP" = x; then
13841 case $cross_compiling:$ac_tool_warned in
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13844 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13845 ac_tool_warned=yes ;;
13847 OBJDUMP=$ac_ct_OBJDUMP
13850 OBJDUMP="$ac_cv_prog_OBJDUMP"
13853 test -z "$OBJDUMP" && OBJDUMP=objdump
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13864 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13865 if ${lt_cv_deplibs_check_method+:} false; then :
13866 $as_echo_n "(cached
) " >&6
13868 lt_cv_file_magic_cmd='$MAGIC_CMD'
13869 lt_cv_file_magic_test_file=
13870 lt_cv_deplibs_check_method='unknown'
13871 # Need to set the preceding variable on all platforms that support
13872 # interlibrary dependencies.
13873 # 'none' -- dependencies not supported.
13874 # `unknown' -- same as none, but documents that we really don't know.
13875 # 'pass_all' -- all dependencies passed with no checks.
13876 # 'test_compile' -- check by making test program.
13877 # 'file_magic [[regex]]' -- check by looking for files in library path
13878 # which responds to the $file_magic_cmd with a given extended regex.
13879 # If you have `file' or equivalent on your system and you're not sure
13880 # whether `pass_all' will *always* work, you probably want this one.
13884 lt_cv_deplibs_check_method=pass_all
13888 lt_cv_deplibs_check_method=pass_all
13892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13893 lt_cv_file_magic_cmd='/usr/bin/file -L'
13894 lt_cv_file_magic_test_file=/shlib/libc.so
13898 # func_win32_libid is a shell function defined in ltmain.sh
13899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13900 lt_cv_file_magic_cmd='func_win32_libid'
13904 # Base MSYS/MinGW do not provide the 'file' command needed by
13905 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13906 # unless we find 'file', for example because we are cross-compiling.
13907 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13908 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13910 lt_cv_file_magic_cmd='func_win32_libid'
13912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13913 lt_cv_file_magic_cmd='$OBJDUMP -f'
13918 # use the weaker test based on 'objdump'. See mingw*.
13919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13920 lt_cv_file_magic_cmd='$OBJDUMP -f'
13923 darwin* | rhapsody*)
13924 lt_cv_deplibs_check_method=pass_all
13927 freebsd* | dragonfly*)
13928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13931 # Not sure whether the presence of OpenBSD here was a mistake.
13932 # Let's accept both of them until this is cleared up.
13933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13934 lt_cv_file_magic_cmd=/usr/bin/file
13935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13939 lt_cv_deplibs_check_method=pass_all
13944 lt_cv_deplibs_check_method=pass_all
13948 lt_cv_deplibs_check_method=pass_all
13951 hpux10.20* | hpux11*)
13952 lt_cv_file_magic_cmd=/usr/bin/file
13955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13974 irix5* | irix6* | nonstopux*)
13976 *-32|*"-32 ") libmagic=32-bit;;
13977 *-n32|*"-n32 ") libmagic=N32;;
13978 *-64|*"-64 ") libmagic=64-bit;;
13979 *) libmagic=never-match;;
13981 lt_cv_deplibs_check_method=pass_all
13984 # This must be Linux ELF.
13985 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13986 lt_cv_deplibs_check_method=pass_all
13990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13999 lt_cv_file_magic_cmd=/usr/bin/file
14000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14004 lt_cv_deplibs_check_method=pass_all
14008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14015 osf3* | osf4* | osf5*)
14016 lt_cv_deplibs_check_method=pass_all
14020 lt_cv_deplibs_check_method=pass_all
14024 lt_cv_deplibs_check_method=pass_all
14027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14028 lt_cv_deplibs_check_method=pass_all
14032 case $host_vendor in
14034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
14035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14038 lt_cv_deplibs_check_method=pass_all
14041 lt_cv_file_magic_cmd='/bin/file'
14042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14045 lt_cv_file_magic_cmd='/bin/file'
14046 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14047 lt_cv_file_magic_test_file=/lib/libc.so
14050 lt_cv_deplibs_check_method=pass_all
14053 lt_cv_deplibs_check_method=pass_all
14059 lt_cv_deplibs_check_method=pass_all
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14065 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14066 file_magic_cmd=$lt_cv_file_magic_cmd
14067 deplibs_check_method=$lt_cv_deplibs_check_method
14068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14081 if test -n "$ac_tool_prefix"; then
14082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14083 set dummy ${ac_tool_prefix}ar; ac_word=$2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14085 $as_echo_n "checking
for $ac_word...
" >&6; }
14086 if ${ac_cv_prog_AR+:} false; then :
14087 $as_echo_n "(cached
) " >&6
14089 if test -n "$AR"; then
14090 ac_cv_prog_AR="$AR" # Let the user override the test.
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14099 ac_cv_prog_AR="${ac_tool_prefix}ar"
14100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14110 if test -n "$AR"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14112 $as_echo "$AR" >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14115 $as_echo "no
" >&6; }
14120 if test -z "$ac_cv_prog_AR"; then
14122 # Extract the first word of "ar", so it can be a program name with args.
14123 set dummy ar; ac_word=$2
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14125 $as_echo_n "checking
for $ac_word...
" >&6; }
14126 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14127 $as_echo_n "(cached
) " >&6
14129 if test -n "$ac_ct_AR"; then
14130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139 ac_cv_prog_ac_ct_AR="ar"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14150 if test -n "$ac_ct_AR"; then
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14152 $as_echo "$ac_ct_AR" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14155 $as_echo "no
" >&6; }
14158 if test "x
$ac_ct_AR" = x; then
14161 case $cross_compiling:$ac_tool_warned in
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14164 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14165 ac_tool_warned=yes ;;
14170 AR="$ac_cv_prog_AR"
14173 test -z "$AR" && AR=ar
14174 test -z "$AR_FLAGS" && AR_FLAGS=cru
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}strip; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if ${ac_cv_prog_STRIP+:} false; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$STRIP"; then
14195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 STRIP=$ac_cv_prog_STRIP
14215 if test -n "$STRIP"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14217 $as_echo "$STRIP" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14225 if test -z "$ac_cv_prog_STRIP"; then
14227 # Extract the first word of "strip
", so it can be a program name with args.
14228 set dummy strip; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14230 $as_echo_n "checking
for $ac_word...
" >&6; }
14231 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14232 $as_echo_n "(cached
) " >&6
14234 if test -n "$ac_ct_STRIP"; then
14235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14244 ac_cv_prog_ac_ct_STRIP="strip
"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14255 if test -n "$ac_ct_STRIP"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14257 $as_echo "$ac_ct_STRIP" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14260 $as_echo "no
" >&6; }
14263 if test "x
$ac_ct_STRIP" = x; then
14266 case $cross_compiling:$ac_tool_warned in
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14270 ac_tool_warned=yes ;;
14275 STRIP="$ac_cv_prog_STRIP"
14278 test -z "$STRIP" && STRIP=:
14285 if test -n "$ac_tool_prefix"; then
14286 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14289 $as_echo_n "checking
for $ac_word...
" >&6; }
14290 if ${ac_cv_prog_RANLIB+:} false; then :
14291 $as_echo_n "(cached
) " >&6
14293 if test -n "$RANLIB"; then
14294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14313 RANLIB=$ac_cv_prog_RANLIB
14314 if test -n "$RANLIB"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14316 $as_echo "$RANLIB" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14319 $as_echo "no
" >&6; }
14324 if test -z "$ac_cv_prog_RANLIB"; then
14325 ac_ct_RANLIB=$RANLIB
14326 # Extract the first word of "ranlib
", so it can be a program name with args.
14327 set dummy ranlib; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14329 $as_echo_n "checking
for $ac_word...
" >&6; }
14330 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14331 $as_echo_n "(cached
) " >&6
14333 if test -n "$ac_ct_RANLIB"; then
14334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14354 if test -n "$ac_ct_RANLIB"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14356 $as_echo "$ac_ct_RANLIB" >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14359 $as_echo "no
" >&6; }
14362 if test "x
$ac_ct_RANLIB" = x; then
14365 case $cross_compiling:$ac_tool_warned in
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14368 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14369 ac_tool_warned=yes ;;
14371 RANLIB=$ac_ct_RANLIB
14374 RANLIB="$ac_cv_prog_RANLIB"
14377 test -z "$RANLIB" && RANLIB=:
14384 # Determine commands to create old-style static archives.
14385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14386 old_postinstall_cmds='chmod 644 $oldlib'
14387 old_postuninstall_cmds=
14389 if test -n "$RANLIB"; then
14392 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14395 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14398 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14403 lock_old_archive_extraction=yes ;;
14405 lock_old_archive_extraction=no ;;
14446 # If no C compiler was specified, use CC.
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14452 # Allow CC to be a program name with arguments.
14456 # Check for command to grab the raw symbol name followed by C symbol from nm.
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14458 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14459 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14460 $as_echo_n "(cached
) " >&6
14463 # These are sane defaults that work on at least a few old systems.
14464 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14466 # Character class describing NM global symbol codes.
14467 symcode='[BCDEGRST]'
14469 # Regexp to match symbols that can be accessed directly from C.
14470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14472 # Define system-specific variables.
14477 cygwin* | mingw* | pw32* | cegcc*)
14478 symcode='[ABCDGISTW]'
14481 if test "$host_cpu" = ia64; then
14482 symcode='[ABCDEGRST]'
14485 irix* | nonstopux*)
14486 symcode='[BCDEGRST]'
14489 symcode='[BCDEGQRST]'
14500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14508 # If we're using GNU nm, then use its standard symbol codes.
14509 case `$NM -V 2>&1` in
14510 *GNU* | *'with BFD'*)
14511 symcode='[ABCDGIRSTW]' ;;
14514 # Transform an extracted symbol line into a proper C declaration.
14515 # Some systems (esp. on ia64) link data and code symbols differently,
14516 # so use this general approach.
14517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14519 # Transform an extracted symbol line into symbol name and symbol address
14520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
14523 # Handle CRLF in mingw tool chain
14527 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14531 # Try without a prefix underscore, then with it.
14532 for ac_symprfx in "" "_
"; do
14534 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14535 symxfrm="\\1 $ac_symprfx\\2 \\2"
14537 # Write the raw and C identifiers.
14538 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14539 # Fake it for dumpbin and say T for any non-static function
14540 # and D for any global variable.
14541 # Also find C++ and __fastcall symbols from MSVC++,
14542 # which start with @ or ?.
14543 lt_cv_sys_global_symbol_pipe="$AWK '"\
14544 " {last_section=section; section=\$ 3};"\
14545 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14546 " \$ 0!~/External *\|/{next};"\
14547 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14548 " {if(hide[section]) next};"\
14549 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14550 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14551 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14552 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14553 " ' prfx
=^
$ac_symprfx"
14555 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14558 # Check to see that the pipe works correctly.
14562 cat > conftest.$ac_ext <<_LT_EOF
14567 void nm_test_func(void);
14568 void nm_test_func(void){}
14572 int main(){nm_test_var='a';nm_test_func();return(0);}
14575 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14576 (eval $ac_compile) 2>&5
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14579 test $ac_status = 0; }; then
14580 # Now try to grab the symbols.
14582 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14586 test $ac_status = 0; } && test -s "$nlist"; then
14587 # Try sorting and uniquifying the output.
14588 if sort "$nlist" | uniq > "$nlist"T; then
14589 mv -f "$nlist"T "$nlist"
14594 # Make sure that we snagged all the symbols we need.
14595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14597 cat <<_LT_EOF > conftest.$ac_ext
14603 # Now generate the symbol file.
14604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14606 cat <<_LT_EOF >> conftest.$ac_ext
14608 /* The mapping between symbol names and symbols. */
14613 lt__PROGRAM__LTX_preloaded_symbols[] =
14615 { "@PROGRAM@
", (void *) 0 },
14617 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14618 cat <<\_LT_EOF >> conftest.$ac_ext
14622 /* This works around a problem in FreeBSD linker */
14623 #ifdef FREEBSD_WORKAROUND
14624 static const void *lt_preloaded_setup() {
14625 return lt__PROGRAM__LTX_preloaded_symbols;
14633 # Now try linking the two files.
14634 mv conftest.$ac_objext conftstm.$ac_objext
14635 lt_save_LIBS="$LIBS"
14636 lt_save_CFLAGS="$CFLAGS"
14637 LIBS="conftstm.
$ac_objext"
14638 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14639 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14640 (eval $ac_link) 2>&5
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14643 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14646 LIBS="$lt_save_LIBS"
14647 CFLAGS="$lt_save_CFLAGS"
14649 echo "cannot
find nm_test_func
in $nlist" >&5
14652 echo "cannot
find nm_test_var
in $nlist" >&5
14655 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14658 echo "$progname: failed program was
:" >&5
14659 cat conftest.$ac_ext >&5
14661 rm -rf conftest* conftst*
14663 # Do not use the global_symbol_pipe unless it works.
14664 if test "$pipe_works" = yes; then
14667 lt_cv_sys_global_symbol_pipe=
14673 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14674 lt_cv_sys_global_symbol_to_cdecl=
14676 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14678 $as_echo "failed
" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14681 $as_echo "ok
" >&6; }
14705 # Check whether --enable-libtool-lock was given.
14706 if test "${enable_libtool_lock+set}" = set; then :
14707 enableval=$enable_libtool_lock;
14710 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14712 # Some flags need to be propagated to the compiler or linker for good
14716 # Find out which ABI we are using.
14717 echo 'int i;' > conftest.$ac_ext
14718 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14719 (eval $ac_compile) 2>&5
14721 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14722 test $ac_status = 0; }; then
14723 case `/usr/bin/file conftest.$ac_objext` in
14725 HPUX_IA64_MODE="32"
14728 HPUX_IA64_MODE="64"
14735 # Find out which ABI we are using.
14736 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14737 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14738 (eval $ac_compile) 2>&5
14740 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14741 test $ac_status = 0; }; then
14742 if test "$lt_cv_prog_gnu_ld" = yes; then
14743 case `/usr/bin/file conftest.$ac_objext` in
14745 LD="${LD-ld} -melf32bsmip"
14748 LD="${LD-ld} -melf32bmipn32"
14751 LD="${LD-ld} -melf64bmip"
14755 case `/usr/bin/file conftest.$ac_objext` in
14771 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14772 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14773 # Find out which ABI we are using.
14774 echo 'int i;' > conftest.$ac_ext
14775 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14776 (eval $ac_compile) 2>&5
14778 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14779 test $ac_status = 0; }; then
14780 case `/usr/bin/file conftest.o` in
14783 x86_64-*kfreebsd*-gnu)
14784 LD="${LD-ld} -m elf_i386_fbsd
"
14787 case `/usr/bin/file conftest.o` in
14789 LD="${LD-ld} -m elf32_x86_64
"
14792 LD="${LD-ld} -m elf_i386
"
14796 powerpc64le-*linux*)
14797 LD="${LD-ld} -m elf32lppclinux
"
14800 LD="${LD-ld} -m elf32ppclinux
"
14803 LD="${LD-ld} -m elf_s390
"
14806 LD="${LD-ld} -m elf32_sparc
"
14812 x86_64-*kfreebsd*-gnu)
14813 LD="${LD-ld} -m elf_x86_64_fbsd
"
14816 LD="${LD-ld} -m elf_x86_64
"
14819 LD="${LD-ld} -m elf64lppc
"
14822 LD="${LD-ld} -m elf64ppc
"
14824 s390*-*linux*|s390*-*tpf*)
14825 LD="${LD-ld} -m elf64_s390
"
14828 LD="${LD-ld} -m elf64_sparc
"
14838 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14839 SAVE_CFLAGS="$CFLAGS"
14840 CFLAGS="$CFLAGS -belf"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14842 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14843 if ${lt_cv_cc_needs_belf+:} false; then :
14844 $as_echo_n "(cached
) " >&6
14847 ac_cpp='$CPP $CPPFLAGS'
14848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14863 if ac_fn_c_try_link "$LINENO"; then :
14864 lt_cv_cc_needs_belf=yes
14866 lt_cv_cc_needs_belf=no
14868 rm -f core conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14871 ac_cpp='$CPP $CPPFLAGS'
14872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14878 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14881 CFLAGS="$SAVE_CFLAGS"
14885 # Find out which ABI we are using.
14886 echo 'int i;' > conftest.$ac_ext
14887 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14888 (eval $ac_compile) 2>&5
14890 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14891 test $ac_status = 0; }; then
14892 case `/usr/bin/file conftest.o` in
14894 case $lt_cv_prog_gnu_ld in
14895 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14909 need_locks="$enable_libtool_lock"
14913 rhapsody* | darwin*)
14914 if test -n "$ac_tool_prefix"; then
14915 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14916 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14918 $as_echo_n "checking
for $ac_word...
" >&6; }
14919 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14920 $as_echo_n "(cached
) " >&6
14922 if test -n "$DSYMUTIL"; then
14923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14929 test -z "$as_dir" && as_dir=.
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14942 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14943 if test -n "$DSYMUTIL"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14945 $as_echo "$DSYMUTIL" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14948 $as_echo "no
" >&6; }
14953 if test -z "$ac_cv_prog_DSYMUTIL"; then
14954 ac_ct_DSYMUTIL=$DSYMUTIL
14955 # Extract the first word of "dsymutil
", so it can be a program name with args.
14956 set dummy dsymutil; ac_word=$2
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14958 $as_echo_n "checking
for $ac_word...
" >&6; }
14959 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14960 $as_echo_n "(cached
) " >&6
14962 if test -n "$ac_ct_DSYMUTIL"; then
14963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $PATH
14969 test -z "$as_dir" && as_dir=.
14970 for ac_exec_ext in '' $ac_executable_extensions; do
14971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14983 if test -n "$ac_ct_DSYMUTIL"; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14985 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14988 $as_echo "no
" >&6; }
14991 if test "x
$ac_ct_DSYMUTIL" = x; then
14994 case $cross_compiling:$ac_tool_warned in
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14998 ac_tool_warned=yes ;;
15000 DSYMUTIL=$ac_ct_DSYMUTIL
15003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15006 if test -n "$ac_tool_prefix"; then
15007 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15008 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15010 $as_echo_n "checking
for $ac_word...
" >&6; }
15011 if ${ac_cv_prog_NMEDIT+:} false; then :
15012 $as_echo_n "(cached
) " >&6
15014 if test -n "$NMEDIT"; then
15015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15034 NMEDIT=$ac_cv_prog_NMEDIT
15035 if test -n "$NMEDIT"; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15037 $as_echo "$NMEDIT" >&6; }
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15040 $as_echo "no
" >&6; }
15045 if test -z "$ac_cv_prog_NMEDIT"; then
15046 ac_ct_NMEDIT=$NMEDIT
15047 # Extract the first word of "nmedit
", so it can be a program name with args.
15048 set dummy nmedit; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15050 $as_echo_n "checking
for $ac_word...
" >&6; }
15051 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15052 $as_echo_n "(cached
) " >&6
15054 if test -n "$ac_ct_NMEDIT"; then
15055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15061 test -z "$as_dir" && as_dir=.
15062 for ac_exec_ext in '' $ac_executable_extensions; do
15063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15075 if test -n "$ac_ct_NMEDIT"; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15077 $as_echo "$ac_ct_NMEDIT" >&6; }
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15080 $as_echo "no
" >&6; }
15083 if test "x
$ac_ct_NMEDIT" = x; then
15086 case $cross_compiling:$ac_tool_warned in
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15089 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15090 ac_tool_warned=yes ;;
15092 NMEDIT=$ac_ct_NMEDIT
15095 NMEDIT="$ac_cv_prog_NMEDIT"
15098 if test -n "$ac_tool_prefix"; then
15099 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15100 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15102 $as_echo_n "checking
for $ac_word...
" >&6; }
15103 if ${ac_cv_prog_LIPO+:} false; then :
15104 $as_echo_n "(cached
) " >&6
15106 if test -n "$LIPO"; then
15107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15110 for as_dir in $PATH
15113 test -z "$as_dir" && as_dir=.
15114 for ac_exec_ext in '' $ac_executable_extensions; do
15115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15126 LIPO=$ac_cv_prog_LIPO
15127 if test -n "$LIPO"; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15129 $as_echo "$LIPO" >&6; }
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15132 $as_echo "no
" >&6; }
15137 if test -z "$ac_cv_prog_LIPO"; then
15139 # Extract the first word of "lipo
", so it can be a program name with args.
15140 set dummy lipo; ac_word=$2
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15142 $as_echo_n "checking
for $ac_word...
" >&6; }
15143 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15144 $as_echo_n "(cached
) " >&6
15146 if test -n "$ac_ct_LIPO"; then
15147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15153 test -z "$as_dir" && as_dir=.
15154 for ac_exec_ext in '' $ac_executable_extensions; do
15155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156 ac_cv_prog_ac_ct_LIPO="lipo
"
15157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15167 if test -n "$ac_ct_LIPO"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15169 $as_echo "$ac_ct_LIPO" >&6; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15172 $as_echo "no
" >&6; }
15175 if test "x
$ac_ct_LIPO" = x; then
15178 case $cross_compiling:$ac_tool_warned in
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15182 ac_tool_warned=yes ;;
15187 LIPO="$ac_cv_prog_LIPO"
15190 if test -n "$ac_tool_prefix"; then
15191 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15192 set dummy ${ac_tool_prefix}otool; ac_word=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15194 $as_echo_n "checking
for $ac_word...
" >&6; }
15195 if ${ac_cv_prog_OTOOL+:} false; then :
15196 $as_echo_n "(cached
) " >&6
15198 if test -n "$OTOOL"; then
15199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15218 OTOOL=$ac_cv_prog_OTOOL
15219 if test -n "$OTOOL"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15221 $as_echo "$OTOOL" >&6; }
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15224 $as_echo "no
" >&6; }
15229 if test -z "$ac_cv_prog_OTOOL"; then
15231 # Extract the first word of "otool
", so it can be a program name with args.
15232 set dummy otool; ac_word=$2
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15234 $as_echo_n "checking
for $ac_word...
" >&6; }
15235 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15236 $as_echo_n "(cached
) " >&6
15238 if test -n "$ac_ct_OTOOL"; then
15239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15245 test -z "$as_dir" && as_dir=.
15246 for ac_exec_ext in '' $ac_executable_extensions; do
15247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248 ac_cv_prog_ac_ct_OTOOL="otool
"
15249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15259 if test -n "$ac_ct_OTOOL"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15261 $as_echo "$ac_ct_OTOOL" >&6; }
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15264 $as_echo "no
" >&6; }
15267 if test "x
$ac_ct_OTOOL" = x; then
15270 case $cross_compiling:$ac_tool_warned in
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15273 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15274 ac_tool_warned=yes ;;
15279 OTOOL="$ac_cv_prog_OTOOL"
15282 if test -n "$ac_tool_prefix"; then
15283 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15284 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15286 $as_echo_n "checking
for $ac_word...
" >&6; }
15287 if ${ac_cv_prog_OTOOL64+:} false; then :
15288 $as_echo_n "(cached
) " >&6
15290 if test -n "$OTOOL64"; then
15291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15310 OTOOL64=$ac_cv_prog_OTOOL64
15311 if test -n "$OTOOL64"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15313 $as_echo "$OTOOL64" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15316 $as_echo "no
" >&6; }
15321 if test -z "$ac_cv_prog_OTOOL64"; then
15322 ac_ct_OTOOL64=$OTOOL64
15323 # Extract the first word of "otool64
", so it can be a program name with args.
15324 set dummy otool64; ac_word=$2
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15326 $as_echo_n "checking
for $ac_word...
" >&6; }
15327 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15328 $as_echo_n "(cached
) " >&6
15330 if test -n "$ac_ct_OTOOL64"; then
15331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15334 for as_dir in $PATH
15337 test -z "$as_dir" && as_dir=.
15338 for ac_exec_ext in '' $ac_executable_extensions; do
15339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15340 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15351 if test -n "$ac_ct_OTOOL64"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15353 $as_echo "$ac_ct_OTOOL64" >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15356 $as_echo "no
" >&6; }
15359 if test "x
$ac_ct_OTOOL64" = x; then
15362 case $cross_compiling:$ac_tool_warned in
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15365 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15366 ac_tool_warned=yes ;;
15368 OTOOL64=$ac_ct_OTOOL64
15371 OTOOL64="$ac_cv_prog_OTOOL64"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15401 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15402 if ${lt_cv_apple_cc_single_mod+:} false; then :
15403 $as_echo_n "(cached
) " >&6
15405 lt_cv_apple_cc_single_mod=no
15406 if test -z "${LT_MULTI_MODULE}"; then
15407 # By default we will add the -single_module flag. You can override
15408 # by either setting the environment variable LT_MULTI_MODULE
15409 # non-empty at configure time, or by adding -multi_module to the
15411 rm -rf libconftest.dylib*
15412 echo "int foo
(void
){return 1;}" > conftest.c
15413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15414 -dynamiclib -Wl,-single_module conftest.c
" >&5
15415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15419 lt_cv_apple_cc_single_mod=yes
15421 cat conftest.err >&5
15423 rm -rf libconftest.dylib*
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15430 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15431 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15432 $as_echo_n "(cached
) " >&6
15434 lt_cv_ld_exported_symbols_list=no
15435 save_LDFLAGS=$LDFLAGS
15436 echo "_main
" > conftest.sym
15437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 lt_cv_ld_exported_symbols_list=yes
15452 lt_cv_ld_exported_symbols_list=no
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LDFLAGS="$save_LDFLAGS"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15460 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15462 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15463 if ${lt_cv_ld_force_load+:} false; then :
15464 $as_echo_n "(cached
) " >&6
15466 lt_cv_ld_force_load=no
15467 cat > conftest.c << _LT_EOF
15468 int forced_loaded() { return 2;}
15470 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15471 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15472 echo "$AR cru libconftest.a conftest.o
" >&5
15473 $AR cru libconftest.a conftest.o 2>&5
15474 cat > conftest.c << _LT_EOF
15475 int main() { return 0;}
15477 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15478 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15480 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15481 lt_cv_ld_force_load=yes
15483 cat conftest.err >&5
15485 rm -f conftest.err libconftest.a conftest conftest.c
15486 rm -rf conftest.dSYM
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15490 $as_echo "$lt_cv_ld_force_load" >&6; }
15492 rhapsody* | darwin1.[012])
15493 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15496 darwin*) # darwin 5.x on
15497 # if running on 10.5 or later, the deployment target defaults
15498 # to the OS version, if on x86, and 10.4, the deployment
15499 # target defaults to 10.4. Don't you love it?
15500 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15501 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15502 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15510 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15511 _lt_dar_single_mod='$single_module'
15513 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15514 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15516 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15518 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15519 _lt_dsymutil='~$DSYMUTIL $lib || :'
15527 for ac_header in dlfcn.h
15529 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15530 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15531 cat >>confdefs.h <<_ACEOF
15532 #define HAVE_DLFCN_H 1
15549 enable_win32_dll=no
15552 # Check whether --enable-shared was given.
15553 if test "${enable_shared+set}" = set; then :
15554 enableval=$enable_shared; p=${PACKAGE-default}
15556 yes) enable_shared=yes ;;
15557 no) enable_shared=no ;;
15560 # Look at the argument we got. We use all the common list separators.
15561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15562 for pkg in $enableval; do
15564 if test "X
$pkg" = "X
$p"; then
15583 # Check whether --enable-static was given.
15584 if test "${enable_static+set}" = set; then :
15585 enableval=$enable_static; p=${PACKAGE-default}
15587 yes) enable_static=yes ;;
15588 no) enable_static=no ;;
15591 # Look at the argument we got. We use all the common list separators.
15592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15593 for pkg in $enableval; do
15595 if test "X
$pkg" = "X
$p"; then
15615 # Check whether --with-pic was given.
15616 if test "${with_pic+set}" = set; then :
15617 withval=$with_pic; pic_mode="$withval"
15623 test -z "$pic_mode" && pic_mode=default
15631 # Check whether --enable-fast-install was given.
15632 if test "${enable_fast_install+set}" = set; then :
15633 enableval=$enable_fast_install; p=${PACKAGE-default}
15635 yes) enable_fast_install=yes ;;
15636 no) enable_fast_install=no ;;
15638 enable_fast_install=no
15639 # Look at the argument we got. We use all the common list separators.
15640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15641 for pkg in $enableval; do
15643 if test "X
$pkg" = "X
$p"; then
15644 enable_fast_install=yes
15651 enable_fast_install=yes
15664 # This can be used to rebuild libtool when needed
15665 LIBTOOL_DEPS="$ltmain"
15667 # Always use our own libtool.
15668 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15695 test -z "$LN_S" && LN_S="ln -s"
15710 if test -n "${ZSH_VERSION+set}" ; then
15711 setopt NO_GLOB_SUBST
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15715 $as_echo_n "checking
for objdir...
" >&6; }
15716 if ${lt_cv_objdir+:} false; then :
15717 $as_echo_n "(cached
) " >&6
15719 rm -f .libs 2>/dev/null
15720 mkdir .libs 2>/dev/null
15721 if test -d .libs; then
15724 # MS-DOS does not allow filenames that begin with a dot.
15727 rmdir .libs 2>/dev/null
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15730 $as_echo "$lt_cv_objdir" >&6; }
15731 objdir=$lt_cv_objdir
15737 cat >>confdefs.h <<_ACEOF
15738 #define LT_OBJDIR "$lt_cv_objdir/"
15746 # AIX sometimes has problems with the GCC collect2 program. For some
15747 # reason, if we set the COLLECT_NAMES environment variable, the problems
15748 # vanish in a puff of smoke.
15749 if test "X
${COLLECT_NAMES+set}" != Xset; then
15751 export COLLECT_NAMES
15756 # Global variables:
15758 can_build_shared=yes
15760 # All known linkers require a `.a' archive for static linking (except MSVC,
15761 # which needs '.lib').
15764 with_gnu_ld="$lt_cv_prog_gnu_ld"
15767 old_CFLAGS="$CFLAGS"
15769 # Set sane defaults for various variables
15770 test -z "$CC" && CC=cc
15771 test -z "$LTCC" && LTCC=$CC
15772 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15773 test -z "$LD" && LD=ld
15774 test -z "$ac_objext" && ac_objext=o
15776 for cc_temp in $compiler""; do
15778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15784 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15787 # Only perform the check for file, if the check method requires it
15788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15789 case $deplibs_check_method in
15791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15793 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15794 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15795 $as_echo_n "(cached
) " >&6
15799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15802 lt_save_MAGIC_CMD="$MAGIC_CMD"
15803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15804 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15805 for ac_dir in $ac_dummy; do
15807 test -z "$ac_dir" && ac_dir=.
15808 if test -f $ac_dir/${ac_tool_prefix}file; then
15809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15810 if test -n "$file_magic_test_file"; then
15811 case $deplibs_check_method in
15813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15816 $EGREP "$file_magic_regex" > /dev/null; then
15821 *** Warning: the command libtool uses to detect shared libraries,
15822 *** $file_magic_cmd, produces output that libtool cannot recognize.
15823 *** The result is that libtool may fail to recognize shared libraries
15824 *** as such. This will affect the creation of libtool libraries that
15825 *** depend on shared libraries, but programs linked with such libtool
15826 *** libraries will work regardless of this problem. Nevertheless, you
15827 *** may want to report the problem to your system manager and/or to
15828 *** bug-libtool@gnu.org
15838 MAGIC_CMD="$lt_save_MAGIC_CMD"
15843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15844 if test -n "$MAGIC_CMD"; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15846 $as_echo "$MAGIC_CMD" >&6; }
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15849 $as_echo "no
" >&6; }
15856 if test -z "$lt_cv_path_MAGIC_CMD"; then
15857 if test -n "$ac_tool_prefix"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15859 $as_echo_n "checking
for file...
" >&6; }
15860 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15861 $as_echo_n "(cached
) " >&6
15865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15868 lt_save_MAGIC_CMD="$MAGIC_CMD"
15869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15870 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15871 for ac_dir in $ac_dummy; do
15873 test -z "$ac_dir" && ac_dir=.
15874 if test -f $ac_dir/file; then
15875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15876 if test -n "$file_magic_test_file"; then
15877 case $deplibs_check_method in
15879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15882 $EGREP "$file_magic_regex" > /dev/null; then
15887 *** Warning: the command libtool uses to detect shared libraries,
15888 *** $file_magic_cmd, produces output that libtool cannot recognize.
15889 *** The result is that libtool may fail to recognize shared libraries
15890 *** as such. This will affect the creation of libtool libraries that
15891 *** depend on shared libraries, but programs linked with such libtool
15892 *** libraries will work regardless of this problem. Nevertheless, you
15893 *** may want to report the problem to your system manager and/or to
15894 *** bug-libtool@gnu.org
15904 MAGIC_CMD="$lt_save_MAGIC_CMD"
15909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15910 if test -n "$MAGIC_CMD"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15912 $as_echo "$MAGIC_CMD" >&6; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15915 $as_echo "no
" >&6; }
15928 # Use C for the default configuration in the libtool script
15932 ac_cpp='$CPP $CPPFLAGS'
15933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15938 # Source file extension for C test sources.
15941 # Object file extension for compiled C test sources.
15945 # Code to be used in simple compile tests
15946 lt_simple_compile_test_code="int some_variable
= 0;"
15948 # Code to be used in simple link tests
15949 lt_simple_link_test_code='int main(){return(0);}'
15957 # If no C compiler was specified, use CC.
15960 # If no C compiler flags were specified, use CFLAGS.
15961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15963 # Allow CC to be a program name with arguments.
15966 # Save the default compiler, since it gets overwritten when the other
15967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15968 compiler_DEFAULT=$CC
15970 # save warnings/boilerplate of simple test code
15971 ac_outfile=conftest.$ac_objext
15972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15974 _lt_compiler_boilerplate=`cat conftest.err`
15977 ac_outfile=conftest.$ac_objext
15978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15980 _lt_linker_boilerplate=`cat conftest.err`
15985 ## There is no encapsulation within the following macros, do not change
15986 ## the running order or otherwise move them around unless you know exactly
15987 ## what you are doing...
15988 if test -n "$compiler"; then
15990 lt_prog_compiler_no_builtin_flag=
15992 if test "$GCC" = yes; then
15993 case $cc_basename in
15995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16001 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16002 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16003 $as_echo_n "(cached
) " >&6
16005 lt_cv_prog_compiler_rtti_exceptions=no
16006 ac_outfile=conftest.$ac_objext
16007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16008 lt_compiler_flag="-fno-rtti -fno-exceptions"
16009 # Insert the option either (1) after the last *FLAGS variable, or
16010 # (2) before a word containing "conftest.
", or (3) at the end.
16011 # Note that $ac_compile itself does not contain backslashes and begins
16012 # with a dollar sign (not a hyphen), so the echo should work correctly.
16013 # The option is referenced via a variable to avoid confusing sed.
16014 lt_compile=`echo "$ac_compile" | $SED \
16015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16017 -e 's:$: $lt_compiler_flag:'`
16018 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16019 (eval "$lt_compile" 2>conftest.err)
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16023 if (exit $ac_status) && test -s "$ac_outfile"; then
16024 # The compiler can only warn and ignore the option if not recognized
16025 # So say no if there are warnings other than the usual output.
16026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16029 lt_cv_prog_compiler_rtti_exceptions=yes
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16036 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16038 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16051 lt_prog_compiler_wl=
16052 lt_prog_compiler_pic=
16053 lt_prog_compiler_static=
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16056 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16058 if test "$GCC" = yes; then
16059 lt_prog_compiler_wl='-Wl,'
16060 lt_prog_compiler_static='-static'
16064 # All AIX code is PIC.
16065 if test "$host_cpu" = ia64; then
16066 # AIX 5 now supports IA64 processor
16067 lt_prog_compiler_static='-Bstatic'
16069 lt_prog_compiler_pic='-fPIC'
16075 # see comment about AmigaOS4 .so support
16076 lt_prog_compiler_pic='-fPIC'
16079 # FIXME: we need at least 68020 code to build shared libraries, but
16080 # adding the `-m68020' flag to GCC prevents building anything better,
16082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088 # PIC is the default for these OSes.
16091 mingw* | cygwin* | pw32* | os2* | cegcc*)
16092 # This hack is so that the source file can tell whether it is being
16093 # built for inclusion in a dll (and should export symbols for example).
16094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16095 # (--disable-auto-import) libraries
16096 lt_prog_compiler_pic='-DDLL_EXPORT'
16099 darwin* | rhapsody*)
16100 # PIC is the default on this platform
16101 # Common symbols not allowed in MH_DYLIB files
16102 lt_prog_compiler_pic='-fno-common'
16106 # PIC is the default for Haiku.
16107 # The "-static" flag exists, but is broken.
16108 lt_prog_compiler_static=
16112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16114 # sets the default TLS model and affects inlining.
16120 lt_prog_compiler_pic='-fPIC'
16126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16127 # Instead, we relocate shared libraries at runtime.
16131 # Just because we use GCC doesn't mean we suddenly get shared libraries
16132 # on systems that don't support them.
16133 lt_prog_compiler_can_build_shared=no
16138 # QNX uses GNU C++, but need to define -shared option too, otherwise
16139 # it will coredump.
16140 lt_prog_compiler_pic='-fPIC -shared'
16144 if test -d /usr/nec; then
16145 lt_prog_compiler_pic=-Kconform_pic
16150 lt_prog_compiler_pic='-fPIC'
16154 case $cc_basename in
16155 nvcc*) # Cuda Compiler Driver 2.2
16156 lt_prog_compiler_wl='-Xlinker '
16157 lt_prog_compiler_pic='-Xcompiler -fPIC'
16161 # PORTME Check for flag to pass linker flags through the system compiler.
16164 lt_prog_compiler_wl='-Wl,'
16165 if test "$host_cpu" = ia64; then
16166 # AIX 5 now supports IA64 processor
16167 lt_prog_compiler_static='-Bstatic'
16169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16173 mingw* | cygwin* | pw32* | os2* | cegcc*)
16174 # This hack is so that the source file can tell whether it is being
16175 # built for inclusion in a dll (and should export symbols for example).
16176 lt_prog_compiler_pic='-DDLL_EXPORT'
16179 hpux9* | hpux10* | hpux11*)
16180 lt_prog_compiler_wl='-Wl,'
16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16182 # not for PA HP-UX.
16188 lt_prog_compiler_pic='+Z'
16191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16192 lt_prog_compiler_static='${wl}-a ${wl}archive'
16195 irix5* | irix6* | nonstopux*)
16196 lt_prog_compiler_wl='-Wl,'
16197 # PIC (with -KPIC) is the default.
16198 lt_prog_compiler_static='-non_shared'
16201 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16202 case $cc_basename in
16203 # old Intel for x86_64 which still supported -KPIC.
16205 lt_prog_compiler_wl='-Wl,'
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-static'
16209 # icc used to be incompatible with GCC.
16210 # ICC 10 doesn't accept -KPIC any more.
16212 lt_prog_compiler_wl='-Wl,'
16213 lt_prog_compiler_pic='-fPIC'
16214 lt_prog_compiler_static='-static'
16216 # Lahey Fortran 8.1.
16218 lt_prog_compiler_wl='-Wl,'
16219 lt_prog_compiler_pic='--shared'
16220 lt_prog_compiler_static='--static'
16222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16223 # Portland Group compilers (*not* the Pentium gcc compiler,
16224 # which looks to be a dead project)
16225 lt_prog_compiler_wl='-Wl,'
16226 lt_prog_compiler_pic='-fpic'
16227 lt_prog_compiler_static='-Bstatic'
16230 lt_prog_compiler_wl='-Wl,'
16231 # All Alpha code is PIC.
16232 lt_prog_compiler_static='-non_shared'
16234 xl* | bgxl* | bgf* | mpixl*)
16235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16236 lt_prog_compiler_wl='-Wl,'
16237 lt_prog_compiler_pic='-qpic'
16238 lt_prog_compiler_static='-qstaticlink'
16241 case `$CC -V 2>&1 | sed 5q` in
16242 *Sun\ F* | *Sun*Fortran*)
16243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16244 lt_prog_compiler_pic='-KPIC'
16245 lt_prog_compiler_static='-Bstatic'
16246 lt_prog_compiler_wl=''
16250 lt_prog_compiler_pic='-KPIC'
16251 lt_prog_compiler_static='-Bstatic'
16252 lt_prog_compiler_wl='-Wl,'
16260 lt_prog_compiler_pic='-KPIC'
16261 lt_prog_compiler_static='-Bstatic'
16265 # QNX uses GNU C++, but need to define -shared option too, otherwise
16266 # it will coredump.
16267 lt_prog_compiler_pic='-fPIC -shared'
16270 osf3* | osf4* | osf5*)
16271 lt_prog_compiler_wl='-Wl,'
16272 # All OSF/1 code is PIC.
16273 lt_prog_compiler_static='-non_shared'
16277 lt_prog_compiler_static='-non_shared'
16281 lt_prog_compiler_pic='-KPIC'
16282 lt_prog_compiler_static='-Bstatic'
16283 case $cc_basename in
16284 f77* | f90* | f95*)
16285 lt_prog_compiler_wl='-Qoption ld ';;
16287 lt_prog_compiler_wl='-Wl,';;
16292 lt_prog_compiler_wl='-Qoption ld '
16293 lt_prog_compiler_pic='-PIC'
16294 lt_prog_compiler_static='-Bstatic'
16297 sysv4 | sysv4.2uw2* | sysv4.3*)
16298 lt_prog_compiler_wl='-Wl,'
16299 lt_prog_compiler_pic='-KPIC'
16300 lt_prog_compiler_static='-Bstatic'
16304 if test -d /usr/nec ;then
16305 lt_prog_compiler_pic='-Kconform_pic'
16306 lt_prog_compiler_static='-Bstatic'
16310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16311 lt_prog_compiler_wl='-Wl,'
16312 lt_prog_compiler_pic='-KPIC'
16313 lt_prog_compiler_static='-Bstatic'
16317 lt_prog_compiler_wl='-Wl,'
16318 lt_prog_compiler_can_build_shared=no
16322 lt_prog_compiler_pic='-pic'
16323 lt_prog_compiler_static='-Bstatic'
16327 lt_prog_compiler_can_build_shared=no
16333 # For platforms which do not support PIC, -DPIC is meaningless:
16335 lt_prog_compiler_pic=
16338 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16342 $as_echo "$lt_prog_compiler_pic" >&6; }
16350 # Check to make sure the PIC flag actually works.
16352 if test -n "$lt_prog_compiler_pic"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16354 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16355 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16356 $as_echo_n "(cached
) " >&6
16358 lt_cv_prog_compiler_pic_works=no
16359 ac_outfile=conftest.$ac_objext
16360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16362 # Insert the option either (1) after the last *FLAGS variable, or
16363 # (2) before a word containing "conftest.
", or (3) at the end.
16364 # Note that $ac_compile itself does not contain backslashes and begins
16365 # with a dollar sign (not a hyphen), so the echo should work correctly.
16366 # The option is referenced via a variable to avoid confusing sed.
16367 lt_compile=`echo "$ac_compile" | $SED \
16368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16370 -e 's:$: $lt_compiler_flag:'`
16371 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16372 (eval "$lt_compile" 2>conftest.err)
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16376 if (exit $ac_status) && test -s "$ac_outfile"; then
16377 # The compiler can only warn and ignore the option if not recognized
16378 # So say no if there are warnings other than the usual output.
16379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16382 lt_cv_prog_compiler_pic_works=yes
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16389 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16391 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16392 case $lt_prog_compiler_pic in
16394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16397 lt_prog_compiler_pic=
16398 lt_prog_compiler_can_build_shared=no
16409 # Check to make sure the static flag actually works.
16411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16413 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16414 if ${lt_cv_prog_compiler_static_works+:} false; then :
16415 $as_echo_n "(cached
) " >&6
16417 lt_cv_prog_compiler_static_works=no
16418 save_LDFLAGS="$LDFLAGS"
16419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16422 # The linker can only warn and ignore the option if not recognized
16423 # So say no if there are warnings
16424 if test -s conftest.err; then
16425 # Append any errors to the config.log.
16426 cat conftest.err 1>&5
16427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429 if diff conftest.exp conftest.er2 >/dev/null; then
16430 lt_cv_prog_compiler_static_works=yes
16433 lt_cv_prog_compiler_static_works=yes
16437 LDFLAGS="$save_LDFLAGS"
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16441 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16443 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16446 lt_prog_compiler_static=
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16456 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16457 if ${lt_cv_prog_compiler_c_o+:} false; then :
16458 $as_echo_n "(cached
) " >&6
16460 lt_cv_prog_compiler_c_o=no
16461 $RM -r conftest 2>/dev/null
16465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16467 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16468 # Insert the option either (1) after the last *FLAGS variable, or
16469 # (2) before a word containing "conftest.
", or (3) at the end.
16470 # Note that $ac_compile itself does not contain backslashes and begins
16471 # with a dollar sign (not a hyphen), so the echo should work correctly.
16472 lt_compile=`echo "$ac_compile" | $SED \
16473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16475 -e 's:$: $lt_compiler_flag:'`
16476 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16477 (eval "$lt_compile" 2>out/conftest.err)
16479 cat out/conftest.err >&5
16480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16483 # The compiler can only warn and ignore the option if not recognized
16484 # So say no if there are warnings
16485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16488 lt_cv_prog_compiler_c_o=yes
16493 # SGI C++ compiler will create directory out/ii_files/ for
16494 # template instantiation
16495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16496 $RM out/* && rmdir out
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16511 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16512 if ${lt_cv_prog_compiler_c_o+:} false; then :
16513 $as_echo_n "(cached
) " >&6
16515 lt_cv_prog_compiler_c_o=no
16516 $RM -r conftest 2>/dev/null
16520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16522 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16523 # Insert the option either (1) after the last *FLAGS variable, or
16524 # (2) before a word containing "conftest.
", or (3) at the end.
16525 # Note that $ac_compile itself does not contain backslashes and begins
16526 # with a dollar sign (not a hyphen), so the echo should work correctly.
16527 lt_compile=`echo "$ac_compile" | $SED \
16528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16530 -e 's:$: $lt_compiler_flag:'`
16531 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16532 (eval "$lt_compile" 2>out/conftest.err)
16534 cat out/conftest.err >&5
16535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16538 # The compiler can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16543 lt_cv_prog_compiler_c_o=yes
16548 # SGI C++ compiler will create directory out/ii_files/ for
16549 # template instantiation
16550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16551 $RM out/* && rmdir out
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16563 hard_links="nottested
"
16564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16565 # do not overwrite the value of need_locks provided by the user
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16567 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16572 ln conftest.a conftest.b 2>&5 || hard_links=no
16573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16575 $as_echo "$hard_links" >&6; }
16576 if test "$hard_links" = no; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16578 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16591 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16594 allow_undefined_flag=
16595 always_export_symbols=no
16597 archive_expsym_cmds=
16598 compiler_needs_object=no
16599 enable_shared_with_static_runtimes=no
16600 export_dynamic_flag_spec=
16601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16602 hardcode_automatic=no
16604 hardcode_direct_absolute=no
16605 hardcode_libdir_flag_spec=
16606 hardcode_libdir_flag_spec_ld=
16607 hardcode_libdir_separator=
16608 hardcode_minus_L=no
16609 hardcode_shlibpath_var=unsupported
16611 link_all_deplibs=unknown
16613 module_expsym_cmds=
16614 old_archive_from_new_cmds=
16615 old_archive_from_expsyms_cmds=
16616 thread_safe_flag_spec=
16617 whole_archive_flag_spec=
16618 # include_expsyms should be a list of space-separated symbols to be *always*
16619 # included in the symbol list
16621 # exclude_expsyms can be an extended regexp of symbols to exclude
16622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16624 # as well as any symbol that contains `d'.
16625 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16627 # platforms (ab)use it in PIC code, but their linkers get confused if
16628 # the symbol is explicitly referenced. Since portable code cannot
16629 # rely on this symbol name, it's probably fine to never include it in
16630 # preloaded symbol tables.
16631 # Exclude shared library initialization/finalization symbols.
16632 extract_expsyms_cmds=
16635 cygwin* | mingw* | pw32* | cegcc*)
16636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16637 # When not using gcc, we currently assume that we are using
16638 # Microsoft Visual C++.
16639 if test "$GCC" != yes; then
16644 # we just hope/assume this is gcc and not c89 (= MSVC++)
16654 # On some targets, GNU ld is compatible enough with the native linker
16655 # that we're better off using the native interface for both.
16656 lt_use_gnu_ld_interface=no
16657 if test "$with_gnu_ld" = yes; then
16660 # The AIX port of GNU ld has always aspired to compatibility
16661 # with the native linker. However, as the warning in the GNU ld
16662 # block says, versions before 2.19.5* couldn't really create working
16663 # shared libraries, regardless of the interface used.
16664 case `$LD -v 2>&1` in
16665 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16666 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16667 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16669 lt_use_gnu_ld_interface=yes
16674 lt_use_gnu_ld_interface=yes
16679 if test "$lt_use_gnu_ld_interface" = yes; then
16680 # If archive_cmds runs LD, not CC, wlarc should be empty
16683 # Set some defaults for GNU ld with shared library support. These
16684 # are reset later if shared libraries are not supported. Putting them
16685 # here allows them to be overridden if necessary.
16686 runpath_var=LD_RUN_PATH
16687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16688 export_dynamic_flag_spec='${wl}--export-dynamic'
16689 # ancient GNU ld didn't support --whole-archive et. al.
16690 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16691 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16693 whole_archive_flag_spec=
16695 supports_anon_versioning=no
16696 case `$LD -v 2>&1` in
16697 *GNU\ gold*) supports_anon_versioning=yes ;;
16698 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16699 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16700 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16701 *\ 2.11.*) ;; # other 2.11 versions
16702 *) supports_anon_versioning=yes ;;
16705 # See if GNU ld supports shared libraries.
16708 # On AIX/PPC, the GNU linker is very broken
16709 if test "$host_cpu" != ia64; then
16713 *** Warning: the GNU linker, at least up to release 2.19, is reported
16714 *** to be unable to reliably create shared libraries on AIX.
16715 *** Therefore, libtool is disabling shared libraries support. If you
16716 *** really care for shared libraries, you may want to install binutils
16717 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16718 *** You will then need to restart the configuration process.
16727 # see comment about AmigaOS4 .so support
16728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 archive_expsym_cmds=''
16732 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16733 hardcode_libdir_flag_spec
='-L$libdir'
16734 hardcode_minus_L
=yes
16740 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16741 allow_undefined_flag
=unsupported
16742 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16743 # support --undefined. This deserves some investigation. FIXME
16744 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750 cygwin
* | mingw
* | pw32
* | cegcc
*)
16751 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16752 # as there is no search path for DLLs.
16753 hardcode_libdir_flag_spec
='-L$libdir'
16754 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16755 allow_undefined_flag
=unsupported
16756 always_export_symbols
=no
16757 enable_shared_with_static_runtimes
=yes
16758 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16760 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16761 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16762 # If the export-symbols file already is a .def file (1st line
16763 # is EXPORTS), use it as is; otherwise, prepend...
16764 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16765 cp $export_symbols $output_objdir/$soname.def;
16767 echo EXPORTS > $output_objdir/$soname.def;
16768 cat $export_symbols >> $output_objdir/$soname.def;
16770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16777 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16778 link_all_deplibs
=yes
16783 hardcode_shlibpath_var
=no
16784 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16785 export_dynamic_flag_spec
='${wl}-E'
16786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16787 # Instead, shared libraries are loaded at an image base (0x10000000 by
16788 # default) and relocated if they conflict, which is a slow very memory
16789 # consuming and fragmenting process. To avoid this, we pick a random,
16790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16792 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16793 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16796 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16798 if test "$host_os" = linux-dietlibc
; then
16799 case $cc_basename in
16800 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16803 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16804 && test "$tmp_diet" = no
16806 tmp_addflag
=' $pic_flag'
16807 tmp_sharedflag
='-shared'
16808 case $cc_basename,$host_cpu in
16809 pgcc
*) # Portland Group C compiler
16810 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16811 tmp_addflag
=' $pic_flag'
16813 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16814 # Portland Group f77 and f90 compilers
16815 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16816 tmp_addflag
=' $pic_flag -Mnomain' ;;
16817 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16818 tmp_addflag
=' -i_dynamic' ;;
16819 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16820 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16821 ifc
* | ifort
*) # Intel Fortran compiler
16822 tmp_addflag
=' -nofor_main' ;;
16823 lf95
*) # Lahey Fortran 8.1
16824 whole_archive_flag_spec
=
16825 tmp_sharedflag
='--shared' ;;
16826 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16827 tmp_sharedflag
='-qmkshrobj'
16829 nvcc
*) # Cuda Compiler Driver 2.2
16830 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16831 compiler_needs_object
=yes
16834 case `$CC -V 2>&1 | sed 5q` in
16835 *Sun\ C
*) # Sun C 5.9
16836 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16837 compiler_needs_object
=yes
16838 tmp_sharedflag
='-G' ;;
16839 *Sun\ F
*) # Sun Fortran 8.3
16840 tmp_sharedflag
='-G' ;;
16842 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 if test "x$supports_anon_versioning" = xyes
; then
16845 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16847 echo "local: *; };" >> $output_objdir/$libname.ver~
16848 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16851 case $cc_basename in
16852 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16853 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16854 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16855 hardcode_libdir_flag_spec
=
16856 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16857 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16858 if test "x$supports_anon_versioning" = xyes
; then
16859 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16861 echo "local: *; };" >> $output_objdir/$libname.ver~
16862 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16872 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16873 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16876 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16877 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16887 *** create shared libraries on Solaris systems. Therefore, libtool
16888 *** is disabling shared libraries support. We urge you to upgrade GNU
16889 *** binutils to release 2.9.1 or newer. Another option is to modify
16890 *** your PATH or compiler configuration so that the native linker is
16891 *** used, and then restart.
16894 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16895 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16896 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16902 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16903 case `$LD -v 2>&1` in
16904 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16909 *** reliably create shared libraries on SCO systems. Therefore, libtool
16910 *** is disabling shared libraries support. We urge you to upgrade GNU
16911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16912 *** your PATH or compiler configuration so that the native linker is
16913 *** used, and then restart.
16918 # For security reasons, it is highly recommended that you always
16919 # use absolute paths for naming shared libraries, and exclude the
16920 # DT_RUNPATH tag from executables and libraries. But doing so
16921 # requires that you compile everything twice, which is a pain.
16922 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16923 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16924 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16925 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16934 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_direct
=yes
16937 hardcode_shlibpath_var
=no
16941 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16942 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16943 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16950 if test "$ld_shlibs" = no
; then
16952 hardcode_libdir_flag_spec
=
16953 export_dynamic_flag_spec
=
16954 whole_archive_flag_spec
=
16957 # PORTME fill in a description of your system's linker (not GNU ld)
16960 allow_undefined_flag
=unsupported
16961 always_export_symbols
=yes
16962 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16963 # Note: this linker hardcodes the directories in LIBPATH if there
16964 # are no directories specified by -L.
16965 hardcode_minus_L
=yes
16966 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16967 # Neither direct hardcoding nor static linking is supported with a
16969 hardcode_direct
=unsupported
16974 if test "$host_cpu" = ia64
; then
16975 # On IA64, the linker does run time linking by default, so we don't
16976 # have to do anything special.
16977 aix_use_runtimelinking
=no
16978 exp_sym_flag
='-Bexport'
16981 # If we're using GNU nm, then we don't want the "-C" option.
16982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16983 # Also, AIX nm treats weak defined symbols like other global
16984 # defined symbols, whereas GNU nm marks them as "W".
16985 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16986 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16988 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16990 aix_use_runtimelinking
=no
16992 # Test if we are trying to use run time linking or normal
16993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16994 # need to do runtime linking.
16995 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16996 for ld_flag
in $LDFLAGS; do
16997 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16998 aix_use_runtimelinking
=yes
17005 exp_sym_flag
='-bexport'
17006 no_entry_flag
='-bnoentry'
17009 # When large executables or shared objects are built, AIX ld can
17010 # have problems creating the table of contents. If linking a library
17011 # or program results in "error TOC overflow" add -mminimal-toc to
17012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17016 hardcode_direct
=yes
17017 hardcode_direct_absolute
=yes
17018 hardcode_libdir_separator
=':'
17019 link_all_deplibs
=yes
17020 file_list_spec
='${wl}-f,'
17022 if test "$GCC" = yes; then
17023 case $host_os in aix4.
[012]|aix4.
[012].
*)
17024 # We only want to do this on AIX 4.2 and lower, the check
17025 # below for broken collect2 doesn't work under 4.3+
17026 collect2name
=`${CC} -print-prog-name=collect2`
17027 if test -f "$collect2name" &&
17028 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17030 # We have reworked collect2
17033 # We have old collect2
17034 hardcode_direct
=unsupported
17035 # It fails to find uninstalled libraries when the uninstalled
17036 # path is not listed in the libpath. Setting hardcode_minus_L
17037 # to unsupported forces relinking
17038 hardcode_minus_L
=yes
17039 hardcode_libdir_flag_spec
='-L$libdir'
17040 hardcode_libdir_separator
=
17044 shared_flag
='-shared'
17045 if test "$aix_use_runtimelinking" = yes; then
17046 shared_flag
="$shared_flag "'${wl}-G'
17050 if test "$host_cpu" = ia64
; then
17051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17052 # chokes on -Wl,-G. The following line is correct:
17055 if test "$aix_use_runtimelinking" = yes; then
17056 shared_flag
='${wl}-G'
17058 shared_flag
='${wl}-bM:SRE'
17063 export_dynamic_flag_spec
='${wl}-bexpall'
17064 # It seems that -bexpall does not export symbols beginning with
17065 # underscore (_), so it is better to generate a list of symbols to export.
17066 always_export_symbols
=yes
17067 if test "$aix_use_runtimelinking" = yes; then
17068 # Warning - without using the other runtime loading flags (-brtl),
17069 # -berok will link without error, but may produce a broken library.
17070 allow_undefined_flag
='-berok'
17071 # Determine the default libpath from the value encoded in an
17072 # empty executable.
17073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17084 if ac_fn_c_try_link
"$LINENO"; then :
17086 lt_aix_libpath_sed
='
17087 /Import File Strings/,/^$/ {
17093 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17094 # Check for a 64-bit object if we didn't find anything.
17095 if test -z "$aix_libpath"; then
17096 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17099 rm -f core conftest.err conftest.
$ac_objext \
17100 conftest
$ac_exeext conftest.
$ac_ext
17101 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17103 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17104 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17106 if test "$host_cpu" = ia64
; then
17107 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17108 allow_undefined_flag
="-z nodefs"
17109 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17111 # Determine the default libpath from the value encoded in an
17112 # empty executable.
17113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17124 if ac_fn_c_try_link
"$LINENO"; then :
17126 lt_aix_libpath_sed
='
17127 /Import File Strings/,/^$/ {
17133 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17134 # Check for a 64-bit object if we didn't find anything.
17135 if test -z "$aix_libpath"; then
17136 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17139 rm -f core conftest.err conftest.
$ac_objext \
17140 conftest
$ac_exeext conftest.
$ac_ext
17141 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17143 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17144 # Warning - without using the other run time loading flags,
17145 # -berok will link without error, but may produce a broken library.
17146 no_undefined_flag
=' ${wl}-bernotok'
17147 allow_undefined_flag
=' ${wl}-berok'
17148 if test "$with_gnu_ld" = yes; then
17149 # We only use this code for GNU lds that support --whole-archive.
17150 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17152 # Exported symbols can be pulled into shared objects from archives
17153 whole_archive_flag_spec
='$convenience'
17155 archive_cmds_need_lc
=yes
17156 # This is similar to how AIX traditionally builds its shared libraries.
17157 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17165 # see comment about AmigaOS4 .so support
17166 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17167 archive_expsym_cmds
=''
17170 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17171 hardcode_libdir_flag_spec
='-L$libdir'
17172 hardcode_minus_L
=yes
17178 export_dynamic_flag_spec
=-rdynamic
17181 cygwin
* | mingw
* | pw32
* | cegcc
*)
17182 # When not using gcc, we currently assume that we are using
17183 # Microsoft Visual C++.
17184 # hardcode_libdir_flag_spec is actually meaningless, as there is
17185 # no search path for DLLs.
17186 hardcode_libdir_flag_spec
=' '
17187 allow_undefined_flag
=unsupported
17188 # Tell ltmain to make .lib files, not .a files.
17190 # Tell ltmain to make .dll files, not .so files.
17192 # FIXME: Setting linknames here is a bad hack.
17193 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17194 # The linker will automatically build a .lib file if we build a DLL.
17195 old_archive_from_new_cmds
='true'
17196 # FIXME: Should let the user specify the lib program.
17197 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17198 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17199 enable_shared_with_static_runtimes
=yes
17202 darwin
* | rhapsody
*)
17205 archive_cmds_need_lc
=no
17207 hardcode_automatic
=yes
17208 hardcode_shlibpath_var
=unsupported
17209 if test "$lt_cv_ld_force_load" = "yes"; then
17210 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17212 whole_archive_flag_spec
=''
17214 link_all_deplibs
=yes
17215 allow_undefined_flag
="$_lt_dar_allow_undefined"
17216 case $cc_basename in
17217 ifort
*) _lt_dar_can_shared
=yes ;;
17218 *) _lt_dar_can_shared
=$GCC ;;
17220 if test "$_lt_dar_can_shared" = "yes"; then
17221 output_verbose_link_cmd
=func_echo_all
17222 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17223 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17224 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17225 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17234 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec
='-L$libdir'
17236 hardcode_shlibpath_var
=no
17239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17240 # support. Future versions do this automatically, but an explicit c++rt0.o
17241 # does not break anything, and helps significantly (at the cost of a little
17244 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17245 hardcode_libdir_flag_spec
='-R$libdir'
17246 hardcode_direct
=yes
17247 hardcode_shlibpath_var
=no
17250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17252 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17253 hardcode_direct
=yes
17254 hardcode_minus_L
=yes
17255 hardcode_shlibpath_var
=no
17258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17259 freebsd
* | dragonfly
*)
17260 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17261 hardcode_libdir_flag_spec
='-R$libdir'
17262 hardcode_direct
=yes
17263 hardcode_shlibpath_var
=no
17267 if test "$GCC" = yes; then
17268 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17270 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17272 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17273 hardcode_libdir_separator
=:
17274 hardcode_direct
=yes
17276 # hardcode_minus_L: Not really in the search PATH,
17277 # but as the default location of the library.
17278 hardcode_minus_L
=yes
17279 export_dynamic_flag_spec
='${wl}-E'
17283 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17284 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17286 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17288 if test "$with_gnu_ld" = no
; then
17289 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17290 hardcode_libdir_flag_spec_ld
='+b $libdir'
17291 hardcode_libdir_separator
=:
17292 hardcode_direct
=yes
17293 hardcode_direct_absolute
=yes
17294 export_dynamic_flag_spec
='${wl}-E'
17295 # hardcode_minus_L: Not really in the search PATH,
17296 # but as the default location of the library.
17297 hardcode_minus_L
=yes
17302 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17305 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17308 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17311 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17317 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17324 # Older versions of the 11.00 compiler do not understand -b yet
17325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17327 $as_echo_n "checking if $CC understands -b... " >&6; }
17328 if ${lt_cv_prog_compiler__b+:} false
; then :
17329 $as_echo_n "(cached) " >&6
17331 lt_cv_prog_compiler__b
=no
17332 save_LDFLAGS
="$LDFLAGS"
17333 LDFLAGS
="$LDFLAGS -b"
17334 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17335 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17336 # The linker can only warn and ignore the option if not recognized
17337 # So say no if there are warnings
17338 if test -s conftest.err
; then
17339 # Append any errors to the config.log.
17340 cat conftest.err
1>&5
17341 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17342 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17343 if diff conftest.exp conftest.er2
>/dev
/null
; then
17344 lt_cv_prog_compiler__b
=yes
17347 lt_cv_prog_compiler__b
=yes
17351 LDFLAGS
="$save_LDFLAGS"
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17355 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17357 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17358 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17360 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17366 if test "$with_gnu_ld" = no
; then
17367 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17368 hardcode_libdir_separator
=:
17373 hardcode_shlibpath_var
=no
17376 hardcode_direct
=yes
17377 hardcode_direct_absolute
=yes
17378 export_dynamic_flag_spec
='${wl}-E'
17380 # hardcode_minus_L: Not really in the search PATH,
17381 # but as the default location of the library.
17382 hardcode_minus_L
=yes
17388 irix5
* | irix6
* | nonstopux
*)
17389 if test "$GCC" = yes; then
17390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17391 # Try to use the -exported_symbol ld option, if it does not
17392 # work, assume that -exports_file does not work either and
17393 # implicitly export all symbols.
17394 save_LDFLAGS
="$LDFLAGS"
17395 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17400 if ac_fn_c_try_link
"$LINENO"; then :
17401 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17404 rm -f core conftest.err conftest.
$ac_objext \
17405 conftest
$ac_exeext conftest.
$ac_ext
17406 LDFLAGS
="$save_LDFLAGS"
17408 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17409 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17411 archive_cmds_need_lc
='no'
17412 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17413 hardcode_libdir_separator
=:
17415 link_all_deplibs
=yes
17419 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17420 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17422 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17424 hardcode_libdir_flag_spec
='-R$libdir'
17425 hardcode_direct
=yes
17426 hardcode_shlibpath_var
=no
17430 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17431 hardcode_direct
=yes
17432 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17433 hardcode_libdir_separator
=:
17434 hardcode_shlibpath_var
=no
17441 if test -f /usr
/libexec
/ld.so
; then
17442 hardcode_direct
=yes
17443 hardcode_shlibpath_var
=no
17444 hardcode_direct_absolute
=yes
17445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17446 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17448 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17449 export_dynamic_flag_spec
='${wl}-E'
17452 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17453 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_libdir_flag_spec
='-R$libdir'
17457 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17458 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17468 hardcode_libdir_flag_spec
='-L$libdir'
17469 hardcode_minus_L
=yes
17470 allow_undefined_flag
=unsupported
17471 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17472 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17476 if test "$GCC" = yes; then
17477 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17478 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17480 allow_undefined_flag
=' -expect_unresolved \*'
17481 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17483 archive_cmds_need_lc
='no'
17484 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17485 hardcode_libdir_separator
=:
17488 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17489 if test "$GCC" = yes; then
17490 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17491 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17492 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17494 allow_undefined_flag
=' -expect_unresolved \*'
17495 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17496 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17497 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17499 # Both c and cxx compiler support -rpath directly
17500 hardcode_libdir_flag_spec
='-rpath $libdir'
17502 archive_cmds_need_lc
='no'
17503 hardcode_libdir_separator
=:
17507 no_undefined_flag
=' -z defs'
17508 if test "$GCC" = yes; then
17510 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17512 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17514 case `$CC -V 2>&1` in
17517 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17523 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17525 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17529 hardcode_libdir_flag_spec
='-R$libdir'
17530 hardcode_shlibpath_var
=no
17532 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17534 # The compiler driver will combine and reorder linker options,
17535 # but understands `-z linker_flag'. GCC discards it without `$wl',
17536 # but is careful enough not to reorder.
17537 # Supported since Solaris 2.6 (maybe 2.5.1?)
17538 if test "$GCC" = yes; then
17539 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17541 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17545 link_all_deplibs
=yes
17549 if test "x$host_vendor" = xsequent
; then
17550 # Use $CC to link under sequent, because it throws in some extra .o
17551 # files that make .init and .fini sections work.
17552 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17554 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17556 hardcode_libdir_flag_spec
='-L$libdir'
17557 hardcode_direct
=yes
17558 hardcode_minus_L
=yes
17559 hardcode_shlibpath_var
=no
17563 case $host_vendor in
17565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566 hardcode_direct
=yes # is this really true???
17569 ## LD is ld it makes a PLAMLIB
17570 ## CC just makes a GrossModule.
17571 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17572 reload_cmds
='$CC -r -o $output$reload_objs'
17576 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17580 runpath_var
='LD_RUN_PATH'
17581 hardcode_shlibpath_var
=no
17585 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_shlibpath_var
=no
17587 export_dynamic_flag_spec
='-Bexport'
17591 if test -d /usr
/nec
; then
17592 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593 hardcode_shlibpath_var
=no
17594 runpath_var
=LD_RUN_PATH
17595 hardcode_runpath_var
=yes
17600 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17601 no_undefined_flag
='${wl}-z,text'
17602 archive_cmds_need_lc
=no
17603 hardcode_shlibpath_var
=no
17604 runpath_var
='LD_RUN_PATH'
17606 if test "$GCC" = yes; then
17607 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 sysv5
* | sco3.2v5
* | sco5v6
*)
17616 # Note: We can NOT use -z defs as we might desire, because we do not
17617 # link with -lc, and that would cause any symbols used from libc to
17618 # always be unresolved, which means just about no library would
17619 # ever link correctly. If we're not using GNU ld we use -z text
17620 # though, which does catch some bad symbols but isn't as heavy-handed
17622 no_undefined_flag
='${wl}-z,text'
17623 allow_undefined_flag
='${wl}-z,nodefs'
17624 archive_cmds_need_lc
=no
17625 hardcode_shlibpath_var
=no
17626 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17627 hardcode_libdir_separator
=':'
17628 link_all_deplibs
=yes
17629 export_dynamic_flag_spec
='${wl}-Bexport'
17630 runpath_var
='LD_RUN_PATH'
17632 if test "$GCC" = yes; then
17633 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17636 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_libdir_flag_spec
='-L$libdir'
17644 hardcode_shlibpath_var
=no
17652 if test x
$host_vendor = xsni
; then
17654 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17655 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17662 $as_echo "$ld_shlibs" >&6; }
17663 test "$ld_shlibs" = no
&& can_build_shared
=no
17665 with_gnu_ld
=$with_gnu_ld
17682 # Do we need to explicitly link libc?
17684 case "x$archive_cmds_need_lc" in
17686 # Assume -lc should be added
17687 archive_cmds_need_lc
=yes
17689 if test "$enable_shared" = yes && test "$GCC" = yes; then
17690 case $archive_cmds in
17692 # FIXME: we may have to deal with multi-command sequences.
17695 # Test whether the compiler implicitly links with -lc since on some
17696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17697 # to ld, don't add -lc before -lgcc.
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17700 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17701 $as_echo_n "(cached) " >&6
17704 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17707 (eval $ac_compile) 2>&5
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; } 2>conftest.err
; then
17713 libobjs
=conftest.
$ac_objext
17715 wl
=$lt_prog_compiler_wl
17716 pic_flag
=$lt_prog_compiler_pic
17722 lt_save_allow_undefined_flag
=$allow_undefined_flag
17723 allow_undefined_flag
=
17724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17725 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17728 test $ac_status = 0; }
17730 lt_cv_archive_cmds_need_lc
=no
17732 lt_cv_archive_cmds_need_lc
=yes
17734 allow_undefined_flag
=$lt_save_allow_undefined_flag
17736 cat conftest.err
1>&5
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17742 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17743 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17907 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17909 if test "$GCC" = yes; then
17911 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17912 *) lt_awk_arg
="/^libraries:/" ;;
17915 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17916 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17918 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17919 case $lt_search_path_spec in
17921 # if the path contains ";" then we assume it to be the separator
17922 # otherwise default to the standard path separator (i.e. ":") - it is
17923 # assumed that no part of a normal pathname contains ";" but that should
17924 # okay in the real world where ";" in dirpaths is itself problematic.
17925 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17928 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17931 # Ok, now we have the path, separated by spaces, we can step through it
17932 # and add multilib dir if necessary.
17933 lt_tmp_lt_search_path_spec
=
17934 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17935 for lt_sys_path
in $lt_search_path_spec; do
17936 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17937 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17939 test -d "$lt_sys_path" && \
17940 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17943 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17944 BEGIN {RS=" "; FS="/|\n";} {
17947 for (lt_i = NF; lt_i > 0; lt_i--) {
17948 if ($lt_i != "" && $lt_i != ".") {
17949 if ($lt_i == "..") {
17952 if (lt_count == 0) {
17953 lt_foo="/" $lt_i lt_foo;
17960 if (lt_foo != "") { lt_freq[lt_foo]++; }
17961 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17963 # AWK program above erroneously prepends '/' to C:/dos/paths
17966 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17967 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17969 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17971 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17973 library_names_spec
=
17974 libname_spec
='lib$name'
17978 postuninstall_cmds
=
17982 shlibpath_overrides_runpath
=unknown
17984 dynamic_linker
="$host_os ld.so"
17985 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17986 need_lib_prefix
=unknown
17987 hardcode_into_libs
=no
17989 # when you set need_version to no, make sure it does not cause -set_version
17990 # flags to be left without arguments
17991 need_version
=unknown
17996 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17997 shlibpath_var
=LIBPATH
17999 # AIX 3 has no versioning support, so we append a major version to the name.
18000 soname_spec
='${libname}${release}${shared_ext}$major'
18007 hardcode_into_libs
=yes
18008 if test "$host_cpu" = ia64
; then
18009 # AIX 5 supports IA64
18010 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18011 shlibpath_var
=LD_LIBRARY_PATH
18013 # With GCC up to 2.95.x, collect2 would create an import file
18014 # for dependence libraries. The import file would start with
18015 # the line `#! .'. This would cause the generated library to
18016 # depend on `.', always an invalid library. This was fixed in
18017 # development snapshots of GCC prior to 3.0.
18019 aix4 | aix4.
[01] | aix4.
[01].
*)
18020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18022 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18025 can_build_shared
=no
18029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18030 # soname into executable. Probably we can add versioning support to
18031 # collect2, so additional links can be useful in future.
18032 if test "$aix_use_runtimelinking" = yes; then
18033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18034 # instead of lib<name>.a to let people know that these are not
18035 # typical AIX shared libraries.
18036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038 # We preserve .a as extension for shared libraries through AIX4.2
18039 # and later when we are not doing run time linking.
18040 library_names_spec
='${libname}${release}.a $libname.a'
18041 soname_spec
='${libname}${release}${shared_ext}$major'
18043 shlibpath_var
=LIBPATH
18050 # Since July 2007 AmigaOS4 officially supports .so libraries.
18051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18055 library_names_spec
='$libname.ixlibrary $libname.a'
18056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18057 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18063 library_names_spec
='${libname}${shared_ext}'
18064 dynamic_linker
="$host_os ld.so"
18065 shlibpath_var
=LIBRARY_PATH
18071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec
='${libname}${release}${shared_ext}$major'
18073 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18074 shlibpath_var
=LD_LIBRARY_PATH
18075 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18076 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18077 # the default ld.so.conf also contains /usr/contrib/lib and
18078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18079 # libtool to hard-code these into programs
18082 cygwin
* | mingw
* | pw32
* | cegcc
*)
18083 version_type
=windows
18088 case $GCC,$host_os in
18089 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18090 library_names_spec
='$libname.dll.a'
18091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18092 postinstall_cmds
='base_file=`basename \${file}`~
18093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18094 dldir=$destdir/`dirname \$dlpath`~
18095 test -d \$dldir || mkdir -p \$dldir~
18096 $install_prog $dir/$dlname \$dldir/$dlname~
18097 chmod a+x \$dldir/$dlname~
18098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18101 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18102 dlpath=$dir/\$dldll~
18104 shlibpath_overrides_runpath
=yes
18108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18109 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18111 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18114 # MinGW DLLs use traditional 'lib' prefix
18115 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18118 # pw32 DLLs use 'pw' prefix rather than 'lib'
18119 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18125 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18128 dynamic_linker
='Win32 ld.exe'
18129 # FIXME: first we should search . and the directory the executable is in
18133 darwin
* | rhapsody
*)
18134 dynamic_linker
="$host_os dyld"
18135 version_type
=darwin
18138 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18139 soname_spec
='${libname}${release}${major}$shared_ext'
18140 shlibpath_overrides_runpath
=yes
18141 shlibpath_var
=DYLD_LIBRARY_PATH
18142 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18144 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18145 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18153 soname_spec
='${libname}${release}${shared_ext}$major'
18154 shlibpath_var
=LD_LIBRARY_PATH
18157 freebsd
* | dragonfly
*)
18158 # DragonFly does not have aout. When/if they implement a new
18159 # versioning mechanism, adjust this.
18160 if test -x /usr
/bin
/objformat
; then
18161 objformat
=`/usr/bin/objformat`
18164 freebsd
[23].
*) objformat
=aout
;;
18165 *) objformat
=elf
;;
18168 version_type
=freebsd-
$objformat
18169 case $version_type in
18171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18176 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18180 shlibpath_var
=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath
=yes
18185 freebsd3.
[01]* | freebsdelf3.
[01]*)
18186 shlibpath_overrides_runpath
=yes
18187 hardcode_into_libs
=yes
18189 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18190 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18191 shlibpath_overrides_runpath
=no
18192 hardcode_into_libs
=yes
18194 *) # from 4.6 on, and DragonFly
18195 shlibpath_overrides_runpath
=yes
18196 hardcode_into_libs
=yes
18205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18206 soname_spec
='${libname}${release}${shared_ext}$major'
18207 shlibpath_var
=LD_LIBRARY_PATH
18208 hardcode_into_libs
=yes
18215 dynamic_linker
="$host_os runtime_loader"
18216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18217 soname_spec
='${libname}${release}${shared_ext}$major'
18218 shlibpath_var
=LIBRARY_PATH
18219 shlibpath_overrides_runpath
=yes
18220 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18221 hardcode_into_libs
=yes
18224 hpux9
* | hpux10
* | hpux11
*)
18225 # Give a soname corresponding to the major version so that dld.sl refuses to
18226 # link against other versions.
18233 hardcode_into_libs
=yes
18234 dynamic_linker
="$host_os dld.so"
18235 shlibpath_var
=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 soname_spec
='${libname}${release}${shared_ext}$major'
18239 if test "X$HPUX_IA64_MODE" = X32
; then
18240 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18242 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18244 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18248 hardcode_into_libs
=yes
18249 dynamic_linker
="$host_os dld.sl"
18250 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18251 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec
='${libname}${release}${shared_ext}$major'
18254 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18255 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18259 dynamic_linker
="$host_os dld.sl"
18260 shlibpath_var
=SHLIB_PATH
18261 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec
='${libname}${release}${shared_ext}$major'
18266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18267 postinstall_cmds
='chmod 555 $lib'
18268 # or fails outright, so override atomically:
18269 install_override_mode
=555
18276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277 soname_spec
='${libname}${release}${shared_ext}$major'
18278 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18279 shlibpath_var
=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath
=no
18281 hardcode_into_libs
=yes
18284 irix5
* | irix6
* | nonstopux
*)
18286 nonstopux
*) version_type
=nonstopux
;;
18288 if test "$lt_cv_prog_gnu_ld" = yes; then
18296 soname_spec
='${libname}${release}${shared_ext}$major'
18297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18299 irix5
* | nonstopux
*)
18300 libsuff
= shlibsuff
=
18303 case $LD in # libtool.m4 will add one of these switches to LD
18304 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18305 libsuff
= shlibsuff
= libmagic
=32-bit;;
18306 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18307 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18308 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18309 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18310 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18314 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18315 shlibpath_overrides_runpath
=no
18316 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18317 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18318 hardcode_into_libs
=yes
18321 # No shared lib support for Linux oldld, aout, or coff.
18322 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18326 # This must be Linux ELF.
18328 # uclinux* changes (here and below) have been submitted to the libtool
18329 # project, but have not yet been accepted: they are GCC-local changes
18330 # for the time being. (See
18331 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18332 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 soname_spec
='${libname}${release}${shared_ext}$major'
18338 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18339 shlibpath_var
=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath
=no
18342 # Some binutils ld are patched to set DT_RUNPATH
18343 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18344 $as_echo_n "(cached) " >&6
18346 lt_cv_shlibpath_overrides_runpath
=no
18347 save_LDFLAGS
=$LDFLAGS
18348 save_libdir
=$libdir
18349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18362 if ac_fn_c_try_link
"$LINENO"; then :
18363 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18364 lt_cv_shlibpath_overrides_runpath
=yes
18367 rm -f core conftest.err conftest.
$ac_objext \
18368 conftest
$ac_exeext conftest.
$ac_ext
18369 LDFLAGS
=$save_LDFLAGS
18370 libdir
=$save_libdir
18374 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18376 # This implies no fast_install, which is unacceptable.
18377 # Some rework will be needed to allow for fast_install
18378 # before this can be enabled.
18379 hardcode_into_libs
=yes
18381 # Append ld.so.conf contents to the search path
18382 if test -f /etc
/ld.so.conf
; then
18383 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18384 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18387 # We used to test for /lib/ld.so.1 and disable shared libraries on
18388 # powerpc, because MkLinux only supported shared libraries with the
18389 # GNU dynamic linker. Since this was broken with cross compilers,
18390 # most powerpc-linux boxes support dynamic linking these days and
18391 # people can always --disable-shared, the test was removed, and we
18392 # assume the GNU/Linux dynamic linker is in use.
18393 dynamic_linker
='GNU/Linux ld.so'
18400 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18402 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18403 dynamic_linker
='NetBSD (a.out) ld.so'
18405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18406 soname_spec
='${libname}${release}${shared_ext}$major'
18407 dynamic_linker
='NetBSD ld.elf_so'
18409 shlibpath_var
=LD_LIBRARY_PATH
18410 shlibpath_overrides_runpath
=yes
18411 hardcode_into_libs
=yes
18416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 shlibpath_var
=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath
=yes
18425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426 soname_spec
='${libname}${release}${shared_ext}$major'
18427 shlibpath_var
=LD_LIBRARY_PATH
18428 shlibpath_overrides_runpath
=no
18429 hardcode_into_libs
=yes
18430 dynamic_linker
='ldqnx.so'
18435 sys_lib_dlsearch_path_spec
="/usr/lib"
18437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18439 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18440 *) need_version
=no
;;
18442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18443 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18444 shlibpath_var
=LD_LIBRARY_PATH
18445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18447 openbsd2.
[89] | openbsd2.
[89].
*)
18448 shlibpath_overrides_runpath
=no
18451 shlibpath_overrides_runpath
=yes
18455 shlibpath_overrides_runpath
=yes
18460 libname_spec
='$name'
18463 library_names_spec
='$libname${shared_ext} $libname.a'
18464 dynamic_linker
='OS/2 ld.exe'
18465 shlibpath_var
=LIBPATH
18468 osf3
* | osf4
* | osf5
*)
18472 soname_spec
='${libname}${release}${shared_ext}$major'
18473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 shlibpath_var
=LD_LIBRARY_PATH
18475 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18476 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 soname_spec
='${libname}${release}${shared_ext}$major'
18489 shlibpath_var
=LD_LIBRARY_PATH
18490 shlibpath_overrides_runpath
=yes
18491 hardcode_into_libs
=yes
18492 # ldd complains unless libraries are executable
18493 postinstall_cmds
='chmod +x $lib'
18498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18499 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18500 shlibpath_var
=LD_LIBRARY_PATH
18501 shlibpath_overrides_runpath
=yes
18502 if test "$with_gnu_ld" = yes; then
18510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec
='${libname}${release}${shared_ext}$major'
18512 shlibpath_var
=LD_LIBRARY_PATH
18513 case $host_vendor in
18515 shlibpath_overrides_runpath
=no
18517 runpath_var
=LD_RUN_PATH
18525 shlibpath_overrides_runpath
=no
18526 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18532 if test -d /usr
/nec
;then
18534 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18535 soname_spec
='$libname${shared_ext}.$major'
18536 shlibpath_var
=LD_LIBRARY_PATH
18540 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18541 version_type
=freebsd-elf
18544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18545 soname_spec
='${libname}${release}${shared_ext}$major'
18546 shlibpath_var
=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath
=yes
18548 hardcode_into_libs
=yes
18549 if test "$with_gnu_ld" = yes; then
18550 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18552 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18555 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18559 sys_lib_dlsearch_path_spec
='/usr/lib'
18563 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 shlibpath_var
=LD_LIBRARY_PATH
18569 shlibpath_overrides_runpath
=no
18570 hardcode_into_libs
=yes
18575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec
='${libname}${release}${shared_ext}$major'
18577 shlibpath_var
=LD_LIBRARY_PATH
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18585 $as_echo "$dynamic_linker" >&6; }
18586 test "$dynamic_linker" = no
&& can_build_shared
=no
18588 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18589 if test "$GCC" = yes; then
18590 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18593 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18594 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18596 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18597 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18694 if test -n "$hardcode_libdir_flag_spec" ||
18695 test -n "$runpath_var" ||
18696 test "X$hardcode_automatic" = "Xyes" ; then
18698 # We can hardcode non-existent directories.
18699 if test "$hardcode_direct" != no
&&
18700 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18701 # have to relink, otherwise we might link with an installed library
18702 # when we should be linking with a yet-to-be-installed one
18703 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18704 test "$hardcode_minus_L" != no
; then
18705 # Linking always hardcodes the temporary library directory.
18706 hardcode_action
=relink
18708 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18709 hardcode_action
=immediate
18712 # We cannot hardcode anything, or else we can only hardcode existing
18714 hardcode_action
=unsupported
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18717 $as_echo "$hardcode_action" >&6; }
18719 if test "$hardcode_action" = relink ||
18720 test "$inherit_rpath" = yes; then
18721 # Fast installation is not supported
18722 enable_fast_install
=no
18723 elif test "$shlibpath_overrides_runpath" = yes ||
18724 test "$enable_shared" = no
; then
18725 # Fast installation is not necessary
18726 enable_fast_install
=needless
18734 if test "x$enable_dlopen" != xyes
; then
18735 enable_dlopen
=unknown
18736 enable_dlopen_self
=unknown
18737 enable_dlopen_self_static
=unknown
18744 lt_cv_dlopen
="load_add_on"
18746 lt_cv_dlopen_self
=yes
18749 mingw
* | pw32
* | cegcc
*)
18750 lt_cv_dlopen
="LoadLibrary"
18755 lt_cv_dlopen
="dlopen"
18760 # if libdl is installed we need to link against it
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18763 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18764 $as_echo_n "(cached) " >&6
18766 ac_check_lib_save_LIBS
=$LIBS
18768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18786 if ac_fn_c_try_link
"$LINENO"; then :
18787 ac_cv_lib_dl_dlopen
=yes
18789 ac_cv_lib_dl_dlopen
=no
18791 rm -f core conftest.err conftest.
$ac_objext \
18792 conftest
$ac_exeext conftest.
$ac_ext
18793 LIBS
=$ac_check_lib_save_LIBS
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18797 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18798 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18801 lt_cv_dlopen
="dyld"
18803 lt_cv_dlopen_self
=yes
18810 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18811 if test "x$ac_cv_func_shl_load" = xyes
; then :
18812 lt_cv_dlopen
="shl_load"
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18815 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18816 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18817 $as_echo_n "(cached) " >&6
18819 ac_check_lib_save_LIBS
=$LIBS
18821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18834 return shl_load ();
18839 if ac_fn_c_try_link
"$LINENO"; then :
18840 ac_cv_lib_dld_shl_load
=yes
18842 ac_cv_lib_dld_shl_load
=no
18844 rm -f core conftest.err conftest.
$ac_objext \
18845 conftest
$ac_exeext conftest.
$ac_ext
18846 LIBS
=$ac_check_lib_save_LIBS
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18849 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18850 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18851 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18853 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18854 if test "x$ac_cv_func_dlopen" = xyes
; then :
18855 lt_cv_dlopen
="dlopen"
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18859 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18860 $as_echo_n "(cached) " >&6
18862 ac_check_lib_save_LIBS
=$LIBS
18864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18882 if ac_fn_c_try_link
"$LINENO"; then :
18883 ac_cv_lib_dl_dlopen
=yes
18885 ac_cv_lib_dl_dlopen
=no
18887 rm -f core conftest.err conftest.
$ac_objext \
18888 conftest
$ac_exeext conftest.
$ac_ext
18889 LIBS
=$ac_check_lib_save_LIBS
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18893 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18894 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18897 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18898 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18899 $as_echo_n "(cached) " >&6
18901 ac_check_lib_save_LIBS
=$LIBS
18902 LIBS
="-lsvld $LIBS"
18903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18921 if ac_fn_c_try_link
"$LINENO"; then :
18922 ac_cv_lib_svld_dlopen
=yes
18924 ac_cv_lib_svld_dlopen
=no
18926 rm -f core conftest.err conftest.
$ac_objext \
18927 conftest
$ac_exeext conftest.
$ac_ext
18928 LIBS
=$ac_check_lib_save_LIBS
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18931 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18932 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18933 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18936 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18937 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18938 $as_echo_n "(cached) " >&6
18940 ac_check_lib_save_LIBS
=$LIBS
18942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18955 return dld_link ();
18960 if ac_fn_c_try_link
"$LINENO"; then :
18961 ac_cv_lib_dld_dld_link
=yes
18963 ac_cv_lib_dld_dld_link
=no
18965 rm -f core conftest.err conftest.
$ac_objext \
18966 conftest
$ac_exeext conftest.
$ac_ext
18967 LIBS
=$ac_check_lib_save_LIBS
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18970 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18971 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18972 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18993 if test "x$lt_cv_dlopen" != xno
; then
18999 case $lt_cv_dlopen in
19001 save_CPPFLAGS
="$CPPFLAGS"
19002 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19004 save_LDFLAGS
="$LDFLAGS"
19005 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19008 LIBS
="$lt_cv_dlopen_libs $LIBS"
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19011 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19012 if ${lt_cv_dlopen_self+:} false
; then :
19013 $as_echo_n "(cached) " >&6
19015 if test "$cross_compiling" = yes; then :
19016 lt_cv_dlopen_self
=cross
19018 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19019 lt_status
=$lt_dlunknown
19020 cat > conftest.
$ac_ext <<_LT_EOF
19021 #line 19021 "configure"
19022 #include "confdefs.h"
19031 # define LT_DLGLOBAL RTLD_GLOBAL
19034 # define LT_DLGLOBAL DL_GLOBAL
19036 # define LT_DLGLOBAL 0
19040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19041 find out it does not work in some platform. */
19042 #ifndef LT_DLLAZY_OR_NOW
19044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19047 # define LT_DLLAZY_OR_NOW DL_LAZY
19050 # define LT_DLLAZY_OR_NOW RTLD_NOW
19053 # define LT_DLLAZY_OR_NOW DL_NOW
19055 # define LT_DLLAZY_OR_NOW 0
19062 /* When -fvisbility=hidden is used, assume the code has been annotated
19063 correspondingly for the symbols needed. */
19064 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19065 void fnord () __attribute__((visibility("default")));
19068 void fnord () { int i=42; }
19071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19072 int status = $lt_dlunknown;
19076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19079 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19080 else puts (dlerror ());
19082 /* dlclose (self); */
19090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19091 (eval $ac_link) 2>&5
19093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19094 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19095 (.
/conftest
; exit; ) >&5 2>/dev
/null
19097 case x
$lt_status in
19098 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19099 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19100 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19103 # compilation failed
19104 lt_cv_dlopen_self
=no
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19112 $as_echo "$lt_cv_dlopen_self" >&6; }
19114 if test "x$lt_cv_dlopen_self" = xyes
; then
19115 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19117 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19118 if ${lt_cv_dlopen_self_static+:} false
; then :
19119 $as_echo_n "(cached) " >&6
19121 if test "$cross_compiling" = yes; then :
19122 lt_cv_dlopen_self_static
=cross
19124 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19125 lt_status
=$lt_dlunknown
19126 cat > conftest.
$ac_ext <<_LT_EOF
19127 #line 19127 "configure"
19128 #include "confdefs.h"
19137 # define LT_DLGLOBAL RTLD_GLOBAL
19140 # define LT_DLGLOBAL DL_GLOBAL
19142 # define LT_DLGLOBAL 0
19146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19147 find out it does not work in some platform. */
19148 #ifndef LT_DLLAZY_OR_NOW
19150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19153 # define LT_DLLAZY_OR_NOW DL_LAZY
19156 # define LT_DLLAZY_OR_NOW RTLD_NOW
19159 # define LT_DLLAZY_OR_NOW DL_NOW
19161 # define LT_DLLAZY_OR_NOW 0
19168 /* When -fvisbility=hidden is used, assume the code has been annotated
19169 correspondingly for the symbols needed. */
19170 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19171 void fnord () __attribute__((visibility("default")));
19174 void fnord () { int i=42; }
19177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19178 int status = $lt_dlunknown;
19182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19185 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19186 else puts (dlerror ());
19188 /* dlclose (self); */
19196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19197 (eval $ac_link) 2>&5
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19201 (.
/conftest
; exit; ) >&5 2>/dev
/null
19203 case x
$lt_status in
19204 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19205 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19206 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19209 # compilation failed
19210 lt_cv_dlopen_self_static
=no
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19218 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19221 CPPFLAGS
="$save_CPPFLAGS"
19222 LDFLAGS
="$save_LDFLAGS"
19227 case $lt_cv_dlopen_self in
19228 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19229 *) enable_dlopen_self
=unknown
;;
19232 case $lt_cv_dlopen_self_static in
19233 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19234 *) enable_dlopen_self_static
=unknown
;;
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19258 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19259 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19260 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19262 $as_echo "yes" >&6; }
19264 # FIXME - insert some real tests, host_os isn't really good enough
19267 if test -n "$STRIP" ; then
19268 striplib
="$STRIP -x"
19269 old_striplib
="$STRIP -S"
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19271 $as_echo "yes" >&6; }
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274 $as_echo "no" >&6; }
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19279 $as_echo "no" >&6; }
19295 # Report which library types will actually be built
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19297 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19299 $as_echo "$can_build_shared" >&6; }
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19302 $as_echo_n "checking whether to build shared libraries... " >&6; }
19303 test "$can_build_shared" = "no" && enable_shared
=no
19305 # On AIX, shared libraries and static libraries use the same namespace, and
19306 # are all built from PIC.
19309 test "$enable_shared" = yes && enable_static
=no
19310 if test -n "$RANLIB"; then
19311 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19312 postinstall_cmds
='$RANLIB $lib'
19317 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19318 test "$enable_shared" = yes && enable_static
=no
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19323 $as_echo "$enable_shared" >&6; }
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19326 $as_echo_n "checking whether to build static libraries... " >&6; }
19327 # Make sure either enable_shared or enable_static is yes.
19328 test "$enable_shared" = yes || enable_static
=yes
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19330 $as_echo "$enable_static" >&6; }
19337 ac_cpp
='$CXXCPP $CPPFLAGS'
19338 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19344 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19345 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19346 (test "X$CXX" != "Xg++"))) ; then
19348 ac_cpp
='$CXXCPP $CPPFLAGS'
19349 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19353 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19354 if test -z "$CXXCPP"; then
19355 if ${ac_cv_prog_CXXCPP+:} false
; then :
19356 $as_echo_n "(cached) " >&6
19358 # Double quotes because CXXCPP needs to be expanded
19359 for CXXCPP
in "$CXX -E" "/lib/cpp"
19361 ac_preproc_ok
=false
19362 for ac_cxx_preproc_warn_flag
in '' yes
19364 # Use a header file that comes with gcc, so configuring glibc
19365 # with a fresh cross-compiler works.
19366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19367 # <limits.h> exists even on freestanding compilers.
19368 # On the NeXT, cc -E runs the code through the compiler's parser,
19369 # not just through cpp. "Syntax error" is here to catch this case.
19370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19373 # include <limits.h>
19375 # include <assert.h>
19379 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19382 # Broken: fails on valid input.
19385 rm -f conftest.err conftest.i conftest.
$ac_ext
19387 # OK, works on sane cases. Now check whether nonexistent headers
19388 # can be detected and how.
19389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391 #include <ac_nonexistent.h>
19393 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19394 # Broken: success on invalid input.
19397 # Passes both tests.
19401 rm -f conftest.err conftest.i conftest.
$ac_ext
19404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19405 rm -f conftest.i conftest.err conftest.
$ac_ext
19406 if $ac_preproc_ok; then :
19411 ac_cv_prog_CXXCPP
=$CXXCPP
19414 CXXCPP
=$ac_cv_prog_CXXCPP
19416 ac_cv_prog_CXXCPP
=$CXXCPP
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19419 $as_echo "$CXXCPP" >&6; }
19420 ac_preproc_ok
=false
19421 for ac_cxx_preproc_warn_flag
in '' yes
19423 # Use a header file that comes with gcc, so configuring glibc
19424 # with a fresh cross-compiler works.
19425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19426 # <limits.h> exists even on freestanding compilers.
19427 # On the NeXT, cc -E runs the code through the compiler's parser,
19428 # not just through cpp. "Syntax error" is here to catch this case.
19429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h. */
19432 # include <limits.h>
19434 # include <assert.h>
19438 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19441 # Broken: fails on valid input.
19444 rm -f conftest.err conftest.i conftest.
$ac_ext
19446 # OK, works on sane cases. Now check whether nonexistent headers
19447 # can be detected and how.
19448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19450 #include <ac_nonexistent.h>
19452 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19453 # Broken: success on invalid input.
19456 # Passes both tests.
19460 rm -f conftest.err conftest.i conftest.
$ac_ext
19463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19464 rm -f conftest.i conftest.err conftest.
$ac_ext
19465 if $ac_preproc_ok; then :
19468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19470 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19471 See \`config.log' for more details" "$LINENO" 5; }
19475 ac_cpp
='$CXXCPP $CPPFLAGS'
19476 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19477 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19478 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19481 _lt_caught_CXX_error
=yes
19485 ac_cpp
='$CXXCPP $CPPFLAGS'
19486 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19490 archive_cmds_need_lc_CXX
=no
19491 allow_undefined_flag_CXX
=
19492 always_export_symbols_CXX
=no
19493 archive_expsym_cmds_CXX
=
19494 compiler_needs_object_CXX
=no
19495 export_dynamic_flag_spec_CXX
=
19496 hardcode_direct_CXX
=no
19497 hardcode_direct_absolute_CXX
=no
19498 hardcode_libdir_flag_spec_CXX
=
19499 hardcode_libdir_flag_spec_ld_CXX
=
19500 hardcode_libdir_separator_CXX
=
19501 hardcode_minus_L_CXX
=no
19502 hardcode_shlibpath_var_CXX
=unsupported
19503 hardcode_automatic_CXX
=no
19504 inherit_rpath_CXX
=no
19506 module_expsym_cmds_CXX
=
19507 link_all_deplibs_CXX
=unknown
19508 old_archive_cmds_CXX
=$old_archive_cmds
19509 reload_flag_CXX
=$reload_flag
19510 reload_cmds_CXX
=$reload_cmds
19511 no_undefined_flag_CXX
=
19512 whole_archive_flag_spec_CXX
=
19513 enable_shared_with_static_runtimes_CXX
=no
19515 # Source file extension for C++ test sources.
19518 # Object file extension for compiled C++ test sources.
19522 # No sense in running all these tests if we already determined that
19523 # the CXX compiler isn't working. Some variables (like enable_shared)
19524 # are currently assumed to apply to all compilers on this platform,
19525 # and will be corrupted by setting them based on a non-working compiler.
19526 if test "$_lt_caught_CXX_error" != yes; then
19527 # Code to be used in simple compile tests
19528 lt_simple_compile_test_code
="int some_variable = 0;"
19530 # Code to be used in simple link tests
19531 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19540 # If no C compiler was specified, use CC.
19543 # If no C compiler flags were specified, use CFLAGS.
19544 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19546 # Allow CC to be a program name with arguments.
19550 # save warnings/boilerplate of simple test code
19551 ac_outfile
=conftest.
$ac_objext
19552 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19553 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19554 _lt_compiler_boilerplate
=`cat conftest.err`
19557 ac_outfile
=conftest.
$ac_objext
19558 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19559 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19560 _lt_linker_boilerplate
=`cat conftest.err`
19564 # Allow CC to be a program name with arguments.
19569 lt_save_with_gnu_ld
=$with_gnu_ld
19570 lt_save_path_LD
=$lt_cv_path_LD
19571 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19572 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19574 $as_unset lt_cv_prog_gnu_ld
19576 if test -n "${lt_cv_path_LDCXX+set}"; then
19577 lt_cv_path_LD
=$lt_cv_path_LDCXX
19579 $as_unset lt_cv_path_LD
19581 test -z "${LDCXX+set}" || LD
=$LDCXX
19585 for cc_temp
in $compiler""; do
19587 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19588 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19593 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19596 if test -n "$compiler"; then
19597 # We don't want -fno-exception when compiling C++ code, so set the
19598 # no_builtin_flag separately
19599 if test "$GXX" = yes; then
19600 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19602 lt_prog_compiler_no_builtin_flag_CXX
=
19605 if test "$GXX" = yes; then
19606 # Set up default GNU C++ configuration
19610 # Check whether --with-gnu-ld was given.
19611 if test "${with_gnu_ld+set}" = set; then :
19612 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19618 if test "$GCC" = yes; then
19619 # Check if gcc -print-prog-name=ld gives a path.
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19621 $as_echo_n "checking for ld used by $CC... " >&6; }
19624 # gcc leaves a trailing carriage return which upsets mingw
19625 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19627 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19630 # Accept absolute paths.
19632 re_direlt
='/[^/][^/]*/\.\./'
19633 # Canonicalize the pathname of ld
19634 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19635 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19636 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19638 test -z "$LD" && LD
="$ac_prog"
19641 # If it fails, then pretend we aren't using GCC.
19645 # If it is relative, then search for the first ld in PATH.
19646 with_gnu_ld
=unknown
19649 elif test "$with_gnu_ld" = yes; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19651 $as_echo_n "checking for GNU ld... " >&6; }
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19654 $as_echo_n "checking for non-GNU ld... " >&6; }
19656 if ${lt_cv_path_LD+:} false
; then :
19657 $as_echo_n "(cached) " >&6
19659 if test -z "$LD"; then
19660 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19661 for ac_dir
in $PATH; do
19663 test -z "$ac_dir" && ac_dir
=.
19664 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19665 lt_cv_path_LD
="$ac_dir/$ac_prog"
19666 # Check to see if the program is GNU ld. I'd rather use --version,
19667 # but apparently some variants of GNU ld only accept -v.
19668 # Break only if it was the GNU/non-GNU ld that we prefer.
19669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19670 *GNU
* |
*'with BFD'*)
19671 test "$with_gnu_ld" != no
&& break
19674 test "$with_gnu_ld" != yes && break
19681 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19685 LD
="$lt_cv_path_LD"
19686 if test -n "$LD"; then
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19688 $as_echo "$LD" >&6; }
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19693 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19695 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19696 if ${lt_cv_prog_gnu_ld+:} false
; then :
19697 $as_echo_n "(cached) " >&6
19699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19700 case `$LD -v 2>&1 </dev/null` in
19701 *GNU
* |
*'with BFD'*)
19702 lt_cv_prog_gnu_ld
=yes
19705 lt_cv_prog_gnu_ld
=no
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19710 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19711 with_gnu_ld
=$lt_cv_prog_gnu_ld
19719 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19720 # archiving commands below assume that GNU ld is being used.
19721 if test "$with_gnu_ld" = yes; then
19722 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19723 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19725 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19726 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19728 # If archive_cmds runs LD, not CC, wlarc should be empty
19729 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19730 # investigate it a little bit more. (MM)
19733 # ancient GNU ld didn't support --whole-archive et. al.
19734 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19735 $GREP 'no-whole-archive' > /dev
/null
; then
19736 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19738 whole_archive_flag_spec_CXX
=
19744 # A generic and very simple default shared library creation
19745 # command for GNU C++ for the case where it uses the native
19746 # linker, instead of GNU ld. If possible, this setting should
19747 # overridden to take advantage of the native linker features on
19748 # the platform it is being used on.
19749 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19752 # Commands to make compiler produce verbose output that lists
19753 # what "hidden" libraries, object files and flags are used when
19754 # linking a shared library.
19755 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19763 # PORTME: fill in a description of your system's C++ link characteristics
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19769 # FIXME: insert proper C++ library support
19773 if test "$host_cpu" = ia64
; then
19774 # On IA64, the linker does run time linking by default, so we don't
19775 # have to do anything special.
19776 aix_use_runtimelinking
=no
19777 exp_sym_flag
='-Bexport'
19780 aix_use_runtimelinking
=no
19782 # Test if we are trying to use run time linking or normal
19783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19784 # need to do runtime linking.
19785 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19786 for ld_flag
in $LDFLAGS; do
19789 aix_use_runtimelinking
=yes
19797 exp_sym_flag
='-bexport'
19798 no_entry_flag
='-bnoentry'
19801 # When large executables or shared objects are built, AIX ld can
19802 # have problems creating the table of contents. If linking a library
19803 # or program results in "error TOC overflow" add -mminimal-toc to
19804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19807 archive_cmds_CXX
=''
19808 hardcode_direct_CXX
=yes
19809 hardcode_direct_absolute_CXX
=yes
19810 hardcode_libdir_separator_CXX
=':'
19811 link_all_deplibs_CXX
=yes
19812 file_list_spec_CXX
='${wl}-f,'
19814 if test "$GXX" = yes; then
19815 case $host_os in aix4.
[012]|aix4.
[012].
*)
19816 # We only want to do this on AIX 4.2 and lower, the check
19817 # below for broken collect2 doesn't work under 4.3+
19818 collect2name
=`${CC} -print-prog-name=collect2`
19819 if test -f "$collect2name" &&
19820 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19822 # We have reworked collect2
19825 # We have old collect2
19826 hardcode_direct_CXX
=unsupported
19827 # It fails to find uninstalled libraries when the uninstalled
19828 # path is not listed in the libpath. Setting hardcode_minus_L
19829 # to unsupported forces relinking
19830 hardcode_minus_L_CXX
=yes
19831 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19832 hardcode_libdir_separator_CXX
=
19835 shared_flag
='-shared'
19836 if test "$aix_use_runtimelinking" = yes; then
19837 shared_flag
="$shared_flag "'${wl}-G'
19841 if test "$host_cpu" = ia64
; then
19842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19843 # chokes on -Wl,-G. The following line is correct:
19846 if test "$aix_use_runtimelinking" = yes; then
19847 shared_flag
='${wl}-G'
19849 shared_flag
='${wl}-bM:SRE'
19854 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19855 # It seems that -bexpall does not export symbols beginning with
19856 # underscore (_), so it is better to generate a list of symbols to
19858 always_export_symbols_CXX
=yes
19859 if test "$aix_use_runtimelinking" = yes; then
19860 # Warning - without using the other runtime loading flags (-brtl),
19861 # -berok will link without error, but may produce a broken library.
19862 allow_undefined_flag_CXX
='-berok'
19863 # Determine the default libpath from the value encoded in an empty
19865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19876 if ac_fn_cxx_try_link
"$LINENO"; then :
19878 lt_aix_libpath_sed
='
19879 /Import File Strings/,/^$/ {
19885 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19886 # Check for a 64-bit object if we didn't find anything.
19887 if test -z "$aix_libpath"; then
19888 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19891 rm -f core conftest.err conftest.
$ac_objext \
19892 conftest
$ac_exeext conftest.
$ac_ext
19893 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19895 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19897 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19899 if test "$host_cpu" = ia64
; then
19900 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19901 allow_undefined_flag_CXX
="-z nodefs"
19902 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19904 # Determine the default libpath from the value encoded in an
19905 # empty executable.
19906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19917 if ac_fn_cxx_try_link
"$LINENO"; then :
19919 lt_aix_libpath_sed
='
19920 /Import File Strings/,/^$/ {
19926 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19927 # Check for a 64-bit object if we didn't find anything.
19928 if test -z "$aix_libpath"; then
19929 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19932 rm -f core conftest.err conftest.
$ac_objext \
19933 conftest
$ac_exeext conftest.
$ac_ext
19934 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19936 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19937 # Warning - without using the other run time loading flags,
19938 # -berok will link without error, but may produce a broken library.
19939 no_undefined_flag_CXX
=' ${wl}-bernotok'
19940 allow_undefined_flag_CXX
=' ${wl}-berok'
19941 if test "$with_gnu_ld" = yes; then
19942 # We only use this code for GNU lds that support --whole-archive.
19943 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19945 # Exported symbols can be pulled into shared objects from archives
19946 whole_archive_flag_spec_CXX
='$convenience'
19948 archive_cmds_need_lc_CXX
=yes
19949 # This is similar to how AIX traditionally builds its shared
19951 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19957 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19958 allow_undefined_flag_CXX
=unsupported
19959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19960 # support --undefined. This deserves some investigation. FIXME
19961 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19968 case $cc_basename in
19970 # FIXME: insert proper C++ library support
19976 cygwin
* | mingw
* | pw32
* | cegcc
*)
19977 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19978 # as there is no search path for DLLs.
19979 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19980 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19981 allow_undefined_flag_CXX
=unsupported
19982 always_export_symbols_CXX
=no
19983 enable_shared_with_static_runtimes_CXX
=yes
19985 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19986 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19987 # If the export-symbols file already is a .def file (1st line
19988 # is EXPORTS), use it as is; otherwise, prepend...
19989 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19990 cp $export_symbols $output_objdir/$soname.def;
19992 echo EXPORTS > $output_objdir/$soname.def;
19993 cat $export_symbols >> $output_objdir/$soname.def;
19995 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20000 darwin
* | rhapsody
*)
20003 archive_cmds_need_lc_CXX
=no
20004 hardcode_direct_CXX
=no
20005 hardcode_automatic_CXX
=yes
20006 hardcode_shlibpath_var_CXX
=unsupported
20007 if test "$lt_cv_ld_force_load" = "yes"; then
20008 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
20010 whole_archive_flag_spec_CXX
=''
20012 link_all_deplibs_CXX
=yes
20013 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20014 case $cc_basename in
20015 ifort
*) _lt_dar_can_shared
=yes ;;
20016 *) _lt_dar_can_shared
=$GCC ;;
20018 if test "$_lt_dar_can_shared" = "yes"; then
20019 output_verbose_link_cmd
=func_echo_all
20020 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20021 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20022 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20023 module_expsym_cmds_CXX
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
20024 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20025 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20026 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
20036 case $cc_basename in
20038 # FIXME: insert proper C++ library support
20042 # Green Hills C++ Compiler
20043 # FIXME: insert proper C++ library support
20047 # FIXME: insert proper C++ library support
20054 # C++ shared libraries reported to be fairly broken before
20060 archive_cmds_need_lc_CXX
=no
20063 freebsd
* | dragonfly
*)
20064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20073 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20074 link_all_deplibs_CXX
=yes
20078 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20079 hardcode_libdir_separator_CXX
=:
20080 export_dynamic_flag_spec_CXX
='${wl}-E'
20081 hardcode_direct_CXX
=yes
20082 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20083 # but as the default
20084 # location of the library.
20086 case $cc_basename in
20088 # FIXME: insert proper C++ library support
20092 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20093 # Commands to make compiler produce verbose output that lists
20094 # what "hidden" libraries, object files and flags are used when
20095 # linking a shared library.
20097 # There doesn't appear to be a way to prevent this compiler from
20098 # explicitly linking system object files so we need to strip them
20099 # from the output so that they don't get included in the library
20101 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20104 if test "$GXX" = yes; then
20105 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20107 # FIXME: insert proper C++ library support
20115 if test $with_gnu_ld = no
; then
20116 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20117 hardcode_libdir_separator_CXX
=:
20123 export_dynamic_flag_spec_CXX
='${wl}-E'
20129 hardcode_direct_CXX
=no
20130 hardcode_shlibpath_var_CXX
=no
20133 hardcode_direct_CXX
=yes
20134 hardcode_direct_absolute_CXX
=yes
20135 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20136 # but as the default
20137 # location of the library.
20141 case $cc_basename in
20143 # FIXME: insert proper C++ library support
20149 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20152 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20155 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20158 # Commands to make compiler produce verbose output that lists
20159 # what "hidden" libraries, object files and flags are used when
20160 # linking a shared library.
20162 # There doesn't appear to be a way to prevent this compiler from
20163 # explicitly linking system object files so we need to strip them
20164 # from the output so that they don't get included in the library
20166 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20169 if test "$GXX" = yes; then
20170 if test $with_gnu_ld = no
; then
20173 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20176 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20179 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20184 # FIXME: insert proper C++ library support
20192 hardcode_direct_CXX
=no
20193 hardcode_shlibpath_var_CXX
=no
20194 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20195 export_dynamic_flag_spec_CXX
='${wl}-E'
20196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20197 # Instead, shared libraries are loaded at an image base (0x10000000 by
20198 # default) and relocated if they conflict, which is a slow very memory
20199 # consuming and fragmenting process. To avoid this, we pick a random,
20200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20202 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20203 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20206 case $cc_basename in
20209 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20211 # Archives containing C++ object files must be created using
20212 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20213 # necessary to make sure instantiated templates are included
20215 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20218 if test "$GXX" = yes; then
20219 if test "$with_gnu_ld" = no
; then
20220 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20222 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
20225 link_all_deplibs_CXX
=yes
20228 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20229 hardcode_libdir_separator_CXX
=:
20230 inherit_rpath_CXX
=yes
20233 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20234 case $cc_basename in
20236 # Kuck and Associates, Inc. (KAI) C++ Compiler
20238 # KCC will only create a shared library if the output file
20239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20240 # to its proper name (with version) after linking.
20241 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20242 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
20243 # Commands to make compiler produce verbose output that lists
20244 # what "hidden" libraries, object files and flags are used when
20245 # linking a shared library.
20247 # There doesn't appear to be a way to prevent this compiler from
20248 # explicitly linking system object files so we need to strip them
20249 # from the output so that they don't get included in the library
20251 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20253 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20254 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20256 # Archives containing C++ object files must be created using
20257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20258 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20263 # version 8.0 and above of icpc choke on multiply defined symbols
20264 # if we add $predep_objects and $postdep_objects, however 7.1 and
20265 # earlier do not add the objects themselves.
20266 case `$CC -V 2>&1` in
20268 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20269 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20271 *) # Version 8.0 or newer
20274 ia64
*) tmp_idyn
=' -i_dynamic';;
20276 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20277 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20280 archive_cmds_need_lc_CXX
=no
20281 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20282 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20283 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20286 # Portland Group C++ compiler
20288 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20289 prelink_cmds_CXX
='tpldir=Template.dir~
20291 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20292 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20293 old_archive_cmds_CXX
='tpldir=Template.dir~
20295 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20296 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20298 archive_cmds_CXX
='tpldir=Template.dir~
20300 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20301 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20302 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20305 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20307 *) # Version 6 and above use weak symbols
20308 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20309 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20313 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20314 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20315 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20319 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20320 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
20322 runpath_var
=LD_RUN_PATH
20323 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20324 hardcode_libdir_separator_CXX
=:
20326 # Commands to make compiler produce verbose output that lists
20327 # what "hidden" libraries, object files and flags are used when
20328 # linking a shared library.
20330 # There doesn't appear to be a way to prevent this compiler from
20331 # explicitly linking system object files so we need to strip them
20332 # from the output so that they don't get included in the library
20334 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
20336 xl
* | mpixl
* | bgxl
*)
20337 # IBM XL 8.0 on PPC, with GNU ld
20338 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20339 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20340 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20341 if test "x$supports_anon_versioning" = xyes
; then
20342 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20344 echo "local: *; };" >> $output_objdir/$libname.ver~
20345 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20349 case `$CC -V 2>&1 | sed 5q` in
20352 no_undefined_flag_CXX
=' -zdefs'
20353 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20354 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
20355 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20356 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20357 compiler_needs_object_CXX
=yes
20359 # Not sure whether something based on
20360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20362 output_verbose_link_cmd
='func_echo_all'
20364 # Archives containing C++ object files must be created using
20365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20366 # necessary to make sure instantiated templates are included
20368 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20376 # FIXME: insert proper C++ library support
20381 # FIXME: insert proper C++ library support
20386 case $cc_basename in
20388 # FIXME: insert proper C++ library support
20392 # FIXME: insert proper C++ library support
20399 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20400 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20402 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20403 hardcode_direct_CXX
=yes
20404 hardcode_shlibpath_var_CXX
=no
20406 # Workaround some broken pre-1.5 toolchains
20407 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20415 # C++ shared libraries are fairly broken
20420 if test -f /usr
/libexec
/ld.so
; then
20421 hardcode_direct_CXX
=yes
20422 hardcode_shlibpath_var_CXX
=no
20423 hardcode_direct_absolute_CXX
=yes
20424 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20425 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20427 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20428 export_dynamic_flag_spec_CXX
='${wl}-E'
20429 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20431 output_verbose_link_cmd
=func_echo_all
20437 osf3
* | osf4
* | osf5
*)
20438 case $cc_basename in
20440 # Kuck and Associates, Inc. (KAI) C++ Compiler
20442 # KCC will only create a shared library if the output file
20443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20444 # to its proper name (with version) after linking.
20445 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
20447 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20448 hardcode_libdir_separator_CXX
=:
20450 # Archives containing C++ object files must be created using
20451 # the KAI C++ compiler.
20453 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20454 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20458 # Rational C++ 2.4.1
20459 # FIXME: insert proper C++ library support
20465 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20466 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20467 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20470 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20471 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
20472 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20473 echo "-hidden">> $lib.exp~
20474 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
20476 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20480 hardcode_libdir_separator_CXX
=:
20482 # Commands to make compiler produce verbose output that lists
20483 # what "hidden" libraries, object files and flags are used when
20484 # linking a shared library.
20486 # There doesn't appear to be a way to prevent this compiler from
20487 # explicitly linking system object files so we need to strip them
20488 # from the output so that they don't get included in the library
20490 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20493 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20494 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20497 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20500 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20504 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20505 hardcode_libdir_separator_CXX
=:
20507 # Commands to make compiler produce verbose output that lists
20508 # what "hidden" libraries, object files and flags are used when
20509 # linking a shared library.
20510 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20513 # FIXME: insert proper C++ library support
20521 # FIXME: insert proper C++ library support
20526 case $cc_basename in
20529 # FIXME: insert proper C++ library support
20534 # FIXME: insert proper C++ library support
20538 # FIXME: insert proper C++ library support
20545 case $cc_basename in
20547 # Sun C++ 4.2, 5.x and Centerline C++
20548 archive_cmds_need_lc_CXX
=yes
20549 no_undefined_flag_CXX
=' -zdefs'
20550 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20551 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20552 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20554 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20555 hardcode_shlibpath_var_CXX
=no
20557 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20559 # The compiler driver will combine and reorder linker options,
20560 # but understands `-z linker_flag'.
20561 # Supported since Solaris 2.6 (maybe 2.5.1?)
20562 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20565 link_all_deplibs_CXX
=yes
20567 output_verbose_link_cmd
='func_echo_all'
20569 # Archives containing C++ object files must be created using
20570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20571 # necessary to make sure instantiated templates are included
20573 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20576 # Green Hills C++ Compiler
20577 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20579 # The C++ compiler must be used to create the archive.
20580 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20583 # GNU C++ compiler with Solaris linker
20584 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20585 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20586 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20587 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20588 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20591 # Commands to make compiler produce verbose output that lists
20592 # what "hidden" libraries, object files and flags are used when
20593 # linking a shared library.
20594 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20598 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20599 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20602 # Commands to make compiler produce verbose output that lists
20603 # what "hidden" libraries, object files and flags are used when
20604 # linking a shared library.
20605 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20608 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20610 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20612 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20620 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20621 no_undefined_flag_CXX
='${wl}-z,text'
20622 archive_cmds_need_lc_CXX
=no
20623 hardcode_shlibpath_var_CXX
=no
20624 runpath_var
='LD_RUN_PATH'
20626 case $cc_basename in
20628 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20629 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20632 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20633 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20638 sysv5
* | sco3.2v5
* | sco5v6
*)
20639 # Note: We can NOT use -z defs as we might desire, because we do not
20640 # link with -lc, and that would cause any symbols used from libc to
20641 # always be unresolved, which means just about no library would
20642 # ever link correctly. If we're not using GNU ld we use -z text
20643 # though, which does catch some bad symbols but isn't as heavy-handed
20645 no_undefined_flag_CXX
='${wl}-z,text'
20646 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20647 archive_cmds_need_lc_CXX
=no
20648 hardcode_shlibpath_var_CXX
=no
20649 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20650 hardcode_libdir_separator_CXX
=':'
20651 link_all_deplibs_CXX
=yes
20652 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20653 runpath_var
='LD_RUN_PATH'
20655 case $cc_basename in
20657 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20658 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20659 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20660 '"$old_archive_cmds_CXX"
20661 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20662 '"$reload_cmds_CXX"
20665 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20666 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20672 case $cc_basename in
20674 # NonStop-UX NCC 3.20
20675 # FIXME: insert proper C++ library support
20679 # FIXME: insert proper C++ library support
20686 # FIXME: insert proper C++ library support
20691 # FIXME: insert proper C++ library support
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20697 $as_echo "$ld_shlibs_CXX" >&6; }
20698 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20704 ## There is no encapsulation within the following macros, do not change
20705 ## the running order or otherwise move them around unless you know exactly
20706 ## what you are doing...
20707 # Dependencies to place before and after the object being linked:
20708 predep_objects_CXX
=
20709 postdep_objects_CXX
=
20712 compiler_lib_search_path_CXX
=
20714 cat > conftest.
$ac_ext <<_LT_EOF
20718 Foo (void) { a = 0; }
20724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20725 (eval $ac_compile) 2>&5
20727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20728 test $ac_status = 0; }; then
20729 # Parse the compiler output and extract the necessary
20730 # objects, libraries and library flags.
20732 # Sentinel used to keep track of whether or not we are before
20733 # the conftest object file.
20734 pre_test_object_deps_done
=no
20736 for p
in `eval "$output_verbose_link_cmd"`; do
20740 # Some compilers place space between "-{L,R}" and the path.
20741 # Remove the space.
20742 if test $p = "-L" ||
20743 test $p = "-R"; then
20750 if test "$pre_test_object_deps_done" = no
; then
20753 # Internal compiler library paths should come after those
20754 # provided the user. The postdeps already come after the
20755 # user supplied libs so there is no need to process them.
20756 if test -z "$compiler_lib_search_path_CXX"; then
20757 compiler_lib_search_path_CXX
="${prev}${p}"
20759 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20762 # The "-l" case would never come before the object being
20763 # linked, so don't bother handling this case.
20766 if test -z "$postdeps_CXX"; then
20767 postdeps_CXX
="${prev}${p}"
20769 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20775 # This assumes that the test object file only shows up
20776 # once in the compiler output.
20777 if test "$p" = "conftest.$objext"; then
20778 pre_test_object_deps_done
=yes
20782 if test "$pre_test_object_deps_done" = no
; then
20783 if test -z "$predep_objects_CXX"; then
20784 predep_objects_CXX
="$p"
20786 predep_objects_CXX
="$predep_objects_CXX $p"
20789 if test -z "$postdep_objects_CXX"; then
20790 postdep_objects_CXX
="$p"
20792 postdep_objects_CXX
="$postdep_objects_CXX $p"
20797 *) ;; # Ignore the rest.
20805 echo "libtool.m4: error: problem compiling CXX test program"
20808 $RM -f confest.
$objext
20810 # PORTME: override above test on systems where it is broken
20813 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20814 # hack all around it, let's just trust "g++" to DTRT.
20815 predep_objects_CXX
=
20816 postdep_objects_CXX
=
20821 case `$CC -V 2>&1 | sed 5q` in
20825 # The more standards-conforming stlport4 library is
20826 # incompatible with the Cstd library. Avoid specifying
20827 # it if it's in CXXFLAGS. Ignore libCrun as
20828 # -library=stlport4 depends on it.
20829 case " $CXX $CXXFLAGS " in
20830 *" -library=stlport4 "*)
20831 solaris_use_stlport4
=yes
20835 if test "$solaris_use_stlport4" != yes; then
20836 postdeps_CXX
='-library=Cstd -library=Crun'
20843 case $cc_basename in
20845 # The more standards-conforming stlport4 library is
20846 # incompatible with the Cstd library. Avoid specifying
20847 # it if it's in CXXFLAGS. Ignore libCrun as
20848 # -library=stlport4 depends on it.
20849 case " $CXX $CXXFLAGS " in
20850 *" -library=stlport4 "*)
20851 solaris_use_stlport4
=yes
20855 # Adding this requires a known-good setup of shared libraries for
20856 # Sun compiler versions before 5.6, else PIC objects from an old
20857 # archive will be linked into the output, leading to subtle bugs.
20858 if test "$solaris_use_stlport4" != yes; then
20859 postdeps_CXX
='-library=Cstd -library=Crun'
20867 case " $postdeps_CXX " in
20868 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20870 compiler_lib_search_dirs_CXX
=
20871 if test -n "${compiler_lib_search_path_CXX}"; then
20872 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20905 lt_prog_compiler_wl_CXX
=
20906 lt_prog_compiler_pic_CXX
=
20907 lt_prog_compiler_static_CXX
=
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20912 # C++ specific cases for pic, static, wl, etc.
20913 if test "$GXX" = yes; then
20914 lt_prog_compiler_wl_CXX
='-Wl,'
20915 lt_prog_compiler_static_CXX
='-static'
20919 # All AIX code is PIC.
20920 if test "$host_cpu" = ia64
; then
20921 # AIX 5 now supports IA64 processor
20922 lt_prog_compiler_static_CXX
='-Bstatic'
20924 lt_prog_compiler_pic_CXX
='-fPIC'
20930 # see comment about AmigaOS4 .so support
20931 lt_prog_compiler_pic_CXX
='-fPIC'
20934 # FIXME: we need at least 68020 code to build shared libraries, but
20935 # adding the `-m68020' flag to GCC prevents building anything better,
20937 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20942 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20943 # PIC is the default for these OSes.
20945 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20946 # This hack is so that the source file can tell whether it is being
20947 # built for inclusion in a dll (and should export symbols for example).
20948 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20949 # (--disable-auto-import) libraries
20950 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20952 darwin
* | rhapsody
*)
20953 # PIC is the default on this platform
20954 # Common symbols not allowed in MH_DYLIB files
20955 lt_prog_compiler_pic_CXX
='-fno-common'
20958 # DJGPP does not support shared libraries at all
20959 lt_prog_compiler_pic_CXX
=
20962 # PIC is the default for Haiku.
20963 # The "-static" flag exists, but is broken.
20964 lt_prog_compiler_static_CXX
=
20967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20968 # Instead, we relocate shared libraries at runtime.
20971 if test -d /usr
/nec
; then
20972 lt_prog_compiler_pic_CXX
=-Kconform_pic
20976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20978 # sets the default TLS model and affects inlining.
20983 lt_prog_compiler_pic_CXX
='-fPIC'
20988 # QNX uses GNU C++, but need to define -shared option too, otherwise
20989 # it will coredump.
20990 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20993 lt_prog_compiler_pic_CXX
='-fPIC'
20999 # All AIX code is PIC.
21000 if test "$host_cpu" = ia64
; then
21001 # AIX 5 now supports IA64 processor
21002 lt_prog_compiler_static_CXX
='-Bstatic'
21004 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21008 case $cc_basename in
21010 # Green Hills C++ Compiler
21011 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
21016 case $cc_basename in
21018 lt_prog_compiler_pic_CXX
='-KPIC'
21021 # Green Hills C++ Compiler
21022 lt_prog_compiler_pic_CXX
='-pic'
21028 freebsd
* | dragonfly
*)
21029 # FreeBSD uses GNU C++
21031 hpux9
* | hpux10
* | hpux11
*)
21032 case $cc_basename in
21034 lt_prog_compiler_wl_CXX
='-Wl,'
21035 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21036 if test "$host_cpu" != ia64
; then
21037 lt_prog_compiler_pic_CXX
='+Z'
21041 lt_prog_compiler_wl_CXX
='-Wl,'
21042 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21048 lt_prog_compiler_pic_CXX
='+Z'
21057 # This is c89, which is MS Visual C++ (no shared libs)
21058 # Anyone wants to do a port?
21060 irix5
* | irix6
* | nonstopux
*)
21061 case $cc_basename in
21063 lt_prog_compiler_wl_CXX
='-Wl,'
21064 lt_prog_compiler_static_CXX
='-non_shared'
21065 # CC pic flag -KPIC is the default.
21071 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21072 case $cc_basename in
21075 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21076 lt_prog_compiler_pic_CXX
='-fPIC'
21079 # old Intel C++ for x86_64 which still supported -KPIC.
21080 lt_prog_compiler_wl_CXX
='-Wl,'
21081 lt_prog_compiler_pic_CXX
='-KPIC'
21082 lt_prog_compiler_static_CXX
='-static'
21085 # Intel C++, used to be incompatible with GCC.
21086 # ICC 10 doesn't accept -KPIC any more.
21087 lt_prog_compiler_wl_CXX
='-Wl,'
21088 lt_prog_compiler_pic_CXX
='-fPIC'
21089 lt_prog_compiler_static_CXX
='-static'
21092 # Portland Group C++ compiler
21093 lt_prog_compiler_wl_CXX
='-Wl,'
21094 lt_prog_compiler_pic_CXX
='-fpic'
21095 lt_prog_compiler_static_CXX
='-Bstatic'
21099 # Make sure the PIC flag is empty. It appears that all Alpha
21100 # Linux and Compaq Tru64 Unix objects are PIC.
21101 lt_prog_compiler_pic_CXX
=
21102 lt_prog_compiler_static_CXX
='-non_shared'
21104 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21105 # IBM XL 8.0, 9.0 on PPC and BlueGene
21106 lt_prog_compiler_wl_CXX
='-Wl,'
21107 lt_prog_compiler_pic_CXX
='-qpic'
21108 lt_prog_compiler_static_CXX
='-qstaticlink'
21111 case `$CC -V 2>&1 | sed 5q` in
21114 lt_prog_compiler_pic_CXX
='-KPIC'
21115 lt_prog_compiler_static_CXX
='-Bstatic'
21116 lt_prog_compiler_wl_CXX
='-Qoption ld '
21127 case $cc_basename in
21129 lt_prog_compiler_pic_CXX
='-W c,exportall'
21138 # QNX uses GNU C++, but need to define -shared option too, otherwise
21139 # it will coredump.
21140 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21142 osf3
* | osf4
* | osf5
*)
21143 case $cc_basename in
21145 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21148 # Rational C++ 2.4.1
21149 lt_prog_compiler_pic_CXX
='-pic'
21152 # Digital/Compaq C++
21153 lt_prog_compiler_wl_CXX
='-Wl,'
21154 # Make sure the PIC flag is empty. It appears that all Alpha
21155 # Linux and Compaq Tru64 Unix objects are PIC.
21156 lt_prog_compiler_pic_CXX
=
21157 lt_prog_compiler_static_CXX
='-non_shared'
21166 case $cc_basename in
21168 # Sun C++ 4.2, 5.x and Centerline C++
21169 lt_prog_compiler_pic_CXX
='-KPIC'
21170 lt_prog_compiler_static_CXX
='-Bstatic'
21171 lt_prog_compiler_wl_CXX
='-Qoption ld '
21174 # Green Hills C++ Compiler
21175 lt_prog_compiler_pic_CXX
='-PIC'
21182 case $cc_basename in
21185 lt_prog_compiler_pic_CXX
='-pic'
21186 lt_prog_compiler_static_CXX
='-Bstatic'
21190 lt_prog_compiler_pic_CXX
='-pic'
21196 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21197 case $cc_basename in
21199 lt_prog_compiler_wl_CXX
='-Wl,'
21200 lt_prog_compiler_pic_CXX
='-KPIC'
21201 lt_prog_compiler_static_CXX
='-Bstatic'
21206 case $cc_basename in
21208 # NonStop-UX NCC 3.20
21209 lt_prog_compiler_pic_CXX
='-KPIC'
21218 lt_prog_compiler_can_build_shared_CXX
=no
21224 # For platforms which do not support PIC, -DPIC is meaningless:
21226 lt_prog_compiler_pic_CXX
=
21229 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21233 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21238 # Check to make sure the PIC flag actually works.
21240 if test -n "$lt_prog_compiler_pic_CXX"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21242 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21243 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21244 $as_echo_n "(cached) " >&6
21246 lt_cv_prog_compiler_pic_works_CXX
=no
21247 ac_outfile
=conftest.
$ac_objext
21248 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21249 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21250 # Insert the option either (1) after the last *FLAGS variable, or
21251 # (2) before a word containing "conftest.", or (3) at the end.
21252 # Note that $ac_compile itself does not contain backslashes and begins
21253 # with a dollar sign (not a hyphen), so the echo should work correctly.
21254 # The option is referenced via a variable to avoid confusing sed.
21255 lt_compile
=`echo "$ac_compile" | $SED \
21256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21258 -e 's:$: $lt_compiler_flag:'`
21259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21260 (eval "$lt_compile" 2>conftest.err
)
21262 cat conftest.err
>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 if (exit $ac_status) && test -s "$ac_outfile"; then
21265 # The compiler can only warn and ignore the option if not recognized
21266 # So say no if there are warnings other than the usual output.
21267 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21268 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21269 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21270 lt_cv_prog_compiler_pic_works_CXX
=yes
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21277 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21279 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21280 case $lt_prog_compiler_pic_CXX in
21282 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21285 lt_prog_compiler_pic_CXX
=
21286 lt_prog_compiler_can_build_shared_CXX
=no
21294 # Check to make sure the static flag actually works.
21296 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21299 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21300 $as_echo_n "(cached) " >&6
21302 lt_cv_prog_compiler_static_works_CXX
=no
21303 save_LDFLAGS
="$LDFLAGS"
21304 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21305 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21306 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21307 # The linker can only warn and ignore the option if not recognized
21308 # So say no if there are warnings
21309 if test -s conftest.err
; then
21310 # Append any errors to the config.log.
21311 cat conftest.err
1>&5
21312 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21313 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21314 if diff conftest.exp conftest.er2
>/dev
/null
; then
21315 lt_cv_prog_compiler_static_works_CXX
=yes
21318 lt_cv_prog_compiler_static_works_CXX
=yes
21322 LDFLAGS
="$save_LDFLAGS"
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21326 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21328 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21331 lt_prog_compiler_static_CXX
=
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21339 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21340 $as_echo_n "(cached) " >&6
21342 lt_cv_prog_compiler_c_o_CXX
=no
21343 $RM -r conftest
2>/dev
/null
21347 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21349 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21350 # Insert the option either (1) after the last *FLAGS variable, or
21351 # (2) before a word containing "conftest.", or (3) at the end.
21352 # Note that $ac_compile itself does not contain backslashes and begins
21353 # with a dollar sign (not a hyphen), so the echo should work correctly.
21354 lt_compile
=`echo "$ac_compile" | $SED \
21355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21357 -e 's:$: $lt_compiler_flag:'`
21358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21359 (eval "$lt_compile" 2>out
/conftest.err
)
21361 cat out
/conftest.err
>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21365 # The compiler can only warn and ignore the option if not recognized
21366 # So say no if there are warnings
21367 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21368 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21369 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21370 lt_cv_prog_compiler_c_o_CXX
=yes
21375 # SGI C++ compiler will create directory out/ii_files/ for
21376 # template instantiation
21377 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21378 $RM out
/* && rmdir out
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21391 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21392 $as_echo_n "(cached) " >&6
21394 lt_cv_prog_compiler_c_o_CXX
=no
21395 $RM -r conftest
2>/dev
/null
21399 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21401 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21402 # Insert the option either (1) after the last *FLAGS variable, or
21403 # (2) before a word containing "conftest.", or (3) at the end.
21404 # Note that $ac_compile itself does not contain backslashes and begins
21405 # with a dollar sign (not a hyphen), so the echo should work correctly.
21406 lt_compile
=`echo "$ac_compile" | $SED \
21407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21409 -e 's:$: $lt_compiler_flag:'`
21410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21411 (eval "$lt_compile" 2>out
/conftest.err
)
21413 cat out
/conftest.err
>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21417 # The compiler can only warn and ignore the option if not recognized
21418 # So say no if there are warnings
21419 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21420 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21421 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21422 lt_cv_prog_compiler_c_o_CXX
=yes
21427 # SGI C++ compiler will create directory out/ii_files/ for
21428 # template instantiation
21429 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21430 $RM out
/* && rmdir out
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21437 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21442 hard_links
="nottested"
21443 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21444 # do not overwrite the value of need_locks provided by the user
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21446 $as_echo_n "checking if we can lock with hard links... " >&6; }
21449 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21451 ln conftest.a conftest.b
2>&5 || hard_links
=no
21452 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21454 $as_echo "$hard_links" >&6; }
21455 if test "$hard_links" = no
; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21457 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21469 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21472 # If we're using GNU nm, then we don't want the "-C" option.
21473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21474 # Also, AIX nm treats weak defined symbols like other global defined
21475 # symbols, whereas GNU nm marks them as "W".
21476 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21477 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21479 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21483 export_symbols_cmds_CXX
="$ltdll_cmds"
21485 cygwin
* | mingw
* | cegcc
*)
21486 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21489 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21492 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21495 $as_echo "$ld_shlibs_CXX" >&6; }
21496 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21498 with_gnu_ld_CXX
=$with_gnu_ld
21506 # Do we need to explicitly link libc?
21508 case "x$archive_cmds_need_lc_CXX" in
21510 # Assume -lc should be added
21511 archive_cmds_need_lc_CXX
=yes
21513 if test "$enable_shared" = yes && test "$GCC" = yes; then
21514 case $archive_cmds_CXX in
21516 # FIXME: we may have to deal with multi-command sequences.
21519 # Test whether the compiler implicitly links with -lc since on some
21520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21521 # to ld, don't add -lc before -lgcc.
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21524 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21525 $as_echo_n "(cached) " >&6
21528 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531 (eval $ac_compile) 2>&5
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; } 2>conftest.err
; then
21537 libobjs
=conftest.
$ac_objext
21539 wl
=$lt_prog_compiler_wl_CXX
21540 pic_flag
=$lt_prog_compiler_pic_CXX
21546 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21547 allow_undefined_flag_CXX
=
21548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21549 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552 test $ac_status = 0; }
21554 lt_cv_archive_cmds_need_lc_CXX
=no
21556 lt_cv_archive_cmds_need_lc_CXX
=yes
21558 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21560 cat conftest.err
1>&5
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21566 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21567 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21640 library_names_spec
=
21641 libname_spec
='lib$name'
21645 postuninstall_cmds
=
21649 shlibpath_overrides_runpath
=unknown
21651 dynamic_linker
="$host_os ld.so"
21652 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21653 need_lib_prefix
=unknown
21654 hardcode_into_libs
=no
21656 # when you set need_version to no, make sure it does not cause -set_version
21657 # flags to be left without arguments
21658 need_version
=unknown
21663 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21664 shlibpath_var
=LIBPATH
21666 # AIX 3 has no versioning support, so we append a major version to the name.
21667 soname_spec
='${libname}${release}${shared_ext}$major'
21674 hardcode_into_libs
=yes
21675 if test "$host_cpu" = ia64
; then
21676 # AIX 5 supports IA64
21677 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21678 shlibpath_var
=LD_LIBRARY_PATH
21680 # With GCC up to 2.95.x, collect2 would create an import file
21681 # for dependence libraries. The import file would start with
21682 # the line `#! .'. This would cause the generated library to
21683 # depend on `.', always an invalid library. This was fixed in
21684 # development snapshots of GCC prior to 3.0.
21686 aix4 | aix4.
[01] | aix4.
[01].
*)
21687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21689 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21692 can_build_shared
=no
21696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21697 # soname into executable. Probably we can add versioning support to
21698 # collect2, so additional links can be useful in future.
21699 if test "$aix_use_runtimelinking" = yes; then
21700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21701 # instead of lib<name>.a to let people know that these are not
21702 # typical AIX shared libraries.
21703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705 # We preserve .a as extension for shared libraries through AIX4.2
21706 # and later when we are not doing run time linking.
21707 library_names_spec
='${libname}${release}.a $libname.a'
21708 soname_spec
='${libname}${release}${shared_ext}$major'
21710 shlibpath_var
=LIBPATH
21717 # Since July 2007 AmigaOS4 officially supports .so libraries.
21718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21722 library_names_spec
='$libname.ixlibrary $libname.a'
21723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21724 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21730 library_names_spec
='${libname}${shared_ext}'
21731 dynamic_linker
="$host_os ld.so"
21732 shlibpath_var
=LIBRARY_PATH
21738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21739 soname_spec
='${libname}${release}${shared_ext}$major'
21740 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21741 shlibpath_var
=LD_LIBRARY_PATH
21742 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21743 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21744 # the default ld.so.conf also contains /usr/contrib/lib and
21745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21746 # libtool to hard-code these into programs
21749 cygwin
* | mingw
* | pw32
* | cegcc
*)
21750 version_type
=windows
21755 case $GCC,$host_os in
21756 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21757 library_names_spec
='$libname.dll.a'
21758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21759 postinstall_cmds
='base_file=`basename \${file}`~
21760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21761 dldir=$destdir/`dirname \$dlpath`~
21762 test -d \$dldir || mkdir -p \$dldir~
21763 $install_prog $dir/$dlname \$dldir/$dlname~
21764 chmod a+x \$dldir/$dlname~
21765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21768 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21769 dlpath=$dir/\$dldll~
21771 shlibpath_overrides_runpath
=yes
21775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21776 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21780 # MinGW DLLs use traditional 'lib' prefix
21781 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21784 # pw32 DLLs use 'pw' prefix rather than 'lib'
21785 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21791 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21794 dynamic_linker
='Win32 ld.exe'
21795 # FIXME: first we should search . and the directory the executable is in
21799 darwin
* | rhapsody
*)
21800 dynamic_linker
="$host_os dyld"
21801 version_type
=darwin
21804 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21805 soname_spec
='${libname}${release}${major}$shared_ext'
21806 shlibpath_overrides_runpath
=yes
21807 shlibpath_var
=DYLD_LIBRARY_PATH
21808 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21810 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21818 soname_spec
='${libname}${release}${shared_ext}$major'
21819 shlibpath_var
=LD_LIBRARY_PATH
21822 freebsd
* | dragonfly
*)
21823 # DragonFly does not have aout. When/if they implement a new
21824 # versioning mechanism, adjust this.
21825 if test -x /usr
/bin
/objformat
; then
21826 objformat
=`/usr/bin/objformat`
21829 freebsd
[23].
*) objformat
=aout
;;
21830 *) objformat
=elf
;;
21833 version_type
=freebsd-
$objformat
21834 case $version_type in
21836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21841 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21845 shlibpath_var
=LD_LIBRARY_PATH
21848 shlibpath_overrides_runpath
=yes
21850 freebsd3.
[01]* | freebsdelf3.
[01]*)
21851 shlibpath_overrides_runpath
=yes
21852 hardcode_into_libs
=yes
21854 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21855 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21856 shlibpath_overrides_runpath
=no
21857 hardcode_into_libs
=yes
21859 *) # from 4.6 on, and DragonFly
21860 shlibpath_overrides_runpath
=yes
21861 hardcode_into_libs
=yes
21870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21871 soname_spec
='${libname}${release}${shared_ext}$major'
21872 shlibpath_var
=LD_LIBRARY_PATH
21873 hardcode_into_libs
=yes
21880 dynamic_linker
="$host_os runtime_loader"
21881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21882 soname_spec
='${libname}${release}${shared_ext}$major'
21883 shlibpath_var
=LIBRARY_PATH
21884 shlibpath_overrides_runpath
=yes
21885 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21886 hardcode_into_libs
=yes
21889 hpux9
* | hpux10
* | hpux11
*)
21890 # Give a soname corresponding to the major version so that dld.sl refuses to
21891 # link against other versions.
21898 hardcode_into_libs
=yes
21899 dynamic_linker
="$host_os dld.so"
21900 shlibpath_var
=LD_LIBRARY_PATH
21901 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21903 soname_spec
='${libname}${release}${shared_ext}$major'
21904 if test "X$HPUX_IA64_MODE" = X32
; then
21905 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21907 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21909 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21913 hardcode_into_libs
=yes
21914 dynamic_linker
="$host_os dld.sl"
21915 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21916 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21918 soname_spec
='${libname}${release}${shared_ext}$major'
21919 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21920 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21924 dynamic_linker
="$host_os dld.sl"
21925 shlibpath_var
=SHLIB_PATH
21926 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21928 soname_spec
='${libname}${release}${shared_ext}$major'
21931 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21932 postinstall_cmds
='chmod 555 $lib'
21933 # or fails outright, so override atomically:
21934 install_override_mode
=555
21941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21942 soname_spec
='${libname}${release}${shared_ext}$major'
21943 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21944 shlibpath_var
=LD_LIBRARY_PATH
21945 shlibpath_overrides_runpath
=no
21946 hardcode_into_libs
=yes
21949 irix5
* | irix6
* | nonstopux
*)
21951 nonstopux
*) version_type
=nonstopux
;;
21953 if test "$lt_cv_prog_gnu_ld" = yes; then
21961 soname_spec
='${libname}${release}${shared_ext}$major'
21962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21964 irix5
* | nonstopux
*)
21965 libsuff
= shlibsuff
=
21968 case $LD in # libtool.m4 will add one of these switches to LD
21969 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21970 libsuff
= shlibsuff
= libmagic
=32-bit;;
21971 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21972 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21973 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21974 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21975 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21979 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21980 shlibpath_overrides_runpath
=no
21981 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21982 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21983 hardcode_into_libs
=yes
21986 # No shared lib support for Linux oldld, aout, or coff.
21987 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21991 # This must be Linux ELF.
21993 # uclinux* changes (here and below) have been submitted to the libtool
21994 # project, but have not yet been accepted: they are GCC-local changes
21995 # for the time being. (See
21996 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21997 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
22001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22002 soname_spec
='${libname}${release}${shared_ext}$major'
22003 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22004 shlibpath_var
=LD_LIBRARY_PATH
22005 shlibpath_overrides_runpath
=no
22007 # Some binutils ld are patched to set DT_RUNPATH
22008 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22009 $as_echo_n "(cached) " >&6
22011 lt_cv_shlibpath_overrides_runpath
=no
22012 save_LDFLAGS
=$LDFLAGS
22013 save_libdir
=$libdir
22014 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22015 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22027 if ac_fn_cxx_try_link
"$LINENO"; then :
22028 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22029 lt_cv_shlibpath_overrides_runpath
=yes
22032 rm -f core conftest.err conftest.
$ac_objext \
22033 conftest
$ac_exeext conftest.
$ac_ext
22034 LDFLAGS
=$save_LDFLAGS
22035 libdir
=$save_libdir
22039 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22041 # This implies no fast_install, which is unacceptable.
22042 # Some rework will be needed to allow for fast_install
22043 # before this can be enabled.
22044 hardcode_into_libs
=yes
22046 # Append ld.so.conf contents to the search path
22047 if test -f /etc
/ld.so.conf
; then
22048 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
22049 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22052 # We used to test for /lib/ld.so.1 and disable shared libraries on
22053 # powerpc, because MkLinux only supported shared libraries with the
22054 # GNU dynamic linker. Since this was broken with cross compilers,
22055 # most powerpc-linux boxes support dynamic linking these days and
22056 # people can always --disable-shared, the test was removed, and we
22057 # assume the GNU/Linux dynamic linker is in use.
22058 dynamic_linker
='GNU/Linux ld.so'
22065 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22067 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22068 dynamic_linker
='NetBSD (a.out) ld.so'
22070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22071 soname_spec
='${libname}${release}${shared_ext}$major'
22072 dynamic_linker
='NetBSD ld.elf_so'
22074 shlibpath_var
=LD_LIBRARY_PATH
22075 shlibpath_overrides_runpath
=yes
22076 hardcode_into_libs
=yes
22081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22082 shlibpath_var
=LD_LIBRARY_PATH
22083 shlibpath_overrides_runpath
=yes
22090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22091 soname_spec
='${libname}${release}${shared_ext}$major'
22092 shlibpath_var
=LD_LIBRARY_PATH
22093 shlibpath_overrides_runpath
=no
22094 hardcode_into_libs
=yes
22095 dynamic_linker
='ldqnx.so'
22100 sys_lib_dlsearch_path_spec
="/usr/lib"
22102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22104 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22105 *) need_version
=no
;;
22107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109 shlibpath_var
=LD_LIBRARY_PATH
22110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22112 openbsd2.
[89] | openbsd2.
[89].
*)
22113 shlibpath_overrides_runpath
=no
22116 shlibpath_overrides_runpath
=yes
22120 shlibpath_overrides_runpath
=yes
22125 libname_spec
='$name'
22128 library_names_spec
='$libname${shared_ext} $libname.a'
22129 dynamic_linker
='OS/2 ld.exe'
22130 shlibpath_var
=LIBPATH
22133 osf3
* | osf4
* | osf5
*)
22137 soname_spec
='${libname}${release}${shared_ext}$major'
22138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139 shlibpath_var
=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22153 soname_spec
='${libname}${release}${shared_ext}$major'
22154 shlibpath_var
=LD_LIBRARY_PATH
22155 shlibpath_overrides_runpath
=yes
22156 hardcode_into_libs
=yes
22157 # ldd complains unless libraries are executable
22158 postinstall_cmds
='chmod +x $lib'
22163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22164 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22165 shlibpath_var
=LD_LIBRARY_PATH
22166 shlibpath_overrides_runpath
=yes
22167 if test "$with_gnu_ld" = yes; then
22175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22176 soname_spec
='${libname}${release}${shared_ext}$major'
22177 shlibpath_var
=LD_LIBRARY_PATH
22178 case $host_vendor in
22180 shlibpath_overrides_runpath
=no
22182 runpath_var
=LD_RUN_PATH
22190 shlibpath_overrides_runpath
=no
22191 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22197 if test -d /usr
/nec
;then
22199 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22200 soname_spec
='$libname${shared_ext}.$major'
22201 shlibpath_var
=LD_LIBRARY_PATH
22205 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22206 version_type
=freebsd-elf
22209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22210 soname_spec
='${libname}${release}${shared_ext}$major'
22211 shlibpath_var
=LD_LIBRARY_PATH
22212 shlibpath_overrides_runpath
=yes
22213 hardcode_into_libs
=yes
22214 if test "$with_gnu_ld" = yes; then
22215 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22217 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22220 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22224 sys_lib_dlsearch_path_spec
='/usr/lib'
22228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22233 shlibpath_var
=LD_LIBRARY_PATH
22234 shlibpath_overrides_runpath
=no
22235 hardcode_into_libs
=yes
22240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22241 soname_spec
='${libname}${release}${shared_ext}$major'
22242 shlibpath_var
=LD_LIBRARY_PATH
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22250 $as_echo "$dynamic_linker" >&6; }
22251 test "$dynamic_linker" = no
&& can_build_shared
=no
22253 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22254 if test "$GCC" = yes; then
22255 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22259 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22262 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22303 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22304 hardcode_action_CXX
=
22305 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22306 test -n "$runpath_var_CXX" ||
22307 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22309 # We can hardcode non-existent directories.
22310 if test "$hardcode_direct_CXX" != no
&&
22311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22312 # have to relink, otherwise we might link with an installed library
22313 # when we should be linking with a yet-to-be-installed one
22314 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22315 test "$hardcode_minus_L_CXX" != no
; then
22316 # Linking always hardcodes the temporary library directory.
22317 hardcode_action_CXX
=relink
22319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22320 hardcode_action_CXX
=immediate
22323 # We cannot hardcode anything, or else we can only hardcode existing
22325 hardcode_action_CXX
=unsupported
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22328 $as_echo "$hardcode_action_CXX" >&6; }
22330 if test "$hardcode_action_CXX" = relink ||
22331 test "$inherit_rpath_CXX" = yes; then
22332 # Fast installation is not supported
22333 enable_fast_install
=no
22334 elif test "$shlibpath_overrides_runpath" = yes ||
22335 test "$enable_shared" = no
; then
22336 # Fast installation is not necessary
22337 enable_fast_install
=needless
22346 fi # test -n "$compiler"
22352 with_gnu_ld
=$lt_save_with_gnu_ld
22353 lt_cv_path_LDCXX
=$lt_cv_path_LD
22354 lt_cv_path_LD
=$lt_save_path_LD
22355 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22356 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22357 fi # test "$_lt_caught_CXX_error" != yes
22360 ac_cpp
='$CXXCPP $CPPFLAGS'
22361 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22380 # Only expand once:
22386 # Identify the assembler which will work hand-in-glove with the newly
22387 # built GCC, so that we can examine its features. This is the assembler
22388 # which will be driven by the driver program.
22390 # If build != host, and we aren't building gas in-tree, we identify a
22391 # build->target assembler and hope that it will have the same features
22392 # as the host->target assembler we'll be using.
22393 gcc_cv_gas_major_version
=
22394 gcc_cv_gas_minor_version
=
22395 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22397 if ${gcc_cv_as+:} false
; then :
22401 if test -x "$DEFAULT_ASSEMBLER"; then
22402 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22403 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22404 && test -f ..
/gas
/Makefile \
22405 && test x
$build = x
$host; then
22406 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22407 elif test -x as
$build_exeext; then
22408 # Build using assembler in the current directory.
22409 gcc_cv_as
=.
/as
$build_exeext
22410 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22411 gcc_cv_as
="$AS_FOR_TARGET"
22413 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22414 set dummy
$AS_FOR_TARGET; ac_word
=$2
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416 $as_echo_n "checking for $ac_word... " >&6; }
22417 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22418 $as_echo_n "(cached) " >&6
22422 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22426 for as_dir
in $PATH
22429 test -z "$as_dir" && as_dir
=.
22430 for ac_exec_ext
in '' $ac_executable_extensions; do
22431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22432 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22443 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22444 if test -n "$gcc_cv_as"; then
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22446 $as_echo "$gcc_cv_as" >&6; }
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22449 $as_echo "no" >&6; }
22456 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22458 case "$ORIGINAL_AS_FOR_TARGET" in
22459 .
/as | .
/as
$build_exeext) ;;
22460 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22465 $as_echo_n "checking what assembler to use... " >&6; }
22466 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22467 # Single tree build which includes gas. We want to prefer it
22468 # over whatever linker top-level may have detected, since
22469 # we'll use what we're building after installation anyway.
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22471 $as_echo "newly built gas" >&6; }
22473 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22474 for f
in $gcc_cv_as_bfd_srcdir/configure \
22475 $gcc_cv_as_gas_srcdir/configure \
22476 $gcc_cv_as_gas_srcdir/configure.ac \
22477 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22478 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22479 if test x
$gcc_cv_gas_version != x
; then
22483 case $gcc_cv_gas_version in
22485 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22487 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22488 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22489 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22490 case $gcc_cv_gas_patch_version in
22491 "") gcc_cv_gas_patch_version
="0" ;;
22493 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22494 + $gcc_cv_gas_minor_version \) \* 1000 \
22495 + $gcc_cv_gas_patch_version`
22497 in_tree_gas_is_elf
=no
22498 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22499 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22500 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22502 in_tree_gas_is_elf
=yes
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22506 $as_echo "$gcc_cv_as" >&6; }
22511 # Check whether --enable-ld was given.
22512 if test "${enable_ld+set}" = set; then :
22513 enableval
=$enable_ld; case "${enableval}" in
22521 install_gold_as_default
=no
22522 # Check whether --enable-gold was given.
22523 if test "${enable_gold+set}" = set; then :
22524 enableval
=$enable_gold; case "${enableval}" in
22526 install_gold_as_default
=yes
22529 if test x
${default_ld} != x
; then
22530 install_gold_as_default
=yes
22536 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22542 # Identify the linker which will work hand-in-glove with the newly
22543 # built GCC, so that we can examine its features. This is the linker
22544 # which will be driven by the driver program.
22546 # If build != host, and we aren't building gas in-tree, we identify a
22547 # build->target linker and hope that it will have the same features
22548 # as the host->target linker we'll be using.
22549 gcc_cv_gld_major_version
=
22550 gcc_cv_gld_minor_version
=
22551 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22552 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22553 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22555 if ${gcc_cv_ld+:} false
; then :
22559 if test -x "$DEFAULT_LINKER"; then
22560 gcc_cv_ld
="$DEFAULT_LINKER"
22561 elif test $install_gold_as_default = yes \
22562 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22563 && test -f ..
/gold
/Makefile \
22564 && test x
$build = x
$host; then
22565 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22566 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22567 && test -f ..
/ld
/Makefile \
22568 && test x
$build = x
$host; then
22569 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22570 elif test -x collect-ld
$build_exeext; then
22571 # Build using linker in the current directory.
22572 gcc_cv_ld
=.
/collect-ld
$build_exeext
22573 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22574 gcc_cv_ld
="$LD_FOR_TARGET"
22576 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22577 set dummy
$LD_FOR_TARGET; ac_word
=$2
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22579 $as_echo_n "checking for $ac_word... " >&6; }
22580 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22581 $as_echo_n "(cached) " >&6
22585 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22589 for as_dir
in $PATH
22592 test -z "$as_dir" && as_dir
=.
22593 for ac_exec_ext
in '' $ac_executable_extensions; do
22594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22595 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22606 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22607 if test -n "$gcc_cv_ld"; then
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22609 $as_echo "$gcc_cv_ld" >&6; }
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22612 $as_echo "no" >&6; }
22619 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22620 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22621 # if the PLUGIN_LD is set ld-new, just have it as ld
22622 # as that is the installed named.
22623 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22624 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22625 PLUGIN_LD_SUFFIX
=ld
22628 # Check whether --with-plugin-ld was given.
22629 if test "${with_plugin_ld+set}" = set; then :
22630 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22631 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22632 PLUGIN_LD_SUFFIX
="$withval"
22638 cat >>confdefs.h
<<_ACEOF
22639 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22643 # Check to see if we are using gold instead of ld
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22645 $as_echo_n "checking whether we are using gold... " >&6; }
22647 if test x
$gcc_cv_ld != x
; then
22648 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22649 |
grep "GNU gold" > /dev
/null
; then
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22654 $as_echo "$ld_is_gold" >&6; }
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22657 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22658 # Check to see if default ld is not gold, but gold is
22659 # available and has support for split stack. If gcc was configured
22660 # with gold then no checking is done.
22662 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22664 # For platforms other than powerpc64*, enable as appropriate.
22666 gold_non_default
=no
22667 ld_gold
=`which ${gcc_cv_ld}.gold`
22668 # Make sure this gold has minimal split stack support
22669 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22670 ld_vers
=`$ld_gold --version | sed 1q`
22671 gold_vers
=`echo $ld_vers | sed -n \
22672 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22674 # check that the gold version contains the complete split stack support
22675 # on powerpc64 big and little endian
22677 case "$gold_vers" in
22678 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22680 *) gold_non_default
=no
22686 if test $gold_non_default = yes; then
22688 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22693 $as_echo "$gold_non_default" >&6; }
22695 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22697 case "$ORIGINAL_LD_FOR_TARGET" in
22698 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22699 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22704 $as_echo_n "checking what linker to use... " >&6; }
22705 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22706 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22707 # Single tree build which includes ld. We want to prefer it
22708 # over whatever linker top-level may have detected, since
22709 # we'll use what we're building after installation anyway.
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22711 $as_echo "newly built ld" >&6; }
22713 in_tree_ld_is_elf
=no
22714 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22715 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22716 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22717 in_tree_ld_is_elf
=yes
22718 elif test "$ld_is_gold" = yes; then
22719 in_tree_ld_is_elf
=yes
22721 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
22723 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22724 if test x
$gcc_cv_gld_version != x
; then
22728 case $gcc_cv_gld_version in
22730 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22732 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22733 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22734 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22735 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22738 $as_echo "$gcc_cv_ld" >&6; }
22740 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22741 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22742 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22748 # Figure out what nm we will be using.
22749 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22750 if ${gcc_cv_nm+:} false
; then :
22754 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22755 && test -f ..
/binutils
/Makefile \
22756 && test x
$build = x
$host; then
22757 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22758 elif test -x nm
$build_exeext; then
22759 gcc_cv_nm
=.
/nm
$build_exeext
22760 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22761 gcc_cv_nm
="$NM_FOR_TARGET"
22763 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22764 set dummy
$NM_FOR_TARGET; ac_word
=$2
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22766 $as_echo_n "checking for $ac_word... " >&6; }
22767 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22768 $as_echo_n "(cached) " >&6
22772 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22776 for as_dir
in $PATH
22779 test -z "$as_dir" && as_dir
=.
22780 for ac_exec_ext
in '' $ac_executable_extensions; do
22781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22782 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22793 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22794 if test -n "$gcc_cv_nm"; then
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22796 $as_echo "$gcc_cv_nm" >&6; }
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22807 $as_echo_n "checking what nm to use... " >&6; }
22808 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22809 # Single tree build which includes binutils.
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22811 $as_echo "newly built nm" >&6; }
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22815 $as_echo "$gcc_cv_nm" >&6; }
22819 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22821 case "$ORIGINAL_NM_FOR_TARGET" in
22822 .
/nm | .
/nm
$build_exeext) ;;
22823 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22828 # Figure out what objdump we will be using.
22829 if ${gcc_cv_objdump+:} false
; then :
22833 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22834 && test -f ..
/binutils
/Makefile \
22835 && test x
$build = x
$host; then
22836 # Single tree build which includes binutils.
22837 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22838 elif test -x objdump
$build_exeext; then
22839 gcc_cv_objdump
=.
/objdump
$build_exeext
22840 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22841 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22843 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22844 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22846 $as_echo_n "checking for $ac_word... " >&6; }
22847 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22848 $as_echo_n "(cached) " >&6
22850 case $gcc_cv_objdump in
22852 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22856 for as_dir
in $PATH
22859 test -z "$as_dir" && as_dir
=.
22860 for ac_exec_ext
in '' $ac_executable_extensions; do
22861 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22862 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22873 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22874 if test -n "$gcc_cv_objdump"; then
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22876 $as_echo "$gcc_cv_objdump" >&6; }
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22879 $as_echo "no" >&6; }
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22887 $as_echo_n "checking what objdump to use... " >&6; }
22888 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22889 # Single tree build which includes binutils.
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22891 $as_echo "newly built objdump" >&6; }
22892 elif test x
$gcc_cv_objdump = x
; then
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22894 $as_echo "not found" >&6; }
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22897 $as_echo "$gcc_cv_objdump" >&6; }
22900 # Figure out what readelf we will be using.
22901 if ${gcc_cv_readelf+:} false
; then :
22905 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22906 && test -f ..
/binutils
/Makefile \
22907 && test x
$build = x
$host; then
22908 # Single tree build which includes binutils.
22909 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22910 elif test -x readelf
$build_exeext; then
22911 gcc_cv_readelf
=.
/readelf
$build_exeext
22912 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22913 gcc_cv_readelf
="$READELF_FOR_TARGET"
22915 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22916 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22918 $as_echo_n "checking for $ac_word... " >&6; }
22919 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22920 $as_echo_n "(cached) " >&6
22922 case $gcc_cv_readelf in
22924 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22928 for as_dir
in $PATH
22931 test -z "$as_dir" && as_dir
=.
22932 for ac_exec_ext
in '' $ac_executable_extensions; do
22933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22934 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22945 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22946 if test -n "$gcc_cv_readelf"; then
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22948 $as_echo "$gcc_cv_readelf" >&6; }
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22951 $as_echo "no" >&6; }
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22959 $as_echo_n "checking what readelf to use... " >&6; }
22960 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22961 # Single tree build which includes binutils.
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22963 $as_echo "newly built readelf" >&6; }
22964 elif test x
$gcc_cv_readelf = x
; then
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22966 $as_echo "not found" >&6; }
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22969 $as_echo "$gcc_cv_readelf" >&6; }
22972 # Figure out what otool we will be using.
22973 if ${gcc_cv_otool+:} false
; then :
22977 if test -x otool
$build_exeext; then
22978 gcc_cv_otool
=.
/otool
$build_exeext
22979 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22980 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22982 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22983 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22985 $as_echo_n "checking for $ac_word... " >&6; }
22986 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22987 $as_echo_n "(cached) " >&6
22989 case $gcc_cv_otool in
22991 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22995 for as_dir
in $PATH
22998 test -z "$as_dir" && as_dir
=.
22999 for ac_exec_ext
in '' $ac_executable_extensions; do
23000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23001 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23012 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23013 if test -n "$gcc_cv_otool"; then
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23015 $as_echo "$gcc_cv_otool" >&6; }
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23018 $as_echo "no" >&6; }
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23026 $as_echo_n "checking what otool to use... " >&6; }
23027 if test x
$gcc_cv_otool = x
; then
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23029 $as_echo "not found" >&6; }
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23032 $as_echo "$gcc_cv_otool" >&6; }
23035 # Figure out what assembler alignment features are present.
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23037 $as_echo_n "checking assembler flags... " >&6; }
23038 if ${gcc_cv_as_flags+:} false
; then :
23039 $as_echo_n "(cached) " >&6
23042 i
[34567]86-*-linux*)
23043 gcc_cv_as_flags
=--32
23045 x86_64-
*-linux-gnux32)
23046 gcc_cv_as_flags
=--x32
23049 gcc_cv_as_flags
=--64
23051 powerpc
*-*-darwin*)
23052 gcc_cv_as_flags
="-arch ppc"
23055 gcc_cv_as_flags
=" "
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23060 $as_echo "$gcc_cv_as_flags" >&6; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23063 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23064 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23065 $as_echo_n "(cached) " >&6
23067 gcc_cv_as_balign_and_p2align
=no
23068 if test $in_tree_gas = yes; then
23069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23070 then gcc_cv_as_balign_and_p2align
=yes
23072 elif test x
$gcc_cv_as != x
; then
23073 $as_echo '.balign 4
23074 .p2align 2' > conftest.s
23075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23077 (eval $ac_try) 2>&5
23079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23080 test $ac_status = 0; }; }
23082 gcc_cv_as_balign_and_p2align
=yes
23084 echo "configure: failed program was" >&5
23087 rm -f conftest.o conftest.s
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23091 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23092 if test $gcc_cv_as_balign_and_p2align = yes; then
23094 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23100 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23101 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23102 $as_echo_n "(cached) " >&6
23104 gcc_cv_as_max_skip_p2align
=no
23105 if test $in_tree_gas = yes; then
23106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23107 then gcc_cv_as_max_skip_p2align
=yes
23109 elif test x
$gcc_cv_as != x
; then
23110 $as_echo '.p2align 4,,7' > conftest.s
23111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23118 gcc_cv_as_max_skip_p2align
=yes
23120 echo "configure: failed program was" >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23127 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23128 if test $gcc_cv_as_max_skip_p2align = yes; then
23130 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23136 $as_echo_n "checking assembler for .literal16... " >&6; }
23137 if ${gcc_cv_as_literal16+:} false
; then :
23138 $as_echo_n "(cached) " >&6
23140 gcc_cv_as_literal16
=no
23141 if test $in_tree_gas = yes; then
23142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23143 then gcc_cv_as_literal16
=yes
23145 elif test x
$gcc_cv_as != x
; then
23146 $as_echo '.literal16' > conftest.s
23147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }
23154 gcc_cv_as_literal16
=yes
23156 echo "configure: failed program was" >&5
23159 rm -f conftest.o conftest.s
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23163 $as_echo "$gcc_cv_as_literal16" >&6; }
23164 if test $gcc_cv_as_literal16 = yes; then
23166 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23172 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23173 if ${gcc_cv_as_subsection_m1+:} false
; then :
23174 $as_echo_n "(cached) " >&6
23176 gcc_cv_as_subsection_m1
=no
23177 if test $in_tree_gas = yes; then
23178 if test $in_tree_gas_is_elf = yes \
23179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23180 then gcc_cv_as_subsection_m1
=yes
23182 elif test x
$gcc_cv_as != x
; then
23183 $as_echo 'conftest_label1: .word 0
23185 conftest_label2: .word 0
23186 .previous' > conftest.s
23187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23194 if test x
$gcc_cv_nm != x
; then
23195 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23196 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23197 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23199 else gcc_cv_as_subsection_m1
=yes
23201 rm -f conftest.nm1 conftest.nm2
23204 echo "configure: failed program was" >&5
23207 rm -f conftest.o conftest.s
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23211 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23212 if test $gcc_cv_as_subsection_m1 = yes; then
23214 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23220 $as_echo_n "checking assembler for .weak... " >&6; }
23221 if ${gcc_cv_as_weak+:} false
; then :
23222 $as_echo_n "(cached) " >&6
23225 if test $in_tree_gas = yes; then
23226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23227 then gcc_cv_as_weak
=yes
23229 elif test x
$gcc_cv_as != x
; then
23230 $as_echo ' .weak foobar' > conftest.s
23231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23233 (eval $ac_try) 2>&5
23235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23236 test $ac_status = 0; }; }
23240 echo "configure: failed program was" >&5
23243 rm -f conftest.o conftest.s
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23247 $as_echo "$gcc_cv_as_weak" >&6; }
23248 if test $gcc_cv_as_weak = yes; then
23250 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23256 $as_echo_n "checking assembler for .weakref... " >&6; }
23257 if ${gcc_cv_as_weakref+:} false
; then :
23258 $as_echo_n "(cached) " >&6
23260 gcc_cv_as_weakref
=no
23261 if test $in_tree_gas = yes; then
23262 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23263 then gcc_cv_as_weakref
=yes
23265 elif test x
$gcc_cv_as != x
; then
23266 $as_echo ' .weakref foobar, barfnot' > conftest.s
23267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23274 gcc_cv_as_weakref
=yes
23276 echo "configure: failed program was" >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23283 $as_echo "$gcc_cv_as_weakref" >&6; }
23284 if test $gcc_cv_as_weakref = yes; then
23286 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23292 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23293 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23294 $as_echo_n "(cached) " >&6
23296 gcc_cv_as_nsubspa_comdat
=no
23297 if test $in_tree_gas = yes; then
23298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23299 then gcc_cv_as_nsubspa_comdat
=yes
23301 elif test x
$gcc_cv_as != x
; then
23302 $as_echo ' .SPACE $TEXT$
23303 .NSUBSPA $CODE$,COMDAT' > conftest.s
23304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23306 (eval $ac_try) 2>&5
23308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309 test $ac_status = 0; }; }
23311 gcc_cv_as_nsubspa_comdat
=yes
23313 echo "configure: failed program was" >&5
23316 rm -f conftest.o conftest.s
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23320 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23321 if test $gcc_cv_as_nsubspa_comdat = yes; then
23323 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23328 # .hidden needs to be supported in both the assembler and the linker,
23329 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23330 # This is irritatingly difficult to feature test for; we have to check the
23331 # date string after the version number. If we've got an in-tree
23332 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23334 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23335 case "${target}" in
23337 conftest_s
=' .globl foobar,hidden'
23340 conftest_s
=' .hidden foobar
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23345 $as_echo_n "checking assembler for .hidden... " >&6; }
23346 if ${gcc_cv_as_hidden+:} false
; then :
23347 $as_echo_n "(cached) " >&6
23349 gcc_cv_as_hidden
=no
23350 if test $in_tree_gas = yes; then
23351 if test $in_tree_gas_is_elf = yes \
23352 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23353 then gcc_cv_as_hidden
=yes
23355 elif test x
$gcc_cv_as != x
; then
23356 $as_echo "$conftest_s" > conftest.s
23357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23359 (eval $ac_try) 2>&5
23361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23362 test $ac_status = 0; }; }
23364 gcc_cv_as_hidden
=yes
23366 echo "configure: failed program was" >&5
23369 rm -f conftest.o conftest.s
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23373 $as_echo "$gcc_cv_as_hidden" >&6; }
23376 case "${target}" in
23378 # Darwin as has some visibility support, though with a different syntax.
23379 gcc_cv_as_hidden
=yes
23383 # gnu_indirect_function type is an extension proposed at
23384 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23385 # selection of function implementation
23386 # Check whether --enable-gnu-indirect-function was given.
23387 if test "${enable_gnu_indirect_function+set}" = set; then :
23388 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23390 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23391 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23394 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23398 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23400 cat >>confdefs.h
<<_ACEOF
23401 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23406 if test $in_tree_ld != yes ; then
23407 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23408 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23409 if test x
"$ld_is_gold" = xyes
; then
23410 # GNU gold --version looks like this:
23412 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23414 # We extract the binutils version which is more familiar and specific
23415 # than the gold version.
23416 ld_vers
=`echo $ld_ver | sed -n \
23417 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23419 # GNU ld --version looks like this:
23421 # GNU ld (GNU Binutils) 2.21.51.20110225
23422 ld_vers
=`echo $ld_ver | sed -n \
23423 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23425 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23426 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23427 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23428 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23430 case "${target}" in
23432 # Solaris 2 ld -V output looks like this for a regular version:
23434 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23436 # but test versions add stuff at the end:
23438 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23440 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23441 # numbers can be used in ld.so.1 feature checks even if a different
23442 # linker is configured.
23443 ld_ver
=`$gcc_cv_ld -V 2>&1`
23444 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23445 ld_vers
=`echo $ld_ver | sed -n \
23446 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23447 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23448 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23456 $as_echo_n "checking linker for .hidden support... " >&6; }
23457 if ${gcc_cv_ld_hidden+:} false
; then :
23458 $as_echo_n "(cached) " >&6
23460 if test $in_tree_ld = yes ; then
23461 gcc_cv_ld_hidden
=no
23462 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
23463 && test $in_tree_ld_is_elf = yes; then
23464 gcc_cv_ld_hidden
=yes
23467 gcc_cv_ld_hidden
=yes
23468 if test x
"$ld_is_gold" = xyes
; then
23470 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23471 if test 0"$ld_date" -lt 20020404; then
23472 if test -n "$ld_date"; then
23473 # If there was date string, but was earlier than 2002-04-04, fail
23474 gcc_cv_ld_hidden
=no
23475 elif test -z "$ld_vers"; then
23476 # If there was no date string nor ld version number, something is wrong
23477 gcc_cv_ld_hidden
=no
23479 test -z "$ld_vers_patch" && ld_vers_patch
=0
23480 if test "$ld_vers_major" -lt 2; then
23481 gcc_cv_ld_hidden
=no
23482 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23483 gcc_cv_ld_hidden
="no"
23484 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23485 gcc_cv_ld_hidden
=no
23490 case "${target}" in
23492 gcc_cv_ld_hidden
=yes
23495 # Darwin ld has some visibility support.
23496 gcc_cv_ld_hidden
=yes
23498 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23499 gcc_cv_ld_hidden
=yes
23502 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23503 # .symbolic was only added in Solaris 9 12/02.
23504 gcc_cv_ld_hidden
=yes
23507 gcc_cv_ld_hidden
=no
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23514 $as_echo "$gcc_cv_ld_hidden" >&6; }
23515 libgcc_visibility
=no
23518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23519 libgcc_visibility
=yes
23521 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23526 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23527 gcc_cv_ld_ro_rw_mix
=unknown
23528 if test $in_tree_ld = yes ; then
23529 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
23530 && test $in_tree_ld_is_elf = yes; then
23531 gcc_cv_ld_ro_rw_mix
=read-write
23533 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23534 echo '.section myfoosect, "a"' > conftest1.s
23535 echo '.section myfoosect, "aw"' > conftest2.s
23536 echo '.byte 1' >> conftest2.s
23537 echo '.section myfoosect, "a"' > conftest3.s
23538 echo '.byte 0' >> conftest3.s
23539 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23540 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23541 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23542 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23543 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23544 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23545 | sed -e '/myfoosect/!d' -e N`
23546 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23547 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23548 gcc_cv_ld_ro_rw_mix
=read-only
23550 gcc_cv_ld_ro_rw_mix
=read-write
23554 rm -f conftest.
* conftest
[123].
*
23556 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23558 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23562 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23564 # Check whether --enable-initfini-array was given.
23565 if test "${enable_initfini_array+set}" = set; then :
23566 enableval
=$enable_initfini_array;
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23570 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23571 if ${gcc_cv_initfini_array+:} false
; then :
23572 $as_echo_n "(cached) " >&6
23574 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23575 case "${target}" in
23577 if test "$cross_compiling" = yes; then :
23578 gcc_cv_initfini_array
=no
23580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23581 /* end confdefs.h. */
23584 #error Not an ELF OS
23586 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23587 if it can be used. */
23589 int main (void) { return x; }
23590 int foo (void) { x = 0; }
23591 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23594 if ac_fn_cxx_try_run
"$LINENO"; then :
23595 gcc_cv_initfini_array
=yes
23597 gcc_cv_initfini_array
=no
23599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23604 gcc_cv_initfini_array
=no
23605 if test $in_tree_ld = yes ; then
23606 if test "$gcc_cv_gld_major_version" -eq 2 \
23607 -a "$gcc_cv_gld_minor_version" -ge 22 \
23608 -o "$gcc_cv_gld_major_version" -gt 2 \
23609 && test $in_tree_ld_is_elf = yes; then
23610 gcc_cv_initfini_array
=yes
23612 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23613 case $target:$gas in
23616 sh_type
='%progbits'
23618 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23620 sh_type
='@progbits'
23622 sparc
*-*-solaris2*:no
)
23624 sh_type
='#progbits'
23628 case "$target:$gnu_ld" in
23630 cat > conftest.s
<<EOF
23631 .section .dtors,$sh_flags,$sh_type
23633 .byte 'A', 'A', 'A', 'A'
23634 .section .ctors,$sh_flags,$sh_type
23636 .byte 'B', 'B', 'B', 'B'
23637 .section .fini_array.65530,$sh_flags,$sh_type
23639 .byte 'C', 'C', 'C', 'C'
23640 .section .init_array.65530,$sh_flags,$sh_type
23642 .byte 'D', 'D', 'D', 'D'
23643 .section .dtors.64528,$sh_flags,$sh_type
23645 .byte 'E', 'E', 'E', 'E'
23646 .section .ctors.64528,$sh_flags,$sh_type
23648 .byte 'F', 'F', 'F', 'F'
23649 .section .fini_array.01005,$sh_flags,$sh_type
23651 .byte 'G', 'G', 'G', 'G'
23652 .section .init_array.01005,$sh_flags,$sh_type
23654 .byte 'H', 'H', 'H', 'H'
23659 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23660 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23661 && $gcc_cv_objdump -s -j .init_array conftest \
23662 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23663 && $gcc_cv_objdump -s -j .fini_array conftest \
23664 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23665 gcc_cv_initfini_array
=yes
23669 # When Solaris ld added constructor priority support, it was
23670 # decided to only handle .init_array.N/.fini_array.N since
23671 # there was no need for backwards compatibility with
23672 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23673 # sections with correct execution order resp. to
23674 # .init_array/.fini_array, while gld merges them into
23675 # .init_array/.fini_array.
23676 cat > conftest.s
<<EOF
23677 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23679 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23680 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23682 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23683 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23685 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23686 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23688 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23693 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23694 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23695 && $gcc_cv_objdump -s -j .init_array conftest \
23696 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23697 && $gcc_cv_objdump -s -j .fini_array conftest \
23698 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23699 gcc_cv_initfini_array
=yes
23703 rm -f conftest conftest.
*
23705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23706 /* end confdefs.h. */
23709 # error Not an ELF OS
23711 #include <stdlib.h>
23712 #if defined __GLIBC_PREREQ
23713 # if __GLIBC_PREREQ (2, 4)
23715 # error GLIBC 2.4 required
23718 # if defined __sun__ && defined __svr4__
23719 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23721 # error The C library not known to support .init_array/.fini_array
23726 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23729 gcc_cv_initfini_array
=no
23731 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23735 $as_echo_n "checking cross compile... guessing... " >&6; }
23736 gcc_cv_initfini_array
=no
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23740 $as_echo "$gcc_cv_initfini_array" >&6; }
23741 enable_initfini_array
=$gcc_cv_initfini_array
23746 cat >>confdefs.h
<<_ACEOF
23747 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23752 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23754 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23755 if ${gcc_cv_as_leb128+:} false
; then :
23756 $as_echo_n "(cached) " >&6
23758 gcc_cv_as_leb128
=no
23759 if test $in_tree_gas = yes; then
23760 if test $in_tree_gas_is_elf = yes \
23761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23762 then gcc_cv_as_leb128
=yes
23764 elif test x
$gcc_cv_as != x
; then
23771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23773 (eval $ac_try) 2>&5
23775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23776 test $ac_status = 0; }; }
23778 # GAS versions before 2.11 do not support uleb128,
23779 # despite appearing to.
23780 # ??? There exists an elf-specific test that will crash
23781 # the assembler. Perhaps it's better to figure out whether
23782 # arbitrary sections are supported and try the test.
23783 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23784 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23785 as_vers
=`echo $as_ver | sed -n \
23786 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23787 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23788 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23789 if test $as_major -eq 2 && test $as_minor -lt 11
23791 else gcc_cv_as_leb128
=yes
23795 echo "configure: failed program was" >&5
23798 rm -f conftest.o conftest.s
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23802 $as_echo "$gcc_cv_as_leb128" >&6; }
23803 if test $gcc_cv_as_leb128 = yes; then
23805 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23808 if test $gcc_cv_as_leb128 != yes; then
23810 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23814 # Determine if an .eh_frame section is read-only.
23815 gcc_fn_eh_frame_ro
() {
23816 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23817 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23818 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23821 # Check if we have assembler support for unwind directives.
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23823 $as_echo_n "checking assembler for cfi directives... " >&6; }
23824 if ${gcc_cv_as_cfi_directive+:} false
; then :
23825 $as_echo_n "(cached) " >&6
23827 gcc_cv_as_cfi_directive
=no
23828 if test x
$gcc_cv_as != x
; then
23834 .cfi_escape 1, 2, 3, 4, 5
23835 .cfi_endproc' > conftest.s
23836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838 (eval $ac_try) 2>&5
23840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841 test $ac_status = 0; }; }
23845 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23846 # read-only and read-write sections, we need to make sure that the
23847 # assembler used emits read-write .eh_frame sections.
23848 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23849 gcc_cv_as_cfi_directive
=yes
23850 elif test "x$gcc_cv_objdump" = x
; then
23851 # No objdump, err on the side of caution.
23852 gcc_cv_as_cfi_directive
=no
23854 if test x
$gas = xyes
; then
23862 sparc
*-*-solaris2.
*)
23863 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23864 if gcc_fn_eh_frame_ro
$as_32_opt \
23865 || gcc_fn_eh_frame_ro
$as_64_opt; then
23866 gcc_cv_as_cfi_directive
=no
23868 gcc_cv_as_cfi_directive
=yes
23871 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23872 # On Solaris/x86, make sure that GCC and assembler agree on using
23873 # read-only .eh_frame sections for 64-bit.
23874 if gcc_fn_eh_frame_ro
$as_32_opt; then
23875 gcc_cv_as_cfi_directive
=no
23876 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23877 gcc_cv_as_cfi_directive
=yes
23879 gcc_cv_as_cfi_directive
=no
23886 gcc_cv_as_cfi_directive
=yes
23890 echo "configure: failed program was" >&5
23893 rm -f conftest.o conftest.s
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23897 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23900 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23902 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23903 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23904 $as_echo_n "(cached) " >&6
23906 gcc_cv_as_cfi_advance_working
=no
23907 if test x
$gcc_cv_as != x
; then
23910 .cfi_adjust_cfa_offset 64
23912 .cfi_adjust_cfa_offset 128
23913 .cfi_endproc' > conftest.s
23914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23916 (eval $ac_try) 2>&5
23918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919 test $ac_status = 0; }; }
23922 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23923 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23924 gcc_cv_as_cfi_advance_working
=yes
23928 echo "configure: failed program was" >&5
23931 rm -f conftest.o conftest.s
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23935 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23939 # no objdump, err on the side of caution
23940 gcc_cv_as_cfi_advance_working
=no
23944 cat >>confdefs.h
<<_ACEOF
23945 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23946 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23952 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23953 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23954 $as_echo_n "(cached) " >&6
23956 gcc_cv_as_cfi_personality_directive
=no
23957 if test x
$gcc_cv_as != x
; then
23960 .cfi_personality 0, symbol
23961 .cfi_endproc' > conftest.s
23962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23964 (eval $ac_try) 2>&5
23966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23967 test $ac_status = 0; }; }
23969 gcc_cv_as_cfi_personality_directive
=yes
23971 echo "configure: failed program was" >&5
23974 rm -f conftest.o conftest.s
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23978 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23982 cat >>confdefs.h
<<_ACEOF
23983 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23988 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23989 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23990 $as_echo_n "(cached) " >&6
23992 gcc_cv_as_cfi_sections_directive
=no
23993 if test x
$gcc_cv_as != x
; then
23995 .cfi_sections .debug_frame, .eh_frame
23997 .cfi_endproc' > conftest.s
23998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; }
24006 win32 | pe | cygwin
* | mingw32
*)
24007 # Need to check that we generated the correct relocation for the
24008 # .debug_frame section. This was fixed for binutils 2.21.
24009 gcc_cv_as_cfi_sections_directive
=no
24010 if test "x$gcc_cv_objdump" != x
; then
24011 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24012 grep secrel
> /dev
/null
; then
24013 gcc_cv_as_cfi_sections_directive
=yes
24018 gcc_cv_as_cfi_sections_directive
=yes
24022 echo "configure: failed program was" >&5
24025 rm -f conftest.o conftest.s
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24029 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24034 cat >>confdefs.h
<<_ACEOF
24035 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24039 # GAS versions up to and including 2.11.0 may mis-optimize
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24042 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24043 if ${gcc_cv_as_eh_frame+:} false
; then :
24044 $as_echo_n "(cached) " >&6
24046 gcc_cv_as_eh_frame
=no
24047 if test $in_tree_gas = yes; then
24048 if test $in_tree_gas_is_elf = yes \
24049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24050 then gcc_cv_as_eh_frame
=yes
24052 elif test x
$gcc_cv_as != x
; then
24059 .section .eh_frame,"aw",@progbits
24061 .4byte .LECIE1-.LSCIE1
24075 .4byte .LEFDE1-.LASFDE1
24077 .4byte .LASFDE1-__FRAME_BEGIN__
24084 .LEFDE1:' > conftest.s
24085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24087 (eval $ac_try) 2>&5
24089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24090 test $ac_status = 0; }; }
24092 cat > conftest.lit
<<EOF
24093 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24094 0010 01000000 12000000 18000000 00000000 ................
24095 0020 08000000 04080000 0044 .........D
24097 cat > conftest.big
<<EOF
24098 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24099 0010 00000001 00000012 00000018 00000000 ................
24100 0020 00000008 04000000 0844 .........D
24102 # If the assembler didn't choke, and we can objdump,
24103 # and we got the correct data, then succeed.
24104 # The text in the here-document typically retains its unix-style line
24105 # endings, while the output of objdump will use host line endings.
24106 # Therefore, use diff -b for the comparisons.
24107 if test x
$gcc_cv_objdump != x \
24108 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24109 |
tail -3 > conftest.got \
24110 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24111 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24113 gcc_cv_as_eh_frame
=yes
24114 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116 (eval $ac_try) 2>&5
24118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119 test $ac_status = 0; }; }; then
24120 gcc_cv_as_eh_frame
=buggy
24122 # Uh oh, what do we do now?
24123 gcc_cv_as_eh_frame
=no
24126 echo "configure: failed program was" >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24133 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24137 if test $gcc_cv_as_eh_frame = buggy
; then
24139 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24143 # Test if the assembler supports the section flag 'e' or #exclude for
24144 # specifying an excluded section.
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24146 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24147 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24148 $as_echo_n "(cached) " >&6
24150 gcc_cv_as_section_exclude_e
=no
24151 if test $in_tree_gas = yes; then
24152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24153 then gcc_cv_as_section_exclude_e
=yes
24155 elif test x
$gcc_cv_as != x
; then
24156 $as_echo '.section foo1,"e"
24157 .byte 0,0,0,0' > conftest.s
24158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24160 (eval $ac_try) 2>&5
24162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24163 test $ac_status = 0; }; }
24165 gcc_cv_as_section_exclude_e
=yes
24167 echo "configure: failed program was" >&5
24170 rm -f conftest.o conftest.s
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24174 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24177 if test $gcc_cv_as_section_exclude_e = no
; then
24178 case "${target}" in
24179 # Solaris as uses #exclude instead.
24181 case "${target}" in
24182 sparc
*-*-solaris2*)
24183 conftest_s
='.section "foo1", #exclude'
24185 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24186 conftest_s
='.section foo1, #exclude'
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24192 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24193 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24194 $as_echo_n "(cached) " >&6
24196 gcc_cv_as_section_exclude_hash
=no
24197 if test x
$gcc_cv_as != x
; then
24198 $as_echo "$conftest_s
24199 .byte 0,0,0,0" > conftest.s
24200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }
24207 gcc_cv_as_section_exclude_hash
=yes
24209 echo "configure: failed program was" >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24216 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24221 cat >>confdefs.h
<<_ACEOF
24222 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24227 $as_echo_n "checking assembler for section merging support... " >&6; }
24228 if ${gcc_cv_as_shf_merge+:} false
; then :
24229 $as_echo_n "(cached) " >&6
24231 gcc_cv_as_shf_merge
=no
24232 if test $in_tree_gas = yes; then
24233 if test $in_tree_gas_is_elf = yes \
24234 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24235 then gcc_cv_as_shf_merge
=yes
24237 elif test x
$gcc_cv_as != x
; then
24238 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; }
24246 gcc_cv_as_shf_merge
=yes
24248 echo "configure: failed program was" >&5
24251 rm -f conftest.o conftest.s
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24255 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24258 if test $gcc_cv_as_shf_merge = no
; then
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24260 $as_echo_n "checking assembler for section merging support... " >&6; }
24261 if ${gcc_cv_as_shf_merge+:} false
; then :
24262 $as_echo_n "(cached) " >&6
24264 gcc_cv_as_shf_merge
=no
24265 if test $in_tree_gas = yes; then
24266 if test $in_tree_gas_is_elf = yes \
24267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24268 then gcc_cv_as_shf_merge
=yes
24270 elif test x
$gcc_cv_as != x
; then
24271 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24279 gcc_cv_as_shf_merge
=yes
24281 echo "configure: failed program was" >&5
24284 rm -f conftest.o conftest.s
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24288 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24293 cat >>confdefs.h
<<_ACEOF
24294 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24298 gcc_cv_ld_aligned_shf_merge
=yes
24300 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24302 sparc
*-*-solaris2.11
*)
24303 if test x
"$gnu_ld" = xno \
24304 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24305 gcc_cv_ld_aligned_shf_merge
=no
24310 cat >>confdefs.h
<<_ACEOF
24311 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24316 $as_echo_n "checking assembler for stabs directive... " >&6; }
24317 if ${gcc_cv_as_stabs_directive+:} false
; then :
24318 $as_echo_n "(cached) " >&6
24320 gcc_cv_as_stabs_directive
=no
24321 if test x
$gcc_cv_as != x
; then
24322 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }
24330 gcc_cv_as_stabs_directive
=yes
24332 echo "configure: failed program was" >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24339 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24340 if test $gcc_cv_as_stabs_directive = yes; then
24342 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24348 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24349 if ${gcc_cv_as_comdat_group+:} false
; then :
24350 $as_echo_n "(cached) " >&6
24352 gcc_cv_as_comdat_group
=no
24353 if test $in_tree_gas = yes; then
24354 if test $in_tree_gas_is_elf = yes \
24355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24356 then gcc_cv_as_comdat_group
=yes
24358 elif test x
$gcc_cv_as != x
; then
24359 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24360 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24362 (eval $ac_try) 2>&5
24364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365 test $ac_status = 0; }; }
24367 gcc_cv_as_comdat_group
=yes
24369 echo "configure: failed program was" >&5
24372 rm -f conftest.o conftest.s
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24376 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24379 if test $gcc_cv_as_comdat_group = yes; then
24380 gcc_cv_as_comdat_group_percent
=no
24381 gcc_cv_as_comdat_group_group
=no
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24384 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24385 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24386 $as_echo_n "(cached) " >&6
24388 gcc_cv_as_comdat_group_percent
=no
24389 if test $in_tree_gas = yes; then
24390 if test $in_tree_gas_is_elf = yes \
24391 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24392 then gcc_cv_as_comdat_group_percent
=yes
24394 elif test x
$gcc_cv_as != x
; then
24395 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24398 (eval $ac_try) 2>&5
24400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24401 test $ac_status = 0; }; }
24403 gcc_cv_as_comdat_group_percent
=yes
24405 echo "configure: failed program was" >&5
24408 rm -f conftest.o conftest.s
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24412 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24415 if test $gcc_cv_as_comdat_group_percent = yes; then
24416 gcc_cv_as_comdat_group_group
=no
24418 case "${target}" in
24419 # Sun as uses a completely different syntax.
24421 case "${target}" in
24422 sparc
*-*-solaris2*)
24424 .group foo,".text%foo",#comdat
24425 .section ".text%foo", #alloc,#execinstr,#progbits
24430 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24432 .group foo,.text%foo,#comdat
24433 .section .text%foo, "ax", @progbits
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24440 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24441 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24442 $as_echo_n "(cached) " >&6
24444 gcc_cv_as_comdat_group_group
=no
24445 if test x
$gcc_cv_as != x
; then
24446 $as_echo "$conftest_s" > conftest.s
24447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24454 gcc_cv_as_comdat_group_group
=yes
24456 echo "configure: failed program was" >&5
24459 rm -f conftest.o conftest.s
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24463 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24468 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24469 gcc_cv_as_comdat_group_group
=no
24473 if test x
"$ld_is_gold" = xyes
; then
24475 elif test $in_tree_ld = yes ; then
24477 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
24478 && test $in_tree_ld_is_elf = yes; then
24481 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24483 if test 0"$ld_date" -lt 20050308; then
24484 if test -n "$ld_date"; then
24485 # If there was date string, but was earlier than 2005-03-08, fail
24487 elif test "$ld_vers_major" -lt 2; then
24489 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24494 case "${target}" in
24495 *-*-solaris2.1
[1-9]*)
24497 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24498 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24501 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24502 # least ld version 1.2267.
24503 if test "$ld_vers_major" -gt 1; then
24505 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24507 elif test "$ld_vers_minor" -ge 2267; then
24512 # Assume linkers other than GNU ld don't support COMDAT group.
24517 # Allow overriding the automatic COMDAT group tests above.
24518 # Check whether --enable-comdat was given.
24519 if test "${enable_comdat+set}" = set; then :
24520 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24523 if test $comdat_group = no
; then
24524 gcc_cv_as_comdat_group
=no
24525 gcc_cv_as_comdat_group_percent
=no
24526 gcc_cv_as_comdat_group_group
=no
24529 cat >>confdefs.h
<<_ACEOF
24530 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24531 || test $gcc_cv_as_comdat_group_percent = yes \
24532 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24536 # Restrict this test to Solaris/x86: other targets define this statically.
24537 case "${target}" in
24538 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24540 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24541 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24542 hidden_linkonce
=yes
24544 case "${target}" in
24545 # Full support for hidden thunks in linkonce sections only appeared in
24546 # Solaris 11/OpenSolaris.
24547 *-*-solaris2.1
[1-9]*)
24548 hidden_linkonce
=yes
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24556 $as_echo "$hidden_linkonce" >&6; }
24558 cat >>confdefs.h
<<_ACEOF
24559 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24566 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24567 if ${gcc_cv_as_is_stmt+:} false
; then :
24568 $as_echo_n "(cached) " >&6
24570 gcc_cv_as_is_stmt
=no
24571 if test $in_tree_gas = yes; then
24572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24573 then gcc_cv_as_is_stmt
=yes
24575 elif test x
$gcc_cv_as != x
; then
24578 .loc 1 1 0 is_stmt 1' > conftest.s
24579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24586 gcc_cv_as_is_stmt
=yes
24588 echo "configure: failed program was" >&5
24591 rm -f conftest.o conftest.s
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24595 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24596 if test $gcc_cv_as_is_stmt = yes; then
24598 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24604 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24605 if ${gcc_cv_as_discriminator+:} false
; then :
24606 $as_echo_n "(cached) " >&6
24608 gcc_cv_as_discriminator
=no
24609 if test $in_tree_gas = yes; then
24610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24611 then gcc_cv_as_discriminator
=yes
24613 elif test x
$gcc_cv_as != x
; then
24616 .loc 1 1 0 discriminator 1' > conftest.s
24617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; }
24624 gcc_cv_as_discriminator
=yes
24626 echo "configure: failed program was" >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24633 $as_echo "$gcc_cv_as_discriminator" >&6; }
24634 if test $gcc_cv_as_discriminator = yes; then
24636 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24641 # Catch the newlib flag of the same name so we can gate GCC features on it.
24642 # Check whether --enable-newlib-nano-formatted-io was given.
24643 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24644 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24648 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24654 # Thread-local storage - the check is heavily parameterized.
24662 .section ".tdata","awT",@progbits
24665 ldq $27,__tls_get_addr($29) !literal!1
24666 lda $16,foo($29) !tlsgd!1
24667 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24668 ldq $27,__tls_get_addr($29) !literal!2
24669 lda $16,foo($29) !tlsldm!2
24670 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24671 ldq $1,foo($29) !gotdtprel
24672 ldah $2,foo($29) !dtprelhi
24673 lda $3,foo($2) !dtprello
24674 lda $4,foo($29) !dtprel
24675 ldq $1,foo($29) !gottprel
24676 ldah $2,foo($29) !tprelhi
24677 lda $3,foo($2) !tprello
24678 lda $4,foo($29) !tprel'
24681 tls_as_opt
=--fatal-warnings
24685 add_s r0,r0, @foo@tpoff'
24689 cris-
*-*|crisv32-
*-*)
24691 .section ".tdata","awT",@progbits
24698 tls_as_opt
=--fatal-warnings
24702 .section ".tdata","awT",@progbits
24705 call #gettlsoff(x)'
24714 .section ".tdata","awT",@progbits
24718 addil LT%foo-$tls_gdidx$,gp
24719 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24722 addil LT%foo-$tls_ldidx$,gp
24724 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24725 addil LR%foo-$tls_dtpoff$,%ret0
24726 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24728 addil LT%foo-$tls_ieoff$,gp
24729 ldw RT%foo-$tls_ieoff$(%r1),%t2
24732 addil LR%foo-$tls_leoff$,%t1
24733 ldo RR%foo-$tls_leoff$(%r1),%t2'
24736 tls_as_opt
=--fatal-warnings
24740 .section ".tdata","awT",%progbits
24743 .word foo(gottpoff)
24751 i
[34567]86-*-* | x86_64-
*-*)
24753 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24760 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24762 .section .tdata,"awt",@progbits'
24767 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24771 .section ".tdata","awT",@progbits'
24775 tls_as_opt
="--fatal-warnings"
24779 if test x
$on_solaris = xyes
; then
24781 yes) tls_as_opt
="$tls_as_opt --32" ;;
24784 conftest_s
="$conftest_s
24788 leal foo@tlsgd(,%ebx,1), %eax
24789 leal foo@tlsldm(%ebx), %eax
24790 leal foo@dtpoff(%eax), %edx
24791 movl foo@gottpoff(%ebx), %eax
24792 subl foo@gottpoff(%ebx), %eax
24793 addl foo@gotntpoff(%ebx), %eax
24794 movl foo@indntpoff, %eax
24795 movl \$foo@tpoff, %eax
24796 subl \$foo@tpoff, %eax
24797 leal foo@ntpoff(%ecx), %eax"
24800 if test x
$on_solaris = xyes
; then
24802 yes) tls_as_opt
="$tls_as_opt --64" ;;
24803 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24806 conftest_s
="$conftest_s
24810 leaq foo@tlsgd(%rip), %rdi
24811 leaq foo@tlsld(%rip), %rdi
24812 leaq foo@dtpoff(%rax), %rdx
24813 movq foo@gottpoff(%rip), %rax
24814 movq \$foo@tpoff, %rax"
24820 .section ".tdata","awT",@progbits
24823 addl r16 = @ltoff(@dtpmod(foo#)), gp
24824 addl r17 = @ltoff(@dtprel(foo#)), gp
24825 addl r18 = @ltoff(@tprel(foo#)), gp
24826 addl r19 = @dtprel(foo#), gp
24827 adds r21 = @dtprel(foo#), r13
24828 movl r23 = @dtprel(foo#)
24829 addl r20 = @tprel(foo#), gp
24830 adds r22 = @tprel(foo#), r13
24831 movl r24 = @tprel(foo#)'
24834 tls_as_opt
=--fatal-warnings
24838 .section .tdata,"awT",@progbits
24842 addik r5,r20,x@TLSGD
24843 addik r5,r20,x@TLSLDM'
24846 tls_as_opt
='--fatal-warnings'
24850 .section .tdata,"awT",@progbits
24854 addiu $4, $28, %tlsgd(x)
24855 addiu $4, $28, %tlsldm(x)
24856 lui $4, %dtprel_hi(x)
24857 addiu $4, $4, %dtprel_lo(x)
24858 lw $4, %gottprel(x)($28)
24859 lui $4, %tprel_hi(x)
24860 addiu $4, $4, %tprel_lo(x)'
24863 tls_as_opt
='-32 --fatal-warnings'
24867 .section .tdata,"awT",@progbits
24872 move.l x@TLSGD(%a5),%a0
24873 move.l x@TLSLDM(%a5),%a0
24874 move.l x@TLSLDO(%a5),%a0
24875 move.l x@TLSIE(%a5),%a0
24876 move.l x@TLSLE(%a5),%a0'
24879 tls_as_opt
='--fatal-warnings'
24883 .section ".tdata","awT",@progbits'
24886 tls_as_opt
="--fatal-warnings"
24890 .section ".tdata","awT",%progbits
24894 add x0, x0, #:tlsgd_lo12:x
24899 tls_as_opt
='--fatal-warnings'
24903 .section ".tdata","awT",@progbits
24906 l.movhi r3, tpoffha(foo)
24908 l.lwz r4, tpofflo(foo)(r3)'
24911 tls_as_opt
=--fatal-warnings
24915 .extern __get_tpointer
24933 .section ".tdata","awT",@progbits
24941 addi 3,2,ld0@got@tlsgd
24947 addi 3,2,x1@got@tlsld
24953 addis 9,3,x2@dtprel@ha
24954 addi 9,9,x2@dtprel@l
24957 ld 9,x3@got@dtprel(2)
24963 tls_as_opt
="-a64 --fatal-warnings"
24967 .section ".tdata","awT",@progbits
24975 addi 3,31,ld0@got@tlsgd
24977 addi 3,31,x1@got@tlsld
24980 addis 9,3,x2@dtprel@ha
24981 addi 9,9,x2@dtprel@l
24982 lwz 9,x3@got@tprel(31)
24985 addis 9,2,x2@tprel@ha
24986 addi 9,9,x2@tprel@l'
24989 tls_as_opt
="-a32 --fatal-warnings"
24993 .section .tdata,"awT",@progbits
24997 call __tls_get_addr'
25000 tls_as_opt
='--fatal-warnings'
25004 .section ".tdata","awT",@progbits
25011 .long foo@GOTNTPOFF
25012 .long foo@INDNTPOFF
25013 l %r1,foo@GOTNTPOFF(%r12)
25014 l %r1,0(%r1):tls_load:foo
25015 bas %r14,0(%r1,%r13):tls_gdcall:foo
25016 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25019 tls_as_opt
="-m31 --fatal-warnings"
25023 .section ".tdata","awT",@progbits
25030 .quad foo@GOTNTPOFF
25031 lg %r1,foo@GOTNTPOFF(%r12)
25032 larl %r1,foo@INDNTPOFF
25033 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25034 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25037 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25039 sh-
*-* | sh
[123456789lbe
]*-*-*)
25041 .section ".tdata","awT",@progbits
25051 tls_as_opt
=--fatal-warnings
25055 sparc
*-sun-solaris2.
*)
25062 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25064 .section ".tdata",#alloc,#write,#tls'
25069 .section ".tdata","awT",@progbits'
25072 tls_as_opt
="-32 --fatal-warnings"
25074 conftest_s
="$conftest_s
25077 sethi %tgd_hi22(foo), %o0
25078 add %o0, %tgd_lo10(foo), %o1
25079 add %l7, %o1, %o0, %tgd_add(foo)
25080 call __tls_get_addr, %tgd_call(foo)
25081 sethi %tldm_hi22(foo), %l1
25082 add %l1, %tldm_lo10(foo), %l2
25083 add %l7, %l2, %o0, %tldm_add(foo)
25084 call __tls_get_addr, %tldm_call(foo)
25085 sethi %tldo_hix22(foo), %l3
25086 xor %l3, %tldo_lox10(foo), %l4
25087 add %o0, %l4, %l5, %tldo_add(foo)
25088 sethi %tie_hi22(foo), %o3
25089 add %o3, %tie_lo10(foo), %o3
25090 ld [%l7 + %o3], %o2, %tie_ld(foo)
25091 add %g7, %o2, %o4, %tie_add(foo)
25092 sethi %tle_hix22(foo), %l1
25093 xor %l1, %tle_lox10(foo), %o5
25094 ld [%g7 + %o5], %o1"
25098 .section ".tdata","awT",@progbits
25101 addli r0, zero, tls_gd(foo)
25102 auli r0, zero, tls_gd_ha16(foo)
25103 addli r0, r0, tls_gd_lo16(foo)
25105 addli r0, zero, tls_ie(foo)
25106 auli r0, r0, tls_ie_ha16(foo)
25107 addli r0, r0, tls_ie_lo16(foo)'
25110 tls_as_opt
="--fatal-warnings"
25114 .section ".tdata","awT",@progbits
25117 shl16insli r0, zero, hw0_last_tls_gd(foo)
25118 shl16insli r0, zero, hw1_last_tls_gd(foo)
25119 shl16insli r0, r0, hw0_tls_gd(foo)
25121 shl16insli r0, zero, hw1_last_tls_ie(foo)
25122 shl16insli r0, r0, hw0_tls_ie(foo)'
25125 tls_as_opt
="--fatal-warnings"
25129 .section ".tdata","awT",@progbits
25132 movi a8, foo@TLSFUNC
25133 movi a10, foo@TLSARG
25134 callx8.tls a8, foo@TLSCALL'
25140 if test "x$enable_tls" = xno
; then
25141 : # TLS explicitly disabled.
25142 elif test "x$enable_tls" = xyes
; then
25143 set_have_as_tls
=yes # TLS explicitly enabled.
25144 elif test -z "$tls_first_major"; then
25145 : # If we don't have a check, assume no support.
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25148 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25149 if ${gcc_cv_as_tls+:} false
; then :
25150 $as_echo_n "(cached) " >&6
25153 if test $in_tree_gas = yes; then
25154 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25155 then gcc_cv_as_tls
=yes
25157 elif test x
$gcc_cv_as != x
; then
25158 $as_echo "$conftest_s" > conftest.s
25159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25161 (eval $ac_try) 2>&5
25163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25164 test $ac_status = 0; }; }
25168 echo "configure: failed program was" >&5
25171 rm -f conftest.o conftest.s
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25175 $as_echo "$gcc_cv_as_tls" >&6; }
25176 if test $gcc_cv_as_tls = yes; then
25177 set_have_as_tls
=yes
25181 if test $set_have_as_tls = yes ; then
25183 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25187 # Target-specific assembler checks.
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25190 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25191 gcc_cv_ld_static_dynamic
=no
25192 gcc_cv_ld_static_option
='-Bstatic'
25193 gcc_cv_ld_dynamic_option
='-Bdynamic'
25194 if test $in_tree_ld = yes ; then
25195 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
25196 gcc_cv_ld_static_dynamic
=yes
25198 elif test x
$gcc_cv_ld != x
; then
25199 # Check if linker supports -Bstatic/-Bdynamic option
25200 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25201 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25202 gcc_cv_ld_static_dynamic
=yes
25205 # AIX ld uses -b flags
25206 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25207 gcc_cv_ld_static_dynamic
=yes
25208 gcc_cv_ld_static_option
="-bstatic"
25209 gcc_cv_ld_dynamic_option
="-bdynamic"
25211 # HP-UX ld uses -a flags to select between shared and archive.
25213 if test x
"$gnu_ld" = xno
; then
25214 gcc_cv_ld_static_dynamic
=yes
25215 gcc_cv_ld_static_option
="-aarchive_shared"
25216 gcc_cv_ld_dynamic_option
="-adefault"
25219 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25221 gcc_cv_ld_static_dynamic
=yes
25226 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25228 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25231 cat >>confdefs.h
<<_ACEOF
25232 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25236 cat >>confdefs.h
<<_ACEOF
25237 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25242 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25245 $as_echo_n "checking linker --version-script option... " >&6; }
25246 gcc_cv_ld_version_script
=no
25247 ld_version_script_option
=''
25248 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25249 gcc_cv_ld_version_script
=yes
25250 ld_version_script_option
='--version-script'
25251 elif test x
$gcc_cv_ld != x
; then
25253 # Solaris 2 ld always supports -M. It also supports a subset of
25254 # --version-script since Solaris 11.4, but requires
25255 # -z gnu-version-script-compat to activate.
25257 gcc_cv_ld_version_script
=yes
25258 ld_version_script_option
='-M'
25262 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25264 $as_echo "$gcc_cv_ld_version_script" >&6; }
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25268 $as_echo_n "checking linker soname option... " >&6; }
25269 gcc_cv_ld_soname
=no
25270 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25271 gcc_cv_ld_soname
=yes
25272 ld_soname_option
='-soname'
25273 elif test x
$gcc_cv_ld != x
; then
25276 gcc_cv_ld_soname
=yes
25277 ld_soname_option
='-install_name'
25279 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25280 # ld compatiblity since some Solaris 10 update.
25282 gcc_cv_ld_soname
=yes
25283 ld_soname_option
='-h'
25287 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25289 $as_echo "$gcc_cv_ld_soname" >&6; }
25292 if test x
"$demangler_in_ld" = xyes
; then
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25294 $as_echo_n "checking linker --demangle support... " >&6; }
25295 gcc_cv_ld_demangle
=no
25296 if test $in_tree_ld = yes; then
25297 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
25298 gcc_cv_ld_demangle
=yes
25300 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25301 # Check if the GNU linker supports --demangle option
25302 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25303 gcc_cv_ld_demangle
=yes
25306 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25308 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25312 $as_echo "$gcc_cv_ld_demangle" >&6; }
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25316 $as_echo_n "checking linker plugin support... " >&6; }
25317 gcc_cv_lto_plugin
=0
25318 if test -f liblto_plugin.la
; then
25319 save_ld_ver
="$ld_ver"
25320 save_ld_vers_major
="$ld_vers_major"
25321 save_ld_vers_minor
="$ld_vers_minor"
25322 save_ld_is_gold
="$ld_is_gold"
25326 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25328 # FIXME: ld_is_gold?
25329 ld_vers_major
="$gcc_cv_gld_major_version"
25330 ld_vers_minor
="$gcc_cv_gld_minor_version"
25332 # Determine plugin linker version.
25333 # FIXME: Partial duplicate from above, generalize.
25334 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25335 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25336 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25338 ld_vers
=`echo $ld_ver | sed -n \
25339 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25341 ld_vers
=`echo $ld_ver | sed -n \
25342 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25344 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25345 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25349 # Determine plugin support.
25350 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25351 # Require GNU ld or gold 2.21+ for plugin support by default.
25352 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25353 gcc_cv_lto_plugin
=2
25354 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25355 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25356 gcc_cv_lto_plugin
=1
25360 ld_ver
="$save_ld_ver"
25361 ld_vers_major
="$save_ld_vers_major"
25362 ld_vers_minor
="$save_ld_vers_minor"
25363 ld_is_gold
="$save_ld_is_gold"
25366 cat >>confdefs.h
<<_ACEOF
25367 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25371 $as_echo "$gcc_cv_lto_plugin" >&6; }
25373 # Target OS-specific assembler checks.
25375 case "$target_os" in
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25378 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25379 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25380 $as_echo_n "(cached) " >&6
25382 gcc_cv_as_mmacosx_version_min
=no
25383 if test x
$gcc_cv_as != x
; then
25384 $as_echo '.text' > conftest.s
25385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25392 gcc_cv_as_mmacosx_version_min
=yes
25394 echo "configure: failed program was" >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25401 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25402 if test $gcc_cv_as_mmacosx_version_min = yes; then
25404 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25411 # Target CPU-specific assembler checks.
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25416 $as_echo_n "checking assembler for -mabi option... " >&6; }
25417 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25418 $as_echo_n "(cached) " >&6
25420 gcc_cv_as_aarch64_mabi
=no
25421 if test x
$gcc_cv_as != x
; then
25422 $as_echo '.text' > conftest.s
25423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25425 (eval $ac_try) 2>&5
25427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25428 test $ac_status = 0; }; }
25430 gcc_cv_as_aarch64_mabi
=yes
25432 echo "configure: failed program was" >&5
25435 rm -f conftest.o conftest.s
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25439 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25442 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25444 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25447 if test x
$with_abi = xilp32
; then
25448 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25449 Upgrade the Assembler." "$LINENO" 5
25451 if test x
"$with_multilib_list" = xdefault
; then
25452 TM_MULTILIB_CONFIG
=lp64
25454 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25455 for aarch64_multilib
in ${aarch64_multilibs}; do
25456 case ${aarch64_multilib} in
25458 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25459 Upgrade the Assembler." "$LINENO" 5
25467 # Check if we have binutils support for relocations types needed by -fpic
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25469 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25470 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25471 $as_echo_n "(cached) " >&6
25473 gcc_cv_as_aarch64_picreloc
=no
25474 if test x
$gcc_cv_as != x
; then
25477 ldr x0, [x2, #:gotpage_lo15:globalsym]
25479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25486 gcc_cv_as_aarch64_picreloc
=yes
25488 echo "configure: failed program was" >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25495 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25496 if test $gcc_cv_as_aarch64_picreloc = yes; then
25498 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25502 # Enable Branch Target Identification Mechanism and Return Address
25503 # Signing by default.
25504 # Check whether --enable-standard-branch-protection was given.
25505 if test "${enable_standard_branch_protection+set}" = set; then :
25506 enableval
=$enable_standard_branch_protection;
25509 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25514 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25515 Valid choices are 'yes' and 'no'." "$LINENO" 5
25521 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25522 # Check whether --enable-fix-cortex-a53-835769 was given.
25523 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25524 enableval
=$enable_fix_cortex_a53_835769;
25527 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25532 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25533 Valid choices are 'yes' and 'no'." "$LINENO" 5
25540 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25541 # Check whether --enable-fix-cortex-a53-843419 was given.
25542 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25543 enableval
=$enable_fix_cortex_a53_843419;
25546 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25551 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25552 Valid choices are 'yes' and 'no'." "$LINENO" 5
25561 # All TARGET_ABI_OSF targets.
25562 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25564 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25565 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25566 $as_echo_n "(cached) " >&6
25568 gcc_cv_as_alpha_explicit_relocs
=no
25569 if test $in_tree_gas = yes; then
25570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25571 then gcc_cv_as_alpha_explicit_relocs
=yes
25573 elif test x
$gcc_cv_as != x
; then
25574 $as_echo ' .set nomacro
25576 extbl $3, $2, $3 !lituse_bytoff!1
25577 ldq $2, a($29) !literal!1
25578 ldq $4, b($29) !literal!2
25579 ldq_u $3, 0($2) !lituse_base!1
25580 ldq $27, f($29) !literal!5
25581 jsr $26, ($27), f !lituse_jsr!5
25582 ldah $29, 0($26) !gpdisp!3
25583 lda $0, c($29) !gprel
25584 ldah $1, d($29) !gprelhigh
25585 lda $1, d($1) !gprellow
25586 lda $29, 0($29) !gpdisp!3' > conftest.s
25587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25594 gcc_cv_as_alpha_explicit_relocs
=yes
25596 echo "configure: failed program was" >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25603 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25604 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25606 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25611 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25612 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25613 $as_echo_n "(cached) " >&6
25615 gcc_cv_as_alpha_jsrdirect_relocs
=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25618 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25620 elif test x
$gcc_cv_as != x
; then
25621 $as_echo ' .set nomacro
25623 ldq $27, a($29) !literal!1
25624 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25632 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25634 echo "configure: failed program was" >&5
25637 rm -f conftest.o conftest.s
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25641 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25642 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25644 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25652 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25653 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25654 $as_echo_n "(cached) " >&6
25656 gcc_cv_as_avr_mlink_relax
=no
25657 if test x
$gcc_cv_as != x
; then
25658 $as_echo '.text' > conftest.s
25659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25666 gcc_cv_as_avr_mlink_relax
=yes
25668 echo "configure: failed program was" >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25675 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25676 if test $gcc_cv_as_avr_mlink_relax = yes; then
25678 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25684 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25685 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25686 $as_echo_n "(cached) " >&6
25688 gcc_cv_as_avr_mrmw
=no
25689 if test x
$gcc_cv_as != x
; then
25690 $as_echo '.text' > conftest.s
25691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25698 gcc_cv_as_avr_mrmw
=yes
25700 echo "configure: failed program was" >&5
25703 rm -f conftest.o conftest.s
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25707 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25708 if test $gcc_cv_as_avr_mrmw = yes; then
25710 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25716 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25717 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25718 $as_echo_n "(cached) " >&6
25720 gcc_cv_as_avr_mgccisr
=no
25721 if test x
$gcc_cv_as != x
; then
25727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729 (eval $ac_try) 2>&5
25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732 test $ac_status = 0; }; }
25734 gcc_cv_as_avr_mgccisr
=yes
25736 echo "configure: failed program was" >&5
25739 rm -f conftest.o conftest.s
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25743 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25744 if test $gcc_cv_as_avr_mgccisr = yes; then
25746 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25751 # Check how default linker description file implements .rodata for
25752 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25753 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25755 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25756 cat > conftest.s
<<EOF
25757 .section .rodata,"a",@progbits
25759 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25764 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25766 (eval $ac_try) 2>&5
25768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25769 test $ac_status = 0; }; }
25770 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25772 (eval $ac_try) 2>&5
25774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25775 test $ac_status = 0; }; }
25776 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 if test -s conftest.nm
25784 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25786 $as_echo "yes" >&6; }
25788 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25792 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25793 echo "$as_me: nm output was" >&5
25794 cat conftest.nm
>&5
25795 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25797 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25801 $as_echo "test failed" >&6; }
25802 echo "$as_me: failed program was" >&5
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25805 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25807 rm -f conftest.s conftest.o conftest.elf conftest.nm
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25812 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25813 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25814 $as_echo_n "(cached) " >&6
25816 gcc_cv_as_cris_no_mul_bug
=no
25817 if test $in_tree_gas = yes; then
25818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25819 then gcc_cv_as_cris_no_mul_bug
=yes
25821 elif test x
$gcc_cv_as != x
; then
25822 $as_echo '.text' > conftest.s
25823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25830 gcc_cv_as_cris_no_mul_bug
=yes
25832 echo "configure: failed program was" >&5
25835 rm -f conftest.o conftest.s
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25839 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25840 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25842 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25850 $as_echo_n "checking assembler for -relax option... " >&6; }
25851 if ${gcc_cv_as_sparc_relax+:} false
; then :
25852 $as_echo_n "(cached) " >&6
25854 gcc_cv_as_sparc_relax
=no
25855 if test x
$gcc_cv_as != x
; then
25856 $as_echo '.text' > conftest.s
25857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25864 gcc_cv_as_sparc_relax
=yes
25866 echo "configure: failed program was" >&5
25869 rm -f conftest.o conftest.s
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25873 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25874 if test $gcc_cv_as_sparc_relax = yes; then
25876 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25882 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25883 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25884 $as_echo_n "(cached) " >&6
25886 gcc_cv_as_sparc_gotdata_op
=no
25887 if test x
$gcc_cv_as != x
; then
25893 sethi %gdop_hix22(foo), %g1
25894 xor %g1, %gdop_lox10(foo), %g1
25895 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25903 if test x
$gcc_cv_ld != x \
25904 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25905 if test x
$gcc_cv_objdump != x
; then
25906 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25907 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25908 gcc_cv_as_sparc_gotdata_op
=no
25910 gcc_cv_as_sparc_gotdata_op
=yes
25916 echo "configure: failed program was" >&5
25919 rm -f conftest.o conftest.s
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25923 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25924 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25926 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25933 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25934 $as_echo_n "(cached) " >&6
25936 gcc_cv_as_sparc_ua_pcrel
=no
25937 if test x
$gcc_cv_as != x
; then
25944 .uaword %r_disp32(foo)' > conftest.s
25945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25952 if test x
$gcc_cv_ld != x \
25953 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25954 gcc_cv_as_sparc_ua_pcrel
=yes
25958 echo "configure: failed program was" >&5
25961 rm -f conftest.o conftest.s
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25968 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25972 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25973 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25974 $as_echo_n "(cached) " >&6
25976 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25977 if test x
$gcc_cv_as != x
; then
25981 .uaword %r_disp32(foo)
25982 .byte 0x32, 0x33, 0x34
25986 .skip 4' > conftest.s
25987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25994 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25995 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25996 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25997 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25998 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25999 |
grep 'DISP32' > /dev
/null
2>&1; then
26002 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26014 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26015 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26023 # unaligned pcrel relocs
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26026 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26027 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26028 $as_echo_n "(cached) " >&6
26030 gcc_cv_as_sparc_offsetable_lo10
=no
26031 if test x
$gcc_cv_as != x
; then
26033 or %g1, %lo(ab) + 12, %g1
26034 or %g1, %lo(ab + 12), %g1' > conftest.s
26035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26042 if test x
$gcc_cv_objdump != x \
26043 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26044 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26045 gcc_cv_as_sparc_offsetable_lo10
=yes
26048 echo "configure: failed program was" >&5
26051 rm -f conftest.o conftest.s
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26055 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26056 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26058 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26064 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26065 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26066 $as_echo_n "(cached) " >&6
26068 gcc_cv_as_sparc_fmaf
=no
26069 if test x
$gcc_cv_as != x
; then
26071 .register %g2, #scratch
26072 .register %g3, #scratch
26074 fmaddd %f0, %f2, %f4, %f6
26075 addxccc %g1, %g2, %g3
26076 fsrl32 %f2, %f4, %f8
26077 fnaddd %f10, %f12, %f14' > conftest.s
26078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26085 gcc_cv_as_sparc_fmaf
=yes
26087 echo "configure: failed program was" >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26094 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26095 if test $gcc_cv_as_sparc_fmaf = yes; then
26097 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26103 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26104 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26105 $as_echo_n "(cached) " >&6
26107 gcc_cv_as_sparc_sparc4
=no
26108 if test x
$gcc_cv_as != x
; then
26110 .register %g2, #scratch
26111 .register %g3, #scratch
26114 1: cwbneg %g2, %g3, 1f
26117 aes_kexpand0 %f4, %f6, %f8
26118 des_round %f38, %f40, %f42, %f44
26119 camellia_f %f54, %f56, %f58, %f60
26120 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26128 gcc_cv_as_sparc_sparc4
=yes
26130 echo "configure: failed program was" >&5
26133 rm -f conftest.o conftest.s
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26137 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26138 if test $gcc_cv_as_sparc_sparc4 = yes; then
26140 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26146 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26147 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26148 $as_echo_n "(cached) " >&6
26150 gcc_cv_as_sparc_sparc5
=no
26151 if test x
$gcc_cv_as != x
; then
26153 .register %g2, #scratch
26154 .register %g3, #scratch
26156 subxc %g1, %g2, %g3
26157 fpadd8 %f0, %f2, %f4' > conftest.s
26158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26165 gcc_cv_as_sparc_sparc5
=yes
26167 echo "configure: failed program was" >&5
26170 rm -f conftest.o conftest.s
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26174 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26175 if test $gcc_cv_as_sparc_sparc5 = yes; then
26177 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26183 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26184 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26185 $as_echo_n "(cached) " >&6
26187 gcc_cv_as_sparc_sparc6
=no
26188 if test x
$gcc_cv_as != x
; then
26190 .register %g2, #scratch
26191 .register %g3, #scratch
26194 fpsll64x %f0, %f2, %f4' > conftest.s
26195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26197 (eval $ac_try) 2>&5
26199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26200 test $ac_status = 0; }; }
26202 gcc_cv_as_sparc_sparc6
=yes
26204 echo "configure: failed program was" >&5
26207 rm -f conftest.o conftest.s
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26211 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26212 if test $gcc_cv_as_sparc_sparc6 = yes; then
26214 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26220 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26221 if ${gcc_cv_as_sparc_leon+:} false
; then :
26222 $as_echo_n "(cached) " >&6
26224 gcc_cv_as_sparc_leon
=no
26225 if test x
$gcc_cv_as != x
; then
26227 .register %g2, #scratch
26228 .register %g3, #scratch
26232 casa [%g2] 0xb, %g3, %g1' > conftest.s
26233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26235 (eval $ac_try) 2>&5
26237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26238 test $ac_status = 0; }; }
26240 gcc_cv_as_sparc_leon
=yes
26242 echo "configure: failed program was" >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26249 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26250 if test $gcc_cv_as_sparc_leon = yes; then
26252 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26258 i
[34567]86-*-* | x86_64-
*-*)
26261 # Full C++ conformance when using a shared libstdc++-v3 requires some
26262 # support from the Cygwin DLL, which in more recent versions exports
26263 # wrappers to aid in interposing and redirecting operators new, delete,
26264 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26265 # are configuring for a version of Cygwin that exports the wrappers.
26266 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26267 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26268 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26269 gcc_ac_cygwin_dll_wrappers
=yes
26271 gcc_ac_cygwin_dll_wrappers
=no
26275 # Can't check presence of libc functions during cross-compile, so
26276 # we just have to assume we're building for an up-to-date target.
26277 gcc_ac_cygwin_dll_wrappers
=yes
26280 cat >>confdefs.h
<<_ACEOF
26281 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26286 cygwin
* | pe | mingw32
*)
26287 # Recent binutils allows the three-operand form of ".comm" on PE. This
26288 # definition is used unconditionally to initialise the default state of
26289 # the target option variable that governs usage of the feature.
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26291 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26292 if ${gcc_cv_as_comm_has_align+:} false
; then :
26293 $as_echo_n "(cached) " >&6
26295 gcc_cv_as_comm_has_align
=no
26296 if test $in_tree_gas = yes; then
26297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26298 then gcc_cv_as_comm_has_align
=yes
26300 elif test x
$gcc_cv_as != x
; then
26301 $as_echo '.comm foo,1,32' > conftest.s
26302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26309 gcc_cv_as_comm_has_align
=yes
26311 echo "configure: failed program was" >&5
26314 rm -f conftest.o conftest.s
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26318 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26322 cat >>confdefs.h
<<_ACEOF
26323 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26326 # Used for DWARF 2 in PE
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26328 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26329 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26330 $as_echo_n "(cached) " >&6
26332 gcc_cv_as_ix86_pe_secrel32
=no
26333 if test $in_tree_gas = yes; then
26334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26335 then gcc_cv_as_ix86_pe_secrel32
=yes
26337 elif test x
$gcc_cv_as != x
; then
26341 .secrel32 foo' > conftest.s
26342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26349 if test x
$gcc_cv_ld != x \
26350 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26351 gcc_cv_as_ix86_pe_secrel32
=yes
26355 echo "configure: failed program was" >&5
26358 rm -f conftest.o conftest.s
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26362 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26365 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26369 # Test if the assembler supports the extended form of the .section
26370 # directive that specifies section alignment. LTO support uses this,
26371 # but normally only after installation, so we warn but don't fail the
26372 # configure if LTO is enabled but the assembler does not support it.
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26374 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26375 if ${gcc_cv_as_section_has_align+:} false
; then :
26376 $as_echo_n "(cached) " >&6
26378 gcc_cv_as_section_has_align
=no
26379 if test $in_tree_gas = yes; then
26380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26381 then gcc_cv_as_section_has_align
=yes
26383 elif test x
$gcc_cv_as != x
; then
26384 $as_echo '.section lto_test,"dr0"' > conftest.s
26385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26392 gcc_cv_as_section_has_align
=yes
26394 echo "configure: failed program was" >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26401 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26404 if test x
$gcc_cv_as_section_has_align != xyes
; then
26405 case ",$enable_languages," in
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
26408 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26416 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26417 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26418 $as_echo_n "(cached) " >&6
26420 gcc_cv_as_ix86_xbrace_comment
=no
26421 if test x
$gcc_cv_as != x
; then
26422 $as_echo '.text' > conftest.s
26423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26425 (eval $ac_try) 2>&5
26427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26428 test $ac_status = 0; }; }
26430 gcc_cv_as_ix86_xbrace_comment
=yes
26432 echo "configure: failed program was" >&5
26435 rm -f conftest.o conftest.s
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26439 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26440 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26442 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26448 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26449 if ${gcc_cv_as_ix86_filds+:} false
; then :
26450 $as_echo_n "(cached) " >&6
26452 gcc_cv_as_ix86_filds
=no
26453 if test x
$gcc_cv_as != x
; then
26454 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26457 (eval $ac_try) 2>&5
26459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26460 test $ac_status = 0; }; }
26462 gcc_cv_as_ix86_filds
=yes
26464 echo "configure: failed program was" >&5
26467 rm -f conftest.o conftest.s
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26471 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26472 if test $gcc_cv_as_ix86_filds = yes; then
26474 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26480 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26481 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26482 $as_echo_n "(cached) " >&6
26484 gcc_cv_as_ix86_fildq
=no
26485 if test x
$gcc_cv_as != x
; then
26486 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26489 (eval $ac_try) 2>&5
26491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26492 test $ac_status = 0; }; }
26494 gcc_cv_as_ix86_fildq
=yes
26496 echo "configure: failed program was" >&5
26499 rm -f conftest.o conftest.s
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26503 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26504 if test $gcc_cv_as_ix86_fildq = yes; then
26506 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26512 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26513 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26514 $as_echo_n "(cached) " >&6
26516 gcc_cv_as_ix86_cmov_sun_syntax
=no
26517 if test x
$gcc_cv_as != x
; then
26518 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26526 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26528 echo "configure: failed program was" >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26535 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26536 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26538 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26544 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26545 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26546 $as_echo_n "(cached) " >&6
26548 gcc_cv_as_ix86_ffreep
=no
26549 if test x
$gcc_cv_as != x
; then
26550 $as_echo 'ffreep %st(1)' > conftest.s
26551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26558 gcc_cv_as_ix86_ffreep
=yes
26560 echo "configure: failed program was" >&5
26563 rm -f conftest.o conftest.s
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26567 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26568 if test $gcc_cv_as_ix86_ffreep = yes; then
26570 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26576 $as_echo_n "checking assembler for .quad directive... " >&6; }
26577 if ${gcc_cv_as_ix86_quad+:} false
; then :
26578 $as_echo_n "(cached) " >&6
26580 gcc_cv_as_ix86_quad
=no
26581 if test x
$gcc_cv_as != x
; then
26582 $as_echo '.quad 0' > conftest.s
26583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26585 (eval $ac_try) 2>&5
26587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26588 test $ac_status = 0; }; }
26590 gcc_cv_as_ix86_quad
=yes
26592 echo "configure: failed program was" >&5
26595 rm -f conftest.o conftest.s
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26599 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26600 if test $gcc_cv_as_ix86_quad = yes; then
26602 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26608 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26609 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26610 $as_echo_n "(cached) " >&6
26612 gcc_cv_as_ix86_sahf
=no
26613 if test x
$gcc_cv_as != x
; then
26616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26618 (eval $ac_try) 2>&5
26620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26621 test $ac_status = 0; }; }
26623 gcc_cv_as_ix86_sahf
=yes
26625 echo "configure: failed program was" >&5
26628 rm -f conftest.o conftest.s
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26632 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26633 if test $gcc_cv_as_ix86_sahf = yes; then
26635 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26641 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26642 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26643 $as_echo_n "(cached) " >&6
26645 gcc_cv_as_ix86_interunit_movq
=no
26646 if test x
$gcc_cv_as != x
; then
26649 movq %rax, %xmm0' > conftest.s
26650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26657 gcc_cv_as_ix86_interunit_movq
=yes
26659 echo "configure: failed program was" >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26666 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26670 cat >>confdefs.h
<<_ACEOF
26671 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26676 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26677 if ${gcc_cv_as_ix86_hle+:} false
; then :
26678 $as_echo_n "(cached) " >&6
26680 gcc_cv_as_ix86_hle
=no
26681 if test x
$gcc_cv_as != x
; then
26682 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26685 (eval $ac_try) 2>&5
26687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26688 test $ac_status = 0; }; }
26690 gcc_cv_as_ix86_hle
=yes
26692 echo "configure: failed program was" >&5
26695 rm -f conftest.o conftest.s
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26699 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26700 if test $gcc_cv_as_ix86_hle = yes; then
26702 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26708 $as_echo_n "checking assembler for swap suffix... " >&6; }
26709 if ${gcc_cv_as_ix86_swap+:} false
; then :
26710 $as_echo_n "(cached) " >&6
26712 gcc_cv_as_ix86_swap
=no
26713 if test x
$gcc_cv_as != x
; then
26714 $as_echo 'movl.s %esp, %ebp' > conftest.s
26715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26717 (eval $ac_try) 2>&5
26719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26720 test $ac_status = 0; }; }
26722 gcc_cv_as_ix86_swap
=yes
26724 echo "configure: failed program was" >&5
26727 rm -f conftest.o conftest.s
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26731 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26732 if test $gcc_cv_as_ix86_swap = yes; then
26734 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26740 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26741 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26742 $as_echo_n "(cached) " >&6
26744 gcc_cv_as_ix86_diff_sect_delta
=no
26745 if test x
$gcc_cv_as != x
; then
26746 $as_echo '.section .rodata
26752 .L2: nop' > conftest.s
26753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26755 (eval $ac_try) 2>&5
26757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26758 test $ac_status = 0; }; }
26760 gcc_cv_as_ix86_diff_sect_delta
=yes
26762 echo "configure: failed program was" >&5
26765 rm -f conftest.o conftest.s
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26769 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26770 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26772 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26778 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26779 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26780 $as_echo_n "(cached) " >&6
26782 gcc_cv_as_ix86_rep_lock_prefix
=no
26783 if test x
$gcc_cv_as != x
; then
26784 $as_echo 'rep movsl
26789 lock addl %edi, (%eax,%esi)
26790 lock orl $0, (%esp)' > conftest.s
26791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; }
26798 gcc_cv_as_ix86_rep_lock_prefix
=yes
26800 echo "configure: failed program was" >&5
26803 rm -f conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26807 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26808 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26810 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26816 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26817 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26818 $as_echo_n "(cached) " >&6
26820 gcc_cv_as_ix86_ud2
=no
26821 if test x
$gcc_cv_as != x
; then
26822 $as_echo 'ud2' > conftest.s
26823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26825 (eval $ac_try) 2>&5
26827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; }
26830 gcc_cv_as_ix86_ud2
=yes
26832 echo "configure: failed program was" >&5
26835 rm -f conftest.o conftest.s
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26839 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26840 if test $gcc_cv_as_ix86_ud2 = yes; then
26842 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26847 # Enforce 32-bit output with gas and gld.
26848 if test x
$gas = xyes
; then
26849 as_ix86_gas_32_opt
="--32"
26851 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26852 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26853 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26855 ld_ix86_gld_32_opt
="-melf_i386"
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26860 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26861 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26862 $as_echo_n "(cached) " >&6
26864 gcc_cv_as_ix86_tlsgdplt
=no
26865 if test x
$gcc_cv_as != x
; then
26866 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26869 (eval $ac_try) 2>&5
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; }
26874 if test x
$gcc_cv_ld != x \
26875 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26876 gcc_cv_as_ix86_tlsgdplt
=yes
26880 echo "configure: failed program was" >&5
26883 rm -f conftest.o conftest.s
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26887 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26888 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26890 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26896 .section .tdata,"aw'$tls_section_flag'",@progbits
26898 .section .text,"ax",@progbits
26899 call tls_ld@tlsldmplt'
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26902 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26903 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26904 $as_echo_n "(cached) " >&6
26906 gcc_cv_as_ix86_tlsldmplt
=no
26907 if test x
$gcc_cv_as != x
; then
26908 $as_echo "$conftest_s" > conftest.s
26909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26916 if test x
$gcc_cv_ld != x \
26917 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26918 gcc_cv_as_ix86_tlsldmplt
=yes
26922 echo "configure: failed program was" >&5
26925 rm -f conftest.o conftest.s
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26929 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26933 cat >>confdefs.h
<<_ACEOF
26934 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26939 .section .text,"ax",@progbits
26941 .type _start, @function
26943 leal value@tlsldm(%ebx), %eax
26944 call ___tls_get_addr@plt
26946 .section .tdata,"aw'$tls_section_flag'",@progbits
26947 .type value, @object
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26950 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26951 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26952 $as_echo_n "(cached) " >&6
26954 gcc_cv_as_ix86_tlsldm
=no
26955 if test x
$gcc_cv_as != x
; then
26956 $as_echo "$conftest_s" > conftest.s
26957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26959 (eval $ac_try) 2>&5
26961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }; }
26964 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26965 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26966 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26967 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26968 gcc_cv_as_ix86_tlsldm
=yes
26973 echo "configure: failed program was" >&5
26976 rm -f conftest.o conftest.s
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26980 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26984 cat >>confdefs.h
<<_ACEOF
26985 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26999 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27000 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27001 $as_echo_n "(cached) " >&6
27003 gcc_cv_as_ix86_got32x
=no
27004 if test x
$gcc_cv_as != x
; then
27005 $as_echo "$conftest_s" > conftest.s
27006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27008 (eval $ac_try) 2>&5
27010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27011 test $ac_status = 0; }; }
27013 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27014 && test x
$gcc_cv_readelf != x \
27015 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27016 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27017 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27018 if $gcc_cv_objdump -dw conftest
2>&1 \
27019 |
grep 0xffffff > /dev
/null
2>&1; then
27020 gcc_cv_as_ix86_got32x
=no
27022 gcc_cv_as_ix86_got32x
=yes
27027 echo "configure: failed program was" >&5
27030 rm -f conftest.o conftest.s
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27034 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27038 cat >>confdefs.h
<<_ACEOF
27039 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27044 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27045 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27046 $as_echo_n "(cached) " >&6
27048 gcc_cv_as_ix86_gotoff_in_data
=no
27049 if test $in_tree_gas = yes; then
27050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27051 then gcc_cv_as_ix86_gotoff_in_data
=yes
27053 elif test x
$gcc_cv_as != x
; then
27058 .long .L0@GOTOFF' > conftest.s
27059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27066 gcc_cv_as_ix86_gotoff_in_data
=yes
27068 echo "configure: failed program was" >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27075 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27079 cat >>confdefs.h
<<_ACEOF
27080 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27085 .section .text,"ax",@progbits
27087 .type _start, @function
27089 leal ld@tlsldm(%ecx), %eax
27090 call *___tls_get_addr@GOT(%ecx)
27091 leal gd@tlsgd(%ecx), %eax
27092 call *___tls_get_addr@GOT(%ecx)
27094 .section .tdata,"aw'$tls_section_flag'",@progbits
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27103 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27104 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27105 $as_echo_n "(cached) " >&6
27107 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27108 if test x
$gcc_cv_as != x
; then
27109 $as_echo "$conftest_s" > conftest.s
27110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27112 (eval $ac_try) 2>&5
27114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27115 test $ac_status = 0; }; }
27117 if test x
$gcc_cv_ld != x \
27118 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27119 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27123 echo "configure: failed program was" >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27130 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27134 cat >>confdefs.h
<<_ACEOF
27135 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27142 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27143 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27144 $as_echo_n "(cached) " >&6
27146 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27147 if test $in_tree_gas = yes; then
27148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27149 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27151 elif test x
$gcc_cv_as != x
; then
27153 addl r15 = @ltoffx(x#), gp
27155 ld8.mov r16 = [r15], x#
27157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27159 (eval $ac_try) 2>&5
27161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27162 test $ac_status = 0; }; }
27164 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27166 echo "configure: failed program was" >&5
27169 rm -f conftest.o conftest.s
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27173 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27174 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27176 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27188 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27189 if ${gcc_cv_as_machine_directive+:} false
; then :
27190 $as_echo_n "(cached) " >&6
27192 gcc_cv_as_machine_directive
=no
27193 if test x
$gcc_cv_as != x
; then
27194 $as_echo ' .machine ppc7400' > conftest.s
27195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27202 gcc_cv_as_machine_directive
=yes
27204 echo "configure: failed program was" >&5
27207 rm -f conftest.o conftest.s
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27211 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27214 if test x
$gcc_cv_as_machine_directive != xyes
; then
27215 echo "*** This target requires an assembler supporting \".machine\"" >&2
27216 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27217 test x
$build = x
$target && exit 1
27223 *-*-aix*) conftest_s
=' .machine "pwr5"
27226 *-*-darwin*) conftest_s
=' .text
27228 *) conftest_s
=' .machine power4
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27234 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27235 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27236 $as_echo_n "(cached) " >&6
27238 gcc_cv_as_powerpc_mfcrf
=no
27239 if test $in_tree_gas = yes; then
27240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27241 then gcc_cv_as_powerpc_mfcrf
=yes
27243 elif test x
$gcc_cv_as != x
; then
27244 $as_echo "$conftest_s" > conftest.s
27245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27247 (eval $ac_try) 2>&5
27249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27250 test $ac_status = 0; }; }
27252 gcc_cv_as_powerpc_mfcrf
=yes
27254 echo "configure: failed program was" >&5
27257 rm -f conftest.o conftest.s
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27261 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27262 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27264 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27270 *-*-aix*) conftest_s
=' .csect .text[PR]
27272 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27276 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27277 *) conftest_s
=' .text
27279 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27283 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27284 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27285 $as_echo_n "(cached) " >&6
27287 gcc_cv_as_powerpc_rel16
=no
27288 if test $in_tree_gas = yes; then
27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27290 then gcc_cv_as_powerpc_rel16
=yes
27292 elif test x
$gcc_cv_as != x
; then
27293 $as_echo "$conftest_s" > conftest.s
27294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27301 gcc_cv_as_powerpc_rel16
=yes
27303 echo "configure: failed program was" >&5
27306 rm -f conftest.o conftest.s
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27310 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27311 if test $gcc_cv_as_powerpc_rel16 = yes; then
27313 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27319 *-*-aix*) conftest_s
=' .machine "pwr7"
27322 *) conftest_s
=' .machine power7
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27328 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27329 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27330 $as_echo_n "(cached) " >&6
27332 gcc_cv_as_powerpc_vsx
=no
27333 if test $in_tree_gas = yes; then
27334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27335 then gcc_cv_as_powerpc_vsx
=yes
27337 elif test x
$gcc_cv_as != x
; then
27338 $as_echo "$conftest_s" > conftest.s
27339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27341 (eval $ac_try) 2>&5
27343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27344 test $ac_status = 0; }; }
27346 gcc_cv_as_powerpc_vsx
=yes
27348 echo "configure: failed program was" >&5
27351 rm -f conftest.o conftest.s
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27355 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27356 if test $gcc_cv_as_powerpc_vsx = yes; then
27358 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27364 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27365 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27366 $as_echo_n "(cached) " >&6
27368 gcc_cv_as_powerpc_gnu_attribute
=no
27369 if test $in_tree_gas = yes; then
27370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27371 then gcc_cv_as_powerpc_gnu_attribute
=yes
27373 elif test x
$gcc_cv_as != x
; then
27374 $as_echo '.gnu_attribute 4,1' > conftest.s
27375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27377 (eval $ac_try) 2>&5
27379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27380 test $ac_status = 0; }; }
27382 gcc_cv_as_powerpc_gnu_attribute
=yes
27384 echo "configure: failed program was" >&5
27387 rm -f conftest.o conftest.s
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27391 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27392 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27394 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27400 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27401 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27402 $as_echo_n "(cached) " >&6
27404 gcc_cv_as_powerpc_entry_markers
=no
27405 if test $in_tree_gas = yes; then
27406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27407 then gcc_cv_as_powerpc_entry_markers
=yes
27409 elif test x
$gcc_cv_as != x
; then
27410 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27413 (eval $ac_try) 2>&5
27415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27416 test $ac_status = 0; }; }
27418 gcc_cv_as_powerpc_entry_markers
=yes
27420 echo "configure: failed program was" >&5
27423 rm -f conftest.o conftest.s
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27427 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27428 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27430 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27436 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27437 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27438 $as_echo_n "(cached) " >&6
27440 gcc_cv_as_powerpc_pltseq_markers
=no
27441 if test $in_tree_gas = yes; then
27442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27443 then gcc_cv_as_powerpc_pltseq_markers
=yes
27445 elif test x
$gcc_cv_as != x
; then
27446 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27449 (eval $ac_try) 2>&5
27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27452 test $ac_status = 0; }; }
27454 gcc_cv_as_powerpc_pltseq_markers
=yes
27456 echo "configure: failed program was" >&5
27459 rm -f conftest.o conftest.s
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27463 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27464 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27466 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27474 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27475 if ${gcc_cv_as_aix_ref+:} false
; then :
27476 $as_echo_n "(cached) " >&6
27478 gcc_cv_as_aix_ref
=no
27479 if test $in_tree_gas = yes; then
27480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27481 then gcc_cv_as_aix_ref
=yes
27483 elif test x
$gcc_cv_as != x
; then
27484 $as_echo ' .csect stuff[rw]
27490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27492 (eval $ac_try) 2>&5
27494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27495 test $ac_status = 0; }; }
27497 gcc_cv_as_aix_ref
=yes
27499 echo "configure: failed program was" >&5
27502 rm -f conftest.o conftest.s
27505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27506 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27507 if test $gcc_cv_as_aix_ref = yes; then
27509 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27515 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27516 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27517 $as_echo_n "(cached) " >&6
27519 gcc_cv_as_aix_dwloc
=no
27520 if test $in_tree_gas = yes; then
27521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27522 then gcc_cv_as_aix_dwloc
=yes
27524 elif test x
$gcc_cv_as != x
; then
27525 $as_echo ' .dwsect 0xA0000
27529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27531 (eval $ac_try) 2>&5
27533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27534 test $ac_status = 0; }; }
27536 gcc_cv_as_aix_dwloc
=yes
27538 echo "configure: failed program was" >&5
27541 rm -f conftest.o conftest.s
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27545 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27546 if test $gcc_cv_as_aix_dwloc = yes; then
27548 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27558 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27559 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27560 $as_echo_n "(cached) " >&6
27562 gcc_cv_as_mips_explicit_relocs
=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27565 then gcc_cv_as_mips_explicit_relocs
=yes
27567 elif test x
$gcc_cv_as != x
; then
27568 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27576 gcc_cv_as_mips_explicit_relocs
=yes
27578 echo "configure: failed program was" >&5
27581 rm -f conftest.o conftest.s
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27585 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27587 if test x
$target_cpu_default = x
27588 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27589 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27595 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27596 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27597 $as_echo_n "(cached) " >&6
27599 gcc_cv_as_mips_no_shared
=no
27600 if test $in_tree_gas = yes; then
27601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27602 then gcc_cv_as_mips_no_shared
=yes
27604 elif test x
$gcc_cv_as != x
; then
27605 $as_echo 'nop' > conftest.s
27606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27608 (eval $ac_try) 2>&5
27610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27611 test $ac_status = 0; }; }
27613 gcc_cv_as_mips_no_shared
=yes
27615 echo "configure: failed program was" >&5
27618 rm -f conftest.o conftest.s
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27622 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27623 if test $gcc_cv_as_mips_no_shared = yes; then
27625 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27631 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27632 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27633 $as_echo_n "(cached) " >&6
27635 gcc_cv_as_mips_gnu_attribute
=no
27636 if test $in_tree_gas = yes; then
27637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27638 then gcc_cv_as_mips_gnu_attribute
=yes
27640 elif test x
$gcc_cv_as != x
; then
27641 $as_echo '.gnu_attribute 4,1' > conftest.s
27642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27644 (eval $ac_try) 2>&5
27646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27647 test $ac_status = 0; }; }
27649 gcc_cv_as_mips_gnu_attribute
=yes
27651 echo "configure: failed program was" >&5
27654 rm -f conftest.o conftest.s
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27658 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27659 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27661 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27667 $as_echo_n "checking assembler for .module support... " >&6; }
27668 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27669 $as_echo_n "(cached) " >&6
27671 gcc_cv_as_mips_dot_module
=no
27672 if test x
$gcc_cv_as != x
; then
27673 $as_echo '.module mips2
27674 .module fp=xx' > conftest.s
27675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27677 (eval $ac_try) 2>&5
27679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27680 test $ac_status = 0; }; }
27682 gcc_cv_as_mips_dot_module
=yes
27684 echo "configure: failed program was" >&5
27687 rm -f conftest.o conftest.s
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27691 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27692 if test $gcc_cv_as_mips_dot_module = yes; then
27694 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27698 if test x
$gcc_cv_as_mips_dot_module = xno \
27699 && test x
$with_fp_32 != x
; then
27700 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27704 $as_echo_n "checking assembler for .micromips support... " >&6; }
27705 if ${gcc_cv_as_micromips_support+:} false
; then :
27706 $as_echo_n "(cached) " >&6
27708 gcc_cv_as_micromips_support
=no
27709 if test x
$gcc_cv_as != x
; then
27710 $as_echo '.set micromips' > conftest.s
27711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27713 (eval $ac_try) 2>&5
27715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27716 test $ac_status = 0; }; }
27718 gcc_cv_as_micromips_support
=yes
27720 echo "configure: failed program was" >&5
27723 rm -f conftest.o conftest.s
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27727 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27728 if test $gcc_cv_as_micromips_support = yes; then
27730 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27736 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27737 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27738 $as_echo_n "(cached) " >&6
27740 gcc_cv_as_mips_dtprelword
=no
27741 if test $in_tree_gas = yes; then
27742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27743 then gcc_cv_as_mips_dtprelword
=yes
27745 elif test x
$gcc_cv_as != x
; then
27746 $as_echo '.section .tdata,"awT",@progbits
27750 .dtprelword x+0x8000' > conftest.s
27751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27753 (eval $ac_try) 2>&5
27755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27756 test $ac_status = 0; }; }
27758 gcc_cv_as_mips_dtprelword
=yes
27760 echo "configure: failed program was" >&5
27763 rm -f conftest.o conftest.s
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27767 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27768 if test $gcc_cv_as_mips_dtprelword = yes; then
27770 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27776 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27777 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27778 $as_echo_n "(cached) " >&6
27780 gcc_cv_as_mips_dspr1_mult
=no
27781 if test x
$gcc_cv_as != x
; then
27782 $as_echo ' .set mips32r2
27790 multu $ac3,$4,$5' > conftest.s
27791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27793 (eval $ac_try) 2>&5
27795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27796 test $ac_status = 0; }; }
27798 gcc_cv_as_mips_dspr1_mult
=yes
27800 echo "configure: failed program was" >&5
27803 rm -f conftest.o conftest.s
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27807 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27808 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27810 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27816 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27817 gcc_cv_as_ld_jalr_reloc
=no
27818 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27819 if test $in_tree_ld = yes ; then
27820 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
27821 && test $in_tree_ld_is_elf = yes; then
27822 gcc_cv_as_ld_jalr_reloc
=yes
27824 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27825 echo ' .ent x' > conftest.s
27826 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27827 echo ' lw $25,%call16(y)($28)' >> conftest.s
27828 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27829 echo '1: jalr $25' >> conftest.s
27830 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27831 echo '1: jalr $25' >> conftest.s
27832 echo ' .end x' >> conftest.s
27833 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27834 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27835 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27836 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27837 gcc_cv_as_ld_jalr_reloc
=yes
27843 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27844 if test x
$target_cpu_default = x
; then
27845 target_cpu_default
=MASK_RELAX_PIC_CALLS
27847 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27851 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27854 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27855 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27856 $as_echo_n "(cached) " >&6
27858 gcc_cv_ld_mips_personality_relaxation
=no
27859 if test $in_tree_ld = yes ; then
27860 if test "$gcc_cv_gld_major_version" -eq 2 \
27861 -a "$gcc_cv_gld_minor_version" -ge 21 \
27862 -o "$gcc_cv_gld_major_version" -gt 2; then
27863 gcc_cv_ld_mips_personality_relaxation
=yes
27865 elif test x
$gcc_cv_as != x \
27866 -a x
$gcc_cv_ld != x \
27867 -a x
$gcc_cv_readelf != x
; then
27868 cat > conftest.s
<<EOF
27870 .cfi_personality 0x80,indirect_ptr
27877 .section .data,"aw",@progbits
27881 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27882 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27883 if $gcc_cv_readelf -d conftest
2>&1 \
27884 |
grep TEXTREL
> /dev
/null
2>&1; then
27886 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27887 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27890 gcc_cv_ld_mips_personality_relaxation
=yes
27894 rm -f conftest.s conftest.o conftest
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27897 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27898 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27900 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27905 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27906 if ${gcc_cv_as_mips_nan+:} false
; then :
27907 $as_echo_n "(cached) " >&6
27909 gcc_cv_as_mips_nan
=no
27910 if test x
$gcc_cv_as != x
; then
27911 $as_echo '' > conftest.s
27912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; }
27919 gcc_cv_as_mips_nan
=yes
27921 echo "configure: failed program was" >&5
27924 rm -f conftest.o conftest.s
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27928 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27929 if test $gcc_cv_as_mips_nan = yes; then
27931 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27935 if test x
$gcc_cv_as_mips_nan = xno \
27936 && test x
$with_nan != x
; then
27937 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27941 # Earlier GAS versions generically support .gnu_attribute, but the
27942 # msp430 assembler will not do anything with it.
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27944 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27945 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27946 $as_echo_n "(cached) " >&6
27948 gcc_cv_as_msp430_gnu_attribute
=no
27949 if test $in_tree_gas = yes; then
27950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27951 then gcc_cv_as_msp430_gnu_attribute
=yes
27953 elif test x
$gcc_cv_as != x
; then
27954 $as_echo '.gnu_attribute 4,1' > conftest.s
27955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27957 (eval $ac_try) 2>&5
27959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27960 test $ac_status = 0; }; }
27962 gcc_cv_as_msp430_gnu_attribute
=yes
27964 echo "configure: failed program was" >&5
27967 rm -f conftest.o conftest.s
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27971 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27972 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27974 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27979 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27980 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27981 $as_echo_n "(cached) " >&6
27983 gcc_cv_as_msp430_mspabi_attribute
=no
27984 if test $in_tree_gas = yes; then
27985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27986 then gcc_cv_as_msp430_mspabi_attribute
=yes
27988 elif test x
$gcc_cv_as != x
; then
27989 $as_echo '.mspabi_attribute 4,2' > conftest.s
27990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27992 (eval $ac_try) 2>&5
27994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27995 test $ac_status = 0; }; }
27997 gcc_cv_as_msp430_mspabi_attribute
=yes
27999 echo "configure: failed program was" >&5
28002 rm -f conftest.o conftest.s
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28006 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28007 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28009 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28013 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28015 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28020 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28021 # syntax that is documented in the ABI specification.
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28023 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28024 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28025 $as_echo_n "(cached) " >&6
28027 gcc_cv_as_nios2_gotoff_relocation
=no
28028 if test x
$gcc_cv_as != x
; then
28029 $as_echo ' .extern foo
28031 .long %gotoff(foo)' > conftest.s
28032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28039 gcc_cv_as_nios2_gotoff_relocation
=yes
28041 echo "configure: failed program was" >&5
28044 rm -f conftest.o conftest.s
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28048 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28049 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28051 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28058 $as_echo_n "checking assembler for .attribute support... " >&6; }
28059 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28060 $as_echo_n "(cached) " >&6
28062 gcc_cv_as_riscv_attribute
=no
28063 if test $in_tree_gas = yes; then
28064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28065 then gcc_cv_as_riscv_attribute
=yes
28067 elif test x
$gcc_cv_as != x
; then
28068 $as_echo '.attribute stack_align,4' > conftest.s
28069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28071 (eval $ac_try) 2>&5
28073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28074 test $ac_status = 0; }; }
28076 gcc_cv_as_riscv_attribute
=yes
28078 echo "configure: failed program was" >&5
28081 rm -f conftest.o conftest.s
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28085 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28086 if test $gcc_cv_as_riscv_attribute = yes; then
28088 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28095 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28096 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28097 $as_echo_n "(cached) " >&6
28099 gcc_cv_as_s390_gnu_attribute
=no
28100 if test $in_tree_gas = yes; then
28101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28102 then gcc_cv_as_s390_gnu_attribute
=yes
28104 elif test x
$gcc_cv_as != x
; then
28105 $as_echo '.gnu_attribute 8,1' > conftest.s
28106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28108 (eval $ac_try) 2>&5
28110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111 test $ac_status = 0; }; }
28113 gcc_cv_as_s390_gnu_attribute
=yes
28115 echo "configure: failed program was" >&5
28118 rm -f conftest.o conftest.s
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28122 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28123 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28125 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28130 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28131 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28132 $as_echo_n "(cached) " >&6
28134 gcc_cv_as_s390_machine_machinemode
=no
28135 if test $in_tree_gas = yes; then
28136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28137 then gcc_cv_as_s390_machine_machinemode
=yes
28139 elif test x
$gcc_cv_as != x
; then
28140 $as_echo ' .machinemode push
28143 .machine pop' > conftest.s
28144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28146 (eval $ac_try) 2>&5
28148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28149 test $ac_status = 0; }; }
28151 gcc_cv_as_s390_machine_machinemode
=yes
28153 echo "configure: failed program was" >&5
28156 rm -f conftest.o conftest.s
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28160 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28161 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28163 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28168 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28169 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28170 $as_echo_n "(cached) " >&6
28172 gcc_cv_as_s390_architecture_modifiers
=no
28173 if test $in_tree_gas = yes; then
28174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28175 then gcc_cv_as_s390_architecture_modifiers
=yes
28177 elif test x
$gcc_cv_as != x
; then
28178 $as_echo ' .machine z13+vx ' > conftest.s
28179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28181 (eval $ac_try) 2>&5
28183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28184 test $ac_status = 0; }; }
28186 gcc_cv_as_s390_architecture_modifiers
=yes
28188 echo "configure: failed program was" >&5
28191 rm -f conftest.o conftest.s
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28195 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28196 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28198 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28203 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28204 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28205 $as_echo_n "(cached) " >&6
28207 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28208 if test $in_tree_gas = yes; then
28209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28210 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28212 elif test x
$gcc_cv_as != x
; then
28213 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28216 (eval $ac_try) 2>&5
28218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28219 test $ac_status = 0; }; }
28221 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28223 echo "configure: failed program was" >&5
28226 rm -f conftest.o conftest.s
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28230 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28231 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28233 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28238 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28239 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28240 $as_echo_n "(cached) " >&6
28242 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28243 if test x
$gcc_cv_as != x
; then
28244 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28252 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28254 echo "configure: failed program was" >&5
28257 rm -f conftest.o conftest.s
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28261 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28262 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28264 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28272 # Mips and HP-UX need the GNU assembler.
28273 # Linux on IA64 might be able to use the Intel assembler.
28276 mips
*-*-* |
*-*-hpux* )
28277 if test x
$gas_flag = xyes \
28278 ||
test x
"$host" != x
"$build" \
28279 ||
test ! -x "$gcc_cv_as" \
28280 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28283 echo "*** This configuration requires the GNU assembler" >&2
28289 # ??? Not all targets support dwarf2 debug_line, even within a version
28290 # of gas. Moreover, we need to emit a valid instruction to trigger any
28291 # info to the output file. So, as supported targets are added to gas 2.11,
28292 # add some instruction here to (also) show we expect this might work.
28293 # ??? Once 2.11 is released, probably need to add first known working
28294 # version to the per-target configury.
28295 case "$cpu_type" in
28296 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28297 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28298 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28308 if test x
"$insn" != x
; then
28310 .file 1 \"conftest.s\"
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28314 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28315 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28316 $as_echo_n "(cached) " >&6
28318 gcc_cv_as_dwarf2_debug_line
=no
28319 if test $in_tree_gas = yes; then
28320 if test $in_tree_gas_is_elf = yes \
28321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28322 then gcc_cv_as_dwarf2_debug_line
=yes
28324 elif test x
$gcc_cv_as != x
; then
28325 $as_echo "$conftest_s" > conftest.s
28326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28328 (eval $ac_try) 2>&5
28330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28331 test $ac_status = 0; }; }
28333 if test x
$gcc_cv_objdump != x \
28334 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28335 |
grep debug_line
> /dev
/null
2>&1; then
28336 gcc_cv_as_dwarf2_debug_line
=yes
28337 elif test x
$gcc_cv_otool != x \
28338 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28339 |
grep debug_line
> /dev
/null
2>&1; then
28340 gcc_cv_as_dwarf2_debug_line
=yes
28343 echo "configure: failed program was" >&5
28346 rm -f conftest.o conftest.s
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28350 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28354 # The .debug_line file table must be in the exact order that
28355 # we specified the files, since these indices are also used
28356 # by DW_AT_decl_file. Approximate this test by testing if
28357 # the assembler bitches if the same index is assigned twice.
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28359 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28360 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28361 $as_echo_n "(cached) " >&6
28363 gcc_cv_as_dwarf2_file_buggy
=no
28364 if test x
$gcc_cv_as != x
; then
28365 $as_echo ' .file 1 "foo.s"
28366 .file 1 "bar.s"' > conftest.s
28367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28369 (eval $ac_try) 2>&5
28371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28372 test $ac_status = 0; }; }
28374 gcc_cv_as_dwarf2_file_buggy
=yes
28376 echo "configure: failed program was" >&5
28379 rm -f conftest.o conftest.s
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28383 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28387 if test $gcc_cv_as_dwarf2_debug_line = yes \
28388 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28390 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28393 if test $gcc_cv_as_leb128 = yes; then
28395 .file 1 \"conftest.s\"
28396 .loc 1 3 0 view .LVU1
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28403 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28404 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28405 $as_echo_n "(cached) " >&6
28407 gcc_cv_as_dwarf2_debug_view
=no
28408 if test $in_tree_gas = yes; then
28409 if test $in_tree_gas_is_elf = yes \
28410 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28411 then gcc_cv_as_dwarf2_debug_view
=yes
28413 elif test x
$gcc_cv_as != x
; then
28414 $as_echo "$conftest_s" > conftest.s
28415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28422 gcc_cv_as_dwarf2_debug_view
=yes
28424 echo "configure: failed program was" >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28431 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28432 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28434 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28442 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28443 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28444 $as_echo_n "(cached) " >&6
28446 gcc_cv_as_gdwarf2_flag
=no
28447 if test $in_tree_gas = yes; then
28448 if test $in_tree_gas_is_elf = yes \
28449 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28450 then gcc_cv_as_gdwarf2_flag
=yes
28452 elif test x
$gcc_cv_as != x
; then
28453 $as_echo "$insn" > conftest.s
28454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28456 (eval $ac_try) 2>&5
28458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28459 test $ac_status = 0; }; }
28461 gcc_cv_as_gdwarf2_flag
=yes
28463 echo "configure: failed program was" >&5
28466 rm -f conftest.o conftest.s
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28470 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28471 if test $gcc_cv_as_gdwarf2_flag = yes; then
28473 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
28479 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
28480 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
28481 $as_echo_n "(cached) " >&6
28483 gcc_cv_as_gdwarf_5_flag
=no
28484 if test $in_tree_gas = yes; then
28485 if test $in_tree_gas_is_elf = yes \
28486 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28487 then gcc_cv_as_gdwarf_5_flag
=yes
28489 elif test x
$gcc_cv_as != x
; then
28490 $as_echo "$insn" > conftest.s
28491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
28492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28493 (eval $ac_try) 2>&5
28495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28496 test $ac_status = 0; }; }
28498 gcc_cv_as_gdwarf_5_flag
=yes
28500 echo "configure: failed program was" >&5
28503 rm -f conftest.o conftest.s
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
28507 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
28508 if test $gcc_cv_as_gdwarf_5_flag = yes; then
28510 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
28515 dwarf4_debug_info_size
=0x46
28516 dwarf4_high_pc_form
=7
28517 dwarf4_debug_aranges_size
=0x2c
28519 for dwarf4_addr_size
in 8 4; do
28526 .type foo, %function
28535 .section .debug_info,\"\",%progbits
28537 .4byte $dwarf4_debug_info_size
28539 .4byte .Ldebug_abbrev0
28540 .byte 0x$dwarf4_addr_size
28542 .ascii \"GNU C17\\0\"
28546 .${dwarf4_addr_size}byte .Ltext0
28547 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28548 .4byte .Ldebug_line0
28554 .${dwarf4_addr_size}byte .LFB0
28555 .${dwarf4_addr_size}byte .LFE0-.LFB0
28559 .section .debug_abbrev,\"\",%progbits
28575 .byte 0x$dwarf4_high_pc_form
28596 .byte 0x$dwarf4_high_pc_form
28602 .section .debug_aranges,\"\",%progbits
28603 .4byte $dwarf4_debug_aranges_size
28605 .4byte .Ldebug_info0
28610 .${dwarf4_addr_size}byte .Ltext0
28611 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28612 .${dwarf4_addr_size}byte 0
28613 .${dwarf4_addr_size}byte 0
28614 .section .debug_line,\"\",%progbits
28616 .4byte .LELT0-.LSLT0
28619 .4byte .LELTP0-.LASLTP0
28647 .byte 0x$dwarf4_line_sz
28649 .${dwarf4_addr_size}byte .LM1
28654 .byte 0x$dwarf4_line_sz
28656 .${dwarf4_addr_size}byte .LM2
28661 .byte 0x$dwarf4_line_sz
28663 .${dwarf4_addr_size}byte .Letext0
28668 .section .debug_str,\"\",%progbits
28672 if test $dwarf4_addr_size = 4; then
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
28674 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
28675 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
28676 $as_echo_n "(cached) " >&6
28678 gcc_cv_as_debug_line_32_flag
=no
28679 if test $in_tree_gas = yes; then
28680 if test $in_tree_gas_is_elf = yes \
28681 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28682 then gcc_cv_as_debug_line_32_flag
=yes
28684 elif test x
$gcc_cv_as != x
; then
28685 $as_echo "$conftest_s" > conftest.s
28686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28688 (eval $ac_try) 2>&5
28690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28691 test $ac_status = 0; }; }
28693 gcc_cv_as_debug_line_32_flag
=yes
28695 echo "configure: failed program was" >&5
28698 rm -f conftest.o conftest.s
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
28702 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
28703 if test $gcc_cv_as_debug_line_32_flag = yes; then
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
28709 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
28710 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
28711 $as_echo_n "(cached) " >&6
28713 gcc_cv_as_debug_line_64_flag
=no
28714 if test $in_tree_gas = yes; then
28715 if test $in_tree_gas_is_elf = yes \
28716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28717 then gcc_cv_as_debug_line_64_flag
=yes
28719 elif test x
$gcc_cv_as != x
; then
28720 $as_echo "$conftest_s" > conftest.s
28721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28723 (eval $ac_try) 2>&5
28725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28726 test $ac_status = 0; }; }
28728 gcc_cv_as_debug_line_64_flag
=yes
28730 echo "configure: failed program was" >&5
28733 rm -f conftest.o conftest.s
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
28737 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
28738 if test $gcc_cv_as_debug_line_64_flag = yes; then
28743 if test $dwarf4_success = yes; then
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
28745 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
28746 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
28747 $as_echo_n "(cached) " >&6
28749 gcc_cv_as_dwarf_4_debug_line_flag
=no
28750 if test $in_tree_gas = yes; then
28751 if test $in_tree_gas_is_elf = yes \
28752 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28753 then gcc_cv_as_dwarf_4_debug_line_flag
=yes
28755 elif test x
$gcc_cv_as != x
; then
28756 $as_echo "$conftest_s" > conftest.s
28757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28759 (eval $ac_try) 2>&5
28761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28762 test $ac_status = 0; }; }
28764 gcc_cv_as_dwarf_4_debug_line_flag
=yes
28766 echo "configure: failed program was" >&5
28769 rm -f conftest.o conftest.s
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
28773 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
28774 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
28776 $as_echo "#define HAVE_AS_WORKING_DWARF_4_FLAG 1" >>confdefs.h
28782 dwarf4_debug_info_size
=0x36
28783 dwarf4_high_pc_form
=6
28784 dwarf4_debug_aranges_size
=0x1c
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28789 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28790 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28791 $as_echo_n "(cached) " >&6
28793 gcc_cv_as_gstabs_flag
=no
28794 if test $in_tree_gas = yes; then
28795 if test $in_tree_gas_is_elf = yes \
28796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28797 then gcc_cv_as_gstabs_flag
=yes
28799 elif test x
$gcc_cv_as != x
; then
28800 $as_echo "$insn" > conftest.s
28801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28803 (eval $ac_try) 2>&5
28805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28806 test $ac_status = 0; }; }
28808 gcc_cv_as_gstabs_flag
=yes
28810 echo "configure: failed program was" >&5
28813 rm -f conftest.o conftest.s
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28817 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28818 if test $gcc_cv_as_gstabs_flag = yes; then
28820 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28826 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28827 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28828 $as_echo_n "(cached) " >&6
28830 gcc_cv_as_debug_prefix_map_flag
=no
28831 if test $in_tree_gas = yes; then
28832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28833 then gcc_cv_as_debug_prefix_map_flag
=yes
28835 elif test x
$gcc_cv_as != x
; then
28836 $as_echo "$insn" > conftest.s
28837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28839 (eval $ac_try) 2>&5
28841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28842 test $ac_status = 0; }; }
28844 gcc_cv_as_debug_prefix_map_flag
=yes
28846 echo "configure: failed program was" >&5
28849 rm -f conftest.o conftest.s
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28853 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28854 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28856 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28863 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28864 if ${gcc_cv_as_compress_debug+:} false
; then :
28865 $as_echo_n "(cached) " >&6
28867 gcc_cv_as_compress_debug
=no
28868 if test x
$gcc_cv_as != x
; then
28869 $as_echo '' > conftest.s
28870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28872 (eval $ac_try) 2>&5
28874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28875 test $ac_status = 0; }; }
28877 # gas compiled without zlib cannot compress debug sections and warns
28878 # about it, but still exits successfully. So check for this, too.
28879 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28881 gcc_cv_as_compress_debug
=0
28882 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28883 # defaulting to the ELF gABI format.
28884 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28886 gcc_cv_as_compress_debug
=2
28887 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28888 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28889 # Before binutils 2.26, gas only supported --compress-debug-options and
28890 # emitted the traditional GNU format.
28891 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28893 gcc_cv_as_compress_debug
=1
28894 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28895 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28897 gcc_cv_as_compress_debug
=0
28900 echo "configure: failed program was" >&5
28903 rm -f conftest.o conftest.s
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28907 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28911 cat >>confdefs.h
<<_ACEOF
28912 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28916 cat >>confdefs.h
<<_ACEOF
28917 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28921 cat >>confdefs.h
<<_ACEOF
28922 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28927 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28928 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28929 $as_echo_n "(cached) " >&6
28931 gcc_cv_as_lcomm_with_alignment
=no
28932 if test x
$gcc_cv_as != x
; then
28933 $as_echo '.lcomm bar,4,16' > conftest.s
28934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28936 (eval $ac_try) 2>&5
28938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28939 test $ac_status = 0; }; }
28941 gcc_cv_as_lcomm_with_alignment
=yes
28943 echo "configure: failed program was" >&5
28946 rm -f conftest.o conftest.s
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28950 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28951 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28953 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28958 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28959 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28960 && test "$prefix" != "NONE"; then
28962 cat >>confdefs.h
<<_ACEOF
28963 #define PREFIX_INCLUDE_DIR "$prefix/include"
28968 # Determine the version of glibc, if any, used on the target.
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28970 $as_echo_n "checking for target glibc version... " >&6; }
28972 # Check whether --with-glibc-version was given.
28973 if test "${with_glibc_version+set}" = set; then :
28974 withval
=$with_glibc_version;
28975 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28976 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28977 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28979 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28983 glibc_version_major
=0
28984 glibc_version_minor
=0
28985 if test -f $target_header_dir/features.h \
28986 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28987 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28988 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28989 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28994 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28996 cat >>confdefs.h
<<_ACEOF
28997 #define TARGET_GLIBC_MAJOR $glibc_version_major
29001 cat >>confdefs.h
<<_ACEOF
29002 #define TARGET_GLIBC_MINOR $glibc_version_minor
29006 # Check whether --enable-gnu-unique-object was given.
29007 if test "${enable_gnu_unique_object+set}" = set; then :
29008 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29010 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29011 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29015 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29016 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29017 $as_echo_n "(cached) " >&6
29019 gcc_cv_as_gnu_unique_object
=no
29020 if test $in_tree_gas = yes; then
29021 if test $in_tree_gas_is_elf = yes \
29022 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29023 then gcc_cv_as_gnu_unique_object
=yes
29025 elif test x
$gcc_cv_as != x
; then
29026 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29029 (eval $ac_try) 2>&5
29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29032 test $ac_status = 0; }; }
29034 gcc_cv_as_gnu_unique_object
=yes
29036 echo "configure: failed program was" >&5
29039 rm -f conftest.o conftest.s
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29043 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29044 if test $gcc_cv_as_gnu_unique_object = yes; then
29045 # We need to unquote above to to use the definition from config.gcc.
29046 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29048 if test $glibc_version_major -gt 2 \
29049 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29050 enable_gnu_unique_object
=yes
29057 if test x
$enable_gnu_unique_object = xyes
; then
29059 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29064 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29065 if ${gcc_cv_as_line_zero+:} false
; then :
29066 $as_echo_n "(cached) " >&6
29068 gcc_cv_as_line_zero
=no
29069 if test $in_tree_gas = yes; then
29070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29071 then gcc_cv_as_line_zero
=yes
29073 elif test "x$gcc_cv_as" != x
; then
29074 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29075 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29077 (eval $ac_try) 2>&5
29079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29080 test $ac_status = 0; }; } &&
29081 test "x`cat conftest.out`" = x
29083 gcc_cv_as_line_zero
=yes
29085 echo "configure: failed program was" >&5
29087 echo "configure: error output was" >&5
29088 cat conftest.out
>&5
29090 rm -f conftest.o conftest.s conftest.out
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29094 $as_echo "$gcc_cv_as_line_zero" >&6; }
29095 if test "x$gcc_cv_as_line_zero" = xyes
; then
29097 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29102 $as_echo_n "checking support for thin archives... " >&6; }
29103 thin_archive_support
=no
29104 echo 'int main (void) { return 0; }' > conftest.c
29105 if ($AR --version |
sed 1q |
grep "GNU ar" \
29106 && $CC $CFLAGS -c conftest.c \
29107 && $AR rcT conftest.a conftest.o \
29108 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29109 thin_archive_support
=yes
29111 rm -f conftest.c conftest.o conftest.a conftest
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29113 $as_echo "$thin_archive_support" >&6; }
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29117 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29118 gcc_cv_ld_eh_frame_hdr
=no
29119 if test $in_tree_ld = yes ; then
29120 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
29121 && test $in_tree_ld_is_elf = yes; then
29122 gcc_cv_ld_eh_frame_hdr
=yes
29124 elif test x
$gcc_cv_ld != x
; then
29125 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29126 # Check if linker supports --eh-frame-hdr option
29127 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
29128 gcc_cv_ld_eh_frame_hdr
=yes
29133 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29134 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
29135 gcc_cv_ld_eh_frame_hdr
=yes
29142 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
29144 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29148 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29151 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29152 gcc_cv_ld_eh_frame_ciev3
=no
29153 if test $in_tree_ld = yes ; then
29154 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
29155 && test $in_tree_ld_is_elf = yes; then
29156 gcc_cv_ld_eh_frame_ciev3
=yes
29158 elif test x
$gcc_cv_ld != x
; then
29159 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29160 gcc_cv_ld_eh_frame_ciev3
=yes
29161 if test 0"$ld_date" -lt 20040513; then
29162 if test -n "$ld_date"; then
29163 # If there was date string, but was earlier than 2004-05-13, fail
29164 gcc_cv_ld_eh_frame_ciev3
=no
29165 elif test "$ld_vers_major" -lt 2; then
29166 gcc_cv_ld_eh_frame_ciev3
=no
29167 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29168 gcc_cv_ld_eh_frame_ciev3
=no
29174 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29175 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
29176 gcc_cv_ld_eh_frame_ciev3
=yes
29183 cat >>confdefs.h
<<_ACEOF
29184 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29188 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29191 $as_echo_n "checking linker position independent executable support... " >&6; }
29193 if test $in_tree_ld = yes ; then
29195 # Full PIE support on Solaris was only introduced in gld 2.26.
29196 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
29197 *) gcc_gld_pie_min_version
=15 ;;
29199 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
29200 && test $in_tree_ld_is_elf = yes; then
29203 elif test x
$gcc_cv_ld != x
; then
29204 # Check if linker supports -pie option
29205 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
29209 if echo "$ld_ver" |
grep GNU
> /dev
/null \
29210 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29217 *-*-solaris2.1
[1-9]*)
29218 # Solaris 11.3 added PIE support.
29219 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
29226 if test x
"$gcc_cv_ld_pie" = xyes
; then
29228 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29232 $as_echo "$gcc_cv_ld_pie" >&6; }
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29235 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29236 gcc_cv_ld_pie_copyreloc
=no
29237 if test $gcc_cv_ld_pie = yes ; then
29238 if test $in_tree_ld = yes ; then
29239 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29240 gcc_cv_ld_pie_copyreloc
=yes
29242 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29243 # Check if linker supports -pie option with copy reloc
29245 i?
86-*-linux* | x86_64-
*-linux*)
29246 cat > conftest1.s
<<EOF
29249 .type a_glob, @object
29254 cat > conftest2.s
<<EOF
29257 .type main, @function
29259 movl %eax, a_glob(%rip)
29262 .section .data.rel,"aw",@progbits
29267 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29268 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
29269 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29270 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
29271 gcc_cv_ld_pie_copyreloc
=yes
29273 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29279 cat >>confdefs.h
<<_ACEOF
29280 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29284 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29287 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29288 gcc_cv_ld_eh_gc_sections
=no
29289 if test $in_tree_ld = yes ; then
29290 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
29291 && test $in_tree_ld_is_elf = yes; then
29292 gcc_cv_ld_eh_gc_sections
=yes
29294 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
29295 cat > conftest.s
<<EOF
29298 .type _start, @function
29301 .size _start, .-_start
29302 .section .text.foo,"ax",@progbits
29303 .type foo, @function
29307 .section .gcc_except_table.foo,"a",@progbits
29310 .section .eh_frame,"a",@progbits
29313 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29314 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29315 |
grep "gc-sections option ignored" > /dev
/null
; then
29316 gcc_cv_ld_eh_gc_sections
=no
29317 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29318 |
grep gcc_except_table
> /dev
/null
; then
29319 gcc_cv_ld_eh_gc_sections
=yes
29320 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29321 if test x
$gcc_cv_as_comdat_group != xyes
; then
29322 gcc_cv_ld_eh_gc_sections
=no
29323 cat > conftest.s
<<EOF
29326 .type _start, @function
29329 .size _start, .-_start
29330 .section .gnu.linkonce.t.foo,"ax",@progbits
29331 .type foo, @function
29335 .section .gcc_except_table.foo,"a",@progbits
29338 .section .eh_frame,"a",@progbits
29341 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29342 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29343 |
grep "gc-sections option ignored" > /dev
/null
; then
29344 gcc_cv_ld_eh_gc_sections
=no
29345 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29346 |
grep gcc_except_table
> /dev
/null
; then
29347 gcc_cv_ld_eh_gc_sections
=yes
29353 rm -f conftest.s conftest.o conftest
29357 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29358 gcc_cv_ld_eh_gc_sections
=no
29361 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
29363 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29367 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29370 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29371 gcc_cv_ld_eh_gc_sections_bug
=no
29372 if test $in_tree_ld = yes ; then
29373 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
29374 && test $in_tree_ld_is_elf = yes; then
29375 gcc_cv_ld_eh_gc_sections_bug
=yes
29377 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
29378 gcc_cv_ld_eh_gc_sections_bug
=yes
29379 cat > conftest.s
<<EOF
29382 .type _start, @function
29385 .size _start, .-_start
29386 .section .text.startup.foo,"ax",@progbits
29387 .type foo, @function
29391 .section .gcc_except_table.foo,"a",@progbits
29394 .section .eh_frame,"a",@progbits
29397 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29398 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29399 |
grep "gc-sections option ignored" > /dev
/null
; then
29401 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29402 |
grep gcc_except_table
> /dev
/null
; then
29403 gcc_cv_ld_eh_gc_sections_bug
=no
29406 rm -f conftest.s conftest.o conftest
29408 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
29410 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29414 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29417 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29418 # gold/gld support compressed debug sections since binutils 2.19/2.21
29419 # In binutils 2.26, gld gained support for the ELF gABI format.
29420 if test $in_tree_ld = yes ; then
29421 gcc_cv_ld_compress_debug
=0
29422 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
29423 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29424 gcc_cv_ld_compress_debug
=2
29425 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29426 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
29427 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
29428 gcc_cv_ld_compress_debug
=3
29429 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29430 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
29431 && test $in_tree_ld_is_elf = yes; then
29432 gcc_cv_ld_compress_debug
=1
29434 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29435 if test "$ld_vers_major" -lt 2 \
29436 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29437 gcc_cv_ld_compress_debug
=0
29438 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29439 gcc_cv_ld_compress_debug
=1
29441 gcc_cv_ld_compress_debug
=3
29442 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29444 if test $ld_is_gold = yes; then
29445 gcc_cv_ld_compress_debug
=2
29446 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29449 case "${target}" in
29451 # Introduced in Solaris 11.2.
29452 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29453 gcc_cv_ld_compress_debug
=3
29454 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29456 gcc_cv_ld_compress_debug
=0
29460 # Assume linkers other than GNU ld don't support compessed debug
29462 gcc_cv_ld_compress_debug
=0
29467 cat >>confdefs.h
<<_ACEOF
29468 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29472 cat >>confdefs.h
<<_ACEOF
29473 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29477 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29479 if test x
"$ld64_flag" = x
"yes"; then
29481 # Set defaults for possibly untestable items.
29482 gcc_cv_ld64_export_dynamic
=0
29484 if test "$build" = "$host"; then
29490 # On Darwin, because of FAT library support, it is often possible to execute
29491 # exes from compatible archs even when the host differs from the build system.
29492 case "$build","$host" in
29493 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29494 darwin_try_test
=1;;
29498 # If the configurer specified a minimum ld64 version to be supported, then use
29499 # that to determine feature support.
29500 if test x
"${gcc_cv_ld64_version}" != x
; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29502 $as_echo_n "checking ld64 specified version... " >&6; }
29503 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29505 $as_echo "$gcc_cv_ld64_major" >&6; }
29506 if test "$gcc_cv_ld64_major" -ge 236; then
29507 gcc_cv_ld64_export_dynamic
=1
29509 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29510 # If the version was not specified, try to find it.
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29512 $as_echo_n "checking linker version... " >&6; }
29513 if test x
"${gcc_cv_ld64_version}" = x
; then
29514 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29517 $as_echo "$gcc_cv_ld64_version" >&6; }
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29520 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29521 gcc_cv_ld64_export_dynamic
=1
29522 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29523 gcc_cv_ld64_export_dynamic
=0
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29526 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29529 if test x
"${gcc_cv_ld64_version}" != x
; then
29531 cat >>confdefs.h
<<_ACEOF
29532 #define LD64_VERSION "${gcc_cv_ld64_version}"
29538 cat >>confdefs.h
<<_ACEOF
29539 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29549 $as_echo_n "checking linker --as-needed support... " >&6; }
29550 if ${gcc_cv_ld_as_needed+:} false
; then :
29551 $as_echo_n "(cached) " >&6
29553 gcc_cv_ld_as_needed
=no
29554 gcc_cv_ld_as_needed_option
='--as-needed'
29555 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29556 if test $in_tree_ld = yes ; then
29557 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
29558 && test $in_tree_ld_is_elf = yes; then
29559 gcc_cv_ld_as_needed
=yes
29560 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29561 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29562 gcc_cv_ld_no_as_needed_option
='--pop-state'
29565 elif test x
$gcc_cv_ld != x
; then
29566 # Check if linker supports --as-needed and --no-as-needed options
29567 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29568 gcc_cv_ld_as_needed
=yes
29569 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29570 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29571 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29572 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29573 # Use these options only when both ld.bfd and ld.gold support
29574 # --push-state/--pop-state, which unfortunately wasn't added
29575 # at the same time.
29576 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29577 gcc_cv_ld_no_as_needed_option
='--pop-state'
29580 case "$target:$gnu_ld" in
29582 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29584 gcc_cv_ld_as_needed
=yes
29585 gcc_cv_ld_as_needed_option
="-z ignore"
29586 gcc_cv_ld_no_as_needed_option
="-z record"
29590 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29591 # dl_iterate_phdr, i.e. since Solaris 11.
29593 *-*-solaris2.1
[1-9]*)
29595 i?
86-*-* | x86_64-
*-*)
29596 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29597 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29598 gcc_cv_ld_as_needed
=no
29604 gcc_cv_ld_as_needed
=no
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29610 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29611 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29613 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29616 cat >>confdefs.h
<<_ACEOF
29617 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29621 cat >>confdefs.h
<<_ACEOF
29622 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29628 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29629 saved_LDFLAGS
="$LDFLAGS"
29630 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29631 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29633 /* end confdefs.h. */
29634 int main(void) {return 0;}
29636 if ac_fn_cxx_try_link
"$LINENO"; then :
29637 gcc_cv_ld_clearcap
=yes; break
29639 gcc_cv_ld_clearcap
=no
29641 rm -f core conftest.err conftest.
$ac_objext \
29642 conftest
$ac_exeext conftest.
$ac_ext
29644 LDFLAGS
="$saved_LDFLAGS"
29645 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29647 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29649 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29653 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29659 emul_name
="-melf32lppc"
29662 emul_name
="-melf32ppc"
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29666 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29667 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29668 $as_echo_n "(cached) " >&6
29670 gcc_cv_ld_ppc_attr
=no
29671 if test x
"$ld_is_gold" = xyes
; then
29672 gcc_cv_ld_ppc_attr
=yes
29673 elif test $in_tree_ld = yes ; then
29674 if test "$gcc_cv_gld_major_version" -eq 2 \
29675 -a "$gcc_cv_gld_minor_version" -ge 28 \
29676 -o "$gcc_cv_gld_major_version" -gt 2; then
29677 gcc_cv_ld_ppc_attr
=yes
29679 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29680 # check that merging the long double .gnu_attribute doesn't warn
29681 cat > conftest1.s
<<EOF
29684 cat > conftest2.s
<<EOF
29687 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29688 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29689 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29690 && test ! -s conftest.err
; then
29691 gcc_cv_ld_ppc_attr
=yes
29693 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29698 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29699 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29701 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29707 case "$target:$tm_file" in
29708 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29711 emul_name
="-melf64lppc"
29714 emul_name
="-melf64ppc"
29717 emul_name
="-melf64ppc_fbsd"
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29721 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29722 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29723 $as_echo_n "(cached) " >&6
29725 gcc_cv_ld_no_dot_syms
=no
29726 if test x
"$ld_is_gold" = xyes
; then
29727 gcc_cv_ld_no_dot_syms
=yes
29728 elif test $in_tree_ld = yes ; then
29729 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
29730 gcc_cv_ld_no_dot_syms
=yes
29732 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29733 cat > conftest1.s
<<EOF
29737 cat > conftest2.s
<<EOF
29738 .section ".opd","aw"
29741 .type foo,@function
29743 .quad .LEfoo,.TOC.@tocbase,0
29749 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29750 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29751 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29752 gcc_cv_ld_no_dot_syms
=yes
29754 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29759 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29760 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29762 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29767 $as_echo_n "checking linker large toc support... " >&6; }
29768 if ${gcc_cv_ld_large_toc+:} false
; then :
29769 $as_echo_n "(cached) " >&6
29771 gcc_cv_ld_large_toc
=no
29772 if test x
"$ld_is_gold" = xyes
; then
29773 gcc_cv_ld_large_toc
=yes
29774 elif test $in_tree_ld = yes ; then
29775 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
29776 gcc_cv_ld_large_toc
=yes
29778 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29779 cat > conftest.s
<<EOF
29780 .section ".tbss","awT",@nobits
29786 addis 9,13,ie0@got@tprel@ha
29787 ld 9,ie0@got@tprel@l(9)
29789 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29790 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29791 gcc_cv_ld_large_toc
=yes
29793 rm -f conftest conftest.o conftest.s
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29798 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29799 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29801 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29806 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29807 if ${gcc_cv_ld_toc_align+:} false
; then :
29808 $as_echo_n "(cached) " >&6
29810 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29811 cat > conftest.s
<<EOF
29816 .section .data.rel.ro,"aw",@progbits
29821 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29822 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29823 gcc_cv_ld_toc_align
=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
29825 rm -f conftest conftest.o conftest.s
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29830 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29831 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29833 cat >>confdefs.h
<<_ACEOF
29834 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29844 $as_echo_n "checking linker large toc support... " >&6; }
29845 if ${gcc_cv_ld_large_toc+:} false
; then :
29846 $as_echo_n "(cached) " >&6
29848 gcc_cv_ld_large_toc
=no
29849 if test x
$gcc_cv_as != x
; then
29850 cat > conftest.s
<<EOF
29860 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29861 gcc_cv_ld_large_toc
=yes
29863 rm -f conftest conftest.o conftest.s
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29868 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29869 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29871 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29878 $as_echo_n "checking linker --build-id support... " >&6; }
29879 if ${gcc_cv_ld_buildid+:} false
; then :
29880 $as_echo_n "(cached) " >&6
29882 gcc_cv_ld_buildid
=no
29883 if test $in_tree_ld = yes ; then
29884 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29885 "$gcc_cv_gld_minor_version" -ge 18 -o \
29886 "$gcc_cv_gld_major_version" -gt 2 \
29887 && test $in_tree_ld_is_elf = yes; then
29888 gcc_cv_ld_buildid
=yes
29890 elif test x
$gcc_cv_ld != x
; then
29891 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29892 gcc_cv_ld_buildid
=yes
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29897 $as_echo "$gcc_cv_ld_buildid" >&6; }
29898 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29900 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29904 # Check whether --enable-linker-build-id was given.
29905 if test "${enable_linker_build_id+set}" = set; then :
29906 enableval
=$enable_linker_build_id;
29908 enable_linker_build_id
=no
29912 if test x
"$enable_linker_build_id" = xyes
; then
29913 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29915 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29919 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29923 # In binutils 2.21, GNU ld gained support for new emulations fully
29924 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29926 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29927 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29928 $as_echo_n "(cached) " >&6
29930 gcc_cv_ld_sol2_emulation
=no
29931 if test $in_tree_ld = yes ; then
29932 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29933 "$gcc_cv_gld_minor_version" -ge 21 -o \
29934 "$gcc_cv_gld_major_version" -gt 2 \
29935 && test $in_tree_ld_is_elf = yes; then
29936 gcc_cv_ld_sol2_emulation
=yes
29938 elif test x
$gcc_cv_ld != x
; then
29939 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29940 grep _sol2
> /dev
/null
; then
29941 gcc_cv_ld_sol2_emulation
=yes
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29946 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29947 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29949 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29954 $as_echo_n "checking linker --sysroot support... " >&6; }
29955 if ${gcc_cv_ld_sysroot+:} false
; then :
29956 $as_echo_n "(cached) " >&6
29958 gcc_cv_ld_sysroot
=no
29959 if test $in_tree_ld = yes ; then
29960 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
29961 gcc_cv_ld_sysroot
=yes
29963 elif test x
$gcc_cv_ld != x
; then
29964 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29965 gcc_cv_ld_sysroot
=yes
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29970 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29971 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29973 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29979 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29981 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29982 if ${gcc_cv_solaris_crts+:} false
; then :
29983 $as_echo_n "(cached) " >&6
29985 gcc_cv_solaris_crts
=no
29986 if test x
$host != x
$target; then
29987 if test "x$with_sysroot" = xyes
; then
29988 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29990 target_sysroot
="${with_sysroot}"
29993 target_libdir
="$target_sysroot/usr/lib"
29994 # At the time they were added, gcrt1.o became a symlink for backwards
29995 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29997 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29998 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30000 sparc
*-*-solaris2*)
30001 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30006 $as_echo "$gcc_cv_solaris_crts" >&6; }
30009 if test x
$gcc_cv_solaris_crts = xyes
; then
30011 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30015 # Check whether --enable-libssp was given.
30016 if test "${enable_libssp+set}" = set; then :
30017 enableval
=$enable_libssp; case "${enableval}" in
30021 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30027 # Test for stack protector support in target C library.
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30029 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30030 if ${gcc_cv_libc_provides_ssp+:} false
; then :
30031 $as_echo_n "(cached) " >&6
30033 gcc_cv_libc_provides_ssp
=no
30034 if test "x$enable_libssp" = "xno"; then
30035 gcc_cv_libc_provides_ssp
=yes
30036 elif test "x$enable_libssp" = "xyes"; then
30037 gcc_cv_libc_provides_ssp
=no
30041 # All versions of musl provide stack protector
30042 gcc_cv_libc_provides_ssp
=yes;;
30043 *-*-linux* |
*-*-kfreebsd*-gnu)
30044 # glibc 2.4 and later provides __stack_chk_fail and
30045 # either __stack_chk_guard, or TLS access to stack guard canary.
30047 if test $glibc_version_major -gt 2 \
30048 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30049 gcc_cv_libc_provides_ssp
=yes
30052 if test -f $target_header_dir/features.h \
30053 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30054 $target_header_dir/features.h
> /dev
/null
; then
30055 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30056 $target_header_dir/features.h
> /dev
/null
&& \
30057 test -f $target_header_dir/bits
/uClibc_config.h
&& \
30058 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30059 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
30060 gcc_cv_libc_provides_ssp
=yes
30062 # all versions of Bionic support stack protector
30063 elif test -f $target_header_dir/sys
/cdefs.h \
30064 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30065 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
30066 gcc_cv_libc_provides_ssp
=yes
30071 # Avoid complicated tests (see
30072 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30073 # simply assert that glibc does provide this, which is true for all
30074 # realistically usable GNU/Hurd configurations.
30075 # All supported versions of musl provide it as well
30076 gcc_cv_libc_provides_ssp
=yes;;
30077 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
30078 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30079 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
30080 gcc_cv_libc_provides_ssp
=yes
30082 echo "no __stack_chk_fail on this target"
30086 *) gcc_cv_libc_provides_ssp
=no
;;
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30091 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30093 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30095 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30099 # Check whether --enable-default-ssp was given.
30100 # Check whether --enable-default-ssp was given.
30101 if test "${enable_default_ssp+set}" = set; then :
30102 enableval
=$enable_default_ssp;
30103 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30105 ia64
*-*-*) enable_default_ssp
=no
;;
30106 *) enable_default_ssp
=$enableval ;;
30109 enable_default_ssp
=no
30112 enable_default_ssp
=no
30115 if test x
$enable_default_ssp = xyes
; then
30117 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30122 # Test for <sys/sdt.h> on the target.
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30125 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30127 if test -f $target_header_dir/sys
/sdt.h
; then
30130 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30134 $as_echo "$have_sys_sdt_h" >&6; }
30136 # Check if TFmode long double should be used by default or not.
30137 # Some glibc targets used DFmode long double, but with glibc 2.4
30138 # and later they can use TFmode.
30140 powerpc
*-*-linux* | \
30141 sparc
*-*-linux* | \
30145 # Check whether --with-long-double-128 was given.
30146 if test "${with_long_double_128+set}" = set; then :
30147 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
30151 s390
*-*-linux-musl*)
30152 gcc_cv_target_ldbl128
=yes
30154 powerpc
*-*-linux-musl*)
30155 gcc_cv_target_ldbl128
=no
30159 if test $glibc_version_major -gt 2 \
30160 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30161 gcc_cv_target_ldbl128
=yes
30164 gcc_cv_target_ldbl128
=no
30165 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30166 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
30167 && gcc_cv_target_ldbl128
=yes
30178 if test x
$gcc_cv_target_ldbl128 = xyes
; then
30180 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30184 # Check if TFmode long double target should use the IBM extended double or IEEE
30185 # 128-bit floating point formats if long doubles are 128-bits long. The long
30186 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30187 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30190 # Check whether --with-long-double-format was given.
30191 if test "${with_long_double_format+set}" = set; then :
30192 withval
=$with_long_double_format;
30193 case "$target:$with_long_double_format" in
30194 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
30197 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
30198 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30199 case "$with_cpu" in
30200 power7 | power8 | power9 | power1
*)
30204 as_fn_error $?
"Configuration option --with-long-double-format is only \
30205 supported if the default cpu is power7 or newer" "$LINENO" 5
30206 with_long_double_format
=""
30210 powerpc64
*-*-linux*:*)
30211 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30212 with_long_double_format
=""
30215 as_fn_error $?
"Configure option --with-long-double-format is only supported \
30216 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30217 with_long_double_format
=""
30223 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30224 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30225 gcc_cv_libc_provides_hwcap_in_tcb
=no
30229 if test $glibc_version_major -gt 2 \
30230 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30231 gcc_cv_libc_provides_hwcap_in_tcb
=yes
30235 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
30237 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30241 # Check if the target LIBC handles PT_GNU_STACK.
30242 gcc_cv_libc_gnustack
=unknown
30246 if test $glibc_version_major -gt 2 \
30247 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30248 gcc_cv_libc_gnustack
=yes
30252 if test x
$gcc_cv_libc_gnustack = xyes
; then
30254 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30259 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30260 gcc_cv_target_dl_iterate_phdr
=unknown
30263 # <link.h> needs both a dl_iterate_phdr declaration and support for
30264 # compilation with largefile support.
30265 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
30266 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
30267 gcc_cv_target_dl_iterate_phdr
=yes
30269 gcc_cv_target_dl_iterate_phdr
=no
30272 *-*-dragonfly* |
*-*-freebsd*)
30273 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
30274 gcc_cv_target_dl_iterate_phdr
=yes
30276 gcc_cv_target_dl_iterate_phdr
=no
30280 gcc_cv_target_dl_iterate_phdr
=yes
30284 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
30286 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30290 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30292 # We no longer support different GC mechanisms. Emit an error if
30293 # the user configures with --with-gc.
30295 # Check whether --with-gc was given.
30296 if test "${with_gc+set}" = set; then :
30297 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30301 # Libraries to use on the host. This will normally be set by the top
30302 # level Makefile. Here we simply capture the value for our Makefile.
30303 if test -z "${HOST_LIBS+set}"; then
30308 # Use the system's zlib library.
30310 # Use the system's zlib library.
30311 zlibdir
="-L\$(top_builddir)/../zlib"
30312 zlibinc
="-I\$(top_srcdir)/../zlib"
30314 # Check whether --with-system-zlib was given.
30315 if test "${with_system_zlib+set}" = set; then :
30316 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30329 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30330 # Check whether --enable-maintainer-mode was given.
30331 if test "${enable_maintainer_mode+set}" = set; then :
30332 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30339 $as_echo "$maintainer_mode" >&6; }
30341 if test "$maintainer_mode" = "yes"; then
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30349 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30350 # Check whether --enable-link-mutex was given.
30351 if test "${enable_link_mutex+set}" = set; then :
30352 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30358 $as_echo "$do_link_mutex" >&6; }
30360 if test "$do_link_mutex" = "yes"; then
30363 DO_LINK_MUTEX
=false
30371 # Make empty files to contain the specs and options for each language.
30372 # Then add #include lines to for a compiler that has specs and/or options.
30378 # These (without "all_") are set in each config-lang.in.
30379 # `language' must be a single word so is spelled singularly.
30382 all_outputs
='Makefile'
30383 # List of language configure and makefile fragments.
30384 all_lang_configurefrags
=
30385 all_lang_makefrags
=
30386 # Additional files for gengtype
30387 all_gtfiles
="$target_gtfiles"
30389 # These are the languages that are set in --enable-languages,
30390 # and are available in the GCC tree.
30391 all_selected_languages
=
30393 # Add the language fragments.
30394 # Languages are added via two mechanisms. Some information must be
30395 # recorded in makefile variables, these are defined in config-lang.in.
30396 # We accumulate them and plug them into the main Makefile.
30397 # The other mechanism is a set of hooks for each of the main targets
30398 # like `clean', `install', etc.
30400 language_hooks
="Make-hooks"
30402 for lang
in ${srcdir}/*/config-lang.
in
30404 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30406 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30407 if test "x$lang_alias" = x
30409 echo "$lang doesn't set \$language." 1>&2
30412 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30413 subdirs
="$subdirs $subdir"
30415 # $gcc_subdir is where the gcc integration files are to be found
30416 # for a language, both for internal compiler purposes (compiler
30417 # sources implementing front-end to GCC tree converters), and for
30418 # build infrastructure purposes (Make-lang.in, etc.)
30420 # This will be <subdir> (relative to $srcdir) if a line like
30421 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30422 # is found in <langdir>/config-lang.in, and will remain <langdir>
30425 # Except for the language alias (fetched above), the regular
30426 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30427 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30428 # only this and the language alias.
30430 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30431 if [ "$gcc_subdir" = "" ]; then
30432 gcc_subdir
="$subdir"
30435 case ",$enable_languages," in
30437 all_selected_languages
="$all_selected_languages $lang_alias"
30438 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
30439 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30450 .
${srcdir}/$gcc_subdir/config-lang.
in
30451 if test "x$language" = x
30453 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30458 case ",$enable_languages," in
30459 *,$lang_alias,*) ;;
30461 for i
in $subdir_requires; do
30462 test -f "${srcdir}/$i/config-lang.in" && continue
30470 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30471 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30472 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30473 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30474 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30476 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30477 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30479 all_languages
="$all_languages $language"
30480 all_compilers
="$all_compilers $compilers"
30481 all_outputs
="$all_outputs $outputs"
30482 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30483 case ",$enable_languages," in
30486 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30496 for language
in $all_selected_languages
30498 check_languages
="$check_languages check-$language"
30501 selftest_languages
=
30502 for language
in $all_selected_languages
30504 selftest_languages
="$selftest_languages selftest-$language"
30507 # We link each language in with a set of hooks, reached indirectly via
30508 # lang.${target}. Only do so for selected languages.
30512 target_list
="all.cross start.encap rest.encap tags \
30513 install-common install-man install-info install-pdf install-html dvi \
30514 pdf html uninstall info man srcextra srcman srcinfo \
30515 mostlyclean clean distclean maintainer-clean install-plugin"
30517 for t
in $target_list
30520 for lang
in $all_selected_languages
30524 echo "lang.$t: $x" >> Make-hooks
30528 # Option include files
30531 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30532 option_includes
="option-includes.mk"
30541 echo "dir ." > .gdbinit
30542 echo "dir ${srcdir}" >> .gdbinit
30543 if test x
$gdb_needs_out_file_path = xyes
30545 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30547 if test "x$subdirs" != x
; then
30550 echo "dir ${srcdir}/$s" >> .gdbinit
30553 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30554 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30556 # Put a breakpoint on __asan_report_error to help with debugging buffer
30559 *-fsanitize=address
*)
30560 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30564 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30568 # Find a directory in which to install a shared libgcc.
30570 # Check whether --enable-version-specific-runtime-libs was given.
30571 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30572 enableval
=$enable_version_specific_runtime_libs;
30576 # Substitute configuration variables
30645 if test x
${build} = x
${host} ; then
30646 if test x
${host} = x
${target} ; then
30647 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30649 echo "Links are now set up to build a cross-compiler" 1>&2
30650 echo " from ${host} to ${target}." 1>&2
30653 if test x
${host} = x
${target} ; then
30654 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30655 echo " for ${target}." 1>&2
30657 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30658 echo " from ${host} to ${target}." 1>&2
30667 if test "x${ISLLIBS}" != "x" ; then
30669 $as_echo "#define HAVE_isl 1" >>confdefs.h
30673 # Check for plugin support
30674 # Check whether --enable-plugin was given.
30675 if test "${enable_plugin+set}" = set; then :
30676 enableval
=$enable_plugin; enable_plugin
=$enableval
30678 enable_plugin
=yes; default_plugin
=yes
30687 # Since plugin support under MinGW is not as straightforward as on
30688 # other platforms (e.g., we have to link import library, etc), we
30689 # only enable it if explicitly requested.
30690 if test x
"$default_plugin" = x
"yes"; then
30692 elif test x
"$enable_plugin" = x
"yes"; then
30693 # Use make's target variable to derive import library name.
30694 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30699 if test x
$build = x
$host; then
30700 export_sym_check
="nm${exeext} -g"
30701 elif test x
$host = x
$target; then
30702 export_sym_check
="$gcc_cv_nm -g"
30708 if test x
$build = x
$host; then
30709 export_sym_check
="objdump${exeext} -T"
30710 elif test x
$host = x
$target; then
30711 export_sym_check
="$gcc_cv_objdump -T"
30718 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30721 $as_echo_n "checking for exported symbols... " >&6; }
30722 if test "x$export_sym_check" != x
; then
30723 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30724 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30725 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30726 : # No need to use a flag
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728 $as_echo "yes" >&6; }
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30731 $as_echo "yes" >&6; }
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30733 $as_echo_n "checking for -rdynamic... " >&6; }
30734 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30735 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30736 plugin_rdynamic
=yes
30737 pluginlibs
="-rdynamic"
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30743 $as_echo "$plugin_rdynamic" >&6; }
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30747 $as_echo "unable to check" >&6; }
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30753 $as_echo_n "checking for library containing dlopen... " >&6; }
30754 if ${ac_cv_search_dlopen+:} false
; then :
30755 $as_echo_n "(cached) " >&6
30757 ac_func_search_save_LIBS
=$LIBS
30758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30759 /* end confdefs.h. */
30761 /* Override any GCC internal prototype to avoid an error.
30762 Use char because int might match the return type of a GCC
30763 builtin and then its argument prototype would still apply. */
30776 for ac_lib
in '' dl
; do
30777 if test -z "$ac_lib"; then
30778 ac_res
="none required"
30781 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30783 if ac_fn_cxx_try_link
"$LINENO"; then :
30784 ac_cv_search_dlopen
=$ac_res
30786 rm -f core conftest.err conftest.
$ac_objext \
30788 if ${ac_cv_search_dlopen+:} false
; then :
30792 if ${ac_cv_search_dlopen+:} false
; then :
30795 ac_cv_search_dlopen
=no
30797 rm conftest.
$ac_ext
30798 LIBS
=$ac_func_search_save_LIBS
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30801 $as_echo "$ac_cv_search_dlopen" >&6; }
30802 ac_res
=$ac_cv_search_dlopen
30803 if test "$ac_res" != no
; then :
30804 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30808 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30809 pluginlibs
="$pluginlibs -ldl"
30813 # Check that we can build shared objects with -fPIC -shared
30814 saved_LDFLAGS
="$LDFLAGS"
30815 saved_CFLAGS
="$CFLAGS"
30818 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30819 CFLAGS
="$CFLAGS -fPIC"
30820 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30823 CFLAGS
="$CFLAGS -fPIC"
30824 LDFLAGS
="$LDFLAGS -fPIC -shared"
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30828 $as_echo_n "checking for -fPIC -shared... " >&6; }
30829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30830 /* end confdefs.h. */
30840 if ac_fn_cxx_try_link
"$LINENO"; then :
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30842 $as_echo "yes" >&6; }; have_pic_shared
=yes
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30845 $as_echo "no" >&6; }; have_pic_shared
=no
30847 rm -f core conftest.err conftest.
$ac_objext \
30848 conftest
$ac_exeext conftest.
$ac_ext
30849 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30853 LDFLAGS
="$saved_LDFLAGS"
30854 CFLAGS
="$saved_CFLAGS"
30856 # If plugin support had been requested but not available, fail.
30857 if test x
"$enable_plugin" = x
"no" ; then
30858 if test x
"$default_plugin" != x
"yes"; then
30860 Building GCC with plugin support requires a host that supports
30861 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30868 if test x
"$enable_plugin" = x
"yes"; then
30870 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30875 # Enable --enable-host-shared
30876 # Check whether --enable-host-shared was given.
30877 if test "${enable_host_shared+set}" = set; then :
30878 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30887 # Check whether --enable-libquadmath-support was given.
30888 if test "${enable_libquadmath_support+set}" = set; then :
30889 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30891 ENABLE_LIBQUADMATH_SUPPORT
=yes
30894 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30896 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30901 # Specify what hash style to use by default.
30903 # Check whether --with-linker-hash-style was given.
30904 if test "${with_linker_hash_style+set}" = set; then :
30905 withval
=$with_linker_hash_style; case x
"$withval" in
30907 LINKER_HASH_STYLE
=sysv
30910 LINKER_HASH_STYLE
=gnu
30913 LINKER_HASH_STYLE
=both
30916 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30920 LINKER_HASH_STYLE
=''
30923 if test x
"${LINKER_HASH_STYLE}" != x
; then
30925 cat >>confdefs.h
<<_ACEOF
30926 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30931 # Specify what should be the default of -fdiagnostics-color option.
30933 # Check whether --with-diagnostics-color was given.
30934 if test "${with_diagnostics_color+set}" = set; then :
30935 withval
=$with_diagnostics_color; case x
"$withval" in
30937 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30940 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30943 DIAGNOSTICS_COLOR_DEFAULT
=-1
30946 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30949 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30953 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30957 cat >>confdefs.h
<<_ACEOF
30958 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30962 # Specify what should be the default of -fdiagnostics-urls option.
30964 # Check whether --with-diagnostics-urls was given.
30965 if test "${with_diagnostics_urls+set}" = set; then :
30966 withval
=$with_diagnostics_urls; case x
"$withval" in
30968 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
30971 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30974 DIAGNOSTICS_URLS_DEFAULT
=-1
30977 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
30980 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30984 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30988 cat >>confdefs.h
<<_ACEOF
30989 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30993 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30994 # of jit/jit-playback.c.
30995 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30996 echo "gcc_driver_version: ${gcc_driver_version}"
30997 cat > gcc-driver-name.h
<<EOF
30998 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31001 # Check whether --enable-default-pie was given.
31002 # Check whether --enable-default-pie was given.
31003 if test "${enable_default_pie+set}" = set; then :
31004 enableval
=$enable_default_pie; enable_default_pie
=$enableval
31006 enable_default_pie
=no
31009 if test x
$enable_default_pie = xyes
; then
31011 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31016 # Check if -fno-PIE works.
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31018 $as_echo_n "checking for -fno-PIE option... " >&6; }
31019 if ${gcc_cv_c_no_fpie+:} false
; then :
31020 $as_echo_n "(cached) " >&6
31022 saved_CXXFLAGS
="$CXXFLAGS"
31023 CXXFLAGS
="$CXXFLAGS -fno-PIE"
31024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31025 /* end confdefs.h. */
31026 int main(void) {return 0;}
31028 if ac_fn_cxx_try_compile
"$LINENO"; then :
31029 gcc_cv_c_no_fpie
=yes
31031 gcc_cv_c_no_fpie
=no
31033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31034 CXXFLAGS
="$saved_CXXFLAGS"
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31037 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31038 if test "$gcc_cv_c_no_fpie" = "yes"; then
31039 NO_PIE_CFLAGS
="-fno-PIE"
31043 # Check if -no-pie works.
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31045 $as_echo_n "checking for -no-pie option... " >&6; }
31046 if ${gcc_cv_no_pie+:} false
; then :
31047 $as_echo_n "(cached) " >&6
31049 saved_LDFLAGS
="$LDFLAGS"
31050 LDFLAGS
="$LDFLAGS -no-pie"
31051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31052 /* end confdefs.h. */
31053 int main(void) {return 0;}
31055 if ac_fn_cxx_try_link
"$LINENO"; then :
31060 rm -f core conftest.err conftest.
$ac_objext \
31061 conftest
$ac_exeext conftest.
$ac_ext
31062 LDFLAGS
="$saved_LDFLAGS"
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31065 $as_echo "$gcc_cv_no_pie" >&6; }
31066 if test "$gcc_cv_no_pie" = "yes"; then
31067 NO_PIE_FLAG
="-no-pie"
31071 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31072 # Check whether --enable-cet was given.
31073 if test "${enable_cet+set}" = set; then :
31074 enableval
=$enable_cet;
31075 case "$enableval" in
31077 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31086 $as_echo_n "checking for CET support... " >&6; }
31089 i
[34567]86-*-linux* | x86_64-
*-linux*)
31091 cet_save_CFLAGS
="$CFLAGS"
31092 CFLAGS
="$CFLAGS -fcf-protection"
31093 case "$enable_cet" in
31095 # Check if target supports multi-byte NOPs
31096 # and if compiler and assembler support CET.
31097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31098 /* end confdefs.h. */
31104 #if !defined(__SSE2__)
31105 #error target does not support multi-byte NOPs
31114 if ac_fn_cxx_try_compile
"$LINENO"; then :
31119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31122 # Check if compiler and assembler support CET.
31123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31124 /* end confdefs.h. */
31134 if ac_fn_cxx_try_compile
"$LINENO"; then :
31139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31140 if test $support_cet = "no"; then
31141 if test x
$enable_bootstrap != xno \
31142 && test -z "${with_build_subdir}" \
31143 && (test ! -f ..
/stage_current \
31144 ||
test `cat ../stage_current` != "stage1"); then
31145 # Require CET support only for the final GCC build.
31146 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31148 # Don't enable CET without CET support for non-bootstrap
31149 # build, in stage1 nor for build support.
31155 CFLAGS
="$cet_save_CFLAGS"
31163 cet_save_CFLAGS
="$CFLAGS"
31164 CFLAGS
="$CFLAGS -fcf-protection=none"
31165 cet_save_LDFLAGS
="$LDFLAGS"
31166 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31167 if test x
$may_have_cet = xyes
; then
31168 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31170 /* end confdefs.h. */
31180 if ac_fn_cxx_try_link
"$LINENO"; then :
31185 rm -f core conftest.err conftest.
$ac_objext \
31186 conftest
$ac_exeext conftest.
$ac_ext
31189 if test x
$may_have_cet = xyes
; then
31190 if test x
$cross_compiling = xno
; then
31191 if test "$cross_compiling" = yes; then :
31192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31194 as_fn_error $?
"cannot run test program while cross compiling
31195 See \`config.log' for more details" "$LINENO" 5; }
31197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31198 /* end confdefs.h. */
31206 __attribute__ ((noinline, noclone))
31207 xxx (void (*f) (void))
31213 __attribute__ ((noinline, noclone))
31227 if ac_fn_cxx_try_run
"$LINENO"; then :
31232 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31233 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31236 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
31237 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31241 # Enable CET in cross compiler if possible so that it will run on both
31242 # CET and non-CET hosts.
31245 if test x
$enable_cet = xyes
; then
31246 CET_HOST_FLAGS
="-fcf-protection"
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31248 $as_echo "yes" >&6; }
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31251 $as_echo "no" >&6; }
31253 CFLAGS
="$cet_save_CFLAGS"
31254 LDFLAGS
="$cet_save_LDFLAGS"
31256 case x
$enable_languages in
31265 # Check linker supports '-z bndplt'
31266 ld_bndplt_support
=no
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31268 $as_echo_n "checking linker -z bndplt option... " >&6; }
31269 if test x
"$ld_is_gold" = xno
; then
31270 if test $in_tree_ld = yes ; then
31271 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
31272 ld_bndplt_support
=yes
31274 elif test x
$gcc_cv_ld != x
; then
31275 # Check if linker supports -a bndplt option
31276 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
31277 ld_bndplt_support
=yes
31281 if test x
"$ld_bndplt_support" = xyes
; then
31283 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31287 $as_echo "$ld_bndplt_support" >&6; }
31289 # Check linker supports '--push-state'/'--pop-state'
31290 ld_pushpopstate_support
=no
31291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31292 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31293 if test x
"$ld_is_gold" = xno
; then
31294 if test $in_tree_ld = yes ; then
31295 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
31296 ld_pushpopstate_support
=yes
31298 elif test x
$gcc_cv_ld != x
; then
31299 # Check if linker supports --push-state/--pop-state options
31300 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
31301 ld_pushpopstate_support
=yes
31305 if test x
"$ld_pushpopstate_support" = xyes
; then
31307 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31311 $as_echo "$ld_pushpopstate_support" >&6; }
31313 # Configure the subdirectories
31314 # AC_CONFIG_SUBDIRS($subdirs)
31316 # Create the Makefile
31317 # and configure language subdirectories
31318 ac_config_files
="$ac_config_files $all_outputs"
31321 ac_config_commands
="$ac_config_commands default"
31323 cat >confcache
<<\_ACEOF
31324 # This file is a shell script that caches the results of configure
31325 # tests run on this system so they can be shared between configure
31326 # scripts and configure runs, see configure's option --config-cache.
31327 # It is not useful on other systems. If it contains results you don't
31328 # want to keep, you may remove or edit it.
31330 # config.status only pays attention to the cache file if you give it
31331 # the --recheck option to rerun configure.
31333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31335 # following values.
31339 # The following way of writing the cache mishandles newlines in values,
31340 # but we know of no workaround that is simple, portable, and efficient.
31341 # So, we kill variables containing newlines.
31342 # Ultrix sh set writes to stderr and can't be redirected directly,
31343 # and sets the high bit in the cache file unless we assign to the vars.
31345 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31346 eval ac_val
=\$
$ac_var
31350 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31351 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31354 _ | IFS | as_nl
) ;; #(
31355 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31356 *) { eval $ac_var=; unset $ac_var;} ;;
31362 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31363 *${as_nl}ac_space
=\
*)
31364 # `set' does not quote correctly, so add quotes: double-quote
31365 # substitution turns \\\\ into \\, and sed turns \\ into \.
31368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31371 # `set' quotes correctly as required by POSIX, so do not add quotes.
31372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31383 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31385 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31386 if test -w "$cache_file"; then
31387 if test "x$cache_file" != "x/dev/null"; then
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31389 $as_echo "$as_me: updating cache $cache_file" >&6;}
31390 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31391 cat confcache
>"$cache_file"
31393 case $cache_file in #(
31395 mv -f confcache
"$cache_file"$$
&&
31396 mv -f "$cache_file"$$
"$cache_file" ;; #(
31398 mv -f confcache
"$cache_file" ;;
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31404 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31409 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31410 # Let make expand exec_prefix.
31411 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31413 DEFS
=-DHAVE_CONFIG_H
31418 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31419 # 1. Remove the extension, and $U if already installed.
31420 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31421 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31422 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31423 # will be set to the directory where LIBOBJS objects are built.
31424 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31425 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31427 LIBOBJS
=$ac_libobjs
31429 LTLIBOBJS
=$ac_ltlibobjs
31434 : "${CONFIG_STATUS=./config.status}"
31436 ac_clean_files_save
=$ac_clean_files
31437 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31443 # Generated by $as_me.
31444 # Run this file to recreate the current configuration.
31445 # Compiler output produced by configure, useful for debugging
31446 # configure, is in config.log if it exists.
31449 ac_cs_recheck=false
31452 SHELL=\${CONFIG_SHELL-$SHELL}
31455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31456 ## -------------------- ##
31457 ## M4sh Initialization. ##
31458 ## -------------------- ##
31460 # Be more Bourne compatible
31461 DUALCASE
=1; export DUALCASE
# for MKS sh
31462 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31466 # is contrary to our usage. Disable this feature.
31467 alias -g '${1+"$@"}'='"$@"'
31468 setopt NO_GLOB_SUBST
31470 case `(set -o) 2>/dev/null` in #(
31482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31483 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31486 # Prefer a ksh shell builtin over an external printf program on Solaris,
31487 # but without wasting forks for bash or zsh.
31488 if test -z "$BASH_VERSION$ZSH_VERSION" \
31489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31490 as_echo='print
-r --'
31491 as_echo_n='print
-rn --'
31492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31493 as_echo='printf %s
\n'
31494 as_echo_n='printf %s
'
31496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31497 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31498 as_echo_n='/usr
/ucb
/echo -n'
31500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31501 as_echo_n_body='eval
31505 expr "X$arg" : "X\\(.*\\)$as_nl";
31506 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31508 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31510 export as_echo_n_body
31511 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31513 export as_echo_body
31514 as_echo='sh
-c $as_echo_body as_echo
'
31517 # The user is always right.
31518 if test "${PATH_SEPARATOR+set}" != set; then
31520 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31521 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31528 # We need space, tab and new line, in precisely that order. Quoting is
31529 # there to prevent editors from complaining about space-tab.
31530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31531 # splitting by setting IFS to empty value.)
31534 # Find who we are. Look in the path if we contain no directory separator.
31537 *[\\/]* ) as_myself=$0 ;;
31538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31539 for as_dir in $PATH
31542 test -z "$as_dir" && as_dir=.
31543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31549 # We did not find ourselves, most probably we were run as `sh COMMAND'
31550 # in which case we are not to be found in the path.
31551 if test "x$as_myself" = x
; then
31554 if test ! -f "$as_myself"; then
31555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31559 # Unset variables that we do not need and which cause bugs (e.g. in
31560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31561 # suppresses any "Segmentation fault" message there. '((' could
31562 # trigger a bug in pdksh 5.2.14.
31563 for as_var
in BASH_ENV ENV MAIL MAILPATH
31564 do eval test x\
${$as_var+set} = xset \
31565 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31582 # ----------------------------------------
31583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31585 # script with STATUS, using 1 if that was 0.
31588 as_status
=$1; test $as_status -eq 0 && as_status
=1
31590 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31593 $as_echo "$as_me: error: $2" >&2
31594 as_fn_exit
$as_status
31598 # as_fn_set_status STATUS
31599 # -----------------------
31600 # Set $? to STATUS, without forking.
31601 as_fn_set_status
()
31604 } # as_fn_set_status
31606 # as_fn_exit STATUS
31607 # -----------------
31608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31612 as_fn_set_status
$1
31618 # Portably unset VAR.
31621 { eval $1=; unset $1;}
31623 as_unset
=as_fn_unset
31624 # as_fn_append VAR VALUE
31625 # ----------------------
31626 # Append the text in VALUE to the end of the definition contained in VAR. Take
31627 # advantage of any shell optimizations that allow amortized linear growth over
31628 # repeated appends, instead of the typical quadratic growth present in naive
31630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31631 eval 'as_fn_append ()
31642 # as_fn_arith ARG...
31643 # ------------------
31644 # Perform arithmetic evaluation on the ARGs, and store the result in the
31645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31646 # must be portable across $(()) and expr.
31647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31648 eval 'as_fn_arith ()
31655 as_val
=`expr "$@" || test $? -eq 1`
31660 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31661 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31667 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31668 as_basename
=basename
31673 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31679 as_me
=`$as_basename -- "$0" ||
31680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31681 X"$0" : 'X\(//\)$' \| \
31682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31684 sed '/^.*\/\([^/][^/]*\)\/*$/{
31698 # Avoid depending upon Character Ranges.
31699 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31700 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31701 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31702 as_cr_digits
='0123456789'
31703 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31705 ECHO_C
= ECHO_N
= ECHO_T
=
31706 case `echo -n x` in #(((((
31708 case `echo 'xy\c'` in
31709 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31711 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31718 rm -f conf$$ conf$$.exe conf$$.
file
31719 if test -d conf$$.dir
; then
31720 rm -f conf$$.dir
/conf$$.
file
31723 mkdir conf$$.dir
2>/dev
/null
31725 if (echo >conf$$.
file) 2>/dev
/null
; then
31726 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31728 # ... but there are two gotchas:
31729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31731 # In both cases, we have to default to `cp -pR'.
31732 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31734 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31742 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31743 rmdir conf$$.dir
2>/dev
/null
31748 # Create "$as_dir" as a directory, including parents if necessary.
31753 -*) as_dir
=.
/$as_dir;;
31755 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31759 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31760 *) as_qdir
=$as_dir;;
31762 as_dirs
="'$as_qdir' $as_dirs"
31763 as_dir
=`$as_dirname -- "$as_dir" ||
31764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31765 X"$as_dir" : 'X\(//\)[^/]' \| \
31766 X"$as_dir" : 'X\(//\)$' \| \
31767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31768 $as_echo X"$as_dir" |
31769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31773 /^X\(\/\/\)[^/].*/{
31786 test -d "$as_dir" && break
31788 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31789 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31793 if mkdir
-p .
2>/dev
/null
; then
31794 as_mkdir_p
='mkdir -p "$as_dir"'
31796 test -d .
/-p && rmdir .
/-p
31801 # as_fn_executable_p FILE
31802 # -----------------------
31803 # Test if FILE is an executable regular file.
31804 as_fn_executable_p
()
31806 test -f "$1" && test -x "$1"
31807 } # as_fn_executable_p
31808 as_test_x
='test -x'
31809 as_executable_p
=as_fn_executable_p
31811 # Sed expression to map a string onto a valid CPP name.
31812 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31814 # Sed expression to map a string onto a valid variable name.
31815 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31819 ## ----------------------------------- ##
31820 ## Main body of $CONFIG_STATUS script. ##
31821 ## ----------------------------------- ##
31823 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31826 # Save the log message, to keep $0 and so on meaningful, and to
31827 # report actual input values of CONFIG_FILES etc. instead of their
31828 # values after options handling.
31830 This file was extended by $as_me, which was
31831 generated by GNU Autoconf 2.69. Invocation command line was
31833 CONFIG_FILES = $CONFIG_FILES
31834 CONFIG_HEADERS = $CONFIG_HEADERS
31835 CONFIG_LINKS = $CONFIG_LINKS
31836 CONFIG_COMMANDS = $CONFIG_COMMANDS
31839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31844 case $ac_config_files in *"
31845 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31848 case $ac_config_headers in *"
31849 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31854 # Files that config.status was made for.
31855 config_files="$ac_config_files"
31856 config_headers="$ac_config_headers"
31857 config_links="$ac_config_links"
31858 config_commands="$ac_config_commands"
31862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31864 \`$as_me' instantiates files and other configuration actions
31865 from templates according to the current configuration. Unless the files
31866 and actions are specified as TAGs, all are instantiated by default.
31868 Usage: $0 [OPTION]... [TAG]...
31870 -h, --help print this help, then exit
31871 -V, --version print version number and configuration settings, then exit
31872 --config print configuration, then exit
31873 -q, --quiet, --silent
31874 do not print progress messages
31875 -d, --debug don't remove temporary files
31876 --recheck update $as_me by reconfiguring in the same conditions
31877 --file=FILE[:TEMPLATE]
31878 instantiate the configuration file FILE
31879 --header=FILE[:TEMPLATE]
31880 instantiate the configuration header FILE
31882 Configuration files:
31885 Configuration headers:
31888 Configuration links:
31891 Configuration commands:
31894 Report bugs to the package provider."
31897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31898 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31901 configured by $0, generated by GNU Autoconf 2.69,
31902 with options \\"\$ac_cs_config\\"
31904 Copyright (C) 2012 Free Software Foundation, Inc.
31905 This config.status script is free software; the Free Software Foundation
31906 gives unlimited permission to copy, distribute and modify it."
31911 test -n "\$AWK" || AWK=awk
31914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31915 # The default lists apply if the user does not specify any file.
31921 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31922 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31926 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31938 # Handling of the options.
31939 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31941 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31942 $as_echo "$ac_cs_version"; exit ;;
31943 --config |
--confi |
--conf |
--con |
--co |
--c )
31944 $as_echo "$ac_cs_config"; exit ;;
31945 --debug |
--debu |
--deb |
--de |
--d |
-d )
31947 --file |
--fil |
--fi |
--f )
31950 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31951 '') as_fn_error $?
"missing file argument" ;;
31953 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31954 ac_need_defaults
=false
;;
31955 --header |
--heade |
--head |
--hea )
31958 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31960 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31961 ac_need_defaults
=false
;;
31963 # Conflict between --help and --header
31964 as_fn_error $?
"ambiguous option: \`$1'
31965 Try \`$0 --help' for more information.";;
31966 --help |
--hel |
-h )
31967 $as_echo "$ac_cs_usage"; exit ;;
31968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31969 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31972 # This is an error.
31973 -*) as_fn_error $?
"unrecognized option: \`$1'
31974 Try \`$0 --help' for more information." ;;
31976 *) as_fn_append ac_config_targets
" $1"
31977 ac_need_defaults
=false
;;
31983 ac_configure_extra_args
=
31985 if $ac_cs_silent; then
31987 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31992 if \$ac_cs_recheck; then
31993 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31996 CONFIG_SHELL='$SHELL'
31997 export CONFIG_SHELL
32002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32007 ## Running $as_me. ##
32013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32017 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32018 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32025 # Handling of arguments.
32026 for ac_config_target
in $ac_config_targets
32028 case $ac_config_target in
32029 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
32030 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
32031 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
32032 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
32033 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32034 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
32035 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32036 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
32037 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32039 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32044 # If the user did not use the arguments to specify the items to instantiate,
32045 # then the envvar interface is used. Set only those that are not.
32046 # We use the long form for the default assignment because of an extremely
32047 # bizarre bug on SunOS 4.1.3.
32048 if $ac_need_defaults; then
32049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32051 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
32052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32055 # Have a temporary directory for convenience. Make it in the build tree
32056 # simply because there is no reason against having it here, and in addition,
32057 # creating and moving files from /tmp can sometimes cause problems.
32058 # Hook for its removal unless debugging.
32059 # Note that there is a small window in which the directory will not be cleaned:
32060 # after its creation but before its name has been assigned to `$tmp'.
32064 trap 'exit_status=$?
32065 : "${ac_tmp:=$tmp}"
32066 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32068 trap 'as_fn_exit 1' 1 2 13 15
32070 # Create a (secure) tmp directory for tmp files.
32073 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32077 tmp
=.
/conf$$
-$RANDOM
32078 (umask 077 && mkdir
"$tmp")
32079 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32082 # Set up the scripts for CONFIG_FILES section.
32083 # No need to generate them if there are no CONFIG_FILES.
32084 # This happens for instance with `./config.status config.h'.
32085 if test -n "$CONFIG_FILES"; then
32087 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
32088 ac_cs_awk_getline
=:
32089 ac_cs_awk_pipe_init
=
32090 ac_cs_awk_read_file
='
32091 while ((getline aline < (F[key])) > 0)
32094 ac_cs_awk_pipe_fini
=
32096 ac_cs_awk_getline
=false
32097 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
32098 ac_cs_awk_read_file
='
32100 print "cat " F[key] " &&"
32101 '$ac_cs_awk_pipe_init
32102 # The final `:' finishes the AND list.
32103 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
32105 ac_cr
=`echo X | tr X '\015'`
32106 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32107 # But we know of no other shell where ac_cr would be empty at this
32108 # point, so we can use a bashism as a fallback.
32109 if test "x$ac_cr" = x
; then
32110 eval ac_cr
=\$
\'\\r
\'
32112 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32113 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32116 ac_cs_awk_cr
=$ac_cr
32119 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32122 # Create commands to substitute file output variables.
32124 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32125 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32126 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
32129 } >conf$
$files.sh
&&
32130 . .
/conf$
$files.sh ||
32131 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
32132 rm -f conf$
$files.sh
32135 echo "cat >conf$$subs.awk <<_ACEOF" &&
32136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32138 } >conf$$subs.sh ||
32139 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32142 for ac_last_try in false false false false false :; do
32143 . ./conf$$subs.sh ||
32144 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32146 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32147 if test $ac_delim_n = $ac_delim_num; then
32149 elif $ac_last_try; then
32150 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32152 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32155 rm -f conf$$subs.sh
32157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32158 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32162 s/^/S["/; s
/!.
*/"]=/
32172 s/\(.\{148\}\)..*/\1/
32174 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32179 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32186 s/\(.\{148\}\)..*/\1/
32188 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32192 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32197 ' <conf$$subs.awk | sed '
32202 ' >>$CONFIG_STATUS || ac_write_fail=1
32203 rm -f conf$$subs.awk
32204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32206 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32207 for (key in S) S_is_set[key] = 1
32209 \$ac_cs_awk_pipe_init
32213 nfields = split(line, field, "@
")
32215 len = length(field[1])
32216 for (i = 2; i < nfields; i++) {
32218 keylen = length(key)
32219 if (S_is_set[key]) {
32221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32222 len += length(value) + length(field[++i])
32227 if (nfields == 3 && !substed) {
32229 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32230 \$ac_cs_awk_read_file
32236 \$ac_cs_awk_pipe_fini
32239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32240 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32241 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32244 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32245 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32248 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32249 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32250 # trailing colons and then remove the whole line if VPATH becomes empty
32251 # (actually we leave an empty line to preserve line numbers).
32252 if test "x
$srcdir" = x.; then
32253 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32272 fi # test -n "$CONFIG_FILES"
32274 # Set up the scripts for CONFIG_HEADERS section.
32275 # No need to generate them if there are no CONFIG_HEADERS.
32276 # This happens for instance with `./config.status Makefile'.
32277 if test -n "$CONFIG_HEADERS"; then
32278 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32282 # Transform confdefs.h into an awk script `defines.awk', embedded as
32283 # here-document in config.status, that substitutes the proper values into
32284 # config.h.in to produce config.h.
32286 # Create a delimiter string that does not exist in confdefs.h, to ease
32287 # handling of long lines.
32289 for ac_last_try in false false :; do
32290 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32291 if test -z "$ac_tt"; then
32293 elif $ac_last_try; then
32294 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32296 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32300 # For the awk script, D is an array of macro values keyed by name,
32301 # likewise P contains macro parameters if any. Preserve backslash
32302 # newline sequences.
32304 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32306 s/.\{148\}/&'"$ac_delim"'/g
32309 s/^[ ]*#[ ]*define[ ][ ]*/ /
32316 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32318 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32322 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32323 D["\
1"]=" \
3\\\\\\n
"\\/p
32325 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32330 s/.\{148\}/&'"$ac_delim"'/g
32335 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32338 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32340 ' <confdefs.h | sed '
32341 s/'"$ac_delim"'/"\\\
32342 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32345 for (key in D) D_is_set[key] = 1
32348 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32350 split(line, arg, " ")
32351 if (arg[1] == "#") {
32355 defundef
= substr
(arg
[1], 2)
32358 split(mac1
, mac2
, "(") #)
32360 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32361 if (D_is_set
[macro
]) {
32362 # Preserve the white space surrounding the "#".
32363 print prefix
"define", macro P
[macro
] D
[macro
]
32366 # Replace #undef with comments. This is necessary, for example,
32367 # in the case of _POSIX_SOURCE, which is predefined and required
32368 # on some systems where configure will not decide to define it.
32369 if (defundef
== "undef") {
32370 print
"/*", prefix defundef
, macro
, "*/"
32378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32379 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32380 fi # test -n "$CONFIG_HEADERS"
32383 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32388 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32390 case $ac_mode$ac_tag in
32392 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32393 :[FH
]-) ac_tag
=-:-;;
32394 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32411 -) ac_f
="$ac_tmp/stdin";;
32412 *) # Look for the file first in the build tree, then in the source tree
32413 # (if the path is not absolute). The absolute path cannot be DOS-style,
32414 # because $ac_f cannot contain `:'.
32418 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32420 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32422 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32423 as_fn_append ac_file_inputs
" '$ac_f'"
32426 # Let's still pretend it is `configure' which instantiates (i.e., don't
32427 # use $as_me), people would be surprised to read:
32428 # /* config.h. Generated by config.status. */
32429 configure_input
='Generated from '`
32430 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32432 if test x
"$ac_file" != x-
; then
32433 configure_input
="$ac_file. $configure_input"
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32435 $as_echo "$as_me: creating $ac_file" >&6;}
32437 # Neutralize special characters interpreted by sed in replacement strings.
32438 case $configure_input in #(
32439 *\
&* |
*\|
* |
*\\* )
32440 ac_sed_conf_input
=`$as_echo "$configure_input" |
32441 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32442 *) ac_sed_conf_input
=$configure_input;;
32446 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32447 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32452 ac_dir
=`$as_dirname -- "$ac_file" ||
32453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32454 X"$ac_file" : 'X\(//\)[^/]' \| \
32455 X"$ac_file" : 'X\(//\)$' \| \
32456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32457 $as_echo X"$ac_file" |
32458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32462 /^X\(\/\/\)[^/].*/{
32475 as_dir
="$ac_dir"; as_fn_mkdir_p
32479 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32481 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32482 # A ".." for each directory in $ac_dir_suffix.
32483 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32484 case $ac_top_builddir_sub in
32485 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32486 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32489 ac_abs_top_builddir
=$ac_pwd
32490 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32491 # for backward compatibility:
32492 ac_top_builddir
=$ac_top_build_prefix
32495 .
) # We are building in place.
32497 ac_top_srcdir
=$ac_top_builddir_sub
32498 ac_abs_top_srcdir
=$ac_pwd ;;
32499 [\\/]* | ?
:[\\/]* ) # Absolute name.
32500 ac_srcdir
=$srcdir$ac_dir_suffix;
32501 ac_top_srcdir
=$srcdir
32502 ac_abs_top_srcdir
=$srcdir ;;
32503 *) # Relative name.
32504 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32505 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32506 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32508 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32520 # If the template does not know about datarootdir, expand it.
32521 # FIXME: This hack should be removed a few years after 2.60.
32522 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32533 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32534 *datarootdir
*) ac_datarootdir_seen
=yes;;
32535 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32537 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32540 ac_datarootdir_hack='
32541 s&@datadir@&$datadir&g
32542 s&@docdir@&$docdir&g
32543 s&@infodir@&$infodir&g
32544 s&@localedir@&$localedir&g
32545 s&@mandir@&$mandir&g
32546 s&\\\${datarootdir}&$datarootdir&g' ;;
32550 # Neutralize VPATH when `$srcdir' = `.'.
32551 # Shell code in configure.ac might set extrasub.
32552 # FIXME: do we really want to maintain this feature?
32553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32554 ac_sed_extra="$ac_vpsub
32557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32559 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32560 s|@configure_input@|
$ac_sed_conf_input|
;t t
32561 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32562 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32563 s
&@srcdir@
&$ac_srcdir&;t t
32564 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32565 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32566 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32567 s
&@builddir@
&$ac_builddir&;t t
32568 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32569 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32570 $ac_datarootdir_hack
32572 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32573 if $ac_cs_awk_getline; then
32574 $AWK -f "$ac_tmp/subs.
awk"
32576 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32578 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32581 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32583 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32585 which seems to be undefined. Please make sure it is defined" >&5
32586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32587 which seems to be undefined. Please make sure it is defined" >&2;}
32589 rm -f "$ac_tmp/stdin"
32591 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32592 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32600 if test x"$ac_file" != x-; then
32602 $as_echo "/* $configure_input */" \
32603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32604 } >"$ac_tmp/config.h" \
32605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32606 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32611 mv "$ac_tmp/config.h" "$ac_file" \
32612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32615 $as_echo "/* $configure_input */" \
32616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32617 || as_fn_error $? "could not create -" "$LINENO" 5
32625 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32628 # Prefer the file from the source tree if names are identical.
32629 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32630 ac_source=$srcdir/$ac_source
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32634 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32636 if test ! -r "$ac_source"; then
32637 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32641 # Try a relative symlink, then a hard link, then a copy.
32643 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32644 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32646 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32647 ln "$ac_source" "$ac_file" 2>/dev/null ||
32648 cp -p "$ac_source" "$ac_file" ||
32649 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32653 $as_echo "$as_me: executing $ac_file commands" >&6;}
32658 case $ac_file$ac_mode in
32659 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32662 for lang in $subdirs c-family common analyzer
32664 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32666 "as":F) chmod +x as ;;
32667 "collect-ld":F) chmod +x collect-ld ;;
32668 "nm":F) chmod +x nm ;;
32670 case ${CONFIG_HEADERS} in
32671 *auto-host.h:config.in*)
32674 # Make sure all the subdirs exist.
32675 for d in $subdirs doc build common c-family
32677 test -d $d || mkdir $d
32687 ac_clean_files=$ac_clean_files_save
32689 test $ac_write_fail = 0 ||
32690 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32693 # configure is writing to config.log, and then calls config.status.
32694 # config.status does its own redirection, appending to config.log.
32695 # Unfortunately, on DOS this fails, as config.log is still kept open
32696 # by configure, so config.status won't be able to
write to it
; its
32697 # output is simply discarded. So we exec the FD to /dev/null,
32698 # effectively closing config.log, so it can be properly (re)opened and
32699 # appended to by config.status. When coming back to configure, we
32700 # need to make the FD available again.
32701 if test "$no_create" != yes; then
32703 ac_config_status_args
=
32704 test "$silent" = yes &&
32705 ac_config_status_args
="$ac_config_status_args --quiet"
32707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32710 # would make configure fail if this is the last instruction.
32711 $ac_cs_success || as_fn_exit
1
32713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}