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.cc"
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_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
727 ld_version_script_option
729 ORIGINAL_DSYMUTIL_FOR_TARGET
734 ORIGINAL_NM_FOR_TARGET
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 ORIGINAL_AS_FOR_TARGET
766 BUILD_SYSTEM_HEADER_DIR
786 NATIVE_SYSTEM_HEADER_DIR
826 omp_device_property_deps
827 omp_device_properties
829 real_target_noncanonical
830 enable_as_accelerator
846 valgrind_path_defines
878 CROSS_SYSTEM_HEADER_DIR
879 TARGET_SYSTEM_ROOT_DEFINE
881 SYSROOT_CFLAGS_FOR_TARGET
927 program_transform_name
938 ac_subst_files
='option_includes
941 enable_option_checking
944 with_native_system_header_dir
948 with_gxx_libcxx_include_dir
950 enable_generated_files_in_srcdir
958 enable_build_format_warnings
962 enable_gather_detailed_mem_stats
963 enable_valgrind_annotations
966 with_stack_clash_protection_guard_size
981 with_documentation_root_url
982 with_changes_root_url
985 with_multilib_generator
992 enable_sjlj_exceptions
993 with_gcc_major_version_only
995 enable_mingw_wildcard
996 enable_large_address_aware
997 enable_leading_mingw64_underscores
1000 enable_win32_registry
1008 enable_gnu_indirect_function
1009 enable_initfini_array
1011 enable_newlib_nano_formatted_io
1012 enable_standard_branch_protection
1013 enable_fix_cortex_a53_835769
1014 enable_fix_cortex_a53_843419
1016 enable_gnu_unique_object
1017 enable_linker_build_id
1020 with_long_double_128
1021 with_long_double_format
1024 enable_maintainer_mode
1026 enable_link_serialization
1027 enable_version_specific_runtime_libs
1030 enable_libquadmath_support
1031 with_linker_hash_style
1032 with_diagnostics_color
1033 with_diagnostics_urls
1036 enable_s390_excess_float_precision
1038 ac_precious_vars
='build_alias
1057 # Initialize some variables set by options.
1059 ac_init_version
=false
1060 ac_unrecognized_opts
=
1061 ac_unrecognized_sep
=
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file
=/dev
/null
1071 program_transform_name
=s
,x
,x
,
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir
='${exec_prefix}/bin'
1086 sbindir
='${exec_prefix}/sbin'
1087 libexecdir
='${exec_prefix}/libexec'
1088 datarootdir
='${prefix}/share'
1089 datadir
='${datarootdir}'
1090 sysconfdir
='${prefix}/etc'
1091 sharedstatedir
='${prefix}/com'
1092 localstatedir
='${prefix}/var'
1093 includedir
='${prefix}/include'
1094 oldincludedir
='/usr/include'
1095 docdir
='${datarootdir}/doc/${PACKAGE}'
1096 infodir
='${datarootdir}/info'
1101 libdir
='${exec_prefix}/lib'
1102 localedir
='${datarootdir}/locale'
1103 mandir
='${datarootdir}/man'
1109 # If the previous option needs an argument, assign it.
1110 if test -n "$ac_prev"; then
1111 eval $ac_prev=\
$ac_option
1117 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1122 # Accept the important Cygnus configure options, so we can diagnose typos.
1124 case $ac_dashdash$ac_option in
1128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1131 bindir
=$ac_optarg ;;
1133 -build |
--build |
--buil |
--bui |
--bu)
1134 ac_prev
=build_alias
;;
1135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1136 build_alias
=$ac_optarg ;;
1138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1140 ac_prev
=cache_file
;;
1141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1143 cache_file
=$ac_optarg ;;
1145 --config-cache |
-C)
1146 cache_file
=config.cache
;;
1148 -datadir |
--datadir |
--datadi |
--datad)
1150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1151 datadir
=$ac_optarg ;;
1153 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1154 |
--dataroo |
--dataro |
--datar)
1155 ac_prev
=datarootdir
;;
1156 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1157 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1158 datarootdir
=$ac_optarg ;;
1160 -disable-* |
--disable-*)
1161 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1164 as_fn_error $?
"invalid feature name: $ac_useropt"
1165 ac_useropt_orig
=$ac_useropt
1166 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "enable_
$ac_useropt"
1171 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1172 ac_unrecognized_sep
=', ';;
1174 eval enable_
$ac_useropt=no
;;
1176 -docdir |
--docdir |
--docdi |
--doc |
--do)
1178 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1179 docdir
=$ac_optarg ;;
1181 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1183 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1184 dvidir
=$ac_optarg ;;
1186 -enable-* |
--enable-*)
1187 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid feature name: $ac_useropt"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_
$ac_useropt"
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval enable_
$ac_useropt=\
$ac_optarg ;;
1202 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1203 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1204 |
--exec |
--exe |
--ex)
1205 ac_prev
=exec_prefix
;;
1206 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1207 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1208 |
--exec=* |
--exe=* |
--ex=*)
1209 exec_prefix
=$ac_optarg ;;
1211 -gas |
--gas |
--ga |
--g)
1212 # Obsolete; use --with-gas.
1215 -help |
--help |
--hel |
--he |
-h)
1216 ac_init_help
=long
;;
1217 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1218 ac_init_help
=recursive
;;
1219 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1220 ac_init_help
=short
;;
1222 -host |
--host |
--hos |
--ho)
1223 ac_prev
=host_alias
;;
1224 -host=* |
--host=* |
--hos=* |
--ho=*)
1225 host_alias
=$ac_optarg ;;
1227 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1229 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1231 htmldir
=$ac_optarg ;;
1233 -includedir |
--includedir |
--includedi |
--included |
--include \
1234 |
--includ |
--inclu |
--incl |
--inc)
1235 ac_prev
=includedir
;;
1236 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1237 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1238 includedir
=$ac_optarg ;;
1240 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1242 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1243 infodir
=$ac_optarg ;;
1245 -libdir |
--libdir |
--libdi |
--libd)
1247 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1248 libdir
=$ac_optarg ;;
1250 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1251 |
--libexe |
--libex |
--libe)
1252 ac_prev
=libexecdir
;;
1253 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1254 |
--libexe=* |
--libex=* |
--libe=*)
1255 libexecdir
=$ac_optarg ;;
1257 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1258 ac_prev
=localedir
;;
1259 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1260 localedir
=$ac_optarg ;;
1262 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1263 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1264 ac_prev
=localstatedir
;;
1265 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1266 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1267 localstatedir
=$ac_optarg ;;
1269 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1271 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1272 mandir
=$ac_optarg ;;
1274 -nfp |
--nfp |
--nf)
1275 # Obsolete; use --without-fp.
1278 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1279 |
--no-cr |
--no-c |
-n)
1282 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1283 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1286 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1287 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1288 |
--oldin |
--oldi |
--old |
--ol |
--o)
1289 ac_prev
=oldincludedir
;;
1290 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1291 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1292 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1293 oldincludedir
=$ac_optarg ;;
1295 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1297 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1298 prefix
=$ac_optarg ;;
1300 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1301 |
--program-pre |
--program-pr |
--program-p)
1302 ac_prev
=program_prefix
;;
1303 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1304 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1305 program_prefix
=$ac_optarg ;;
1307 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1308 |
--program-suf |
--program-su |
--program-s)
1309 ac_prev
=program_suffix
;;
1310 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1311 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1312 program_suffix
=$ac_optarg ;;
1314 -program-transform-name |
--program-transform-name \
1315 |
--program-transform-nam |
--program-transform-na \
1316 |
--program-transform-n |
--program-transform- \
1317 |
--program-transform |
--program-transfor \
1318 |
--program-transfo |
--program-transf \
1319 |
--program-trans |
--program-tran \
1320 |
--progr-tra |
--program-tr |
--program-t)
1321 ac_prev
=program_transform_name
;;
1322 -program-transform-name=* |
--program-transform-name=* \
1323 |
--program-transform-nam=* |
--program-transform-na=* \
1324 |
--program-transform-n=* |
--program-transform-=* \
1325 |
--program-transform=* |
--program-transfor=* \
1326 |
--program-transfo=* |
--program-transf=* \
1327 |
--program-trans=* |
--program-tran=* \
1328 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1329 program_transform_name
=$ac_optarg ;;
1331 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1333 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1334 pdfdir
=$ac_optarg ;;
1336 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1338 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1341 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1342 |
-silent |
--silent |
--silen |
--sile |
--sil)
1345 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1347 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1349 sbindir
=$ac_optarg ;;
1351 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1352 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1353 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1355 ac_prev
=sharedstatedir
;;
1356 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1357 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1358 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1360 sharedstatedir
=$ac_optarg ;;
1362 -site |
--site |
--sit)
1364 -site=* |
--site=* |
--sit=*)
1367 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1369 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1370 srcdir
=$ac_optarg ;;
1372 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1373 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1374 ac_prev
=sysconfdir
;;
1375 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1376 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1377 sysconfdir
=$ac_optarg ;;
1379 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1380 ac_prev
=target_alias
;;
1381 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1382 target_alias
=$ac_optarg ;;
1384 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1387 -version |
--version |
--versio |
--versi |
--vers |
-V)
1388 ac_init_version
=: ;;
1391 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1394 as_fn_error $?
"invalid package name: $ac_useropt"
1395 ac_useropt_orig
=$ac_useropt
1396 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1401 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1402 ac_unrecognized_sep
=', ';;
1404 eval with_
$ac_useropt=\
$ac_optarg ;;
1406 -without-* |
--without-*)
1407 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1410 as_fn_error $?
"invalid package name: $ac_useropt"
1411 ac_useropt_orig
=$ac_useropt
1412 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1417 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1418 ac_unrecognized_sep
=', ';;
1420 eval with_
$ac_useropt=no
;;
1423 # Obsolete; use --with-x.
1426 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1427 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1428 ac_prev
=x_includes
;;
1429 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1430 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1431 x_includes
=$ac_optarg ;;
1433 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1434 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1435 ac_prev
=x_libraries
;;
1436 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1437 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1438 x_libraries
=$ac_optarg ;;
1440 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1441 Try \`$0 --help' for more information"
1445 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1446 # Reject names that are not valid shell variable names.
1447 case $ac_envvar in #(
1448 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1449 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1451 eval $ac_envvar=\
$ac_optarg
1452 export $ac_envvar ;;
1455 # FIXME: should be removed in autoconf 3.0.
1456 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1457 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1458 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1459 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1465 if test -n "$ac_prev"; then
1466 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1467 as_fn_error $?
"missing argument to $ac_option"
1470 if test -n "$ac_unrecognized_opts"; then
1471 case $enable_option_checking in
1473 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1478 # Check all directory arguments for consistency.
1479 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480 datadir sysconfdir sharedstatedir localstatedir includedir \
1481 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1482 libdir localedir mandir
1484 eval ac_val
=\$
$ac_var
1485 # Remove trailing slashes.
1488 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1489 eval $ac_var=\
$ac_val;;
1491 # Be sure to have absolute directory names.
1493 [\\/$
]* | ?
:[\\/]* ) continue;;
1494 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1496 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1499 # There might be people who depend on the old broken behavior: `$host'
1500 # used to hold the argument of --host etc.
1501 # FIXME: To remove some day.
1504 target
=$target_alias
1506 # FIXME: To remove some day.
1507 if test "x$host_alias" != x
; then
1508 if test "x$build_alias" = x
; then
1509 cross_compiling
=maybe
1510 elif test "x$build_alias" != "x$host_alias"; then
1516 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1518 test "$silent" = yes && exec 6>/dev
/null
1521 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di
=`ls -di .` &&
1523 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1524 as_fn_error $?
"working directory cannot be determined"
1525 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1526 as_fn_error $?
"pwd does not report name of working directory"
1529 # Find the source files, if location was not specified.
1530 if test -z "$srcdir"; then
1531 ac_srcdir_defaulted
=yes
1532 # Try the directory containing this script, then the parent directory.
1533 ac_confdir
=`$as_dirname -- "$as_myself" ||
1534 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1535 X"$as_myself" : 'X\(//\)[^/]' \| \
1536 X"$as_myself" : 'X\(//\)$' \| \
1537 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1538 $as_echo X"$as_myself" |
1539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1561 ac_srcdir_defaulted
=no
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1564 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1565 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1567 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1569 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1571 # When building in place, set srcdir=.
1572 if test "$ac_abs_confdir" = "$ac_pwd"; then
1575 # Remove unnecessary trailing slashes from srcdir.
1576 # Double slashes in file names in object file debugging info
1577 # mess up M-x gdb in Emacs.
1579 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1581 for ac_var
in $ac_precious_vars; do
1582 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1583 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1584 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1585 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1589 # Report the --help message.
1591 if test "$ac_init_help" = "long"; then
1592 # Omit some internal or obsolete options to make the list less imposing.
1593 # This message is too long to be a string in the A/UX 3.1 sh.
1595 \`configure' configures this package to adapt to many kinds of systems.
1597 Usage: $0 [OPTION]... [VAR=VALUE]...
1599 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1600 VAR=VALUE. See below for descriptions of some of the useful variables.
1602 Defaults for the options are specified in brackets.
1605 -h, --help display this help and exit
1606 --help=short display options specific to this package
1607 --help=recursive display the short help of all the included packages
1608 -V, --version display version information and exit
1609 -q, --quiet, --silent do not print \`checking ...' messages
1610 --cache-file=FILE cache test results in FILE [disabled]
1611 -C, --config-cache alias for \`--cache-file=config.cache'
1612 -n, --no-create do not create output files
1613 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1615 Installation directories:
1616 --prefix=PREFIX install architecture-independent files in PREFIX
1617 [$ac_default_prefix]
1618 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1621 By default, \`make install' will install all the files in
1622 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1623 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1624 for instance \`--prefix=\$HOME'.
1626 For better control, use the options below.
1628 Fine tuning of the installation directories:
1629 --bindir=DIR user executables [EPREFIX/bin]
1630 --sbindir=DIR system admin executables [EPREFIX/sbin]
1631 --libexecdir=DIR program executables [EPREFIX/libexec]
1632 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1633 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1634 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1635 --libdir=DIR object code libraries [EPREFIX/lib]
1636 --includedir=DIR C header files [PREFIX/include]
1637 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1638 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1639 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1640 --infodir=DIR info documentation [DATAROOTDIR/info]
1641 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1642 --mandir=DIR man documentation [DATAROOTDIR/man]
1643 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1644 --htmldir=DIR html documentation [DOCDIR]
1645 --dvidir=DIR dvi documentation [DOCDIR]
1646 --pdfdir=DIR pdf documentation [DOCDIR]
1647 --psdir=DIR ps documentation [DOCDIR]
1653 --program-prefix=PREFIX prepend PREFIX to installed program names
1654 --program-suffix=SUFFIX append SUFFIX to installed program names
1655 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1658 --build=BUILD configure
for building on BUILD
[guessed
]
1659 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1660 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1664 if test -n "$ac_init_help"; then
1669 --disable-option-checking ignore unrecognized
--enable/--with options
1670 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1671 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1672 --enable-generated-files-in-srcdir
1673 put copies of generated files
in source dir intended
1674 for creating
source tarballs
for users without
1675 texinfo bison or flex
1676 --disable-largefile omit support
for large files
1677 --disable-build-format-warnings
1678 don
't use -Wformat while building GCC
1679 --enable-werror-always enable -Werror despite compiler version
1680 --enable-checking[=LIST]
1681 enable expensive run-time checks. With LIST, enable
1682 only specific categories of checks. Categories are:
1683 yes,no,all,none,release. Flags are:
1684 assert,df,extra,fold,gc,gcac,gimple,misc,
1685 rtlflag,rtl,runtime,tree,valgrind,types
1686 --enable-coverage[=LEVEL]
1687 enable compiler's code coverage collection. Use to
1688 measure compiler performance and
locate unused parts
1689 of the compiler. With LEVEL
, specify optimization.
1690 Values are opt
, noopt
, default is noopt
1691 --enable-gather-detailed-mem-stats
1692 enable detailed memory allocation stats gathering
1693 --enable-valgrind-annotations
1694 enable valgrind runtime interaction
1695 --enable-multilib enable library support
for multiple ABIs
1696 --enable-multiarch enable support
for multiarch paths
1697 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1698 --enable-decimal-float={no
,yes,bid
,dpd
}
1699 enable decimal float extension to C. Selecting
'bid'
1700 or
'dpd' choses
which decimal floating point format
1702 --enable-fixed-point enable fixed-point arithmetic extension to C
1703 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1705 --enable-tls enable or disable generation of tls code overriding
1706 the assembler check
for tls support
1707 --enable-vtable-verify enable vtable verification feature
1708 --disable-analyzer disable
-fanalyzer static analyzer
1709 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1710 GNU Objective-C runtime
1711 --disable-shared don't provide a shared libgcc
1712 --disable-gcov don
't provide libgcov and related host tools
1713 --enable-languages=LIST specify which front-ends to build
1714 --disable-rpath do not hardcode runtime library paths
1715 --enable-sjlj-exceptions
1716 arrange to use setjmp/longjmp exception handling
1717 --enable-secureplt enable -msecure-plt by default for PowerPC
1718 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1719 Default to platform configuration
1720 --enable-large-address-aware
1721 Link mingw executables with --large-address-aware
1722 --enable-leading-mingw64-underscores
1723 enable leading underscores on 64 bit mingw targets
1724 --enable-cld enable -mcld by default for 32bit x86
1725 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1726 --disable-win32-registry
1727 disable lookup of installation paths in the Registry
1729 --enable-win32-registry enable registry lookup (default)
1730 --enable-win32-registry=KEY
1731 use KEY instead of GCC version as the last portion
1733 --enable-shared[=PKGS] build shared libraries [default=yes]
1734 --enable-static[=PKGS] build static libraries [default=yes]
1735 --enable-fast-install[=PKGS]
1736 optimize for fast installation [default=yes]
1737 --disable-libtool-lock avoid locking (might break parallel builds)
1738 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1739 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1740 --enable-gnu-indirect-function
1741 enable the use of the @gnu_indirect_function to
1743 --enable-initfini-array use .init_array/.fini_array sections
1744 --enable-comdat enable COMDAT group support
1745 --enable-newlib-nano-formatted-io
1746 Use nano version formatted IO
1748 --enable-standard-branch-protection
1749 enable Branch Target Identification Mechanism and
1750 Return Address Signing by default for AArch64
1751 --disable-standard-branch-protection
1752 disable Branch Target Identification Mechanism and
1753 Return Address Signing by default for AArch64
1756 --enable-fix-cortex-a53-835769
1757 enable workaround for AArch64 Cortex-A53 erratum
1759 --disable-fix-cortex-a53-835769
1760 disable workaround for AArch64 Cortex-A53 erratum
1764 --enable-fix-cortex-a53-843419
1765 enable workaround for AArch64 Cortex-A53 erratum
1767 --disable-fix-cortex-a53-843419
1768 disable workaround for AArch64 Cortex-A53 erratum
1771 --enable-gnu-unique-object
1772 enable the use of the @gnu_unique_object ELF
1773 extension on glibc systems
1774 --enable-linker-build-id
1775 compiler will always pass --build-id to linker
1776 --enable-libssp enable linking against libssp
1777 --enable-default-ssp enable Stack Smashing Protection as default
1778 --enable-maintainer-mode
1779 enable make rules and dependencies not useful (and
1780 sometimes confusing) to the casual installer
1781 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1782 thrashing on the build machine
1783 --enable-link-serialization
1784 avoid linking multiple GCC front-ends at once using
1785 make dependencies to avoid thrashing on the build
1787 --enable-version-specific-runtime-libs
1788 specify that runtime libraries should be installed
1789 in a compiler-specific directory
1790 --enable-plugin enable plugin support
1791 --enable-host-shared build host code as shared libraries
1792 --disable-libquadmath-support
1793 disable libquadmath support for Fortran
1794 --enable-default-pie enable Position Independent Executable as default
1795 --enable-cet enable Intel CET in host libraries [default=auto]
1796 --enable-s390-excess-float-precision
1797 on s390 targets, evaluate float with double
1798 precision when in standards-conforming mode
1801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1803 --with-build-libsubdir=DIR Directory where to find libraries for build system
1804 --with-local-prefix=DIR specifies directory to put local include
1805 --with-native-system-header-dir=dir
1806 use dir as the directory to look for standard
1807 system header files in. Defaults to /usr/include.
1808 --with-build-sysroot=sysroot
1809 use sysroot as the system root during the build
1810 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1811 --with-gxx-include-dir=DIR
1812 specifies directory to put g++ header files
1813 --with-gxx-libcxx-include-dir=DIR
1814 specifies directory to find libc++ header files
1815 --with-cpp-install-dir=DIR
1816 install the user visible C preprocessor in DIR
1817 (relative to PREFIX) as well as PREFIX/bin
1818 --with-gnu-ld arrange to work with GNU ld
1819 --with-ld arrange to use the specified ld (full pathname)
1820 --with-demangler-in-ld try to use demangler in GNU ld
1821 --with-dsymutil arrange to use the specified dsymutil (full
1823 --with-gnu-as arrange to work with GNU as
1824 --with-as arrange to use the specified as (full pathname)
1825 --with-stack-clash-protection-guard-size=size
1826 Set the default stack clash protection guard size
1827 for specific targets as a power of two in bytes.
1828 --with-dwarf2 force the default debug format to be DWARF 2 (or
1830 --with-specs=SPECS add SPECS to driver command-line processing
1831 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1832 --with-bugurl=URL Direct users to URL to report a bug
1833 --with-documentation-root-url=URL
1834 Root for documentation URLs
1835 --with-changes-root-url=URL
1836 Root for GCC changes URLs
1837 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1839 --with-multilib-generator
1840 Multi-libs configuration string (RISC-V only)
1841 --with-zstd=PATH specify prefix directory for installed zstd library.
1842 Equivalent to --with-zstd-include=PATH/include plus
1843 --with-zstd-lib=PATH/lib
1844 --with-zstd-include=PATH
1845 specify directory for installed zstd include files
1846 --with-zstd-lib=PATH specify directory for the installed zstd library
1847 --with-gnu-ld assume the C compiler uses GNU ld default=no
1848 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1849 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1850 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1851 --with-gcc-major-version-only
1852 use only GCC major number
in filesystem paths
1853 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1855 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1856 --with-plugin-ld=[ARG
] specify the plugin linker
1857 --with-glibc-version=M.N
1858 assume GCC used with glibc version M.N or later
1859 --with-long-double-128 use
128-bit long double by default
1860 --with-long-double-format={ieee
,ibm
}
1861 Specify whether PowerPC long double uses IEEE or IBM format
1863 --with-gc={page
,zone
} this option is not supported anymore. It used to
1864 choose the garbage collection mechanism to use with
1866 --with-system-zlib use installed libz
1867 --with-linker-hash-style={sysv
,gnu
,both
}
1868 specify the linker
hash style
1869 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1870 specify the default of
-fdiagnostics-color option
1871 auto-if-env stands
for -fdiagnostics-color=auto
if
1872 GCC_COLOR environment variable is present and
1873 -fdiagnostics-color=never otherwise
1874 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1875 specify the default of
-fdiagnostics-urls option
1876 auto-if-env stands
for -fdiagnostics-urls=auto
if
1877 GCC_URLS or TERM_URLS environment variable is
1878 present and
-fdiagnostics-urls=never otherwise
1880 Some influential environment variables
:
1881 CC C compiler
command
1882 CFLAGS C compiler flags
1883 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1884 nonstandard directory
<lib dir
>
1885 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1886 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1887 you have headers
in a nonstandard directory
<include dir
>
1888 CXX C
++ compiler
command
1889 CXXFLAGS C
++ compiler flags
1890 CXXCPP C
++ preprocessor
1892 GMPLIBS How to link GMP
1893 GMPINC How to
find GMP include files
1894 ISLLIBS How to link isl
1895 ISLINC How to
find isl include files
1897 Use these variables to override the choices made by
`configure' or to help
1898 it to find libraries and programs with nonstandard names/locations.
1900 Report bugs to the package provider.
1905 if test "$ac_init_help" = "recursive"; then
1906 # If there are subdirs, report their specific --help.
1907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1908 test -d "$ac_dir" ||
1909 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1916 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1917 # A ".." for each directory in $ac_dir_suffix.
1918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1919 case $ac_top_builddir_sub in
1920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1924 ac_abs_top_builddir=$ac_pwd
1925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1926 # for backward compatibility:
1927 ac_top_builddir=$ac_top_build_prefix
1930 .) # We are building in place.
1932 ac_top_srcdir=$ac_top_builddir_sub
1933 ac_abs_top_srcdir=$ac_pwd ;;
1934 [\\/]* | ?:[\\/]* ) # Absolute name.
1935 ac_srcdir=$srcdir$ac_dir_suffix;
1936 ac_top_srcdir=$srcdir
1937 ac_abs_top_srcdir=$srcdir ;;
1939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1940 ac_top_srcdir=$ac_top_build_prefix$srcdir
1941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1945 cd "$ac_dir" || { ac_status=$?; continue; }
1946 # Check for guested configure.
1947 if test -f "$ac_srcdir/configure.gnu"; then
1949 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1950 elif test -f "$ac_srcdir/configure"; then
1952 $SHELL "$ac_srcdir/configure" --help=recursive
1954 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1956 cd "$ac_pwd" || { ac_status=$?; break; }
1960 test -n "$ac_init_help" && exit $ac_status
1961 if $ac_init_version; then
1964 generated by GNU Autoconf 2.69
1966 Copyright (C) 2012 Free Software Foundation, Inc.
1967 This configure script is free software; the Free Software Foundation
1968 gives unlimited permission to copy, distribute and modify it.
1973 ## ------------------------ ##
1974 ## Autoconf initialization. ##
1975 ## ------------------------ ##
1977 # ac_fn_c_try_compile LINENO
1978 # --------------------------
1979 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_c_try_compile ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext
1984 if { { ac_try="$ac_compile"
1986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1987 *) ac_try_echo
=$ac_try;;
1989 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_compile") 2>conftest.err
1993 if test -s conftest.err
; then
1994 grep -v '^ *+' conftest.err
>conftest.er1
1995 cat conftest.er1
>&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest.
$ac_objext; then :
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.
$ac_ext >&5
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 as_fn_set_status
$ac_retval
2013 } # ac_fn_c_try_compile
2015 # ac_fn_cxx_try_compile LINENO
2016 # ----------------------------
2017 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_compile
()
2020 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2021 rm -f conftest.
$ac_objext
2022 if { { ac_try
="$ac_compile"
2024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_compile") 2>conftest.err
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_cxx_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest.$ac_objext; then :
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_cxx_try_compile
2053 # ac_fn_cxx_try_cpp LINENO
2054 # ------------------------
2055 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_cpp ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2062 *) ac_try_echo
=$ac_try;;
2064 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 if test -s conftest.err
; then
2069 grep -v '^ *+' conftest.err
>conftest.er1
2070 cat conftest.er1
>&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } > conftest.i
&& {
2075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2076 test ! -s conftest.err
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.
$ac_ext >&5
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status
$ac_retval
2088 } # ac_fn_cxx_try_cpp
2090 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093 # the include files in INCLUDES and setting the cache variable VAR
2095 ac_fn_cxx_check_header_mongrel
()
2097 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2098 if eval \
${$3+:} false
; then :
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \
${$3+:} false
; then :
2102 $as_echo_n "(cached) " >&6
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2108 # Is the header compilable?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110 $as_echo_n "checking $2 usability... " >&6; }
2111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2116 if ac_fn_cxx_try_compile
"$LINENO"; then :
2117 ac_header_compiler
=yes
2119 ac_header_compiler
=no
2121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123 $as_echo "$ac_header_compiler" >&6; }
2125 # Is the header present?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127 $as_echo_n "checking $2 presence... " >&6; }
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2133 ac_header_preproc
=yes
2135 ac_header_preproc
=no
2137 rm -f conftest.err conftest.i conftest.
$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139 $as_echo "$ac_header_preproc" >&6; }
2141 # So? What about this header?
2142 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if eval \
${$3+:} false
; then :
2165 $as_echo_n "(cached) " >&6
2167 eval "$3=\$ac_header_compiler"
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_cxx_check_header_mongrel
2177 # ac_fn_cxx_try_run LINENO
2178 # ------------------------
2179 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180 # that executables *can* be run.
2181 ac_fn_cxx_try_run
()
2183 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2184 if { { ac_try
="$ac_link"
2186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2197 *) ac_try_echo
=$ac_try;;
2199 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.
$ac_ext >&5
2211 ac_retval
=$ac_status
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 as_fn_set_status
$ac_retval
2217 } # ac_fn_cxx_try_run
2219 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2220 # ---------------------------------------------------------
2221 # Tests whether HEADER exists and can be compiled using the include files in
2222 # INCLUDES, setting the cache variable VAR accordingly.
2223 ac_fn_cxx_check_header_compile
()
2225 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \
${$3+:} false
; then :
2229 $as_echo_n "(cached) " >&6
2231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2236 if ac_fn_cxx_try_compile
"$LINENO"; then :
2241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } # ac_fn_cxx_check_header_compile
2250 # ac_fn_c_try_cpp LINENO
2251 # ----------------------
2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2256 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262 $as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2265 if test -s conftest.err; then
2266 grep -v '^ *+' conftest.err >conftest.er1
2267 cat conftest.er1 >&5
2268 mv -f conftest.er1 conftest.err
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; } > conftest.i && {
2272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2273 test ! -s conftest.err
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 as_fn_set_status $ac_retval
2287 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2288 # ----------------------------------------------
2289 # Tries to find the compile-time value of EXPR in a program that includes
2290 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2292 ac_fn_cxx_compute_int ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if test "$cross_compiling" = yes; then
2296 # Depending upon the size, compute the lo and hi bounds.
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2303 static int test_array [1 - 2 * !(($2) >= 0)];
2305 return test_array [0];
2311 if ac_fn_cxx_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 return test_array [0];
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 ac_hi=$ac_mid; break
2331 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2332 if test $ac_lo -le $ac_mid; then
2336 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2347 static int test_array [1 - 2 * !(($2) < 0)];
2349 return test_array [0];
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2364 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2366 return test_array [0];
2372 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 ac_lo=$ac_mid; break
2375 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2376 if test $ac_mid -le $ac_hi; then
2380 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 # Binary search between lo and hi bounds.
2391 while test "x$ac_lo" != "x$ac_hi"; do
2392 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 return test_array [0];
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2410 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2422 static long int longval () { return $2; }
2423 static unsigned long int ulongval () { return $2; }
2430 FILE *f = fopen ("conftest.val", "w");
2435 long int i = longval ();
2438 fprintf (f, "%ld", i);
2442 unsigned long int i = ulongval ();
2445 fprintf (f, "%lu", i);
2447 /* Do not output a trailing newline, as this causes \r\n confusion
2448 on some platforms. */
2449 return ferror (f) || fclose (f) != 0;
2455 if ac_fn_cxx_try_run "$LINENO"; then :
2456 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2461 conftest.$ac_objext conftest.beam conftest.$ac_ext
2465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 as_fn_set_status $ac_retval
2468 } # ac_fn_cxx_compute_int
2470 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2471 # ---------------------------------------------
2472 # Tests whether TYPE exists after having included INCLUDES, setting cache
2473 # variable VAR accordingly.
2474 ac_fn_cxx_check_type ()
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480 $as_echo_n "(cached) " >&6
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2495 if ac_fn_cxx_try_compile "$LINENO"; then :
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2508 if ac_fn_cxx_try_compile "$LINENO"; then :
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519 $as_echo "$ac_res" >&6; }
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522 } # ac_fn_cxx_check_type
2524 # ac_fn_c_find_intX_t LINENO BITS VAR
2525 # -----------------------------------
2526 # Finds a signed integer type with width BITS, setting cache variable VAR
2528 ac_fn_c_find_intX_t ()
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2532 $as_echo_n "checking for int$2_t... " >&6; }
2533 if eval \${$3+:} false; then :
2534 $as_echo_n "(cached) " >&6
2537 # Order is important - never check a type that is potentially smaller
2538 # than half of the expected target width.
2539 for ac_type in int$2_t 'int' 'long int' \
2540 'long long int' 'short int' 'signed char'; do
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 $ac_includes_default
2544 enum { N = $2 / 2 - 1 };
2548 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2550 return test_array [0];
2556 if ac_fn_cxx_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 $ac_includes_default
2560 enum { N = $2 / 2 - 1 };
2564 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2565 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2567 return test_array [0];
2573 if ac_fn_cxx_try_compile "$LINENO"; then :
2580 eval "$3=\$ac_type" ;;
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 if eval test \"x\$"$3"\" = x"no"; then :
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 } # ac_fn_c_find_intX_t
2600 # ac_fn_cxx_try_link LINENO
2601 # -------------------------
2602 # Try to link conftest.$ac_ext, and return whether this succeeded.
2603 ac_fn_cxx_try_link ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 rm -f conftest.$ac_objext conftest$ac_exeext
2607 if { { ac_try="$ac_link"
2609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2610 *) ac_try_echo
=$ac_try;;
2612 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_link") 2>conftest.err
2616 if test -s conftest.err
; then
2617 grep -v '^ *+' conftest.err
>conftest.er1
2618 cat conftest.er1
>&5
2619 mv -f conftest.er1 conftest.err
2621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622 test $ac_status = 0; } && {
2623 test -z "$ac_cxx_werror_flag" ||
2624 test ! -s conftest.err
2625 } && test -s conftest
$ac_exeext && {
2626 test "$cross_compiling" = yes ||
2627 test -x conftest
$ac_exeext
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2638 # interfere with the next link command; also delete a directory that is
2639 # left behind by Apple's compiler. We do this before executing the actions.
2640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status
$ac_retval
2644 } # ac_fn_cxx_try_link
2646 # ac_fn_c_find_uintX_t LINENO BITS VAR
2647 # ------------------------------------
2648 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2650 ac_fn_c_find_uintX_t
()
2652 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2654 $as_echo_n "checking for uint$2_t... " >&6; }
2655 if eval \
${$3+:} false
; then :
2656 $as_echo_n "(cached) " >&6
2659 # Order is important - never check a type that is potentially smaller
2660 # than half of the expected target width.
2661 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2662 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 $ac_includes_default
2669 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2671 return test_array [0];
2677 if ac_fn_cxx_try_compile
"$LINENO"; then :
2682 eval "$3=\$ac_type" ;;
2685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2686 if eval test \"x\$
"$3"\" = x
"no"; then :
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 } # ac_fn_c_find_uintX_t
2700 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2701 # ------------------------------------------------
2702 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2703 ac_fn_cxx_check_header_preproc
()
2705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2707 $as_echo_n "checking for $2... " >&6; }
2708 if eval \
${$3+:} false
; then :
2709 $as_echo_n "(cached) " >&6
2711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2715 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2720 rm -f conftest.err conftest.i conftest.
$ac_ext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_cxx_check_header_preproc
2729 # ac_fn_cxx_check_func LINENO FUNC VAR
2730 # ------------------------------------
2731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2732 ac_fn_cxx_check_func
()
2734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736 $as_echo_n "checking for $2... " >&6; }
2737 if eval \
${$3+:} false
; then :
2738 $as_echo_n "(cached) " >&6
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2744 #define $2 innocuous_$2
2746 /* System header to define __stub macros and hopefully few prototypes,
2747 which can conflict with char $2 (); below.
2748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2749 <limits.h> exists even on freestanding compilers. */
2752 # include <limits.h>
2754 # include <assert.h>
2759 /* Override any GCC internal prototype to avoid an error.
2760 Use char because int might match the return type of a GCC
2761 builtin and then its argument prototype would still apply. */
2766 /* The GNU C library defines this for functions which it implements
2767 to always fail with ENOSYS. Some functions are actually named
2768 something starting with __ and the normal name is an alias. */
2769 #if defined __stub_$2 || defined __stub___$2
2781 if ac_fn_cxx_try_link
"$LINENO"; then :
2786 rm -f core conftest.err conftest.
$ac_objext \
2787 conftest
$ac_exeext conftest.
$ac_ext
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791 $as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794 } # ac_fn_cxx_check_func
2796 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2797 # -----------------------------------------------
2798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2800 ac_fn_cxx_check_decl
()
2802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2803 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2804 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2806 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2807 if eval \
${$3+:} false
; then :
2808 $as_echo_n "(cached) " >&6
2810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2816 #ifndef $as_decl_name
2818 (void) $as_decl_use;
2820 (void) $as_decl_name;
2828 if ac_fn_cxx_try_compile
"$LINENO"; then :
2833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840 } # ac_fn_cxx_check_decl
2842 # ac_fn_c_try_link LINENO
2843 # -----------------------
2844 # Try to link conftest.$ac_ext, and return whether this succeeded.
2847 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2848 rm -f conftest.
$ac_objext conftest
$ac_exeext
2849 if { { ac_try
="$ac_link"
2851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_link") 2>conftest.err
2858 if test -s conftest.err; then
2859 grep -v '^ *+' conftest.err >conftest.er1
2860 cat conftest.er1 >&5
2861 mv -f conftest.er1 conftest.err
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; } && {
2865 test -z "$ac_c_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest$ac_exeext && {
2868 test "$cross_compiling" = yes ||
2869 test -x conftest$ac_exeext
2873 $as_echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2880 # interfere with the next link command; also delete a directory that is
2881 # left behind by Apple's compiler. We do this before executing the actions.
2882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2884 as_fn_set_status $ac_retval
2886 } # ac_fn_c_try_link
2888 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2889 # ----------------------------------------------
2890 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2891 ac_fn_c_check_header_preproc ()
2893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2895 $as_echo_n "checking for $2... " >&6; }
2896 if eval \${$3+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2903 if ac_fn_c_try_cpp "$LINENO"; then :
2908 rm -f conftest.err conftest.i conftest.$ac_ext
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915 } # ac_fn_c_check_header_preproc
2917 # ac_fn_c_check_func LINENO FUNC VAR
2918 # ----------------------------------
2919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2920 ac_fn_c_check_func ()
2922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924 $as_echo_n "checking for $2... " >&6; }
2925 if eval \${$3+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2932 #define $2 innocuous_$2
2934 /* System header to define __stub macros and hopefully few prototypes,
2935 which can conflict with char $2 (); below.
2936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 <limits.h> exists even on freestanding compilers. */
2940 # include <limits.h>
2942 # include <assert.h>
2947 /* Override any GCC internal prototype to avoid an error.
2948 Use char because int might match the return type of a GCC
2949 builtin and then its argument prototype would still apply. */
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined __stub_$2 || defined __stub___$2
2969 if ac_fn_c_try_link "$LINENO"; then :
2974 rm -f core conftest.err conftest.$ac_objext \
2975 conftest$ac_exeext conftest.$ac_ext
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2979 $as_echo "$ac_res" >&6; }
2980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2982 } # ac_fn_c_check_func
2983 cat >config.log <<_ACEOF
2984 This file contains any messages produced by compilers while
2985 running configure, to aid debugging if configure makes a mistake.
2987 It was created by $as_me, which was
2988 generated by GNU Autoconf 2.69. Invocation command line was
3000 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3001 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3002 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3003 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3004 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3006 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3007 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3009 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3010 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3011 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3012 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3013 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3014 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3015 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 $as_echo "PATH: $as_dir"
3040 # Keep a trace of the command line.
3041 # Strip out --no-create and --no-recursion so they do not pile up.
3042 # Strip out --silent because we don't want to record it for future runs.
3043 # Also quote any args containing shell meta-characters.
3044 # Make two passes to allow for proper duplicate-argument suppression.
3048 ac_must_keep_next=false
3054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3056 | -silent | --silent | --silen | --sile | --sil)
3059 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3064 as_fn_append ac_configure_args1 " '$ac_arg'"
3065 if test $ac_must_keep_next = true; then
3066 ac_must_keep_next=false # Got value, back to normal.
3069 *=* | --config-cache | -C | -disable-* | --disable-* \
3070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3072 | -with-* | --with-* | -without-* | --without-* | --x)
3073 case "$ac_configure_args0 " in
3074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3077 -* ) ac_must_keep_next=true ;;
3080 as_fn_append ac_configure_args " '$ac_arg'"
3085 { ac_configure_args0=; unset ac_configure_args0;}
3086 { ac_configure_args1=; unset ac_configure_args1;}
3088 # When interrupted or exit'd, cleanup temporary files, and complete
3089 # config.log. We remove comments because anyway the quotes in there
3090 # would cause problems or look ugly.
3091 # WARNING: Use '\'' to represent an apostrophe within the trap.
3092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3093 trap 'exit_status=$?
3094 # Save into config.log some information that might help in debugging.
3098 $as_echo "## ---------------- ##
3099 ## Cache variables. ##
3100 ## ---------------- ##"
3102 # The following way of writing the cache mishandles newlines in values,
3104 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3105 eval ac_val=\$$ac_var
3109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3113 _ | IFS | as_nl) ;; #(
3114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3115 *) { eval $ac_var=; unset $ac_var;} ;;
3120 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3121 *${as_nl}ac_space=\ *)
3123 "s/'\''/'\''\\\\'\'''\''/g;
3124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3134 $as_echo "## ----------------- ##
3135 ## Output variables. ##
3136 ## ----------------- ##"
3138 for ac_var in $ac_subst_vars
3140 eval ac_val=\$$ac_var
3142 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3144 $as_echo "$ac_var='\''$ac_val'\''"
3148 if test -n "$ac_subst_files"; then
3149 $as_echo "## ------------------- ##
3150 ## File substitutions. ##
3151 ## ------------------- ##"
3153 for ac_var in $ac_subst_files
3155 eval ac_val=\$$ac_var
3157 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3159 $as_echo "$ac_var='\''$ac_val'\''"
3164 if test -s confdefs.h; then
3165 $as_echo "## ----------- ##
3172 test "$ac_signal" != 0 &&
3173 $as_echo "$as_me: caught signal $ac_signal"
3174 $as_echo "$as_me: exit $exit_status"
3176 rm -f core *.core core.conftest.* &&
3177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3180 for ac_signal in 1 2 13 15; do
3181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3186 rm -f -r conftest* confdefs.h
3188 $as_echo "/* confdefs.h */" > confdefs.h
3190 # Predefined preprocessor variables.
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_NAME "$PACKAGE_NAME"
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_STRING "$PACKAGE_STRING"
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE_URL "$PACKAGE_URL"
3217 # Let the site file select an alternate cache file if it wants to.
3218 # Prefer an explicitly selected file to automatically selected ones.
3221 if test -n "$CONFIG_SITE"; then
3222 # We do not want a PATH search for config.site.
3223 case $CONFIG_SITE in #((
3224 -*) ac_site_file1=./$CONFIG_SITE;;
3225 */*) ac_site_file1=$CONFIG_SITE;;
3226 *) ac_site_file1=./$CONFIG_SITE;;
3228 elif test "x$prefix" != xNONE; then
3229 ac_site_file1=$prefix/share/config.site
3230 ac_site_file2=$prefix/etc/config.site
3232 ac_site_file1=$ac_default_prefix/share/config.site
3233 ac_site_file2=$ac_default_prefix/etc/config.site
3235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3237 test "x$ac_site_file" = xNONE && continue
3238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3241 sed 's/^/| /' "$ac_site_file" >&5
3243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "failed to load site
script $ac_site_file
3246 See \
`config.log' for more details" "$LINENO" 5; }
3250 if test -r "$cache_file"; then
3251 # Some versions of bash will fail to source /dev/null (special files
3252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3255 $as_echo "$as_me: loading cache $cache_file" >&6;}
3257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3258 *) . "./$cache_file";;
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3263 $as_echo "$as_me: creating cache $cache_file" >&6;}
3267 # Check that the precious variables saved in the cache have kept the same
3269 ac_cache_corrupted=false
3270 for ac_var in $ac_precious_vars; do
3271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3272 eval ac_new_set=\$ac_env_${ac_var}_set
3273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3274 eval ac_new_val=\$ac_env_${ac_var}_value
3275 case $ac_old_set,$ac_new_set in
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3278 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3279 ac_cache_corrupted=: ;;
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3282 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3283 ac_cache_corrupted=: ;;
3286 if test "x$ac_old_val" != "x$ac_new_val"; then
3287 # differences in whitespace do not lead to failure.
3288 ac_old_val_w=`echo x
$ac_old_val`
3289 ac_new_val_w=`echo x
$ac_new_val`
3290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3293 ac_cache_corrupted=:
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3297 eval $ac_var=\$ac_old_val
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3300 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3305 # Pass precious variables to config.status.
3306 if test "$ac_new_set" = set; then
3308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3309 *) ac_arg=$ac_var=$ac_new_val ;;
3311 case " $ac_configure_args " in
3312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3317 if $ac_cache_corrupted; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3322 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3324 ## -------------------- ##
3325 ## Main body of script. ##
3326 ## -------------------- ##
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3343 gcc_version=`cat $srcdir/BASE-VER
`
3345 # Determine the host, build, and target systems
3347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3348 if test -f "$ac_dir/install-sh"; then
3350 ac_install_sh="$ac_aux_dir/install-sh -c"
3352 elif test -f "$ac_dir/install.sh"; then
3354 ac_install_sh="$ac_aux_dir/install.sh -c"
3356 elif test -f "$ac_dir/shtool"; then
3358 ac_install_sh="$ac_aux_dir/shtool install -c"
3362 if test -z "$ac_aux_dir"; then
3363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3366 # These three variables are undocumented and unsupported,
3367 # and are intended to be withdrawn in a future Autoconf release.
3368 # They can cause serious problems if a builder's source tree is in a directory
3369 # whose full name contains unusual characters.
3370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3375 # Make sure we can run config.sub.
3376 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3377 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3380 $as_echo_n "checking build system type... " >&6; }
3381 if ${ac_cv_build+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 ac_build_alias=$build_alias
3385 test "x$ac_build_alias" = x &&
3386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3387 test "x$ac_build_alias" = x &&
3388 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3389 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3394 $as_echo "$ac_cv_build" >&6; }
3395 case $ac_cv_build in
3397 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3400 ac_save_IFS=$IFS; IFS='-'
3406 # Remember, the first character of IFS is used to create $*,
3407 # except with old shells:
3410 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3414 $as_echo_n "checking host system type... " >&6; }
3415 if ${ac_cv_host+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 if test "x$host_alias" = x; then
3419 ac_cv_host=$ac_cv_build
3421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3427 $as_echo "$ac_cv_host" >&6; }
3430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3433 ac_save_IFS=$IFS; IFS='-'
3439 # Remember, the first character of IFS is used to create $*,
3440 # except with old shells:
3443 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3447 $as_echo_n "checking target system type... " >&6; }
3448 if ${ac_cv_target+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 if test "x$target_alias" = x; then
3452 ac_cv_target=$ac_cv_host
3454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3460 $as_echo "$ac_cv_target" >&6; }
3461 case $ac_cv_target in
3463 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3465 target=$ac_cv_target
3466 ac_save_IFS=$IFS; IFS='-'
3472 # Remember, the first character of IFS is used to create $*,
3473 # except with old shells:
3476 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3479 # The aliases save the names the user supplied, while $host etc.
3480 # will get canonicalized.
3481 test -n "$target_alias" &&
3482 test "$program_prefix$program_suffix$program_transform_name" = \
3484 program_prefix=${target_alias}-
3486 # Determine the noncanonical host name, for Ada.
3487 case ${build_alias} in
3488 "") build_noncanonical=${build} ;;
3489 *) build_noncanonical=${build_alias} ;;
3492 case ${host_alias} in
3493 "") host_noncanonical=${build_noncanonical} ;;
3494 *) host_noncanonical=${host_alias} ;;
3500 # Determine the noncanonical target name, for directory use.
3501 case ${target_alias} in
3502 "") target_noncanonical=${host_noncanonical} ;;
3503 *) target_noncanonical=${target_alias} ;;
3509 # Used for constructing correct paths for offload compilers.
3510 real_target_noncanonical=${target_noncanonical}
3513 # Determine the target- and build-specific subdirectories
3515 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3516 # have matching libraries, they should use host libraries: Makefile.tpl
3517 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3518 # However, they still use the build modules, because the corresponding
3519 # host modules (e.g. bison) are only built for the host when bootstrap
3521 # - build_subdir is where we find build modules, and never changes.
3522 # - build_libsubdir is where we find build libraries, and can be overridden.
3524 # Prefix 'build-' so this never conflicts with target_subdir.
3525 build_subdir="build-${build_noncanonical}"
3527 # Check whether --with-build-libsubdir was given.
3528 if test "${with_build_libsubdir+set}" = set; then :
3529 withval=$with_build_libsubdir; build_libsubdir="$withval"
3531 build_libsubdir="$build_subdir"
3534 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3535 if ( test $srcdir = . && test -d gcc ) \
3536 || test -d $srcdir/../host-${host_noncanonical}; then
3537 host_subdir="host-${host_noncanonical}"
3542 target_subdir=${target_noncanonical}
3545 # Set program_transform_name
3546 test "$program_prefix" != NONE &&
3547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3548 # Use a double $ so make ignores it.
3549 test "$program_suffix" != NONE &&
3550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3551 # Double any \ or $.
3552 # By default was `s
,x
,x
', remove it if useless.
3553 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3557 # Check for bogus environment variables.
3558 # Test if LIBRARY_PATH contains the notation for the current directory
3559 # since this would lead to problems installing/building glibc.
3560 # LIBRARY_PATH contains the current directory if one of the following
3562 # - one of the terminals (":" and ";") is the first or last sign
3563 # - two terminals occur directly after each other
3564 # - the path contains an element with a dot in it
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3566 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3567 case ${LIBRARY_PATH} in
3568 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3569 library_path_setting="contains current directory"
3572 library_path_setting="ok"
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3576 $as_echo "$library_path_setting" >&6; }
3577 if test "$library_path_setting" != "ok"; then
3579 *** LIBRARY_PATH shouldn't contain the current directory when
3580 *** building gcc. Please change the environment variable
3581 *** and run configure again.
" "$LINENO" 5
3584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3585 # since this would lead to problems installing/building glibc.
3586 # GCC_EXEC_PREFIX contains the current directory if one of the following
3588 # - one of the terminals (":" and ";") is the first or last sign
3589 # - two terminals occur directly after each other
3590 # - the path contains an element with a dot in it
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3592 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3593 case ${GCC_EXEC_PREFIX} in
3594 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3595 gcc_exec_prefix_setting="contains current directory
"
3598 gcc_exec_prefix_setting="ok
"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3602 $as_echo "$gcc_exec_prefix_setting" >&6; }
3603 if test "$gcc_exec_prefix_setting" != "ok
"; then
3605 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3606 *** building gcc. Please change the environment variable
3607 *** and run configure again." "$LINENO" 5
3614 # Specify the local prefix
3617 # Check whether --with-local-prefix was given.
3618 if test "${with_local_prefix+set}" = set; then :
3619 withval=$with_local_prefix; case "${withval}" in
3620 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3622 *) local_prefix=$with_local_prefix ;;
3627 # Default local prefix if it is empty
3628 if test x$local_prefix = x; then
3629 local_prefix=/usr/local
3633 # Check whether --with-native-system-header-dir was given.
3634 if test "${with_native_system_header_dir+set}" = set; then :
3635 withval=$with_native_system_header_dir;
3636 case ${with_native_system_header_dir} in
3637 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3638 /* | [A-Za-z]:[\\/]*) ;;
3639 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3641 configured_native_system_header_dir="${withval}"
3644 configured_native_system_header_dir=
3649 # Check whether --with-build-sysroot was given.
3650 if test "${with_build_sysroot+set}" = set; then :
3651 withval=$with_build_sysroot; if test x"$withval" != x ; then
3652 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3655 SYSROOT_CFLAGS_FOR_TARGET=
3660 if test "x$prefix" = xNONE; then
3661 test_prefix=/usr/local
3665 if test "x$exec_prefix" = xNONE; then
3666 test_exec_prefix=$test_prefix
3668 test_exec_prefix=$exec_prefix
3672 # Check whether --with-sysroot was given.
3673 if test "${with_sysroot+set}" = set; then :
3674 withval=$with_sysroot;
3675 case ${with_sysroot} in
3677 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3679 case ${with_sysroot} in
3680 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3681 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3684 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3685 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3687 case ${TARGET_SYSTEM_ROOT} in
3688 "${test_prefix}"|"${test_prefix}/"*|\
3689 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3690 '${prefix}'|'${prefix}/'*|\
3691 '${exec_prefix}'|'${exec_prefix}/'*)
3692 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3693 TARGET_SYSTEM_ROOT_DEFINE="$t"
3700 TARGET_SYSTEM_ROOT_DEFINE=
3701 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3709 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3710 # passed in by the toplevel make and thus we'd get different behavior
3711 # depending on where we built the sources.
3712 gcc_gxx_include_dir
=
3713 # Specify the g++ header file directory
3715 # Check whether --with-gxx-include-dir was given.
3716 if test "${with_gxx_include_dir+set}" = set; then :
3717 withval
=$with_gxx_include_dir; case "${withval}" in
3718 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3720 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3725 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3726 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3727 # relative to the sysroot.
3728 gcc_gxx_include_dir_add_sysroot
=0
3730 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3731 if test x
${gcc_gxx_include_dir} = x
; then
3732 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3733 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3735 libstdcxx_incdir
='include/c++/$(version)'
3736 if test x
$host != x
$target; then
3737 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3739 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3741 elif test "${with_sysroot+set}" = set; then
3742 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3743 if test "${gcc_gxx_without_sysroot}"; then
3744 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3745 gcc_gxx_include_dir_add_sysroot
=1
3749 # Configuration for an alternate set of C++ headers.
3750 gcc_gxx_libcxx_include_dir
=
3751 # Specify the alternate g++ header file directory
3753 # Check whether --with-gxx-libcxx-include-dir was given.
3754 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3755 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3756 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3758 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3763 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3764 # check to see if the latter starts with the former and, upon success, compute
3765 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3766 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3768 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3770 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3773 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3776 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3777 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3778 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3779 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3781 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3782 if test x
$host != x
$target; then
3783 libcxx_incdir
="$target_alias/$libcxx_incdir"
3785 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3787 elif test "${with_sysroot+set}" = set; then
3788 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3789 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3790 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3791 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3796 # Check whether --with-cpp_install_dir was given.
3797 if test "${with_cpp_install_dir+set}" = set; then :
3798 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3799 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3800 elif test x
$withval != xno
; then
3801 cpp_install_dir
=$withval
3806 # We would like to our source tree to be readonly. However when releases or
3807 # pre-releases are generated, the flex/bison generated files as well as the
3808 # various formats of manuals need to be included along with the rest of the
3809 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3813 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3814 # Check whether --enable-generated-files-in-srcdir was given.
3815 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3816 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3818 generated_files_in_srcdir
=no
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3823 $as_echo "$generated_files_in_srcdir" >&6; }
3825 if test "$generated_files_in_srcdir" = "yes"; then
3832 # -------------------
3833 # Find default linker
3834 # -------------------
3838 # Check whether --with-gnu-ld was given.
3839 if test "${with_gnu_ld+set}" = set; then :
3840 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3848 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3849 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3857 # With pre-defined ld
3859 # Check whether --with-ld was given.
3860 if test "${with_ld+set}" = set; then :
3861 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3864 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3865 if test ! -x "$DEFAULT_LINKER"; then
3866 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3867 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3869 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3873 cat >>confdefs.h
<<_ACEOF
3874 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3880 $as_echo_n "checking whether a default linker was specified... " >&6; }
3881 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3882 if test x
"$gnu_ld_flag" = x
"no"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3884 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3887 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3894 # With demangler in GNU ld
3896 # Check whether --with-demangler-in-ld was given.
3897 if test "${with_demangler_in_ld+set}" = set; then :
3898 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3904 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3906 # Check whether --with-dsymutil was given.
3907 if test "${with_dsymutil+set}" = set; then :
3908 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3913 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3914 if test ! -x "$DEFAULT_DSYMUTIL"; then
3915 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3917 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3922 cat >>confdefs.h
<<_ACEOF
3923 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3929 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3930 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3932 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3938 # ----------------------
3939 # Find default assembler
3940 # ----------------------
3944 # Check whether --with-gnu-as was given.
3945 if test "${with_gnu_as+set}" = set; then :
3946 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3953 # Check whether --with-as was given.
3954 if test "${with_as+set}" = set; then :
3955 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3958 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3959 if test ! -x "$DEFAULT_ASSEMBLER"; then
3960 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3961 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3965 cat >>confdefs.h
<<_ACEOF
3966 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3972 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3973 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3974 if test x
"$gas_flag" = x
"no"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3976 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3979 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3990 # If a non-executable a.out is present (e.g. created by GNU as above even if
3991 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3992 # file, even when creating an executable, so an execution test fails.
3993 # Remove possible default executable files to avoid this.
3995 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3996 # Autoconf includes it.
3997 rm -f a.out a.exe b.out
3999 # Find the native compiler
4001 ac_cpp
='$CPP $CPPFLAGS'
4002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4007 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false
; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC
="$CC" # Let the user override the test.
4016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir
=.
4021 for ac_exec_ext
in '' $ac_executable_extensions; do
4022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4044 if test -z "$ac_cv_prog_CC"; then
4046 # Extract the first word of "gcc", so it can be a program name with args.
4047 set dummy gcc
; ac_word
=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$ac_ct_CC"; then
4054 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir
=.
4061 for ac_exec_ext
in '' $ac_executable_extensions; do
4062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_CC
="gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4082 if test "x$ac_ct_CC" = x
; then
4085 case $cross_compiling:$ac_tool_warned in
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned
=yes ;;
4097 if test -z "$CC"; then
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4100 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_CC+:} false
; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC
="$CC" # Let the user override the test.
4109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir
=.
4114 for ac_exec_ext
in '' $ac_executable_extensions; do
4115 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4138 if test -z "$CC"; then
4139 # Extract the first word of "cc", so it can be a program name with args.
4140 set dummy cc
; ac_word
=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false
; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC
="$CC" # Let the user override the test.
4150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir
=.
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4158 ac_prog_rejected
=yes
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test $ac_prog_rejected = yes; then
4170 # We found a bogon in the path, so make sure we never use it.
4171 set dummy
$ac_cv_prog_CC
4173 if test $# != 0; then
4174 # We chose a different compiler from the bogus one.
4175 # However, it has the same basename, so the bogon will be chosen
4176 # first if we set CC to just the basename; use the full file name.
4178 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4194 if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 for ac_prog
in cl.exe
4198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_CC+:} false
; then :
4203 $as_echo_n "(cached) " >&6
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC
="$CC" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 if test -n "$CC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228 $as_echo "$CC" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$CC" && break
4238 if test -z "$CC"; then
4240 for ac_prog
in cl.exe
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy
$ac_prog; ac_word
=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir
=.
4257 for ac_exec_ext
in '' $ac_executable_extensions; do
4258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC
="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$ac_ct_CC" && break
4282 if test "x$ac_ct_CC" = x
; then
4285 case $cross_compiling:$ac_tool_warned in
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned
=yes ;;
4298 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $?
"no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details" "$LINENO" 5; }
4303 # Provide some information about the compiler.
4304 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4307 for ac_option
in --version -v -V -qversion; do
4308 { { ac_try
="$ac_compiler $ac_option >&5"
4310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 if test -s conftest.err; then
4319 ... rest of stderr output deleted ...
4320 10q' conftest.err >conftest.er1
4321 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4339 ac_clean_files_save=$ac_clean_files
4340 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4341 # Try to create an executable without -o first, disregard a.out.
4342 # It will help us diagnose broken compilers, and finding out an intuition
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4345 $as_echo_n "checking whether the C compiler works... " >&6; }
4346 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4348 # The possible output files:
4349 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4352 for ac_file in $ac_files
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4361 if { { ac_try="$ac_link_default"
4363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4364 *) ac_try_echo
=$ac_try;;
4366 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_link_default") 2>&5
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }; then :
4372 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4373 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4374 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4375 # so that the user can short-circuit this test for compilers unknown to
4377 for ac_file
in $ac_files ''
4379 test -f "$ac_file" ||
continue
4381 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4384 # We found the default executable, but exeext='' is most
4388 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4390 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4392 # We set ac_cv_exeext here because the later test for it is not
4393 # safe: cross compilers may not add the suffix if given an `-o'
4394 # argument, so we may need to know it at that point already.
4395 # Even if this section looks crufty: it has the advantage of
4402 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4407 if test -z "$ac_file"; then :
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.
$ac_ext >&5
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error
77 "C compiler cannot create executables
4416 See \`config.log' for more details" "$LINENO" 5; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4422 $as_echo_n "checking for C compiler default output file name... " >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424 $as_echo "$ac_file" >&6; }
4425 ac_exeext
=$ac_cv_exeext
4427 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4428 ac_clean_files
=$ac_clean_files_save
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try
="$ac_link"
4433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4443 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4446 for ac_file
in conftest.exe conftest conftest.
*; do
4447 test -f "$ac_file" ||
continue
4449 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4450 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details" "$LINENO" 5; }
4461 rm -f conftest conftest
$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4465 rm -f conftest.
$ac_ext
4466 EXEEXT
=$ac_cv_exeext
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4474 FILE *f = fopen ("conftest.out", "w");
4475 return ferror (f) || fclose (f) != 0;
4481 ac_clean_files
="$ac_clean_files conftest.out"
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 if test "$cross_compiling" != yes; then
4487 { { ac_try
="$ac_link"
4489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link") 2>&5
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 if { ac_try='./conftest$ac_cv_exeext'
4499 { { case "(($ac_try" in
4500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4501 *) ac_try_echo
=$ac_try;;
4503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_try") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; }; then
4511 if test "$cross_compiling" = maybe
; then
4514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $?
"cannot run C compiled programs.
4517 If you meant to cross compile, use \`--host'.
4518 See \`config.log' for more details" "$LINENO" 5; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4523 $as_echo "$cross_compiling" >&6; }
4525 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4526 ac_clean_files
=$ac_clean_files_save
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528 $as_echo_n "checking for suffix of object files... " >&6; }
4529 if ${ac_cv_objext+:} false
; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4543 rm -f conftest.o conftest.obj
4544 if { { ac_try
="$ac_compile"
4546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compile") 2>&5
4553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554 test $ac_status = 0; }; then :
4555 for ac_file in conftest.o conftest.obj conftest.*; do
4556 test -f "$ac_file" || continue;
4558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4570 See \
`config.log' for more details" "$LINENO" 5; }
4572 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575 $as_echo "$ac_cv_objext" >&6; }
4576 OBJEXT=$ac_cv_objext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580 if ${ac_cv_c_compiler_gnu+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4597 if ac_fn_c_try_compile "$LINENO"; then :
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608 if test $ac_compiler_gnu = yes; then
4613 ac_test_CFLAGS=${CFLAGS+set}
4614 ac_save_CFLAGS=$CFLAGS
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4617 if ${ac_cv_prog_cc_g+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 ac_save_c_werror_flag=$ac_c_werror_flag
4621 ac_c_werror_flag=yes
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4635 if ac_fn_c_try_compile "$LINENO"; then :
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4650 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_c_werror_flag=$ac_save_c_werror_flag
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4666 if ac_fn_c_try_compile "$LINENO"; then :
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_c_werror_flag=$ac_save_c_werror_flag
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677 $as_echo "$ac_cv_prog_cc_g" >&6; }
4678 if test "$ac_test_CFLAGS" = set; then
4679 CFLAGS=$ac_save_CFLAGS
4680 elif test $ac_cv_prog_cc_g = yes; then
4681 if test "$GCC" = yes; then
4687 if test "$GCC" = yes; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695 if ${ac_cv_prog_cc_c89+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 ac_cv_prog_cc_c89=no
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4719 s = g (p, va_arg (v,int));
4724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4725 function prototypes and stuff, but not '\xHH' hex character constants.
4726 These don't provoke an error unfortunately, instead are silently treated
4727 as 'x'. The following induces an error, until -std is added to get
4728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4729 array size at least. It's necessary to write '\x00'==0 to get something
4730 that's true only with -std. */
4731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4734 inside strings and character constants. */
4736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4738 int test (int i, double x);
4739 struct s1 {int (*f) (int a);};
4740 struct s2 {int (*f) (double a);};
4741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4755 CC="$ac_save_CC $ac_arg"
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_c89=$ac_arg
4759 rm -f core conftest.err conftest.$ac_objext
4760 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 rm -f conftest.$ac_ext
4767 case "x$ac_cv_prog_cc_c89" in
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4770 $as_echo "none needed" >&6; } ;;
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4773 $as_echo "unsupported" >&6; } ;;
4775 CC="$CC $ac_cv_prog_cc_c89"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4779 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_cpp='$CXXCPP $CPPFLAGS'
4791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794 if test -z "$CXX"; then
4795 if test -n "$CCC"; then
4798 if test -n "$ac_tool_prefix"; then
4799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CXX+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$CXX"; then
4809 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 if test -n "$CXX"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4831 $as_echo "$CXX" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 test -n "$CXX" && break
4841 if test -z "$CXX"; then
4843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 if test -n "$ac_ct_CXX"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873 if test -n "$ac_ct_CXX"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4875 $as_echo "$ac_ct_CXX" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 test -n "$ac_ct_CXX" && break
4885 if test "x$ac_ct_CXX" = x; then
4888 case $cross_compiling:$ac_tool_warned in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904 for ac_option in --version -v -V -qversion; do
4905 { { ac_try="$ac_compiler $ac_option >&5"
4907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4908 *) ac_try_echo
=$ac_try;;
4910 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911 $as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 if test -s conftest.err
; then
4916 ... rest of stderr output deleted ...
4917 10q' conftest.err
>conftest.er1
4918 cat conftest.er1
>&5
4920 rm -f conftest.er1 conftest.err
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4926 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4927 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4928 $as_echo_n "(cached) " >&6
4930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4944 if ac_fn_cxx_try_compile
"$LINENO"; then :
4949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4950 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4954 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4955 if test $ac_compiler_gnu = yes; then
4960 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4961 ac_save_CXXFLAGS
=$CXXFLAGS
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4963 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4964 if ${ac_cv_prog_cxx_g+:} false
; then :
4965 $as_echo_n "(cached) " >&6
4967 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4968 ac_cxx_werror_flag
=yes
4971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4982 if ac_fn_cxx_try_compile
"$LINENO"; then :
4983 ac_cv_prog_cxx_g
=yes
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4997 if ac_fn_cxx_try_compile
"$LINENO"; then :
5000 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5013 if ac_fn_cxx_try_compile
"$LINENO"; then :
5014 ac_cv_prog_cxx_g
=yes
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5021 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5024 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5025 if test "$ac_test_CXXFLAGS" = set; then
5026 CXXFLAGS
=$ac_save_CXXFLAGS
5027 elif test $ac_cv_prog_cxx_g = yes; then
5028 if test "$GXX" = yes; then
5034 if test "$GXX" = yes; then
5041 ac_cpp
='$CPP $CPPFLAGS'
5042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5051 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_GNATBIND+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$GNATBIND"; then
5058 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 GNATBIND
=$ac_cv_prog_GNATBIND
5078 if test -n "$GNATBIND"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5080 $as_echo "$GNATBIND" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test -z "$ac_cv_prog_GNATBIND"; then
5089 ac_ct_GNATBIND
=$GNATBIND
5090 # Extract the first word of "gnatbind", so it can be a program name with args.
5091 set dummy gnatbind
; ac_word
=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$ac_ct_GNATBIND"; then
5098 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_exec_ext
in '' $ac_executable_extensions; do
5106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5118 if test -n "$ac_ct_GNATBIND"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5120 $as_echo "$ac_ct_GNATBIND" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5126 if test "x$ac_ct_GNATBIND" = x
; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned
=yes ;;
5135 GNATBIND
=$ac_ct_GNATBIND
5138 GNATBIND
="$ac_cv_prog_GNATBIND"
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5143 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5147 $as_echo_n "(cached) " >&6
5149 if test -n "$GNATMAKE"; then
5150 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir
=.
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 GNATMAKE
=$ac_cv_prog_GNATMAKE
5170 if test -n "$GNATMAKE"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5172 $as_echo "$GNATMAKE" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5180 if test -z "$ac_cv_prog_GNATMAKE"; then
5181 ac_ct_GNATMAKE
=$GNATMAKE
5182 # Extract the first word of "gnatmake", so it can be a program name with args.
5183 set dummy gnatmake
; ac_word
=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -n "$ac_ct_GNATMAKE"; then
5190 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir
=.
5197 for ac_exec_ext
in '' $ac_executable_extensions; do
5198 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5210 if test -n "$ac_ct_GNATMAKE"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5212 $as_echo "$ac_ct_GNATMAKE" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 if test "x$ac_ct_GNATMAKE" = x
; then
5221 case $cross_compiling:$ac_tool_warned in
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned
=yes ;;
5227 GNATMAKE
=$ac_ct_GNATMAKE
5230 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5234 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5235 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5236 $as_echo_n "(cached) " >&6
5238 cat >conftest.adb
<<EOF
5239 pragma Warnings (Off);
5241 pragma Warnings (On);
5242 use type System.CRTL.int64;
5243 procedure conftest is begin null; end conftest;
5245 acx_cv_cc_gcc_supports_ada
=no
5246 # There is a bug in old released versions of GCC which causes the
5247 # driver to exit successfully when the appropriate language module
5248 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249 # Therefore we must check for the error message as well as an
5250 # unsuccessful exit.
5251 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252 # given a .adb file, but produce no object file. So we must check
5253 # if an object file was really produced to guard against this.
5254 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5255 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5256 acx_cv_cc_gcc_supports_ada
=yes
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5263 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5273 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_prog_GDC+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 if test -n "$GDC"; then
5280 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir
=.
5287 for ac_exec_ext
in '' $ac_executable_extensions; do
5288 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 if test -n "$GDC"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5302 $as_echo "$GDC" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5310 if test -z "$ac_cv_prog_GDC"; then
5312 # Extract the first word of "gdc", so it can be a program name with args.
5313 set dummy gdc
; ac_word
=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$ac_ct_GDC"; then
5320 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir
=.
5327 for ac_exec_ext
in '' $ac_executable_extensions; do
5328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_GDC
="gdc"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5340 if test -n "$ac_ct_GDC"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5342 $as_echo "$ac_ct_GDC" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5348 if test "x$ac_ct_GDC" = x
; then
5351 case $cross_compiling:$ac_tool_warned in
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned
=yes ;;
5360 GDC
="$ac_cv_prog_GDC"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5364 $as_echo_n "checking whether the D compiler works... " >&6; }
5365 if ${acx_cv_d_compiler_works+:} false
; then :
5366 $as_echo_n "(cached) " >&6
5368 cat >conftest.d
<<EOF
5369 module conftest; int main() { return 0; }
5371 acx_cv_d_compiler_works
=no
5372 if test "x$GDC" != xno
; then
5373 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5374 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5375 acx_cv_d_compiler_works
=yes
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5381 $as_echo "$acx_cv_d_compiler_works" >&6; }
5382 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5389 # Do configure tests with the C++ compiler, since that's what we build with.
5391 ac_cpp
='$CXXCPP $CPPFLAGS'
5392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5397 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5398 # optimizations to be activated explicitly by the toplevel.
5400 */prev-gcc
/xgcc
*) ;;
5401 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5402 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5408 # Determine PICFLAG for target gnatlib.
5414 # PIC is the default on some targets or must not be used.
5416 # For darwin, common symbols are not allowed in MH_DYLIB files
5418 # If we are using a compiler supporting mdynamic-no-pic
5419 # and the option has been tested as safe to add, then cancel
5420 # it here, since the code generated is incompatible with shared
5422 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5423 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5427 # PIC is the default.
5430 # PIC is the default for 64-bit PA HP-UX.
5432 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5434 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5436 i
[34567]86-*-interix[3-9]*)
5437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5438 # Instead, we relocate shared libraries at runtime.
5440 i
[34567]86-*-nto-qnx*)
5441 # QNX uses GNU C++, but need to define -shared option too, otherwise
5443 PICFLAG_FOR_TARGET
='-fPIC -shared'
5445 i
[34567]86-pc-msdosdjgpp*)
5446 # DJGPP does not support shared libraries at all.
5449 # On IA64 HP-UX, PIC is the default but the pic flag
5450 # sets the default TLS model and affects inlining.
5451 PICFLAG_FOR_TARGET
=-fPIC
5454 PICFLAG_FOR_TARGET
=-fpic
5457 # PIC is the default.
5459 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5460 # All AIX code is PIC.
5463 # Some targets support both -fPIC and -fpic, but prefer the latter.
5465 i
[34567]86-*-* | x86_64-
*-*)
5466 PICFLAG_FOR_TARGET
=-fpic
5468 # FIXME: Override -fPIC default in libgcc only?
5469 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5470 PICFLAG_FOR_TARGET
=-fpic
5472 # FIXME: Simplify to sh*-*-netbsd*?
5473 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5474 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5475 PICFLAG_FOR_TARGET
=-fpic
5477 # Default to -fPIC unless specified otherwise.
5479 PICFLAG_FOR_TARGET
=-fPIC
5483 # If the user explicitly uses -fpic/-fPIC, keep that.
5484 case "${CFLAGS_FOR_TARGET}" in
5486 PICFLAG_FOR_TARGET
=-fpic
5489 PICFLAG_FOR_TARGET
=-fPIC
5495 # -------------------------
5496 # Check C compiler features
5497 # -------------------------
5501 ac_cpp
='$CXXCPP $CPPFLAGS'
5502 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5506 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5507 if test -z "$CXXCPP"; then
5508 if ${ac_cv_prog_CXXCPP+:} false
; then :
5509 $as_echo_n "(cached) " >&6
5511 # Double quotes because CXXCPP needs to be expanded
5512 for CXXCPP
in "$CXX -E" "/lib/cpp"
5515 for ac_cxx_preproc_warn_flag
in '' yes
5517 # Use a header file that comes with gcc, so configuring glibc
5518 # with a fresh cross-compiler works.
5519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520 # <limits.h> exists even on freestanding compilers.
5521 # On the NeXT, cc -E runs the code through the compiler's parser,
5522 # not just through cpp. "Syntax error" is here to catch this case.
5523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5526 # include <limits.h>
5528 # include <assert.h>
5532 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5535 # Broken: fails on valid input.
5538 rm -f conftest.err conftest.i conftest.
$ac_ext
5540 # OK, works on sane cases. Now check whether nonexistent headers
5541 # can be detected and how.
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <ac_nonexistent.h>
5546 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5547 # Broken: success on invalid input.
5550 # Passes both tests.
5554 rm -f conftest.err conftest.i conftest.
$ac_ext
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.i conftest.err conftest.
$ac_ext
5559 if $ac_preproc_ok; then :
5564 ac_cv_prog_CXXCPP
=$CXXCPP
5567 CXXCPP
=$ac_cv_prog_CXXCPP
5569 ac_cv_prog_CXXCPP
=$CXXCPP
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5572 $as_echo "$CXXCPP" >&6; }
5574 for ac_cxx_preproc_warn_flag
in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5585 # include <limits.h>
5587 # include <assert.h>
5591 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5594 # Broken: fails on valid input.
5597 rm -f conftest.err conftest.i conftest.
$ac_ext
5599 # OK, works on sane cases. Now check whether nonexistent headers
5600 # can be detected and how.
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <ac_nonexistent.h>
5605 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5606 # Broken: success on invalid input.
5609 # Passes both tests.
5613 rm -f conftest.err conftest.i conftest.
$ac_ext
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.i conftest.err conftest.
$ac_ext
5618 if $ac_preproc_ok; then :
5621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5623 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5624 See \`config.log' for more details" "$LINENO" 5; }
5628 ac_cpp
='$CXXCPP $CPPFLAGS'
5629 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5635 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5636 if ${ac_cv_path_GREP+:} false
; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -z "$GREP"; then
5640 ac_path_GREP_found
=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5643 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5646 test -z "$as_dir" && as_dir
=.
5647 for ac_prog
in grep ggrep
; do
5648 for ac_exec_ext
in '' $ac_executable_extensions; do
5649 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5650 as_fn_executable_p
"$ac_path_GREP" ||
continue
5651 # Check for GNU ac_path_GREP and select it if it is found.
5652 # Check for GNU $ac_path_GREP
5653 case `"$ac_path_GREP" --version 2>&1` in
5655 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5658 $as_echo_n 0123456789 >"conftest.in"
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'GREP' >> "conftest.nl"
5665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5666 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5667 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_GREP
="$ac_path_GREP"
5671 ac_path_GREP_max
=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5676 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5679 $ac_path_GREP_found && break 3
5684 if test -z "$ac_cv_path_GREP"; then
5685 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 ac_cv_path_GREP
=$GREP
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5693 $as_echo "$ac_cv_path_GREP" >&6; }
5694 GREP
="$ac_cv_path_GREP"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5698 $as_echo_n "checking for egrep... " >&6; }
5699 if ${ac_cv_path_EGREP+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5703 then ac_cv_path_EGREP
="$GREP -E"
5705 if test -z "$EGREP"; then
5706 ac_path_EGREP_found
=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5709 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5712 test -z "$as_dir" && as_dir
=.
5713 for ac_prog
in egrep; do
5714 for ac_exec_ext
in '' $ac_executable_extensions; do
5715 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5716 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5717 # Check for GNU ac_path_EGREP and select it if it is found.
5718 # Check for GNU $ac_path_EGREP
5719 case `"$ac_path_EGREP" --version 2>&1` in
5721 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5724 $as_echo_n 0123456789 >"conftest.in"
5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
5728 mv "conftest.tmp" "conftest.in"
5729 cp "conftest.in" "conftest.nl"
5730 $as_echo 'EGREP' >> "conftest.nl"
5731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5732 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5733 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735 # Best one so far, save it but keep looking for a better one
5736 ac_cv_path_EGREP
="$ac_path_EGREP"
5737 ac_path_EGREP_max
=$ac_count
5739 # 10*(2^10) chars as input seems more than enough
5740 test $ac_count -gt 10 && break
5742 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5745 $ac_path_EGREP_found && break 3
5750 if test -z "$ac_cv_path_EGREP"; then
5751 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754 ac_cv_path_EGREP
=$EGREP
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5760 $as_echo "$ac_cv_path_EGREP" >&6; }
5761 EGREP
="$ac_cv_path_EGREP"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5765 $as_echo_n "checking for ANSI C header files... " >&6; }
5766 if ${ac_cv_header_stdc+:} false
; then :
5767 $as_echo_n "(cached) " >&6
5769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5784 if ac_fn_cxx_try_compile
"$LINENO"; then :
5785 ac_cv_header_stdc
=yes
5787 ac_cv_header_stdc
=no
5789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 if test $ac_cv_header_stdc = yes; then
5792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799 $EGREP "memchr" >/dev
/null
2>&1; then :
5802 ac_cv_header_stdc
=no
5808 if test $ac_cv_header_stdc = yes; then
5809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 $EGREP "free" >/dev
/null
2>&1; then :
5819 ac_cv_header_stdc
=no
5825 if test $ac_cv_header_stdc = yes; then
5826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5827 if test "$cross_compiling" = yes; then :
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5834 #if ((' ' & 0x0FF) == 0x020)
5835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 # define ISLOWER(c) \
5839 (('a' <= (c) && (c) <= 'i') \
5840 || ('j' <= (c) && (c) <= 'r') \
5841 || ('s' <= (c) && (c) <= 'z'))
5842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5850 for (i = 0; i < 256; i++)
5851 if (XOR (islower (i), ISLOWER (i))
5852 || toupper (i) != TOUPPER (i))
5857 if ac_fn_cxx_try_run
"$LINENO"; then :
5860 ac_cv_header_stdc
=no
5862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5869 $as_echo "$ac_cv_header_stdc" >&6; }
5870 if test $ac_cv_header_stdc = yes; then
5872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5877 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5878 inttypes.h stdint.h unistd.h
5880 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5883 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5895 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5902 if test "$MINIX" = yes; then
5904 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5907 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5910 $as_echo "#define _MINIX 1" >>confdefs.h
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5916 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5917 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 # define __EXTENSIONS__ 1
5924 $ac_includes_default
5933 if ac_fn_cxx_try_compile
"$LINENO"; then :
5934 ac_cv_safe_to_define___extensions__
=yes
5936 ac_cv_safe_to_define___extensions__
=no
5938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5941 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5942 test $ac_cv_safe_to_define___extensions__ = yes &&
5943 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5945 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5947 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5949 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5951 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5956 ac_cpp
='$CPP $CPPFLAGS'
5957 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5962 # On Suns, sometimes $CPP names a directory.
5963 if test -n "$CPP" && test -d "$CPP"; then
5966 if test -z "$CPP"; then
5967 if ${ac_cv_prog_CPP+:} false
; then :
5968 $as_echo_n "(cached) " >&6
5970 # Double quotes because CPP needs to be expanded
5971 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5974 for ac_c_preproc_warn_flag
in '' yes
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5985 # include <limits.h>
5987 # include <assert.h>
5991 if ac_fn_c_try_cpp
"$LINENO"; then :
5994 # Broken: fails on valid input.
5997 rm -f conftest.err conftest.i conftest.
$ac_ext
5999 # OK, works on sane cases. Now check whether nonexistent headers
6000 # can be detected and how.
6001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <ac_nonexistent.h>
6005 if ac_fn_c_try_cpp
"$LINENO"; then :
6006 # Broken: success on invalid input.
6009 # Passes both tests.
6013 rm -f conftest.err conftest.i conftest.
$ac_ext
6016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6017 rm -f conftest.i conftest.err conftest.
$ac_ext
6018 if $ac_preproc_ok; then :
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6031 $as_echo "$CPP" >&6; }
6033 for ac_c_preproc_warn_flag
in '' yes
6035 # Use a header file that comes with gcc, so configuring glibc
6036 # with a fresh cross-compiler works.
6037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038 # <limits.h> exists even on freestanding compilers.
6039 # On the NeXT, cc -E runs the code through the compiler's parser,
6040 # not just through cpp. "Syntax error" is here to catch this case.
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6044 # include <limits.h>
6046 # include <assert.h>
6050 if ac_fn_c_try_cpp
"$LINENO"; then :
6053 # Broken: fails on valid input.
6056 rm -f conftest.err conftest.i conftest.
$ac_ext
6058 # OK, works on sane cases. Now check whether nonexistent headers
6059 # can be detected and how.
6060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #include <ac_nonexistent.h>
6064 if ac_fn_c_try_cpp
"$LINENO"; then :
6065 # Broken: success on invalid input.
6068 # Passes both tests.
6072 rm -f conftest.err conftest.i conftest.
$ac_ext
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.i conftest.err conftest.
$ac_ext
6077 if $ac_preproc_ok; then :
6080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6082 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6083 See \`config.log' for more details" "$LINENO" 5; }
6087 ac_cpp
='$CXXCPP $CPPFLAGS'
6088 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6093 $as_echo_n "checking for inline... " >&6; }
6094 if ${ac_cv_c_inline+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6098 for ac_kw
in inline __inline__ __inline
; do
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6103 static $ac_kw foo_t static_foo () {return 0; }
6104 $ac_kw foo_t foo () {return 0; }
6108 if ac_fn_cxx_try_compile
"$LINENO"; then :
6109 ac_cv_c_inline
=$ac_kw
6111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6112 test "$ac_cv_c_inline" != no
&& break
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6117 $as_echo "$ac_cv_c_inline" >&6; }
6119 case $ac_cv_c_inline in
6122 case $ac_cv_c_inline in
6124 *) ac_val
=$ac_cv_c_inline;;
6126 cat >>confdefs.h
<<_ACEOF
6128 #define inline $ac_val
6135 # Check whether --enable-largefile was given.
6136 if test "${enable_largefile+set}" = set; then :
6137 enableval
=$enable_largefile;
6140 if test "$enable_largefile" != no
; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6143 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6144 if ${ac_cv_sys_largefile_CC+:} false
; then :
6145 $as_echo_n "(cached) " >&6
6147 ac_cv_sys_largefile_CC
=no
6148 if test "$GCC" != yes; then
6151 # IRIX 6.2 and later do not support large files by default,
6152 # so use the C compiler's -n32 option if that helps.
6153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <sys/types.h>
6156 /* Check that off_t can represent 2**63 - 1 correctly.
6157 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6158 since some C++ compilers masquerading as C compilers
6159 incorrectly reject 9223372036854775807. */
6160 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6161 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6162 && LARGE_OFF_T % 2147483647 == 1)
6172 if ac_fn_cxx_try_compile
"$LINENO"; then :
6175 rm -f core conftest.err conftest.
$ac_objext
6177 if ac_fn_cxx_try_compile
"$LINENO"; then :
6178 ac_cv_sys_largefile_CC
=' -n32'; break
6180 rm -f core conftest.err conftest.
$ac_objext
6184 rm -f conftest.
$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6188 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6189 if test "$ac_cv_sys_largefile_CC" != no
; then
6190 CC
=$CC$ac_cv_sys_largefile_CC
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6194 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6195 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6196 $as_echo_n "(cached) " >&6
6199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 #include <sys/types.h>
6202 /* Check that off_t can represent 2**63 - 1 correctly.
6203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6204 since some C++ compilers masquerading as C compilers
6205 incorrectly reject 9223372036854775807. */
6206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6208 && LARGE_OFF_T % 2147483647 == 1)
6218 if ac_fn_cxx_try_compile
"$LINENO"; then :
6219 ac_cv_sys_file_offset_bits
=no
; break
6221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 #define _FILE_OFFSET_BITS 64
6225 #include <sys/types.h>
6226 /* Check that off_t can represent 2**63 - 1 correctly.
6227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6228 since some C++ compilers masquerading as C compilers
6229 incorrectly reject 9223372036854775807. */
6230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6232 && LARGE_OFF_T % 2147483647 == 1)
6242 if ac_fn_cxx_try_compile
"$LINENO"; then :
6243 ac_cv_sys_file_offset_bits
=64; break
6245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 ac_cv_sys_file_offset_bits
=unknown
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6251 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6252 case $ac_cv_sys_file_offset_bits in #(
6255 cat >>confdefs.h
<<_ACEOF
6256 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6261 if test $ac_cv_sys_file_offset_bits = unknown
; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6263 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6264 if ${ac_cv_sys_large_files+:} false
; then :
6265 $as_echo_n "(cached) " >&6
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <sys/types.h>
6271 /* Check that off_t can represent 2**63 - 1 correctly.
6272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273 since some C++ compilers masquerading as C compilers
6274 incorrectly reject 9223372036854775807. */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277 && LARGE_OFF_T % 2147483647 == 1)
6287 if ac_fn_cxx_try_compile
"$LINENO"; then :
6288 ac_cv_sys_large_files
=no
; break
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #define _LARGE_FILES 1
6294 #include <sys/types.h>
6295 /* Check that off_t can represent 2**63 - 1 correctly.
6296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6297 since some C++ compilers masquerading as C compilers
6298 incorrectly reject 9223372036854775807. */
6299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6301 && LARGE_OFF_T % 2147483647 == 1)
6311 if ac_fn_cxx_try_compile
"$LINENO"; then :
6312 ac_cv_sys_large_files
=1; break
6314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 ac_cv_sys_large_files
=unknown
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6320 $as_echo "$ac_cv_sys_large_files" >&6; }
6321 case $ac_cv_sys_large_files in #(
6324 cat >>confdefs.h
<<_ACEOF
6325 #define _LARGE_FILES $ac_cv_sys_large_files
6335 # The cast to long int works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6340 $as_echo_n "checking size of ino_t... " >&6; }
6341 if ${ac_cv_sizeof_ino_t+:} false
; then :
6342 $as_echo_n "(cached) " >&6
6344 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6347 if test "$ac_cv_type_ino_t" = yes; then
6348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6350 as_fn_error
77 "cannot compute sizeof (ino_t)
6351 See \`config.log' for more details" "$LINENO" 5; }
6353 ac_cv_sizeof_ino_t
=0
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6359 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6363 cat >>confdefs.h
<<_ACEOF
6364 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6368 # The cast to long int works around a bug in the HP C Compiler
6369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6371 # This bug is HP SR number 8606223364.
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6373 $as_echo_n "checking size of dev_t... " >&6; }
6374 if ${ac_cv_sizeof_dev_t+:} false
; then :
6375 $as_echo_n "(cached) " >&6
6377 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6380 if test "$ac_cv_type_dev_t" = yes; then
6381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6383 as_fn_error
77 "cannot compute sizeof (dev_t)
6384 See \`config.log' for more details" "$LINENO" 5; }
6386 ac_cv_sizeof_dev_t
=0
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6392 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6396 cat >>confdefs.h
<<_ACEOF
6397 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6402 # Select the right stat being able to handle 64bit inodes, if needed.
6403 if test "$enable_largefile" != no
; then
6404 case "$host, $build" in
6405 *-*-aix*,*|
*,*-*-aix*)
6406 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6408 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6415 # sizeof(char) is 1 by definition.
6416 # The cast to long int works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6421 $as_echo_n "checking size of void *... " >&6; }
6422 if ${ac_cv_sizeof_void_p+:} false
; then :
6423 $as_echo_n "(cached) " >&6
6425 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6428 if test "$ac_cv_type_void_p" = yes; then
6429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6431 as_fn_error
77 "cannot compute sizeof (void *)
6432 See \`config.log' for more details" "$LINENO" 5; }
6434 ac_cv_sizeof_void_p
=0
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6440 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6444 cat >>confdefs.h
<<_ACEOF
6445 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6449 # The cast to long int works around a bug in the HP C Compiler
6450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6452 # This bug is HP SR number 8606223364.
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6454 $as_echo_n "checking size of short... " >&6; }
6455 if ${ac_cv_sizeof_short+:} false
; then :
6456 $as_echo_n "(cached) " >&6
6458 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6461 if test "$ac_cv_type_short" = yes; then
6462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6464 as_fn_error
77 "cannot compute sizeof (short)
6465 See \`config.log' for more details" "$LINENO" 5; }
6467 ac_cv_sizeof_short
=0
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6473 $as_echo "$ac_cv_sizeof_short" >&6; }
6477 cat >>confdefs.h
<<_ACEOF
6478 #define SIZEOF_SHORT $ac_cv_sizeof_short
6482 # The cast to long int works around a bug in the HP C Compiler
6483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6485 # This bug is HP SR number 8606223364.
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6487 $as_echo_n "checking size of int... " >&6; }
6488 if ${ac_cv_sizeof_int+:} false
; then :
6489 $as_echo_n "(cached) " >&6
6491 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6494 if test "$ac_cv_type_int" = yes; then
6495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6497 as_fn_error
77 "cannot compute sizeof (int)
6498 See \`config.log' for more details" "$LINENO" 5; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6506 $as_echo "$ac_cv_sizeof_int" >&6; }
6510 cat >>confdefs.h
<<_ACEOF
6511 #define SIZEOF_INT $ac_cv_sizeof_int
6515 # The cast to long int works around a bug in the HP C Compiler
6516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6518 # This bug is HP SR number 8606223364.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6520 $as_echo_n "checking size of long... " >&6; }
6521 if ${ac_cv_sizeof_long+:} false
; then :
6522 $as_echo_n "(cached) " >&6
6524 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6527 if test "$ac_cv_type_long" = yes; then
6528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6530 as_fn_error
77 "cannot compute sizeof (long)
6531 See \`config.log' for more details" "$LINENO" 5; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6539 $as_echo "$ac_cv_sizeof_long" >&6; }
6543 cat >>confdefs.h
<<_ACEOF
6544 #define SIZEOF_LONG $ac_cv_sizeof_long
6548 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6549 if test "x$ac_cv_type_long_long" = xyes
; then :
6551 cat >>confdefs.h
<<_ACEOF
6552 #define HAVE_LONG_LONG 1
6555 # The cast to long int works around a bug in the HP C Compiler
6556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6558 # This bug is HP SR number 8606223364.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6560 $as_echo_n "checking size of long long... " >&6; }
6561 if ${ac_cv_sizeof_long_long+:} false
; then :
6562 $as_echo_n "(cached) " >&6
6564 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6567 if test "$ac_cv_type_long_long" = yes; then
6568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6570 as_fn_error
77 "cannot compute sizeof (long long)
6571 See \`config.log' for more details" "$LINENO" 5; }
6573 ac_cv_sizeof_long_long
=0
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6579 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6583 cat >>confdefs.h
<<_ACEOF
6584 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6590 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6591 case $ac_cv_c_int8_t in #(
6595 cat >>confdefs.h
<<_ACEOF
6596 #define int8_t $ac_cv_c_int8_t
6601 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6602 case $ac_cv_c_int16_t in #(
6606 cat >>confdefs.h
<<_ACEOF
6607 #define int16_t $ac_cv_c_int16_t
6612 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6613 case $ac_cv_c_int32_t in #(
6617 cat >>confdefs.h
<<_ACEOF
6618 #define int32_t $ac_cv_c_int32_t
6623 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6624 case $ac_cv_c_int64_t in #(
6628 cat >>confdefs.h
<<_ACEOF
6629 #define int64_t $ac_cv_c_int64_t
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6636 $as_echo_n "checking for unsigned long long int... " >&6; }
6637 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6638 $as_echo_n "(cached) " >&6
6640 ac_cv_type_unsigned_long_long_int
=yes
6641 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 /* For now, do not test the preprocessor; as of 2007 there are too many
6646 implementations with broken preprocessors. Perhaps this can
6647 be revisited in 2012. In the meantime, code should not expect
6648 #if to work with literals wider than 32 bits. */
6649 /* Test literals. */
6650 long long int ll = 9223372036854775807ll;
6651 long long int nll = -9223372036854775807LL;
6652 unsigned long long int ull = 18446744073709551615ULL;
6653 /* Test constant expressions. */
6654 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6656 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6662 /* Test availability of runtime routines for shift and division. */
6663 long long int llmax = 9223372036854775807ll;
6664 unsigned long long int ullmax = 18446744073709551615ull;
6665 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6666 | (llmax / ll) | (llmax % ll)
6667 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6668 | (ullmax / ull) | (ullmax % ull));
6674 if ac_fn_cxx_try_link
"$LINENO"; then :
6677 ac_cv_type_unsigned_long_long_int
=no
6679 rm -f core conftest.err conftest.
$ac_objext \
6680 conftest
$ac_exeext conftest.
$ac_ext
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6684 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6685 if test $ac_cv_type_unsigned_long_long_int = yes; then
6687 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6694 $as_echo_n "checking for long long int... " >&6; }
6695 if ${ac_cv_type_long_long_int+:} false
; then :
6696 $as_echo_n "(cached) " >&6
6698 ac_cv_type_long_long_int
=yes
6699 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6700 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6701 if test $ac_cv_type_long_long_int = yes; then
6702 if test "$cross_compiling" = yes; then :
6705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6710 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6711 # define LLONG_MAX (HALF - 1 + HALF)
6716 long long int n = 1;
6720 long long int m = n << i;
6723 if (LLONG_MAX / 2 < m)
6731 if ac_fn_cxx_try_run
"$LINENO"; then :
6734 ac_cv_type_long_long_int
=no
6736 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6737 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6744 $as_echo "$ac_cv_type_long_long_int" >&6; }
6745 if test $ac_cv_type_long_long_int = yes; then
6747 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6753 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6754 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6756 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6759 test $ac_cv_type_long_long_int = yes \
6760 && ac_type
='long long int' \
6761 || ac_type
='long int'
6763 cat >>confdefs.h
<<_ACEOF
6764 #define intmax_t $ac_type
6771 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6772 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6774 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6777 for ac_type
in 'int' 'long int' 'long long int'; do
6778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 $ac_includes_default
6784 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6786 return test_array [0];
6792 if ac_fn_cxx_try_compile
"$LINENO"; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define intptr_t $ac_type
6800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6801 test -z "$ac_type" && break
6806 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6807 case $ac_cv_c_uint8_t in #(
6811 $as_echo "#define _UINT8_T 1" >>confdefs.h
6814 cat >>confdefs.h
<<_ACEOF
6815 #define uint8_t $ac_cv_c_uint8_t
6820 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6821 case $ac_cv_c_uint16_t in #(
6826 cat >>confdefs.h
<<_ACEOF
6827 #define uint16_t $ac_cv_c_uint16_t
6832 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6833 case $ac_cv_c_uint32_t in #(
6837 $as_echo "#define _UINT32_T 1" >>confdefs.h
6840 cat >>confdefs.h
<<_ACEOF
6841 #define uint32_t $ac_cv_c_uint32_t
6846 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6847 case $ac_cv_c_uint64_t in #(
6851 $as_echo "#define _UINT64_T 1" >>confdefs.h
6854 cat >>confdefs.h
<<_ACEOF
6855 #define uint64_t $ac_cv_c_uint64_t
6862 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6863 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6865 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6868 test $ac_cv_type_unsigned_long_long_int = yes \
6869 && ac_type
='unsigned long long int' \
6870 || ac_type
='unsigned long int'
6872 cat >>confdefs.h
<<_ACEOF
6873 #define uintmax_t $ac_type
6880 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6881 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6883 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6886 for ac_type
in 'unsigned int' 'unsigned long int' \
6887 'unsigned long long int'; do
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 $ac_includes_default
6894 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6896 return test_array [0];
6902 if ac_fn_cxx_try_compile
"$LINENO"; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define uintptr_t $ac_type
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 test -z "$ac_type" && break
6928 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6929 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6932 # check what underlying integer type int64_t uses
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6934 $as_echo_n "checking for int64_t underlying type... " >&6; }
6935 if ${ac_cv_int64_t_type+:} false
; then :
6936 $as_echo_n "(cached) " >&6
6939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6942 #ifdef HAVE_STDINT_H
6945 template <typename T> struct X { };
6947 struct X<long> { typedef long t; };
6957 if ac_fn_cxx_try_compile
"$LINENO"; then :
6958 ac_cv_int64_t_type
=long
6960 ac_cv_int64_t_type
="long long"
6962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6965 $as_echo "$ac_cv_int64_t_type" >&6; }
6966 if test "$ac_cv_int64_t_type" = "long"; then
6968 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6974 #ifdef HAVE_STDINT_H
6977 template <typename T> struct X { };
6979 struct X<long long> { typedef long long t; };
6989 if ac_fn_cxx_try_compile
"$LINENO"; then :
6992 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6998 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6999 if ${ac_cv_std_swap_in_utility+:} false
; then :
7000 $as_echo_n "(cached) " >&6
7003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7011 int a, b; std::swap(a,b);
7016 if ac_fn_cxx_try_compile
"$LINENO"; then :
7017 ac_cv_std_swap_in_utility
=yes
7019 ac_cv_std_swap_in_utility
=no
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7024 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7025 if test $ac_cv_std_swap_in_utility = yes; then
7027 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7031 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7032 # If the host compiler is affected by the bug, and we build with optimization
7033 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7034 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7035 # Since there is no reliable feature check for the presence of this bug,
7036 # we simply use a GCC version number check. (This should never trigger for
7037 # stages 2 or 3 of a native bootstrap.)
7039 if test "$GCC" = yes; then
7040 saved_CXXFLAGS
="$CXXFLAGS"
7042 # The following test compilation will succeed if and only if $CXX accepts
7043 # -fno-strict-aliasing *and* is older than GCC 4.3.
7044 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7046 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7050 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7051 #error compiler not affected by placement new aliasing bug
7055 if ac_fn_cxx_try_compile
"$LINENO"; then :
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7057 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 CXXFLAGS
="$saved_CXXFLAGS"
7070 # ---------------------
7071 # Warnings and checking
7072 # ---------------------
7074 # Check $CC warning features (if it's GCC).
7075 # We want to use -pedantic, but we don't want warnings about
7078 # * overlong strings
7079 # * C++11 narrowing conversions in { }
7080 # So, we only use -pedantic if we can disable those warnings.
7082 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7083 # Check whether --enable-build-format-warnings was given.
7084 if test "${enable_build_format_warnings+set}" = set; then :
7085 enableval
=$enable_build_format_warnings;
7087 enable_build_format_warnings
=yes
7090 if test $enable_build_format_warnings = no
; then :
7096 ac_cpp
='$CXXCPP $CPPFLAGS'
7097 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7102 save_CXXFLAGS
="$CXXFLAGS"
7103 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7104 # Do the check with the no- prefix removed since gcc silently
7105 # accepts any -Wno-* option on purpose
7106 case $real_option in
7107 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7108 *) option
=$real_option ;;
7110 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7113 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7114 if eval \
${$as_acx_Woption+:} false
; then :
7115 $as_echo_n "(cached) " >&6
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_cxx_try_compile
"$LINENO"; then :
7130 eval "$as_acx_Woption=yes"
7132 eval "$as_acx_Woption=no"
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7137 eval ac_res
=\$
$as_acx_Woption
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7139 $as_echo "$ac_res" >&6; }
7140 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7141 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7144 CXXFLAGS
="$save_CXXFLAGS"
7146 ac_cpp
='$CXXCPP $CPPFLAGS'
7147 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7154 ac_cpp
='$CPP $CPPFLAGS'
7155 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7160 save_CFLAGS
="$CFLAGS"
7161 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7162 # Do the check with the no- prefix removed since gcc silently
7163 # accepts any -Wno-* option on purpose
7164 case $real_option in
7165 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7166 *) option
=$real_option ;;
7168 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7171 $as_echo_n "checking whether $CC supports $option... " >&6; }
7172 if eval \
${$as_acx_Woption+:} false
; then :
7173 $as_echo_n "(cached) " >&6
7176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7187 if ac_fn_c_try_compile
"$LINENO"; then :
7188 eval "$as_acx_Woption=yes"
7190 eval "$as_acx_Woption=no"
7192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7195 eval ac_res
=\$
$as_acx_Woption
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7197 $as_echo "$ac_res" >&6; }
7198 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7199 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7202 CFLAGS
="$save_CFLAGS"
7204 ac_cpp
='$CXXCPP $CPPFLAGS'
7205 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7211 ac_cpp
='$CXXCPP $CPPFLAGS'
7212 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7217 save_CXXFLAGS
="$CXXFLAGS"
7218 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7219 # Do the check with the no- prefix removed since gcc silently
7220 # accepts any -Wno-* option on purpose
7221 case $real_option in
7222 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7223 *) option
=$real_option ;;
7225 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7228 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7229 if eval \
${$as_acx_Woption+:} false
; then :
7230 $as_echo_n "(cached) " >&6
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7244 if ac_fn_cxx_try_compile
"$LINENO"; then :
7245 eval "$as_acx_Woption=yes"
7247 eval "$as_acx_Woption=no"
7249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7252 eval ac_res
=\$
$as_acx_Woption
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7254 $as_echo "$ac_res" >&6; }
7255 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7256 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7259 CXXFLAGS
="$save_CXXFLAGS"
7261 ac_cpp
='$CXXCPP $CPPFLAGS'
7262 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7268 ac_cpp
='$CPP $CPPFLAGS'
7269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7274 save_CFLAGS
="$CFLAGS"
7275 for real_option
in -Wold-style-definition -Wc++-compat; do
7276 # Do the check with the no- prefix removed since gcc silently
7277 # accepts any -Wno-* option on purpose
7278 case $real_option in
7279 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7280 *) option
=$real_option ;;
7282 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7285 $as_echo_n "checking whether $CC supports $option... " >&6; }
7286 if eval \
${$as_acx_Woption+:} false
; then :
7287 $as_echo_n "(cached) " >&6
7290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7301 if ac_fn_c_try_compile
"$LINENO"; then :
7302 eval "$as_acx_Woption=yes"
7304 eval "$as_acx_Woption=no"
7306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7309 eval ac_res
=\$
$as_acx_Woption
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7311 $as_echo "$ac_res" >&6; }
7312 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7313 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7316 CFLAGS
="$save_CFLAGS"
7318 ac_cpp
='$CXXCPP $CPPFLAGS'
7319 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7325 ac_cpp
='$CXXCPP $CPPFLAGS'
7326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7330 # Do the check with the no- prefix removed from the warning options
7331 # since gcc silently accepts any -Wno-* option on purpose
7332 if test "$GXX" = yes; then :
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7334 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7335 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7336 $as_echo_n "(cached) " >&6
7338 save_CXXFLAGS
="$CXXFLAGS"
7339 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7351 if ac_fn_cxx_try_compile
"$LINENO"; then :
7352 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7354 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7357 CXXFLAGS
="$save_CXXFLAGS"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7360 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7361 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7362 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7367 ac_cpp
='$CXXCPP $CPPFLAGS'
7368 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7374 ac_cpp
='$CXXCPP $CPPFLAGS'
7375 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7379 # Check whether --enable-werror-always was given.
7380 if test "${enable_werror_always+set}" = set; then :
7381 enableval
=$enable_werror_always;
7383 enable_werror_always
=no
7386 if test $enable_werror_always = yes; then :
7387 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7391 ac_cpp
='$CXXCPP $CPPFLAGS'
7392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7398 # The above macros do nothing if the compiler is not GCC. However, the
7399 # Makefile has more goo to add other flags, so these variables are used
7400 # to enable warnings only for GCC.
7403 if test "x$GCC" = "xyes"; then
7404 warn_cflags
='$(GCC_WARN_CFLAGS)'
7405 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7410 # Disable exceptions and RTTI if building with g++
7412 ac_cpp
='$CPP $CPPFLAGS'
7413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7418 save_CFLAGS
="$CFLAGS"
7419 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7420 # Do the check with the no- prefix removed since gcc silently
7421 # accepts any -Wno-* option on purpose
7422 case $real_option in
7423 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7424 *) option
=$real_option ;;
7426 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7429 $as_echo_n "checking whether $CC supports $option... " >&6; }
7430 if eval \
${$as_acx_Woption+:} false
; then :
7431 $as_echo_n "(cached) " >&6
7434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7445 if ac_fn_c_try_compile
"$LINENO"; then :
7446 eval "$as_acx_Woption=yes"
7448 eval "$as_acx_Woption=no"
7450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 eval ac_res
=\$
$as_acx_Woption
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7455 $as_echo "$ac_res" >&6; }
7456 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7457 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7460 CFLAGS
="$save_CFLAGS"
7462 ac_cpp
='$CXXCPP $CPPFLAGS'
7463 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7469 # Enable expensive internal checks
7471 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7475 # Check whether --enable-checking was given.
7476 if test "${enable_checking+set}" = set; then :
7477 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7480 # Determine the default checks.
7481 if test x
$is_release = x
; then
7482 ac_checking_flags
=yes,extra
7484 ac_checking_flags
=release
7488 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7489 for check
in release
$ac_checking_flags
7492 # these set all the flags to specific states
7493 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7494 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7495 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7496 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7497 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7498 ac_types_checking
=1 ;;
7499 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7500 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7501 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7502 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7503 ac_tree_checking
= ; ac_valgrind_checking
= ;
7504 ac_types_checking
= ;;
7505 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7506 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7507 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7508 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7509 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7510 ac_types_checking
=1 ;;
7511 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7512 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7513 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7514 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7515 ac_tree_checking
= ; ac_valgrind_checking
= ;
7516 ac_types_checking
= ;;
7517 # these enable particular checks
7518 assert
) ac_assert_checking
=1 ;;
7519 df
) ac_df_checking
=1 ;;
7520 extra
) ac_extra_checking
=1 ;;
7521 fold) ac_fold_checking
=1 ;;
7522 gc
) ac_gc_checking
=1 ;;
7523 gcac
) ac_gc_always_collect
=1 ;;
7524 gimple
) ac_gimple_checking
=1 ;;
7525 misc
) ac_checking
=1 ;;
7526 rtl
) ac_rtl_checking
=1 ;;
7527 rtlflag
) ac_rtlflag_checking
=1 ;;
7528 runtime
) ac_runtime_checking
=1 ;;
7529 tree
) ac_tree_checking
=1 ;;
7530 types
) ac_types_checking
=1 ;;
7531 valgrind
) ac_valgrind_checking
=1 ;;
7532 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7538 if test x
$ac_checking != x
; then
7540 $as_echo "#define CHECKING_P 1" >>confdefs.h
7542 nocommon_flag
=-fno-common
7544 $as_echo "#define CHECKING_P 0" >>confdefs.h
7548 if test x
$ac_extra_checking != x
; then
7550 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7553 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7556 if test x
$ac_df_checking != x
; then
7558 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7561 if test x
$ac_assert_checking != x
; then
7563 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7566 if test x
$ac_gimple_checking != x
; then
7568 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7572 if test x
$ac_runtime_checking != x
; then
7574 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7577 if test x
$ac_tree_checking != x
; then
7579 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7583 if test x
$ac_types_checking != x
; then
7585 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7589 if test x
$ac_rtl_checking != x
; then
7591 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7594 if test x
$ac_rtlflag_checking != x
; then
7596 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7599 if test x
$ac_gc_checking != x
; then
7601 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7604 if test x
$ac_gc_always_collect != x
; then
7606 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7609 if test x
$ac_fold_checking != x
; then
7611 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7614 valgrind_path_defines
=
7617 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7626 # It is certainly possible that there's valgrind but no valgrind.h.
7627 # GCC relies on making annotations so we must have both.
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7629 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <valgrind/memcheck.h>
7633 #ifndef VALGRIND_DISCARD
7634 #error VALGRIND_DISCARD not defined
7637 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7638 gcc_cv_header_valgrind_memcheck_h
=yes
7640 gcc_cv_header_valgrind_memcheck_h
=no
7642 rm -f conftest.err conftest.i conftest.
$ac_ext
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7644 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7646 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <memcheck.h>
7650 #ifndef VALGRIND_DISCARD
7651 #error VALGRIND_DISCARD not defined
7654 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7655 gcc_cv_header_memcheck_h
=yes
7657 gcc_cv_header_memcheck_h
=no
7659 rm -f conftest.err conftest.i conftest.
$ac_ext
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7661 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7662 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7664 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7667 if test $gcc_cv_header_memcheck_h = yes; then
7669 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7673 if test x
$ac_valgrind_checking != x
; then
7675 # Prepare PATH_SEPARATOR.
7676 # The user is always right.
7677 if test "${PATH_SEPARATOR+set}" != set; then
7678 echo "#! /bin/sh" >conf$$.sh
7679 echo "exit 0" >>conf$$.sh
7681 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7689 # Find out how to test for executable files. Don't use a zero-byte file,
7690 # as systems may use methods other than mode bits to determine executability.
7691 cat >conf$$.
file <<_ASEOF
7695 chmod +x conf$$.
file
7696 if test -x conf$$.
file >/dev
/null
2>&1; then
7697 ac_executable_p
="test -x"
7699 ac_executable_p
="test -f"
7703 # Extract the first word of "valgrind", so it can be a program name with args.
7704 set dummy valgrind
; ac_word
=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_path_valgrind_path+:} false
; then :
7708 $as_echo_n "(cached) " >&6
7710 case "$valgrind_path" in
7712 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7715 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7716 for ac_dir
in $PATH; do
7718 test -z "$ac_dir" && ac_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7721 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7722 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7732 valgrind_path
="$ac_cv_path_valgrind_path"
7733 if test -n "$valgrind_path"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7735 $as_echo "$valgrind_path" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7741 if test "x$valgrind_path" = "x" \
7742 ||
(test $have_valgrind_h = no \
7743 && test $gcc_cv_header_memcheck_h = no \
7744 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7745 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7747 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7748 valgrind_command
="$valgrind_path -q"
7750 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7756 # Enable code coverage collection
7757 # Check whether --enable-coverage was given.
7758 if test "${enable_coverage+set}" = set; then :
7759 enableval
=$enable_coverage; case "${enableval}" in
7761 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7764 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7767 # a.k.a. --disable-coverage
7771 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7780 # Check whether --enable-gather-detailed-mem-stats was given.
7781 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7782 enableval
=$enable_gather_detailed_mem_stats;
7784 enable_gather_detailed_mem_stats
=no
7787 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7789 cat >>confdefs.h
<<_ACEOF
7790 #define GATHER_STATISTICS $gather_stats
7794 # Check whether --enable-valgrind-annotations was given.
7795 if test "${enable_valgrind_annotations+set}" = set; then :
7796 enableval
=$enable_valgrind_annotations;
7798 enable_valgrind_annotations
=no
7801 if test x
$enable_valgrind_annotations != xno \
7802 ||
test x
$ac_valgrind_checking != x
; then
7803 if (test $have_valgrind_h = no \
7804 && test $gcc_cv_header_memcheck_h = no \
7805 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7806 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7809 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7813 # -------------------------------
7814 # Miscenalleous configure options
7815 # -------------------------------
7817 # Determine whether or not multilibs are enabled.
7818 # Check whether --enable-multilib was given.
7819 if test "${enable_multilib+set}" = set; then :
7820 enableval
=$enable_multilib;
7827 # Determine whether or not multiarch is enabled.
7828 # Check whether --enable-multiarch was given.
7829 if test "${enable_multiarch+set}" = set; then :
7830 enableval
=$enable_multiarch; case "${enableval}" in
7831 yes|no|auto
) enable_multiarch
=$enableval;;
7832 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7835 enable_multiarch
=auto
7838 if test x
${enable_multiarch} = xauto
; then
7839 if test x
${with_native_system_header_dir} != x
; then
7840 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7843 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7844 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7848 if test x
${enable_multiarch} = xyes
; then
7850 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7854 $as_echo_n "checking for multiarch configuration... " >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7857 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7859 # needed for setting the multiarch name for soft-float/hard-float ABIs
7863 # default stack clash protection guard size as power of twos in bytes.
7864 # Please keep these in sync with params.def.
7868 # Keep the default value when the option is not used to 0, this allows us to
7869 # distinguish between the cases where the user specifially set a value via
7870 # configure and when the normal default value is used.
7872 # Check whether --with-stack-clash-protection-guard-size was given.
7873 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7874 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7876 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7879 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7880 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7881 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7882 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
7886 cat >>confdefs.h
<<_ACEOF
7887 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7891 # Enable __cxa_atexit for C++.
7892 # Check whether --enable-__cxa_atexit was given.
7893 if test "${enable___cxa_atexit+set}" = set; then :
7894 enableval
=$enable___cxa_atexit;
7898 # Enable C extension for decimal float if target supports it.
7900 # Check whether --enable-decimal-float was given.
7901 if test "${enable_decimal_float+set}" = set; then :
7902 enableval
=$enable_decimal_float;
7903 case $enable_decimal_float in
7904 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7905 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7906 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7913 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7914 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7915 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7916 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7917 enable_decimal_float
=yes
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7921 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7922 enable_decimal_float
=no
7929 # x86's use BID format instead of DPD
7930 case x
$enable_decimal_float in
7933 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7934 enable_decimal_float
=bid
7937 enable_decimal_float
=dpd
7940 default_decimal_float
=$enable_decimal_float
7943 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7944 # dependency on libdecnumber.
7945 default_decimal_float
=dpd
7952 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7954 cat >>confdefs.h
<<_ACEOF
7955 #define ENABLE_DECIMAL_FLOAT $dfp
7959 # Use default_decimal_float for dependency.
7960 enable_decimal_float
=$default_decimal_float
7962 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7964 cat >>confdefs.h
<<_ACEOF
7965 #define ENABLE_DECIMAL_BID_FORMAT $bid
7969 # Enable C extension for fixed-point arithmetic.
7970 # Check whether --enable-fixed-point was given.
7971 if test "${enable_fixed_point+set}" = set; then :
7972 enableval
=$enable_fixed_point;
7977 enable_fixed_point
=yes
7981 enable_fixed_point
=yes
7984 enable_fixed_point
=yes
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7988 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7989 enable_fixed_point
=no
7997 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7999 cat >>confdefs.h
<<_ACEOF
8000 #define ENABLE_FIXED_POINT $fixedpoint
8005 # Pass with no value to take the default
8006 # Pass with a value to specify a thread package
8007 # Check whether --enable-threads was given.
8008 if test "${enable_threads+set}" = set; then :
8009 enableval
=$enable_threads;
8015 # Check whether --enable-tls was given.
8016 if test "${enable_tls+set}" = set; then :
8017 enableval
=$enable_tls;
8020 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8021 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8029 # Check whether --enable-vtable-verify was given.
8030 if test "${enable_vtable_verify+set}" = set; then :
8031 enableval
=$enable_vtable_verify;
8033 enable_vtable_verify
=no
8036 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8038 cat >>confdefs.h
<<_ACEOF
8039 #define ENABLE_VTABLE_VERIFY $vtable_verify
8043 # Check whether --enable-analyzer was given.
8044 if test "${enable_analyzer+set}" = set; then :
8045 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8055 cat >>confdefs.h
<<_ACEOF
8056 #define ENABLE_ANALYZER $analyzer
8060 # Check whether --enable-objc-gc was given.
8061 if test "${enable_objc_gc+set}" = set; then :
8062 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8073 # Check whether --with-dwarf2 was given.
8074 if test "${with_dwarf2+set}" = set; then :
8075 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8081 # Check whether --enable-shared was given.
8082 if test "${enable_shared+set}" = set; then :
8083 enableval
=$enable_shared;
8084 case $enable_shared in
8088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8089 for pkg
in $enableval; do
8090 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8104 # Check whether --enable-gcov was given.
8105 if test "${enable_gcov+set}" = set; then :
8106 enableval
=$enable_gcov;
8122 # Check whether --with-specs was given.
8123 if test "${with_specs+set}" = set; then :
8124 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8134 # Check whether --with-pkgversion was given.
8135 if test "${with_pkgversion+set}" = set; then :
8136 withval
=$with_pkgversion; case "$withval" in
8137 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8139 *) PKGVERSION
="($withval) " ;;
8150 # Check whether --with-bugurl was given.
8151 if test "${with_bugurl+set}" = set; then :
8152 withval
=$with_bugurl; case "$withval" in
8153 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8156 *) BUGURL
="$withval"
8160 BUGURL
="https://gcc.gnu.org/bugs/"
8170 REPORT_BUGS_TO
="<$BUGURL>"
8171 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8178 # Allow overriding the default URL for documentation
8180 # Check whether --with-documentation-root-url was given.
8181 if test "${with_documentation_root_url+set}" = set; then :
8182 withval
=$with_documentation_root_url; case "$withval" in
8183 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8184 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8185 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8186 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8189 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8194 cat >>confdefs.h
<<_ACEOF
8195 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8199 # Allow overriding the default URL for GCC changes
8201 # Check whether --with-changes-root-url was given.
8202 if test "${with_changes_root_url+set}" = set; then :
8203 withval
=$with_changes_root_url; case "$withval" in
8204 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8205 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8206 */) CHANGES_ROOT_URL
="$withval" ;;
8207 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8210 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8215 cat >>confdefs.h
<<_ACEOF
8216 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8220 # Sanity check enable_languages in case someone does not run the toplevel
8221 # configure # script.
8222 # Check whether --enable-languages was given.
8223 if test "${enable_languages+set}" = set; then :
8224 enableval
=$enable_languages; case ,${enable_languages}, in
8226 # go safe -- we cannot be much sure without the toplevel
8228 # analysis of which target libs are present and usable
8232 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8237 enable_languages
=c
,${enable_languages}
8245 # If top-level libada has been disabled, then wire in install-gnatlib
8246 # invocation with `make install', so that one can build and install
8247 # the library manually with `make -C gcc all gnatlib gnattools install'.
8248 if test x
"$enable_libada" = xno
; then
8249 gnat_install_lib
=gnat-install-lib
8255 if test x
"$enable_as_accelerator_for" != x
; then
8257 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8259 enable_as_accelerator
=yes
8260 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8261 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8262 accel_dir_suffix
=/accel
/${target_noncanonical}
8263 real_target_noncanonical
=${enable_as_accelerator_for}
8269 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8270 tgt
=`echo $tgt | sed 's/=.*//'`
8275 omp_device_property
=omp-device-properties-gcn
8276 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8279 omp_device_property
=omp-device-properties-nvptx
8280 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8283 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8286 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8287 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8289 if test x
"$offload_targets" = x
; then
8290 offload_targets
=$tgt
8292 offload_targets
="$offload_targets,$tgt"
8299 cat >>confdefs.h
<<_ACEOF
8300 #define OFFLOAD_TARGETS "$offload_targets"
8303 if test x
"$enable_offloading" != x
; then
8305 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8309 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8313 if test "x$enable_offload_defaulted" = xyes
; then
8315 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8320 # Check whether --with-multilib-list was given.
8321 if test "${with_multilib_list+set}" = set; then :
8322 withval
=$with_multilib_list; :
8324 with_multilib_list
=default
8329 # Check whether --with-multilib-generator was given.
8330 if test "${with_multilib_generator+set}" = set; then :
8331 withval
=$with_multilib_generator; :
8333 with_multilib_generator
=default
8337 # -------------------------
8338 # Checks for other programs
8339 # -------------------------
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8344 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8345 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8346 $as_echo_n "(cached) " >&6
8348 cat >conftest.
make <<\_ACEOF
8351 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8356 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8358 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8362 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo "yes" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 SET_MAKE
="MAKE=${MAKE-make}"
8373 # Find some useful tools
8374 for ac_prog
in gawk mawk nawk
awk
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy
$ac_prog; ac_word
=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_prog_AWK+:} false
; then :
8381 $as_echo_n "(cached) " >&6
8383 if test -n "$AWK"; then
8384 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir
=.
8391 for ac_exec_ext
in '' $ac_executable_extensions; do
8392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_AWK
="$ac_prog"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 if test -n "$AWK"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8406 $as_echo "$AWK" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8413 test -n "$AWK" && break
8416 # We need awk to create options.cc and options.h.
8417 # Bail out if it's missing.
8419 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8423 $as_echo_n "checking whether ln -s works... " >&6; }
8424 if ${gcc_cv_prog_LN_S+:} false
; then :
8425 $as_echo_n "(cached) " >&6
8427 rm -f conftestdata_t
8428 echo >conftestdata_f
8429 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8431 gcc_cv_prog_LN_S
="ln -s"
8433 if ln conftestdata_f conftestdata_t
2>/dev
/null
8437 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8439 gcc_cv_prog_LN_S
="cp -p"
8445 rm -f conftestdata_f conftestdata_t
8448 LN_S
="$gcc_cv_prog_LN_S"
8449 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451 $as_echo "yes" >&6; }
8453 if test "$gcc_cv_prog_LN_S" = "ln"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8455 $as_echo "no, using ln" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8458 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8463 $as_echo_n "checking whether ln works... " >&6; }
8464 if ${acx_cv_prog_LN+:} false
; then :
8465 $as_echo_n "(cached) " >&6
8467 rm -f conftestdata_t
8468 echo >conftestdata_f
8469 if ln conftestdata_f conftestdata_t
2>/dev
/null
8475 rm -f conftestdata_f conftestdata_t
8478 if test $acx_cv_prog_LN = no
; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8481 $as_echo "no, using $LN" >&6; }
8483 LN
="$acx_cv_prog_LN"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 $as_echo "yes" >&6; }
8488 if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8490 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_RANLIB+:} false
; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$RANLIB"; then
8497 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir
=.
8504 for ac_exec_ext
in '' $ac_executable_extensions; do
8505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 RANLIB
=$ac_cv_prog_RANLIB
8517 if test -n "$RANLIB"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8519 $as_echo "$RANLIB" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test -z "$ac_cv_prog_RANLIB"; then
8528 ac_ct_RANLIB
=$RANLIB
8529 # Extract the first word of "ranlib", so it can be a program name with args.
8530 set dummy ranlib
; ac_word
=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8534 $as_echo_n "(cached) " >&6
8536 if test -n "$ac_ct_RANLIB"; then
8537 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir
=.
8544 for ac_exec_ext
in '' $ac_executable_extensions; do
8545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8557 if test -n "$ac_ct_RANLIB"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8559 $as_echo "$ac_ct_RANLIB" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8565 if test "x$ac_ct_RANLIB" = x
; then
8568 case $cross_compiling:$ac_tool_warned in
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned
=yes ;;
8574 RANLIB
=$ac_ct_RANLIB
8577 RANLIB
="$ac_cv_prog_RANLIB"
8583 # Find a good install program. We prefer a C program (faster),
8584 # so one script is as good as another. But avoid the broken or
8585 # incompatible versions:
8586 # SysV /etc/install, /usr/sbin/install
8587 # SunOS /usr/etc/install
8588 # IRIX /sbin/install
8590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8592 # ./install, which can be erroneously created by make from ./install.sh.
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8594 $as_echo_n "checking for a BSD compatible install... " >&6; }
8595 if test -z "$INSTALL"; then
8596 if ${ac_cv_path_install+:} false
; then :
8597 $as_echo_n "(cached) " >&6
8599 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8600 for ac_dir
in $PATH; do
8601 # Account for people who put trailing slashes in PATH elements.
8603 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8605 # OSF1 and SCO ODT 3.0 have their own names for install.
8606 for ac_prog
in ginstall scoinst
install; do
8607 if test -f $ac_dir/$ac_prog; then
8608 if test $ac_prog = install &&
8609 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8610 # AIX install. It has an incompatible calling convention.
8611 # OSF/1 installbsd also uses dspmsg, but is usable.
8614 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8625 if test "${ac_cv_path_install+set}" = set; then
8626 INSTALL
="$ac_cv_path_install"
8628 # As a last resort, use the slow shell script. We don't cache a
8629 # path for INSTALL within a source directory, because that will
8630 # break other packages using the cache if that directory is
8631 # removed, or if the path is relative.
8632 INSTALL
="$ac_install_sh"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8636 $as_echo "$INSTALL" >&6; }
8638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8639 # It thinks the first close brace ends the variable substitution.
8640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8642 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8645 # See if cmp has --ignore-initial.
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8647 $as_echo_n "checking for cmp's capabilities... " >&6; }
8648 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8649 $as_echo_n "(cached) " >&6
8653 gcc_cv_prog_cmp_skip
=slowcompare
8654 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8655 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8658 gcc_cv_prog_cmp_skip
=gnucompare
8661 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8662 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8663 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8666 gcc_cv_prog_cmp_skip
=fastcompare
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8674 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8675 make_compare_target
=$gcc_cv_prog_cmp_skip
8679 # See if we have the mktemp command.
8680 # Extract the first word of "mktemp", so it can be a program name with args.
8681 set dummy mktemp
; ac_word
=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8687 if test -n "$have_mktemp_command"; then
8688 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8694 test -z "$as_dir" && as_dir
=.
8695 for ac_exec_ext
in '' $ac_executable_extensions; do
8696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_have_mktemp_command
="yes"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8708 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8709 if test -n "$have_mktemp_command"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8711 $as_echo "$have_mktemp_command" >&6; }
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 # See if makeinfo has been installed and is modern enough
8720 # that we can use it.
8722 # Extract the first word of "makeinfo", so it can be a program name with args.
8723 set dummy makeinfo
; ac_word
=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8727 $as_echo_n "(cached) " >&6
8729 if test -n "$MAKEINFO"; then
8730 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8736 test -z "$as_dir" && as_dir
=.
8737 for ac_exec_ext
in '' $ac_executable_extensions; do
8738 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_MAKEINFO
="makeinfo"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 MAKEINFO
=$ac_cv_prog_MAKEINFO
8750 if test -n "$MAKEINFO"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8752 $as_echo "$MAKEINFO" >&6; }
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8759 if test -n "$MAKEINFO"; then
8760 # Found it, now check the version.
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8762 $as_echo_n "checking for modern makeinfo... " >&6; }
8763 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8764 $as_echo_n "(cached) " >&6
8766 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8767 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8769 case $ac_prog_version in
8770 '') gcc_cv_prog_makeinfo_modern
=no
;;
8771 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8772 *) gcc_cv_prog_makeinfo_modern
=no
;;
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8777 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8779 gcc_cv_prog_makeinfo_modern
=no
8781 if test $gcc_cv_prog_makeinfo_modern = no
; then
8782 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8785 if test $gcc_cv_prog_makeinfo_modern = no
; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8787 *** Makeinfo is missing or too old.
8788 *** Info documentation will not be built." >&5
8789 $as_echo "$as_me: WARNING:
8790 *** Makeinfo is missing or too old.
8791 *** Info documentation will not be built." >&2;}
8798 # Is pod2man recent enough to regenerate manpages?
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8800 $as_echo_n "checking for recent Pod::Man... " >&6; }
8801 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8804 GENERATED_MANPAGES
=generated-manpages
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8812 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8817 # Extract the first word of "$ac_prog", so it can be a program name with args.
8818 set dummy
$ac_prog; ac_word
=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_FLEX+:} false
; then :
8822 $as_echo_n "(cached) " >&6
8824 if test -n "$FLEX"; then
8825 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8831 test -z "$as_dir" && as_dir
=.
8832 for ac_exec_ext
in '' $ac_executable_extensions; do
8833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_FLEX
="$ac_prog"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 FLEX
=$ac_cv_prog_FLEX
8845 if test -n "$FLEX"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8847 $as_echo "$FLEX" >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8854 test -n "$FLEX" && break
8856 test -n "$FLEX" || FLEX
="$MISSING flex"
8860 for ac_prog
in bison
8862 # Extract the first word of "$ac_prog", so it can be a program name with args.
8863 set dummy
$ac_prog; ac_word
=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if ${ac_cv_prog_BISON+:} false
; then :
8867 $as_echo_n "(cached) " >&6
8869 if test -n "$BISON"; then
8870 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8876 test -z "$as_dir" && as_dir
=.
8877 for ac_exec_ext
in '' $ac_executable_extensions; do
8878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8879 ac_cv_prog_BISON
="$ac_prog"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 BISON
=$ac_cv_prog_BISON
8890 if test -n "$BISON"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8892 $as_echo "$BISON" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8899 test -n "$BISON" && break
8901 test -n "$BISON" || BISON
="$MISSING bison"
8906 # Extract the first word of "python3", so it can be a program name with args.
8907 set dummy python3
; ac_word
=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_prog_PYTHON+:} false
; then :
8911 $as_echo_n "(cached) " >&6
8913 if test -n "$PYTHON"; then
8914 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8920 test -z "$as_dir" && as_dir
=.
8921 for ac_exec_ext
in '' $ac_executable_extensions; do
8922 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_PYTHON
="python3"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 PYTHON
=$ac_cv_prog_PYTHON
8934 if test -n "$PYTHON"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8936 $as_echo "$PYTHON" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8943 if test -n "$PYTHON"; then
8944 # Found it, now check the version.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
8946 $as_echo_n "checking for modern python3... " >&6; }
8947 if ${gcc_cv_prog_python3_modern+:} false
; then :
8948 $as_echo_n "(cached) " >&6
8950 ac_prog_version
=`eval $PYTHON --version 2>&1 |
8951 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
8953 case $ac_prog_version in
8954 '') gcc_cv_prog_python3_modern
=no
;;
8955 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
8956 *) gcc_cv_prog_python3_modern
=no
;;
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
8961 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
8963 gcc_cv_prog_python3_modern
=no
8965 if test $gcc_cv_prog_python3_modern = no
; then
8966 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
8969 if test $gcc_cv_prog_python3_modern = no
; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8971 *** Python3 is missing.
8972 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
8973 $as_echo "$as_me: WARNING:
8974 *** Python3 is missing.
8975 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
8982 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8983 # check for build == host before using them.
8986 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8987 && test -d ..
/binutils
; then
8988 NM
='${objdir}/../binutils/nm-new'
8990 # Extract the first word of "nm", so it can be a program name with args.
8991 set dummy nm
; ac_word
=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_NM+:} false
; then :
8995 $as_echo_n "(cached) " >&6
8997 if test -n "$NM"; then
8998 ac_cv_prog_NM
="$NM" # Let the user override the test.
9000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9004 test -z "$as_dir" && as_dir
=.
9005 for ac_exec_ext
in '' $ac_executable_extensions; do
9006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9019 if test -n "$NM"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9021 $as_echo "$NM" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9031 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9032 && test -d ..
/binutils
; then
9033 AR
='${objdir}/../binutils/ar'
9035 # Extract the first word of "ar", so it can be a program name with args.
9036 set dummy
ar; ac_word
=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if ${ac_cv_prog_AR+:} false
; then :
9040 $as_echo_n "(cached) " >&6
9042 if test -n "$AR"; then
9043 ac_cv_prog_AR
="$AR" # Let the user override the test.
9045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir
=.
9050 for ac_exec_ext
in '' $ac_executable_extensions; do
9051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9064 if test -n "$AR"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9066 $as_echo "$AR" >&6; }
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9075 # The jit documentation looks better if built with sphinx, but can be
9076 # built with texinfo if sphinx is not available.
9077 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9078 # Extract the first word of "sphinx-build", so it can be a program name with args.
9079 set dummy sphinx-build
; ac_word
=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9083 $as_echo_n "(cached) " >&6
9085 if test -n "$doc_build_sys"; then
9086 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir
=.
9093 for ac_exec_ext
in '' $ac_executable_extensions; do
9094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_doc_build_sys
="sphinx"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9106 doc_build_sys
=$ac_cv_prog_doc_build_sys
9107 if test -n "$doc_build_sys"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9109 $as_echo "$doc_build_sys" >&6; }
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9117 # --------------------
9118 # Checks for C headers
9119 # --------------------
9121 # Need to reject headers which give warnings, so that the -Werror bootstrap
9122 # works later. *sigh* This needs to come before all header checks.
9124 ac_c_preproc_warn_flag
=yes
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9127 $as_echo_n "checking for ANSI C header files... " >&6; }
9128 if ${ac_cv_header_stdc+:} false
; then :
9129 $as_echo_n "(cached) " >&6
9131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9146 if ac_fn_cxx_try_compile
"$LINENO"; then :
9147 ac_cv_header_stdc
=yes
9149 ac_cv_header_stdc
=no
9151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9153 if test $ac_cv_header_stdc = yes; then
9154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 $EGREP "memchr" >/dev
/null
2>&1; then :
9164 ac_cv_header_stdc
=no
9170 if test $ac_cv_header_stdc = yes; then
9171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9178 $EGREP "free" >/dev
/null
2>&1; then :
9181 ac_cv_header_stdc
=no
9187 if test $ac_cv_header_stdc = yes; then
9188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9189 if test "$cross_compiling" = yes; then :
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9196 #if ((' ' & 0x0FF) == 0x020)
9197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9200 # define ISLOWER(c) \
9201 (('a' <= (c) && (c) <= 'i') \
9202 || ('j' <= (c) && (c) <= 'r') \
9203 || ('s' <= (c) && (c) <= 'z'))
9204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9212 for (i = 0; i < 256; i++)
9213 if (XOR (islower (i), ISLOWER (i))
9214 || toupper (i) != TOUPPER (i))
9219 if ac_fn_cxx_try_run
"$LINENO"; then :
9222 ac_cv_header_stdc
=no
9224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9231 $as_echo "$ac_cv_header_stdc" >&6; }
9232 if test $ac_cv_header_stdc = yes; then
9234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9239 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9240 if ${ac_cv_header_time+:} false
; then :
9241 $as_echo_n "(cached) " >&6
9243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9246 #include <sys/time.h>
9252 if ((struct tm *) 0)
9258 if ac_fn_cxx_try_compile
"$LINENO"; then :
9259 ac_cv_header_time
=yes
9261 ac_cv_header_time
=no
9263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9266 $as_echo "$ac_cv_header_time" >&6; }
9267 if test $ac_cv_header_time = yes; then
9269 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9274 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9275 if ${gcc_cv_header_string+:} false
; then :
9276 $as_echo_n "(cached) " >&6
9278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9281 #include <strings.h>
9290 if ac_fn_cxx_try_compile
"$LINENO"; then :
9291 gcc_cv_header_string
=yes
9293 gcc_cv_header_string
=no
9295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9298 $as_echo "$gcc_cv_header_string" >&6; }
9299 if test $gcc_cv_header_string = yes; then
9301 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9306 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9307 if ${ac_cv_header_sys_wait_h+:} false
; then :
9308 $as_echo_n "(cached) " >&6
9310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 #include <sys/wait.h>
9315 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9318 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9326 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9331 if ac_fn_cxx_try_compile
"$LINENO"; then :
9332 ac_cv_header_sys_wait_h
=yes
9334 ac_cv_header_sys_wait_h
=no
9336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9339 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9340 if test $ac_cv_header_sys_wait_h = yes; then
9342 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9347 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9348 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9349 $as_echo_n "(cached) " >&6
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #include <sys/types.h>
9354 #include <termios.h>
9360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9361 $EGREP "yes" >/dev
/null
2>&1; then :
9362 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9364 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9370 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9372 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9374 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9375 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9376 $as_echo_n "(cached) " >&6
9378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #include <sys/types.h>
9381 #include <sys/ioctl.h>
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "yes" >/dev
/null
2>&1; then :
9389 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9391 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9397 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9399 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9401 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9406 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9407 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9408 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9409 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9411 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9412 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9413 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9414 cat >>confdefs.h
<<_ACEOF
9415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9422 # Check for thread headers.
9423 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9424 if test "x$ac_cv_header_thread_h" = xyes
; then :
9430 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9431 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9438 # These tests can't be done till we know if we have limits.h.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9440 $as_echo_n "checking for CHAR_BIT... " >&6; }
9441 if ${gcc_cv_decl_char_bit+:} false
; then :
9442 $as_echo_n "(cached) " >&6
9444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #ifdef HAVE_LIMITS_H
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 $EGREP "found" >/dev
/null
2>&1; then :
9455 gcc_cv_decl_char_bit
=yes
9457 gcc_cv_decl_char_bit
=no
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9464 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9465 if test $gcc_cv_decl_char_bit = no
; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9467 $as_echo_n "checking number of bits in a byte... " >&6; }
9468 if ${gcc_cv_c_nbby+:} false
; then :
9469 $as_echo_n "(cached) " >&6
9473 while test $i -lt 65; do
9474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9481 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9482 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9488 if ac_fn_cxx_try_compile
"$LINENO"; then :
9489 gcc_cv_c_nbby
=$i; break
9491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9494 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9498 $as_echo "$gcc_cv_c_nbby" >&6; }
9499 if test $gcc_cv_c_nbby = failed
; then
9500 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9503 cat >>confdefs.h
<<_ACEOF
9504 #define CHAR_BIT $gcc_cv_c_nbby
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9510 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9511 if ${ac_cv_c_bigendian+:} false
; then :
9512 $as_echo_n "(cached) " >&6
9514 ac_cv_c_bigendian
=unknown
9515 # See if we're dealing with a universal compiler.
9516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 #ifndef __APPLE_CC__
9519 not a universal capable compiler
9524 if ac_fn_cxx_try_compile
"$LINENO"; then :
9526 # Check for potential -arch flags. It is not universal unless
9527 # there are at least two -arch flags with different values.
9530 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9531 if test -n "$ac_prev"; then
9533 i?
86 | x86_64 | ppc | ppc64
)
9534 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9537 ac_cv_c_bigendian
=universal
9543 elif test "x$ac_word" = "x-arch"; then
9548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9549 if test $ac_cv_c_bigendian = unknown
; then
9550 # See if sys/param.h defines the BYTE_ORDER macro.
9551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553 #include <sys/types.h>
9554 #include <sys/param.h>
9559 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9560 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9569 if ac_fn_cxx_try_compile
"$LINENO"; then :
9570 # It does; now see whether it defined to BIG_ENDIAN or not.
9571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 #include <sys/types.h>
9574 #include <sys/param.h>
9579 #if BYTE_ORDER != BIG_ENDIAN
9587 if ac_fn_cxx_try_compile
"$LINENO"; then :
9588 ac_cv_c_bigendian
=yes
9590 ac_cv_c_bigendian
=no
9592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9596 if test $ac_cv_c_bigendian = unknown
; then
9597 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9605 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9613 if ac_fn_cxx_try_compile
"$LINENO"; then :
9614 # It does; now see whether it defined to _BIG_ENDIAN or not.
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9630 if ac_fn_cxx_try_compile
"$LINENO"; then :
9631 ac_cv_c_bigendian
=yes
9633 ac_cv_c_bigendian
=no
9635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 if test $ac_cv_c_bigendian = unknown
; then
9640 # Compile a test program.
9641 if test "$cross_compiling" = yes; then :
9642 # Try to guess by grepping values from an object file.
9643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 short int ascii_mm[] =
9646 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9647 short int ascii_ii[] =
9648 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9649 int use_ascii (int i) {
9650 return ascii_mm[i] + ascii_ii[i];
9652 short int ebcdic_ii[] =
9653 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9654 short int ebcdic_mm[] =
9655 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9656 int use_ebcdic (int i) {
9657 return ebcdic_mm[i] + ebcdic_ii[i];
9664 return use_ascii (foo) == use_ebcdic (foo);
9669 if ac_fn_cxx_try_compile
"$LINENO"; then :
9670 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9671 ac_cv_c_bigendian
=yes
9673 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9674 if test "$ac_cv_c_bigendian" = unknown
; then
9675 ac_cv_c_bigendian
=no
9677 # finding both strings is unlikely to happen, but who knows?
9678 ac_cv_c_bigendian
=unknown
9682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 $ac_includes_default
9691 /* Are we little or big endian? From Harbison&Steele. */
9695 char c[sizeof (long int)];
9698 return u.c[sizeof (long int) - 1] == 1;
9704 if ac_fn_cxx_try_run
"$LINENO"; then :
9705 ac_cv_c_bigendian
=no
9707 ac_cv_c_bigendian
=yes
9709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9716 $as_echo "$ac_cv_c_bigendian" >&6; }
9717 case $ac_cv_c_bigendian in #(
9719 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9725 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9729 as_fn_error $?
"unknown endianness
9730 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9734 # ----------------------
9735 # Checks for C++ headers
9736 # ----------------------
9739 ac_cpp
='$CXXCPP $CPPFLAGS'
9740 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9745 if test -z "$CXXCPP"; then
9746 if ${ac_cv_prog_CXXCPP+:} false
; then :
9747 $as_echo_n "(cached) " >&6
9749 # Double quotes because CXXCPP needs to be expanded
9750 for CXXCPP
in "$CXX -E" "/lib/cpp"
9753 for ac_cxx_preproc_warn_flag
in '' yes
9755 # Use a header file that comes with gcc, so configuring glibc
9756 # with a fresh cross-compiler works.
9757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 # <limits.h> exists even on freestanding compilers.
9759 # On the NeXT, cc -E runs the code through the compiler's parser,
9760 # not just through cpp. "Syntax error" is here to catch this case.
9761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9764 # include <limits.h>
9766 # include <assert.h>
9770 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9773 # Broken: fails on valid input.
9776 rm -f conftest.err conftest.i conftest.
$ac_ext
9778 # OK, works on sane cases. Now check whether nonexistent headers
9779 # can be detected and how.
9780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782 #include <ac_nonexistent.h>
9784 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9785 # Broken: success on invalid input.
9788 # Passes both tests.
9792 rm -f conftest.err conftest.i conftest.
$ac_ext
9795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9796 rm -f conftest.i conftest.err conftest.
$ac_ext
9797 if $ac_preproc_ok; then :
9802 ac_cv_prog_CXXCPP
=$CXXCPP
9805 CXXCPP
=$ac_cv_prog_CXXCPP
9807 ac_cv_prog_CXXCPP
=$CXXCPP
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9810 $as_echo "$CXXCPP" >&6; }
9812 for ac_cxx_preproc_warn_flag
in '' yes
9814 # Use a header file that comes with gcc, so configuring glibc
9815 # with a fresh cross-compiler works.
9816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 # <limits.h> exists even on freestanding compilers.
9818 # On the NeXT, cc -E runs the code through the compiler's parser,
9819 # not just through cpp. "Syntax error" is here to catch this case.
9820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 # include <limits.h>
9825 # include <assert.h>
9829 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9832 # Broken: fails on valid input.
9835 rm -f conftest.err conftest.i conftest.
$ac_ext
9837 # OK, works on sane cases. Now check whether nonexistent headers
9838 # can be detected and how.
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #include <ac_nonexistent.h>
9843 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9844 # Broken: success on invalid input.
9847 # Passes both tests.
9851 rm -f conftest.err conftest.i conftest.
$ac_ext
9854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9855 rm -f conftest.i conftest.err conftest.
$ac_ext
9856 if $ac_preproc_ok; then :
9859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9862 See \`config.log' for more details" >&5
9863 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9864 See \`config.log' for more details" >&2;}; }
9868 ac_cpp
='$CXXCPP $CPPFLAGS'
9869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9874 for ac_header
in unordered_map
9876 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9877 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9878 cat >>confdefs.h
<<_ACEOF
9879 #define HAVE_UNORDERED_MAP 1
9885 for ac_header
in tr1/unordered_map
9887 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9888 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9889 cat >>confdefs.h
<<_ACEOF
9890 #define HAVE_TR1_UNORDERED_MAP 1
9896 for ac_header
in ext
/hash_map
9898 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9899 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9900 cat >>confdefs.h
<<_ACEOF
9901 #define HAVE_EXT_HASH_MAP 1
9909 # Dependency checking.
9912 rm -rf .tst
2>/dev
/null
9913 mkdir .tst
2>/dev
/null
9914 if test -d .tst
; then
9919 rmdir .tst
2>/dev
/null
9921 DEPDIR
="${am__leading_dot}deps"
9923 ac_config_commands
="$ac_config_commands depdir"
9926 ac_config_commands
="$ac_config_commands gccdepdir"
9929 depcc
="$CXX" am_compiler_list
=
9931 am_depcomp
=$ac_aux_dir/depcomp
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9933 $as_echo_n "checking dependency style of $depcc... " >&6; }
9934 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9935 $as_echo_n "(cached) " >&6
9937 if test -f "$am_depcomp"; then
9938 # We make a subdir and do the tests there. Otherwise we can end up
9939 # making bogus files that we don't know about and never remove. For
9940 # instance it was reported that on HP-UX the gcc test will end up
9941 # making a dummy file named `D' -- because `-MD' means `put the output
9944 # Copy depcomp to subdir because otherwise we won't find it if we're
9945 # using a relative directory.
9946 cp "$am_depcomp" conftest.dir
9948 # We will build objects and dependencies in a subdirectory because
9949 # it helps to detect inapplicable dependency modes. For instance
9950 # both Tru64's cc and ICC support -MD to output dependencies as a
9951 # side effect of compilation, but ICC will put the dependencies in
9952 # the current directory while Tru64 will put them in the object
9956 am_cv_CXX_dependencies_compiler_type
=none
9957 if test "$am_compiler_list" = ""; then
9958 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9960 for depmode
in $am_compiler_list; do
9961 if test $depmode = none
; then break; fi
9963 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9964 # Setup a source with many dependencies, because some compilers
9965 # like to wrap large dependency lists on column 80 (with \), and
9966 # we should not choose a depcomp mode which is confused by this.
9968 # We need to recreate these files for each test, as the compiler may
9969 # overwrite some of them when testing with obscure command lines.
9970 # This happens at least with the AIX C compiler.
9972 for i
in 1 2 3 4 5 6; do
9973 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9975 # Solaris 8's {/usr,}/bin/sh.
9976 touch sub
/conftst
$i.h
9978 echo "include sub/conftest.Po" > confmf
9980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9981 # mode. It turns out that the SunPro C++ compiler does not properly
9982 # handle `-M -o', and we need to detect this.
9983 depcmd
="depmode=$depmode \
9984 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9986 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9987 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9988 if env
$depcmd > conftest.err
2>&1 &&
9989 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9990 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9991 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9992 # icc doesn't choke on unknown options, it will just issue warnings
9993 # or remarks (even with -Werror). So we grep stderr for any message
9994 # that says an option was ignored or not supported.
9995 # When given -MP, icc 7.0 and 7.1 complain thusly:
9996 # icc: Command line warning: ignoring option '-M'; no argument required
9997 # The diagnosis changed in icc 8.0:
9998 # icc: Command line remark: option '-MP' not supported
9999 if (grep 'ignoring option' conftest.err ||
10000 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10001 am_cv_CXX_dependencies_compiler_type
=$depmode
10002 $as_echo "$as_me:$LINENO: success" >&5
10006 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10007 sed -e 's/^/| /' < conftest.err
>&5
10011 rm -rf conftest.dir
10013 am_cv_CXX_dependencies_compiler_type
=none
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10019 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10020 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10021 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10031 # These libraries may be used by collect2.
10032 # We may need a special search path to get them linked.
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10034 $as_echo_n "checking for collect2 libraries... " >&6; }
10035 if ${gcc_cv_collect2_libs+:} false
; then :
10036 $as_echo_n "(cached) " >&6
10039 for libs
in '' -lld -lmld \
10040 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10041 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10062 if ac_fn_cxx_try_link
"$LINENO"; then :
10063 gcc_cv_collect2_libs
="$libs"; break
10065 rm -f core conftest.err conftest.
$ac_objext \
10066 conftest
$ac_exeext conftest.
$ac_ext
10069 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10072 $as_echo "$gcc_cv_collect2_libs" >&6; }
10073 case $gcc_cv_collect2_libs in
10074 "none required") ;;
10075 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10079 # When building Ada code on Alpha, we need exc_resume which is usually in
10080 # -lexc. So test for it.
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10084 $as_echo_n "checking for library containing exc_resume... " >&6; }
10085 if ${ac_cv_search_exc_resume+:} false
; then :
10086 $as_echo_n "(cached) " >&6
10088 ac_func_search_save_LIBS
=$LIBS
10089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10098 char exc_resume ();
10102 return exc_resume ();
10107 for ac_lib
in '' exc
; do
10108 if test -z "$ac_lib"; then
10109 ac_res
="none required"
10112 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10114 if ac_fn_cxx_try_link
"$LINENO"; then :
10115 ac_cv_search_exc_resume
=$ac_res
10117 rm -f core conftest.err conftest.
$ac_objext \
10119 if ${ac_cv_search_exc_resume+:} false
; then :
10123 if ${ac_cv_search_exc_resume+:} false
; then :
10126 ac_cv_search_exc_resume
=no
10128 rm conftest.
$ac_ext
10129 LIBS
=$ac_func_search_save_LIBS
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10132 $as_echo "$ac_cv_search_exc_resume" >&6; }
10133 ac_res
=$ac_cv_search_exc_resume
10134 if test "$ac_res" != no
; then :
10135 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10139 GNAT_LIBEXC
="$LIBS"
10143 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10147 $as_echo_n "checking for library containing kstat_open... " >&6; }
10148 if ${ac_cv_search_kstat_open+:} false
; then :
10149 $as_echo_n "(cached) " >&6
10151 ac_func_search_save_LIBS
=$LIBS
10152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10161 char kstat_open ();
10165 return kstat_open ();
10170 for ac_lib
in '' kstat
; do
10171 if test -z "$ac_lib"; then
10172 ac_res
="none required"
10175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10177 if ac_fn_cxx_try_link
"$LINENO"; then :
10178 ac_cv_search_kstat_open
=$ac_res
10180 rm -f core conftest.err conftest.
$ac_objext \
10182 if ${ac_cv_search_kstat_open+:} false
; then :
10186 if ${ac_cv_search_kstat_open+:} false
; then :
10189 ac_cv_search_kstat_open
=no
10191 rm conftest.
$ac_ext
10192 LIBS
=$ac_func_search_save_LIBS
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10195 $as_echo "$ac_cv_search_kstat_open" >&6; }
10196 ac_res
=$ac_cv_search_kstat_open
10197 if test "$ac_res" != no
; then :
10198 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10202 EXTRA_GCC_LIBS
="$LIBS"
10206 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10207 # C++ needs those for libcody.
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10212 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10213 if ${ac_cv_search_gethostbyname+:} false
; then :
10214 $as_echo_n "(cached) " >&6
10216 ac_func_search_save_LIBS
=$LIBS
10217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10226 char gethostbyname ();
10230 return gethostbyname ();
10235 for ac_lib
in '' nsl
; do
10236 if test -z "$ac_lib"; then
10237 ac_res
="none required"
10240 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10242 if ac_fn_cxx_try_link
"$LINENO"; then :
10243 ac_cv_search_gethostbyname
=$ac_res
10245 rm -f core conftest.err conftest.
$ac_objext \
10247 if ${ac_cv_search_gethostbyname+:} false
; then :
10251 if ${ac_cv_search_gethostbyname+:} false
; then :
10254 ac_cv_search_gethostbyname
=no
10256 rm conftest.
$ac_ext
10257 LIBS
=$ac_func_search_save_LIBS
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10260 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10261 ac_res
=$ac_cv_search_gethostbyname
10262 if test "$ac_res" != no
; then :
10263 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10268 $as_echo_n "checking for library containing socket... " >&6; }
10269 if ${ac_cv_search_socket+:} false
; then :
10270 $as_echo_n "(cached) " >&6
10272 ac_func_search_save_LIBS
=$LIBS
10273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10291 for ac_lib
in '' socket
; do
10292 if test -z "$ac_lib"; then
10293 ac_res
="none required"
10296 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10298 if ac_fn_cxx_try_link
"$LINENO"; then :
10299 ac_cv_search_socket
=$ac_res
10301 rm -f core conftest.err conftest.
$ac_objext \
10303 if ${ac_cv_search_socket+:} false
; then :
10307 if ${ac_cv_search_socket+:} false
; then :
10310 ac_cv_search_socket
=no
10312 rm conftest.
$ac_ext
10313 LIBS
=$ac_func_search_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10316 $as_echo "$ac_cv_search_socket" >&6; }
10317 ac_res
=$ac_cv_search_socket
10318 if test "$ac_res" != no
; then :
10319 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10324 $as_echo_n "checking for socket in -lsocket... " >&6; }
10325 if ${ac_cv_lib_socket_socket+:} false
; then :
10326 $as_echo_n "(cached) " >&6
10328 ac_check_lib_save_LIBS
=$LIBS
10329 LIBS
="-lsocket -lnsl $LIBS"
10330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10348 if ac_fn_cxx_try_link
"$LINENO"; then :
10349 ac_cv_lib_socket_socket
=yes
10351 ac_cv_lib_socket_socket
=no
10353 rm -f core conftest.err conftest.
$ac_objext \
10354 conftest
$ac_exeext conftest.
$ac_ext
10355 LIBS
=$ac_check_lib_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10358 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10359 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10360 LIBS
="-lsocket -lnsl $LIBS"
10370 # Some systems put ldexp and frexp in libm instead of libc; assume
10371 # they're both in the same place. jcf-dump needs them.
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10375 $as_echo_n "checking for library containing ldexp... " >&6; }
10376 if ${ac_cv_search_ldexp+:} false
; then :
10377 $as_echo_n "(cached) " >&6
10379 ac_func_search_save_LIBS
=$LIBS
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10398 for ac_lib
in '' m
; do
10399 if test -z "$ac_lib"; then
10400 ac_res
="none required"
10403 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10405 if ac_fn_cxx_try_link
"$LINENO"; then :
10406 ac_cv_search_ldexp
=$ac_res
10408 rm -f core conftest.err conftest.
$ac_objext \
10410 if ${ac_cv_search_ldexp+:} false
; then :
10414 if ${ac_cv_search_ldexp+:} false
; then :
10417 ac_cv_search_ldexp
=no
10419 rm conftest.
$ac_ext
10420 LIBS
=$ac_func_search_save_LIBS
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10423 $as_echo "$ac_cv_search_ldexp" >&6; }
10424 ac_res
=$ac_cv_search_ldexp
10425 if test "$ac_res" != no
; then :
10426 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10434 # Some systems need dlopen
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10438 $as_echo_n "checking for library containing dlopen... " >&6; }
10439 if ${ac_cv_search_dlopen+:} false
; then :
10440 $as_echo_n "(cached) " >&6
10442 ac_func_search_save_LIBS
=$LIBS
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10461 for ac_lib
in '' dl
; do
10462 if test -z "$ac_lib"; then
10463 ac_res
="none required"
10466 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10468 if ac_fn_cxx_try_link
"$LINENO"; then :
10469 ac_cv_search_dlopen
=$ac_res
10471 rm -f core conftest.err conftest.
$ac_objext \
10473 if ${ac_cv_search_dlopen+:} false
; then :
10477 if ${ac_cv_search_dlopen+:} false
; then :
10480 ac_cv_search_dlopen
=no
10482 rm conftest.
$ac_ext
10483 LIBS
=$ac_func_search_save_LIBS
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10486 $as_echo "$ac_cv_search_dlopen" >&6; }
10487 ac_res
=$ac_cv_search_dlopen
10488 if test "$ac_res" != no
; then :
10489 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10497 # Use <inttypes.h> only if it exists,
10498 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10501 $as_echo_n "checking for inttypes.h... " >&6; }
10502 if ${gcc_cv_header_inttypes_h+:} false
; then :
10503 $as_echo_n "(cached) " >&6
10505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #define __STDC_FORMAT_MACROS
10508 #include <sys/types.h>
10509 #include <inttypes.h>
10521 if ac_fn_cxx_try_compile
"$LINENO"; then :
10522 gcc_cv_header_inttypes_h
=yes
10524 gcc_cv_header_inttypes_h
=no
10526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10530 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10531 if test $gcc_cv_header_inttypes_h = yes; then
10533 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10537 # Look for the ZSTD package.
10547 # Check whether --with-zstd was given.
10548 if test "${with_zstd+set}" = set; then :
10549 withval
=$with_zstd;
10553 # Check whether --with-zstd-include was given.
10554 if test "${with_zstd_include+set}" = set; then :
10555 withval
=$with_zstd_include;
10559 # Check whether --with-zstd-lib was given.
10560 if test "${with_zstd_lib+set}" = set; then :
10561 withval
=$with_zstd_lib;
10564 case "x$with_zstd" in
10570 *) ZSTD_INCLUDE
=$with_zstd/include
10571 ZSTD_LIB
=$with_zstd/lib
10575 if test "x$with_zstd" != xno
; then
10576 if test "x$with_zstd_include" != x
; then
10577 ZSTD_INCLUDE
=$with_zstd_include
10579 if test "x$with_zstd_lib" != x
; then
10580 ZSTD_LIB
=$with_zstd_lib
10582 if test "x$ZSTD_INCLUDE" != x \
10583 && test "x$ZSTD_INCLUDE" != xno
; then
10584 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10586 if test "x$ZSTD_LIB" != x \
10587 && test "x$ZSTD_LIB" != xno
; then
10588 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10591 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10592 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10595 $as_echo_n "checking for zstd.h... " >&6; }
10596 if ${gcc_cv_header_zstd_h+:} false
; then :
10597 $as_echo_n "(cached) " >&6
10599 # We require version 1.3.0 or later. This is the first version that has
10600 # ZSTD_getFrameContentSize.
10601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10604 #if ZSTD_VERSION_NUMBER < 10300
10605 #error "need zstd 1.3.0 or better"
10615 if ac_fn_cxx_try_compile
"$LINENO"; then :
10616 gcc_cv_header_zstd_h
=yes
10618 gcc_cv_header_zstd_h
=no
10620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10624 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10625 if test $gcc_cv_header_zstd_h = yes; then
10627 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10629 elif test "x$with_zstd" != x
; then
10630 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10633 # LTO can use zstd compression algorithm
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10637 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10638 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10639 $as_echo_n "(cached) " >&6
10641 ac_func_search_save_LIBS
=$LIBS
10642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10651 char ZSTD_compress ();
10655 return ZSTD_compress ();
10660 for ac_lib
in '' zstd
; do
10661 if test -z "$ac_lib"; then
10662 ac_res
="none required"
10665 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10667 if ac_fn_cxx_try_link
"$LINENO"; then :
10668 ac_cv_search_ZSTD_compress
=$ac_res
10670 rm -f core conftest.err conftest.
$ac_objext \
10672 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10676 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10679 ac_cv_search_ZSTD_compress
=no
10681 rm conftest.
$ac_ext
10682 LIBS
=$ac_func_search_save_LIBS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10685 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10686 ac_res
=$ac_cv_search_ZSTD_compress
10687 if test "$ac_res" != no
; then :
10688 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10699 for ac_func
in times clock kill getrlimit setrlimit atoq \
10700 popen sysconf strsignal getrusage nl_langinfo \
10701 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10702 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 fstatat getauxval
10704 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10706 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10707 cat >>confdefs.h
<<_ACEOF
10708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10715 if test x
$ac_cv_func_mbstowcs = xyes
; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10717 $as_echo_n "checking whether mbstowcs works... " >&6; }
10718 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10719 $as_echo_n "(cached) " >&6
10721 if test "$cross_compiling" = yes; then :
10722 gcc_cv_func_mbstowcs_works
=yes
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <stdlib.h>
10729 mbstowcs(0, "", 0);
10733 if ac_fn_cxx_try_run
"$LINENO"; then :
10734 gcc_cv_func_mbstowcs_works
=yes
10736 gcc_cv_func_mbstowcs_works
=no
10738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10744 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10745 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10747 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10752 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10753 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10757 cat >>confdefs.h
<<_ACEOF
10758 #define ssize_t int
10763 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10764 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10768 cat >>confdefs.h
<<_ACEOF
10769 #define caddr_t char *
10774 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10776 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10778 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10784 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10785 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10786 gcc_header_sys_mman_h
=yes
10788 gcc_header_sys_mman_h
=no
10791 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10792 if test "x$ac_cv_func_mmap" = xyes
; then :
10798 if test "$gcc_header_sys_mman_h" != yes \
10799 ||
test "$gcc_func_mmap" != yes; then
10800 gcc_cv_func_mmap_file
=no
10801 gcc_cv_func_mmap_dev_zero
=no
10802 gcc_cv_func_mmap_anon
=no
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10805 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10806 if ${gcc_cv_func_mmap_file+:} false
; then :
10807 $as_echo_n "(cached) " >&6
10809 # Add a system to this blacklist if
10810 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10811 # memory area containing the same data that you'd get if you applied
10812 # read() to the same fd. The only system known to have a problem here
10813 # is VMS, where text files have record structure.
10816 gcc_cv_func_mmap_file
=no
;;
10818 gcc_cv_func_mmap_file
=yes;;
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10822 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10824 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10825 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10826 $as_echo_n "(cached) " >&6
10828 # Add a system to this blacklist if it has mmap() but /dev/zero
10829 # does not exist, or if mmapping /dev/zero does not give anonymous
10830 # zeroed pages with both the following properties:
10831 # 1. If you map N consecutive pages in with one call, and then
10832 # unmap any subset of those pages, the pages that were not
10833 # explicitly unmapped remain accessible.
10834 # 2. If you map two adjacent blocks of memory and then unmap them
10835 # both at once, they must both go away.
10836 # Systems known to be in this category are Windows (all variants),
10839 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10840 gcc_cv_func_mmap_dev_zero
=no
;;
10842 gcc_cv_func_mmap_dev_zero
=yes;;
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10846 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10848 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10850 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10851 if ${gcc_cv_decl_map_anon+:} false
; then :
10852 $as_echo_n "(cached) " >&6
10854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 #include <sys/types.h>
10857 #include <sys/mman.h>
10858 #include <unistd.h>
10860 #ifndef MAP_ANONYMOUS
10861 #define MAP_ANONYMOUS MAP_ANON
10867 int n = MAP_ANONYMOUS;
10872 if ac_fn_cxx_try_compile
"$LINENO"; then :
10873 gcc_cv_decl_map_anon
=yes
10875 gcc_cv_decl_map_anon
=no
10877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10880 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10882 if test $gcc_cv_decl_map_anon = no
; then
10883 gcc_cv_func_mmap_anon
=no
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10886 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10887 if ${gcc_cv_func_mmap_anon+:} false
; then :
10888 $as_echo_n "(cached) " >&6
10890 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10891 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10892 # doesn't give anonymous zeroed pages with the same properties listed
10893 # above for use of /dev/zero.
10894 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10896 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10897 gcc_cv_func_mmap_anon
=no
;;
10899 gcc_cv_func_mmap_anon
=yes;;
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10903 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10907 if test $gcc_cv_func_mmap_file = yes; then
10909 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10912 if test $gcc_cv_func_mmap_dev_zero = yes; then
10914 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10917 if test $gcc_cv_func_mmap_anon = yes; then
10919 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10926 # Under VMS, vfork works very differently than on Unix. The standard test
10927 # won't work, and it isn't easily adaptable. It makes more sense to
10929 ac_cv_func_vfork_works
=yes
10932 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10933 if test "x$ac_cv_type_pid_t" = xyes
; then :
10937 cat >>confdefs.h
<<_ACEOF
10943 for ac_header
in vfork.h
10945 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10946 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10947 cat >>confdefs.h
<<_ACEOF
10948 #define HAVE_VFORK_H 1
10954 for ac_func
in fork vfork
10956 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10958 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10959 cat >>confdefs.h
<<_ACEOF
10960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966 if test "x$ac_cv_func_fork" = xyes
; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10968 $as_echo_n "checking for working fork... " >&6; }
10969 if ${ac_cv_func_fork_works+:} false
; then :
10970 $as_echo_n "(cached) " >&6
10972 if test "$cross_compiling" = yes; then :
10973 ac_cv_func_fork_works
=cross
10975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 $ac_includes_default
10982 /* By Ruediger Kuhlmann. */
10983 return fork () < 0;
10989 if ac_fn_cxx_try_run
"$LINENO"; then :
10990 ac_cv_func_fork_works
=yes
10992 ac_cv_func_fork_works
=no
10994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11000 $as_echo "$ac_cv_func_fork_works" >&6; }
11003 ac_cv_func_fork_works
=$ac_cv_func_fork
11005 if test "x$ac_cv_func_fork_works" = xcross
; then
11007 *-*-amigaos* |
*-*-msdosdjgpp*)
11008 # Override, as these systems have only a dummy fork() stub
11009 ac_cv_func_fork_works
=no
11012 ac_cv_func_fork_works
=yes
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11016 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11018 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11019 if test "x$ac_cv_func_vfork" = xyes
; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11021 $as_echo_n "checking for working vfork... " >&6; }
11022 if ${ac_cv_func_vfork_works+:} false
; then :
11023 $as_echo_n "(cached) " >&6
11025 if test "$cross_compiling" = yes; then :
11026 ac_cv_func_vfork_works
=cross
11028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 /* Thanks to Paul Eggert for this test. */
11031 $ac_includes_default
11032 #include <sys/wait.h>
11033 #ifdef HAVE_VFORK_H
11034 # include <vfork.h>
11036 /* On some sparc systems, changes by the child to local and incoming
11037 argument registers are propagated back to the parent. The compiler
11038 is told about this with #include <vfork.h>, but some compilers
11039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11040 static variable whose address is put into a register that is
11041 clobbered by the vfork. */
11044 sparc_address_test (int arg)
11046 sparc_address_test (arg) int arg;
11049 static pid_t child;
11067 pid_t parent = getpid ();
11070 sparc_address_test (0);
11075 /* Here is another test for sparc vfork register problems. This
11076 test uses lots of local variables, at least as many local
11077 variables as main has allocated so far including compiler
11078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11080 reuse the register of parent for one of the local variables,
11081 since it will think that parent can't possibly be used any more
11082 in this routine. Assigning to the local variable will thus
11083 munge parent in the parent process. */
11085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11087 /* Convince the compiler that p..p7 are live; otherwise, it might
11088 use the same hardware register for all 8 local variables. */
11089 if (p != p1 || p != p2 || p != p3 || p != p4
11090 || p != p5 || p != p6 || p != p7)
11093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11094 from child file descriptors. If the child closes a descriptor
11095 before it execs or exits, this munges the parent's descriptor
11096 as well. Test for this by closing stdout in the child. */
11097 _exit(close(fileno(stdout)) != 0);
11102 while (wait(&status) != child)
11105 /* Was there some problem with vforking? */
11108 /* Did the child fail? (This shouldn't happen.) */
11111 /* Did the vfork/compiler bug occur? */
11112 || parent != getpid()
11114 /* Did the file descriptor bug occur? */
11115 || fstat(fileno(stdout), &st) != 0
11120 if ac_fn_cxx_try_run
"$LINENO"; then :
11121 ac_cv_func_vfork_works
=yes
11123 ac_cv_func_vfork_works
=no
11125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11131 $as_echo "$ac_cv_func_vfork_works" >&6; }
11134 if test "x$ac_cv_func_fork_works" = xcross
; then
11135 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11137 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11140 if test "x$ac_cv_func_vfork_works" = xyes
; then
11142 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11146 $as_echo "#define vfork fork" >>confdefs.h
11149 if test "x$ac_cv_func_fork_works" = xyes
; then
11151 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11157 if test "X$prefix" = "XNONE"; then
11158 acl_final_prefix
="$ac_default_prefix"
11160 acl_final_prefix
="$prefix"
11162 if test "X$exec_prefix" = "XNONE"; then
11163 acl_final_exec_prefix
='${prefix}'
11165 acl_final_exec_prefix
="$exec_prefix"
11167 acl_save_prefix
="$prefix"
11168 prefix
="$acl_final_prefix"
11169 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11170 prefix
="$acl_save_prefix"
11173 # Check whether --with-gnu-ld was given.
11174 if test "${with_gnu_ld+set}" = set; then :
11175 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11180 # Prepare PATH_SEPARATOR.
11181 # The user is always right.
11182 if test "${PATH_SEPARATOR+set}" != set; then
11183 echo "#! /bin/sh" >conf$$.sh
11184 echo "exit 0" >>conf$$.sh
11186 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11194 if test "$GCC" = yes; then
11195 # Check if gcc -print-prog-name=ld gives a path.
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11197 $as_echo_n "checking for ld used by GCC... " >&6; }
11200 # gcc leaves a trailing carriage return which upsets mingw
11201 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11203 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11206 # Accept absolute paths.
11207 [\\/]* |
[A-Za-z
]:[\\/]*)
11208 re_direlt
='/[^/][^/]*/\.\./'
11209 # Canonicalize the path of ld
11210 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11211 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11212 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11214 test -z "$LD" && LD
="$ac_prog"
11217 # If it fails, then pretend we aren't using GCC.
11221 # If it is relative, then search for the first ld in PATH.
11222 with_gnu_ld
=unknown
11225 elif test "$with_gnu_ld" = yes; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11227 $as_echo_n "checking for GNU ld... " >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11230 $as_echo_n "checking for non-GNU ld... " >&6; }
11232 if ${acl_cv_path_LD+:} false
; then :
11233 $as_echo_n "(cached) " >&6
11235 if test -z "$LD"; then
11236 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11237 for ac_dir
in $PATH; do
11238 test -z "$ac_dir" && ac_dir
=.
11239 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11240 acl_cv_path_LD
="$ac_dir/$ac_prog"
11241 # Check to see if the program is GNU ld. I'd rather use --version,
11242 # but apparently some GNU ld's only accept -v.
11243 # Break only if it was the GNU/non-GNU ld that we prefer.
11244 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11245 test "$with_gnu_ld" != no
&& break
11247 test "$with_gnu_ld" != yes && break
11253 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11257 LD
="$acl_cv_path_LD"
11258 if test -n "$LD"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11260 $as_echo "$LD" >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11265 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11268 if ${acl_cv_prog_gnu_ld+:} false
; then :
11269 $as_echo_n "(cached) " >&6
11271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11272 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11273 acl_cv_prog_gnu_ld
=yes
11275 acl_cv_prog_gnu_ld
=no
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11279 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11280 with_gnu_ld
=$acl_cv_prog_gnu_ld
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11285 $as_echo_n "checking for shared library run path origin... " >&6; }
11286 if ${acl_cv_rpath+:} false
; then :
11287 $as_echo_n "(cached) " >&6
11290 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11293 rm -f .
/conftest.sh
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11298 $as_echo "$acl_cv_rpath" >&6; }
11300 libext
="$acl_cv_libext"
11301 shlibext
="$acl_cv_shlibext"
11302 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11303 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11304 hardcode_direct
="$acl_cv_hardcode_direct"
11305 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11306 # Check whether --enable-rpath was given.
11307 if test "${enable_rpath+set}" = set; then :
11308 enableval
=$enable_rpath; :
11322 acl_save_prefix
="$prefix"
11323 prefix
="$acl_final_prefix"
11324 acl_save_exec_prefix
="$exec_prefix"
11325 exec_prefix
="$acl_final_exec_prefix"
11327 eval additional_includedir
=\"$includedir\"
11328 eval additional_libdir
=\"$libdir\"
11330 exec_prefix
="$acl_save_exec_prefix"
11331 prefix
="$acl_save_prefix"
11334 # Check whether --with-libiconv-prefix was given.
11335 if test "${with_libiconv_prefix+set}" = set; then :
11336 withval
=$with_libiconv_prefix;
11337 if test "X$withval" = "Xno"; then
11340 if test "X$withval" = "X"; then
11342 acl_save_prefix
="$prefix"
11343 prefix
="$acl_final_prefix"
11344 acl_save_exec_prefix
="$exec_prefix"
11345 exec_prefix
="$acl_final_exec_prefix"
11347 eval additional_includedir
=\"$includedir\"
11348 eval additional_libdir
=\"$libdir\"
11350 exec_prefix
="$acl_save_exec_prefix"
11351 prefix
="$acl_save_prefix"
11354 additional_includedir
="$withval/include"
11355 additional_libdir
="$withval/lib"
11362 # Check whether --with-libiconv-type was given.
11363 if test "${with_libiconv_type+set}" = set; then :
11364 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11366 with_libiconv_type
=auto
11369 lib_type
=`eval echo \$with_libiconv_type`
11376 names_already_handled
=
11377 names_next_round
='iconv '
11378 while test -n "$names_next_round"; do
11379 names_this_round
="$names_next_round"
11381 for name
in $names_this_round; do
11383 for n
in $names_already_handled; do
11384 if test "$n" = "$name"; then
11385 already_handled
=yes
11389 if test -z "$already_handled"; then
11390 names_already_handled
="$names_already_handled $name"
11391 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11392 eval value
=\"\
$HAVE_LIB$uppername\"
11393 if test -n "$value"; then
11394 if test "$value" = yes; then
11395 eval value
=\"\
$LIB$uppername\"
11396 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11397 eval value
=\"\
$LTLIB$uppername\"
11398 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11407 if test $use_additional = yes; then
11408 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11409 found_dir
="$additional_libdir"
11410 found_so
="$additional_libdir/lib$name.$shlibext"
11411 if test -f "$additional_libdir/lib$name.la"; then
11412 found_la
="$additional_libdir/lib$name.la"
11414 elif test x
$lib_type != xshared
; then
11415 if test -f "$additional_libdir/lib$name.$libext"; then
11416 found_dir
="$additional_libdir"
11417 found_a
="$additional_libdir/lib$name.$libext"
11418 if test -f "$additional_libdir/lib$name.la"; then
11419 found_la
="$additional_libdir/lib$name.la"
11424 if test "X$found_dir" = "X"; then
11425 for x
in $LDFLAGS $LTLIBICONV; do
11427 acl_save_prefix
="$prefix"
11428 prefix
="$acl_final_prefix"
11429 acl_save_exec_prefix
="$exec_prefix"
11430 exec_prefix
="$acl_final_exec_prefix"
11432 exec_prefix
="$acl_save_exec_prefix"
11433 prefix
="$acl_save_prefix"
11437 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11438 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11440 found_so
="$dir/lib$name.$shlibext"
11441 if test -f "$dir/lib$name.la"; then
11442 found_la
="$dir/lib$name.la"
11444 elif test x
$lib_type != xshared
; then
11445 if test -f "$dir/lib$name.$libext"; then
11447 found_a
="$dir/lib$name.$libext"
11448 if test -f "$dir/lib$name.la"; then
11449 found_la
="$dir/lib$name.la"
11455 if test "X$found_dir" != "X"; then
11460 if test "X$found_dir" != "X"; then
11461 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11462 if test "X$found_so" != "X"; then
11463 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11464 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11467 for x
in $ltrpathdirs; do
11468 if test "X$x" = "X$found_dir"; then
11473 if test -z "$haveit"; then
11474 ltrpathdirs
="$ltrpathdirs $found_dir"
11476 if test "$hardcode_direct" = yes; then
11477 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11479 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11480 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11482 for x
in $rpathdirs; do
11483 if test "X$x" = "X$found_dir"; then
11488 if test -z "$haveit"; then
11489 rpathdirs
="$rpathdirs $found_dir"
11493 for x
in $LDFLAGS $LIBICONV; do
11495 acl_save_prefix
="$prefix"
11496 prefix
="$acl_final_prefix"
11497 acl_save_exec_prefix
="$exec_prefix"
11498 exec_prefix
="$acl_final_exec_prefix"
11500 exec_prefix
="$acl_save_exec_prefix"
11501 prefix
="$acl_save_prefix"
11503 if test "X$x" = "X-L$found_dir"; then
11508 if test -z "$haveit"; then
11509 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11511 if test "$hardcode_minus_L" != no
; then
11512 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11514 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11520 if test "X$found_a" != "X"; then
11521 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11523 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11526 additional_includedir
=
11527 case "$found_dir" in
11529 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11530 additional_includedir
="$basedir/include"
11533 if test "X$additional_includedir" != "X"; then
11534 if test "X$additional_includedir" != "X/usr/include"; then
11536 if test "X$additional_includedir" = "X/usr/local/include"; then
11537 if test -n "$GCC"; then
11539 linux
*) haveit
=yes;;
11543 if test -z "$haveit"; then
11544 for x
in $CPPFLAGS $INCICONV; do
11546 acl_save_prefix
="$prefix"
11547 prefix
="$acl_final_prefix"
11548 acl_save_exec_prefix
="$exec_prefix"
11549 exec_prefix
="$acl_final_exec_prefix"
11551 exec_prefix
="$acl_save_exec_prefix"
11552 prefix
="$acl_save_prefix"
11554 if test "X$x" = "X-I$additional_includedir"; then
11559 if test -z "$haveit"; then
11560 if test -d "$additional_includedir"; then
11561 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11567 if test -n "$found_la"; then
11568 save_libdir
="$libdir"
11569 case "$found_la" in
11570 */* |
*\\*) .
"$found_la" ;;
11571 *) .
"./$found_la" ;;
11573 libdir
="$save_libdir"
11574 for dep
in $dependency_libs; do
11577 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11578 if test "X$additional_libdir" != "X/usr/lib"; then
11580 if test "X$additional_libdir" = "X/usr/local/lib"; then
11581 if test -n "$GCC"; then
11583 linux
*) haveit
=yes;;
11587 if test -z "$haveit"; then
11589 for x
in $LDFLAGS $LIBICONV; do
11591 acl_save_prefix
="$prefix"
11592 prefix
="$acl_final_prefix"
11593 acl_save_exec_prefix
="$exec_prefix"
11594 exec_prefix
="$acl_final_exec_prefix"
11596 exec_prefix
="$acl_save_exec_prefix"
11597 prefix
="$acl_save_prefix"
11599 if test "X$x" = "X-L$additional_libdir"; then
11604 if test -z "$haveit"; then
11605 if test -d "$additional_libdir"; then
11606 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11610 for x
in $LDFLAGS $LTLIBICONV; do
11612 acl_save_prefix
="$prefix"
11613 prefix
="$acl_final_prefix"
11614 acl_save_exec_prefix
="$exec_prefix"
11615 exec_prefix
="$acl_final_exec_prefix"
11617 exec_prefix
="$acl_save_exec_prefix"
11618 prefix
="$acl_save_prefix"
11620 if test "X$x" = "X-L$additional_libdir"; then
11625 if test -z "$haveit"; then
11626 if test -d "$additional_libdir"; then
11627 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11634 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11635 if test "$enable_rpath" != no
; then
11637 for x
in $rpathdirs; do
11638 if test "X$x" = "X$dir"; then
11643 if test -z "$haveit"; then
11644 rpathdirs
="$rpathdirs $dir"
11647 for x
in $ltrpathdirs; do
11648 if test "X$x" = "X$dir"; then
11653 if test -z "$haveit"; then
11654 ltrpathdirs
="$ltrpathdirs $dir"
11659 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11662 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11665 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11666 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11672 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11673 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11674 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11676 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11677 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11684 if test "X$rpathdirs" != "X"; then
11685 if test -n "$hardcode_libdir_separator"; then
11687 for found_dir
in $rpathdirs; do
11688 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11690 acl_save_libdir
="$libdir"
11692 eval flag
=\"$hardcode_libdir_flag_spec\"
11693 libdir
="$acl_save_libdir"
11694 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11696 for found_dir
in $rpathdirs; do
11697 acl_save_libdir
="$libdir"
11698 libdir
="$found_dir"
11699 eval flag
=\"$hardcode_libdir_flag_spec\"
11700 libdir
="$acl_save_libdir"
11701 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11705 if test "X$ltrpathdirs" != "X"; then
11706 for found_dir
in $ltrpathdirs; do
11707 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11718 $as_echo_n "checking for iconv... " >&6; }
11719 if ${am_cv_func_iconv+:} false
; then :
11720 $as_echo_n "(cached) " >&6
11723 am_cv_func_iconv
="no, consider installing GNU libiconv"
11725 am_save_CPPFLAGS
="$CPPFLAGS"
11726 CPPFLAGS
="$CPPFLAGS $INCICONV"
11727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #include <stdlib.h>
11734 iconv_t cd = iconv_open("","");
11735 iconv(cd,NULL,NULL,NULL,NULL);
11741 if ac_fn_cxx_try_link
"$LINENO"; then :
11742 am_cv_func_iconv
=yes
11744 rm -f core conftest.err conftest.
$ac_objext \
11745 conftest
$ac_exeext conftest.
$ac_ext
11746 CPPFLAGS
="$am_save_CPPFLAGS"
11748 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11749 for _libs
in .libs _libs
; do
11750 am_save_CPPFLAGS
="$CPPFLAGS"
11751 am_save_LIBS
="$LIBS"
11752 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11753 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <stdlib.h>
11761 iconv_t cd = iconv_open("","");
11762 iconv(cd,NULL,NULL,NULL,NULL);
11768 if ac_fn_cxx_try_link
"$LINENO"; then :
11769 INCICONV
="-I../libiconv/include"
11770 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11771 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11772 am_cv_lib_iconv
=yes
11773 am_cv_func_iconv
=yes
11775 rm -f core conftest.err conftest.
$ac_objext \
11776 conftest
$ac_exeext conftest.
$ac_ext
11777 CPPFLAGS
="$am_save_CPPFLAGS"
11778 LIBS
="$am_save_LIBS"
11779 if test "$am_cv_func_iconv" = "yes"; then
11785 if test "$am_cv_func_iconv" != yes; then
11786 am_save_CPPFLAGS
="$CPPFLAGS"
11787 am_save_LIBS
="$LIBS"
11788 CPPFLAGS
="$CPPFLAGS $INCICONV"
11789 LIBS
="$LIBS $LIBICONV"
11790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #include <stdlib.h>
11797 iconv_t cd = iconv_open("","");
11798 iconv(cd,NULL,NULL,NULL,NULL);
11804 if ac_fn_cxx_try_link
"$LINENO"; then :
11805 am_cv_lib_iconv
=yes
11806 am_cv_func_iconv
=yes
11808 rm -f core conftest.err conftest.
$ac_objext \
11809 conftest
$ac_exeext conftest.
$ac_ext
11810 CPPFLAGS
="$am_save_CPPFLAGS"
11811 LIBS
="$am_save_LIBS"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11816 $as_echo "$am_cv_func_iconv" >&6; }
11817 if test "$am_cv_func_iconv" = yes; then
11819 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11822 if test "$am_cv_lib_iconv" = yes; then
11824 for element
in $INCICONV; do
11826 for x
in $CPPFLAGS; do
11828 acl_save_prefix
="$prefix"
11829 prefix
="$acl_final_prefix"
11830 acl_save_exec_prefix
="$exec_prefix"
11831 exec_prefix
="$acl_final_exec_prefix"
11833 exec_prefix
="$acl_save_exec_prefix"
11834 prefix
="$acl_save_prefix"
11836 if test "X$x" = "X$element"; then
11841 if test -z "$haveit"; then
11842 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11847 $as_echo_n "checking how to link with libiconv... " >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11849 $as_echo "$LIBICONV" >&6; }
11857 if test "$am_cv_func_iconv" = yes; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11859 $as_echo_n "checking for iconv declaration... " >&6; }
11860 if ${am_cv_proto_iconv+:} false
; then :
11861 $as_echo_n "(cached) " >&6
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 #include <stdlib.h>
11873 #if defined(__STDC__) || defined(__cplusplus)
11874 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11887 if ac_fn_cxx_try_compile
"$LINENO"; then :
11888 am_cv_proto_iconv_arg1
=""
11890 am_cv_proto_iconv_arg1
="const"
11892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11893 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);"
11896 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11898 }$am_cv_proto_iconv" >&5
11900 }$am_cv_proto_iconv" >&6; }
11902 cat >>confdefs.h
<<_ACEOF
11903 #define ICONV_CONST $am_cv_proto_iconv_arg1
11909 # Until we have in-tree GNU iconv:
11911 if test -f "$LTLIBICONV"; then
11912 LIBICONV_DEP
=$LTLIBICONV
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11918 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11919 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11920 $as_echo_n "(cached) " >&6
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <locale.h>
11933 if ac_fn_cxx_try_link
"$LINENO"; then :
11934 am_cv_val_LC_MESSAGES
=yes
11936 am_cv_val_LC_MESSAGES
=no
11938 rm -f core conftest.err conftest.
$ac_objext \
11939 conftest
$ac_exeext conftest.
$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11942 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11943 if test $am_cv_val_LC_MESSAGES = yes; then
11945 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11953 if ${am_cv_langinfo_codeset+:} false
; then :
11954 $as_echo_n "(cached) " >&6
11956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 #include <langinfo.h>
11962 char* cs = nl_langinfo(CODESET);
11967 if ac_fn_cxx_try_link
"$LINENO"; then :
11968 am_cv_langinfo_codeset
=yes
11970 am_cv_langinfo_codeset
=no
11972 rm -f core conftest.err conftest.
$ac_objext \
11973 conftest
$ac_exeext conftest.
$ac_ext
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11977 $as_echo "$am_cv_langinfo_codeset" >&6; }
11978 if test $am_cv_langinfo_codeset = yes; then
11980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11985 # We will need to find libiberty.h and ansidecl.h
11986 saved_CFLAGS
="$CFLAGS"
11987 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11988 saved_CXXFLAGS
="$CXXFLAGS"
11989 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11991 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11992 # normal autoconf function for these. But force definition of
11993 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11994 # basename handling in libiberty.h.
11995 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11996 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11997 #undef HAVE_DECL_BASENAME
11998 #define HAVE_DECL_BASENAME 1
11999 #include \"ansidecl.h\"
12000 #include \"system.h\"
12002 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12008 cat >>confdefs.h
<<_ACEOF
12009 #define HAVE_DECL_BASENAME $ac_have_decl
12011 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12012 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12013 #undef HAVE_DECL_BASENAME
12014 #define HAVE_DECL_BASENAME 1
12015 #include \"ansidecl.h\"
12016 #include \"system.h\"
12018 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12024 cat >>confdefs.h
<<_ACEOF
12025 #define HAVE_DECL_STRSTR $ac_have_decl
12029 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12030 madvise stpcpy strnlen strsignal strverscmp \
12031 strtol strtoul strtoll strtoull setenv unsetenv \
12032 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12033 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
12035 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12037 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12038 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12039 $as_echo_n "(cached) " >&6
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 #define $ac_tr_decl 1
12046 #include "ansidecl.h"
12047 #include "system.h"
12053 char *(*pfn) = (char *(*)) $ac_func ;
12059 if ac_fn_cxx_try_compile
"$LINENO"; then :
12060 eval "gcc_cv_have_decl_$ac_func=yes"
12062 eval "gcc_cv_have_decl_$ac_func=no"
12064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12067 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12070 #define $ac_tr_decl 1
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12076 #define $ac_tr_decl 0
12084 for ac_func
in getrlimit setrlimit getrusage
12086 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12088 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12089 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12090 $as_echo_n "(cached) " >&6
12092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 #define $ac_tr_decl 1
12097 #include "ansidecl.h"
12098 #include "system.h"
12099 #ifdef HAVE_SYS_RESOURCE_H
12100 #include <sys/resource.h>
12108 char *(*pfn) = (char *(*)) $ac_func ;
12114 if ac_fn_cxx_try_compile
"$LINENO"; then :
12115 eval "gcc_cv_have_decl_$ac_func=yes"
12117 eval "gcc_cv_have_decl_$ac_func=no"
12119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12122 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12125 #define $ac_tr_decl 1
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12131 #define $ac_tr_decl 0
12139 for ac_func
in mallinfo mallinfo2
12141 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12143 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12144 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12145 $as_echo_n "(cached) " >&6
12147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 #define $ac_tr_decl 1
12152 #include "ansidecl.h"
12153 #include "system.h"
12154 #ifdef HAVE_MALLOC_H
12155 #include <malloc.h>
12163 char *(*pfn) = (char *(*)) $ac_func ;
12169 if ac_fn_cxx_try_compile
"$LINENO"; then :
12170 eval "gcc_cv_have_decl_$ac_func=yes"
12172 eval "gcc_cv_have_decl_$ac_func=no"
12174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12177 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12180 #define $ac_tr_decl 1
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12186 #define $ac_tr_decl 0
12194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12197 #include "ansidecl.h"
12198 #include "system.h"
12199 #ifdef HAVE_SYS_RESOURCE_H
12200 #include <sys/resource.h>
12211 if ac_fn_cxx_try_compile
"$LINENO"; then :
12215 $as_echo "#define rlim_t long" >>confdefs.h
12218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12220 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12221 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12222 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12223 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12224 for ac_func
in ldgetname
12226 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12229 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12230 $as_echo_n "(cached) " >&6
12232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 #define $ac_tr_decl 1
12237 #include "ansidecl.h"
12238 #include "system.h"
12239 #ifdef HAVE_LDFCN_H
12250 char *(*pfn) = (char *(*)) $ac_func ;
12256 if ac_fn_cxx_try_compile
"$LINENO"; then :
12257 eval "gcc_cv_have_decl_$ac_func=yes"
12259 eval "gcc_cv_have_decl_$ac_func=no"
12261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12264 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12267 #define $ac_tr_decl 1
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12273 #define $ac_tr_decl 0
12281 for ac_func
in times
12283 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12285 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12286 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12287 $as_echo_n "(cached) " >&6
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 #define $ac_tr_decl 1
12294 #include "ansidecl.h"
12295 #include "system.h"
12296 #ifdef HAVE_SYS_TIMES_H
12297 #include <sys/times.h>
12305 char *(*pfn) = (char *(*)) $ac_func ;
12311 if ac_fn_cxx_try_compile
"$LINENO"; then :
12312 eval "gcc_cv_have_decl_$ac_func=yes"
12314 eval "gcc_cv_have_decl_$ac_func=no"
12316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12319 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12322 #define $ac_tr_decl 1
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12328 #define $ac_tr_decl 0
12336 for ac_func
in sigaltstack
12338 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12340 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12341 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12342 $as_echo_n "(cached) " >&6
12344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 #define $ac_tr_decl 1
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #include <signal.h>
12358 char *(*pfn) = (char *(*)) $ac_func ;
12364 if ac_fn_cxx_try_compile
"$LINENO"; then :
12365 eval "gcc_cv_have_decl_$ac_func=yes"
12367 eval "gcc_cv_have_decl_$ac_func=no"
12369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12372 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12375 #define $ac_tr_decl 1
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12381 #define $ac_tr_decl 0
12389 # More time-related stuff.
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12391 $as_echo_n "checking for struct tms... " >&6; }
12392 if ${ac_cv_struct_tms+:} false
; then :
12393 $as_echo_n "(cached) " >&6
12396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 #include "ansidecl.h"
12400 #include "system.h"
12401 #ifdef HAVE_SYS_TIMES_H
12402 #include <sys/times.h>
12413 if ac_fn_cxx_try_compile
"$LINENO"; then :
12414 ac_cv_struct_tms
=yes
12416 ac_cv_struct_tms
=no
12418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12421 $as_echo "$ac_cv_struct_tms" >&6; }
12422 if test $ac_cv_struct_tms = yes; then
12424 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12428 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12429 # revisit after autoconf 2.50.
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12431 $as_echo_n "checking for clock_t... " >&6; }
12432 if ${gcc_cv_type_clock_t+:} false
; then :
12433 $as_echo_n "(cached) " >&6
12436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 #include "ansidecl.h"
12440 #include "system.h"
12450 if ac_fn_cxx_try_compile
"$LINENO"; then :
12451 gcc_cv_type_clock_t
=yes
12453 gcc_cv_type_clock_t
=no
12455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12458 $as_echo "$gcc_cv_type_clock_t" >&6; }
12459 if test $gcc_cv_type_clock_t = yes; then
12461 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12465 # Check if F_SETLKW is supported by fcntl.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12467 $as_echo_n "checking for F_SETLKW... " >&6; }
12468 if ${ac_cv_f_setlkw+:} false
; then :
12469 $as_echo_n "(cached) " >&6
12472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12485 return fcntl (1, F_SETLKW, &fl);
12490 if ac_fn_cxx_try_compile
"$LINENO"; then :
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12498 $as_echo "$ac_cv_f_setlkw" >&6; }
12499 if test $ac_cv_f_setlkw = yes; then
12501 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12505 # Check if O_CLOEXEC is defined by fcntl
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12507 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12508 if ${ac_cv_o_cloexec+:} false
; then :
12509 $as_echo_n "(cached) " >&6
12512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12520 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12525 if ac_fn_cxx_try_compile
"$LINENO"; then :
12526 ac_cv_o_cloexec
=yes
12530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12533 $as_echo "$ac_cv_o_cloexec" >&6; }
12534 if test $ac_cv_o_cloexec = yes; then
12536 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12540 # Check if O_NONBLOCK is defined by fcntl
12541 for ac_header
in fcntl.h
12543 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12544 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12545 cat >>confdefs.h
<<_ACEOF
12546 #define HAVE_FCNTL_H 1
12552 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12554 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12558 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12560 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12565 # C++ Modules would like some networking features to provide the mapping
12566 # server. You can still use modules without them though.
12567 # The following network-related checks could probably do with some
12568 # Windows and other non-linux defenses and checking.
12570 # Local socket connectivity wants AF_UNIX networking
12571 # Check for AF_UNIX networking
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12573 $as_echo_n "checking for AF_UNIX... " >&6; }
12574 if ${ac_cv_af_unix+:} false
; then :
12575 $as_echo_n "(cached) " >&6
12578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 #include <sys/types.h>
12582 #include <sys/socket.h>
12583 #include <sys/un.h>
12584 #include <netinet/in.h>
12590 un.sun_family = AF_UNSPEC;
12591 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12592 connect (fd, (sockaddr *)&un, sizeof (un));
12597 if ac_fn_cxx_try_compile
"$LINENO"; then :
12602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12605 $as_echo "$ac_cv_af_unix" >&6; }
12606 if test $ac_cv_af_unix = yes; then
12608 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12612 # Remote socket connectivity wants AF_INET6 networking
12613 # Check for AF_INET6 networking
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12615 $as_echo_n "checking for AF_INET6... " >&6; }
12616 if ${ac_cv_af_inet6+:} false
; then :
12617 $as_echo_n "(cached) " >&6
12620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 #include <sys/types.h>
12624 #include <sys/socket.h>
12625 #include <netinet/in.h>
12632 in6.sin6_family = AF_UNSPEC;
12633 struct addrinfo *addrs = 0;
12634 struct addrinfo hints;
12635 hints.ai_flags = 0;
12636 hints.ai_family = AF_INET6;
12637 hints.ai_socktype = SOCK_STREAM;
12638 hints.ai_protocol = 0;
12639 hints.ai_canonname = 0;
12642 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12643 const char *str = gai_strerror (e);
12644 freeaddrinfo (addrs);
12645 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12646 connect (fd, (sockaddr *)&in6, sizeof (in6));
12651 if ac_fn_cxx_try_compile
"$LINENO"; then :
12656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12659 $as_echo "$ac_cv_af_inet6" >&6; }
12660 if test $ac_cv_af_inet6 = yes; then
12662 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12666 # Check if _LK_LOCK is supported by _locking
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12668 $as_echo_n "checking for _LK_LOCK... " >&6; }
12669 if ${ac_cv_lk_lock+:} false
; then :
12670 $as_echo_n "(cached) " >&6
12673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12677 #include <sys/locking.h>
12683 return _locking (fd, _LK_LOCK, 0);
12688 if ac_fn_cxx_try_compile
"$LINENO"; then :
12693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12696 $as_echo "$ac_cv_lk_lock" >&6; }
12697 if test $ac_cv_lk_lock = yes; then
12699 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12703 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12704 CFLAGS
="$saved_CFLAGS"
12705 CXXFLAGS
="$saved_CXXFLAGS"
12707 # mkdir takes a single argument on some systems.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12709 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12710 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12711 $as_echo_n "(cached) " >&6
12713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 #include <sys/types.h>
12717 #ifdef HAVE_SYS_STAT_H
12718 # include <sys/stat.h>
12720 #ifdef HAVE_UNISTD_H
12721 # include <unistd.h>
12723 #ifdef HAVE_DIRECT_H
12724 # include <direct.h>
12734 if ac_fn_cxx_try_compile
"$LINENO"; then :
12735 gcc_cv_mkdir_takes_one_arg
=no
12737 gcc_cv_mkdir_takes_one_arg
=yes
12739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12742 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12743 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12745 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12756 # With Setjmp/Longjmp based exception handling.
12757 # Check whether --enable-sjlj-exceptions was given.
12758 if test "${enable_sjlj_exceptions+set}" = set; then :
12759 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12763 force_sjlj_exceptions
=yes
12767 force_sjlj_exceptions
=no
12772 if test $force_sjlj_exceptions = yes; then
12773 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12775 cat >>confdefs.h
<<_ACEOF
12776 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12781 # --------------------------------------------------------
12782 # Build, host, and target specific configuration fragments
12783 # --------------------------------------------------------
12785 # Collect build-machine-specific information.
12786 .
${srcdir}/config.build ||
exit 1
12788 # Collect host-machine-specific information.
12789 .
${srcdir}/config.
host ||
exit 1
12793 # Collect target-machine-specific information.
12794 .
${srcdir}/config.gcc ||
exit 1
12796 extra_objs
="${host_extra_objs} ${extra_objs}"
12797 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12799 # Default the target-machine variables that were not explicitly set.
12800 if test x
"$tm_file" = x
12801 then tm_file
=$cpu_type/$cpu_type.h
; fi
12803 if test x
"$extra_headers" = x
12804 then extra_headers
=; fi
12806 if test x
$md_file = x
12807 then md_file
=$cpu_type/$cpu_type.md
; fi
12809 if test x
$out_file = x
12810 then out_file
=$cpu_type/$cpu_type.cc
; fi
12812 if test x
"$tmake_file" = x
12813 then tmake_file
=$cpu_type/t-
$cpu_type
12816 # Support --enable-initfini-array.
12817 if test x
$enable_initfini_array != xno
; then
12818 tm_file
="${tm_file} initfini-array.h"
12821 if test x
"$dwarf2" = xyes
12822 then tm_file
="$tm_file tm-dwarf2.h"
12825 # Say what files are being used for the output code and MD file.
12826 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12827 echo "Using \`$srcdir/config/$md_file' as machine description file."
12829 # If any of the xm_file variables contain nonexistent files, warn
12830 # about them and drop them.
12833 for x
in $build_xm_file; do
12834 if test -f $srcdir/config
/$x
12836 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12837 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12840 build_xm_file
="$bx"
12843 for x
in $host_xm_file; do
12844 if test -f $srcdir/config
/$x
12846 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12847 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12853 for x
in $xm_file; do
12854 if test -f $srcdir/config
/$x
12856 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12857 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12863 for f
in $tm_file; do
12866 if test $count = ax
; then
12867 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12869 echo "Using the following target machine macro files:"
12870 for f
in $tm_file; do
12871 echo " $srcdir/config/$f"
12875 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12877 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12881 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12883 cat >>confdefs.h
<<_ACEOF
12884 #define HAVE_GNU_LD $gnu_ld_bool
12888 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12890 cat >>confdefs.h
<<_ACEOF
12891 #define HAVE_GNU_AS $gnu_as_bool
12896 for f
in $host_xm_file; do
12899 if test $count = a
; then
12901 elif test $count = ax
; then
12902 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12904 echo "Using the following host machine macro files:"
12905 for f
in $host_xm_file; do
12906 echo " $srcdir/config/$f"
12909 echo "Using ${out_host_hook_obj} for host machine hooks."
12911 if test "$host_xm_file" != "$build_xm_file"; then
12913 for f
in $build_xm_file; do
12916 if test $count = a
; then
12918 elif test $count = ax
; then
12919 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12921 echo "Using the following build machine macro files:"
12922 for f
in $build_xm_file; do
12923 echo " $srcdir/config/$f"
12928 if test -n "$configured_native_system_header_dir"; then
12929 native_system_header_dir
=$configured_native_system_header_dir
12931 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12935 powerpc
*-*-darwin*)
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12937 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12938 if ${gcc_cv_mcontext_underscores+:} false
; then :
12939 $as_echo_n "(cached) " >&6
12941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 #include <sys/cdefs.h>
12945 #include <sys/signal.h>
12946 #include <ucontext.h>
12947 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12950 if ac_fn_cxx_try_compile
"$LINENO"; then :
12951 gcc_cv_mcontext_underscores
=no
12953 gcc_cv_mcontext_underscores
=yes
12955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12958 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12959 if test $gcc_cv_mcontext_underscores = yes; then
12961 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12971 # Check if a valid thread package
12972 case ${enable_threads} in
12975 target_thread_file
='single'
12979 target_thread_file
='single'
12981 aix | dce | lynx | mipssde | posix | rtems | \
12982 single | tpf | vxworks | win32 | mcf
)
12983 target_thread_file
=${enable_threads}
12986 echo "${enable_threads} is an unknown thread package" 1>&2
12991 if test x
${thread_file} = x
; then
12992 # No thread file set by target-specific clauses in config.gcc,
12993 # so use file chosen by default logic above
12994 thread_file
=${target_thread_file}
13002 if test x
$enable___cxa_atexit = xyes || \
13003 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13004 if test x
$host = x
$target; then
13006 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13007 # keyed to flag_use_cxa_atexit
13015 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13016 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13019 echo "__cxa_atexit can't be enabled on this target"
13025 # We can't check for __cxa_atexit when building a cross, so assume
13029 if test x
$use_cxa_atexit = xyes
; then
13031 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13036 # Look for a file containing extra machine modes.
13037 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13038 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13041 cat >>confdefs.h
<<_ACEOF
13042 #define EXTRA_MODES_FILE "config/$extra_modes"
13047 # Convert extra_options into a form suitable for Makefile use.
13050 for f
in $extra_options; do
13051 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13052 all_opt_files
="$all_opt_files $srcdir/config/$f"
13056 # auto-host.h is the file containing items generated by autoconf and is
13057 # the first file included by config.h.
13058 # If host=build, it is correct to have bconfig include auto-host.h
13059 # as well. If host!=build, we are in error and need to do more
13060 # work to find out the build config parameters.
13061 if test x
$host = x
$build
13063 build_auto
=auto-host.h
13064 HAVE_AUTO_BUILD
='# '
13066 # We create a subdir, then run autoconf in the subdir.
13067 # To prevent recursion we set host and build for the new
13068 # invocation of configure to the build for this invocation
13075 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13076 *) realsrcdir
=..
/${srcdir};;
13078 # Clearing GMPINC is necessary to prevent host headers being
13079 # used by the build compiler. Defining GENERATOR_FILE stops
13080 # system.h from including gmp.h.
13081 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13082 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13083 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13084 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13085 ${realsrcdir}/configure \
13086 --enable-languages=${enable_languages-all} \
13087 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13088 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13089 --target=$target_alias --host=$build_alias \
13090 --build=$build_alias ||
exit # retaining $tempdir
13092 # We just finished tests for the build machine, so rename
13093 # the file auto-build.h in the gcc directory.
13094 mv auto-host.h ..
/auto-build.h
13097 build_auto
=auto-build.h
13103 tm_file
="${tm_file} defaults.h"
13104 tm_p_file
="${tm_p_file} tm-preds.h"
13105 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13106 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13107 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13108 # put this back in temporarily.
13109 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13115 # Compile in configure arguments.
13116 if test -f configargs.h
; then
13117 # Being re-configured.
13118 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13119 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13120 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13121 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13124 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13127 # Double all backslashes and backslash all quotes to turn
13128 # gcc_config_arguments into a C string.
13129 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13130 $gcc_config_arguments
13132 gcc_config_arguments_str
=`cat conftest.out`
13135 cat > configargs.h
<<EOF
13136 /* Generated automatically. */
13137 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13138 static const char thread_model[] = "$thread_file";
13140 static const struct {
13141 const char *name, *value;
13142 } configure_default_options[] = $configure_default_options;
13145 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13146 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13147 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13148 if test -f $srcdir/REVISION
; then
13149 gcc_REVISION
=`cat $srcdir/REVISION`
13153 cat > plugin-version.h
<<EOF
13154 #include "configargs.h"
13156 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13157 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13158 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13159 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13161 static char basever[] = "$gcc_BASEVER";
13162 static char datestamp[] = "$gcc_DATESTAMP";
13163 static char devphase[] = "$gcc_DEVPHASE";
13164 static char revision[] = "$gcc_REVISION";
13166 /* FIXME plugins: We should make the version information more precise.
13167 One way to do is to add a checksum. */
13169 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13170 devphase, revision,
13171 configuration_arguments};
13174 # Determine what GCC version number to use in filesystem paths.
13176 get_gcc_base_ver
="cat"
13178 # Check whether --with-gcc-major-version-only was given.
13179 if test "${with_gcc_major_version_only+set}" = set; then :
13180 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13181 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13189 # Internationalization
13190 # If we haven't got the data from the intl directory,
13191 # assume NLS is disabled.
13200 if test -f ..
/intl
/config.intl
; then
13201 . ..
/intl
/config.intl
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13204 $as_echo_n "checking whether NLS is requested... " >&6; }
13205 if test x
"$USE_NLS" != xyes
; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13210 $as_echo "yes" >&6; }
13212 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13216 $as_echo_n "checking for catalogs to be installed... " >&6; }
13217 # Look for .po and .gmo files in the source directory.
13220 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13221 # If there aren't any .gmo files the shell will give us the
13222 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13224 case "$cat" in *\
**)
13227 # The quadruple backslash is collapsed to a double backslash
13228 # by the backticks, then collapsed again by the double quotes,
13229 # leaving us with one backslash in the sed expression (right
13230 # before the dot that mustn't act as a wildcard).
13231 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13232 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13233 # The user is allowed to set LINGUAS to a list of languages to
13234 # install catalogs for. If it's empty that means "all of them."
13235 if test "x$LINGUAS" = x
; then
13236 CATALOGS
="$CATALOGS $cat"
13237 XLINGUAS
="$XLINGUAS $lang"
13239 case "$LINGUAS" in *$lang*)
13240 CATALOGS
="$CATALOGS $cat"
13241 XLINGUAS
="$XLINGUAS $lang"
13246 LINGUAS
="$XLINGUAS"
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13248 $as_echo "$LINGUAS" >&6; }
13261 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13262 # -liconv on the link line twice.
13263 case "$LIBINTL" in *$LIBICONV*)
13267 # Check whether --enable-secureplt was given.
13268 if test "${enable_secureplt+set}" = set; then :
13269 enableval
=$enable_secureplt;
13273 # Check whether --enable-mingw-wildcard was given.
13274 if test "${enable_mingw_wildcard+set}" = set; then :
13275 enableval
=$enable_mingw_wildcard;
13277 enable_mingw_wildcard
=platform
13280 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13282 cat >>confdefs.h
<<_ACEOF
13283 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13288 # Check whether --enable-large-address-aware was given.
13289 if test "${enable_large_address_aware+set}" = set; then :
13290 enableval
=$enable_large_address_aware;
13293 if test x
"$enable_large_address_aware" = xyes
; then :
13295 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13299 # Check whether --enable-leading-mingw64-underscores was given.
13300 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13301 enableval
=$enable_leading_mingw64_underscores;
13304 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13306 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13310 # Check whether --enable-cld was given.
13311 if test "${enable_cld+set}" = set; then :
13312 enableval
=$enable_cld;
13318 # Check whether --enable-frame-pointer was given.
13319 if test "${enable_frame_pointer+set}" = set; then :
13320 enableval
=$enable_frame_pointer;
13324 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13325 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13326 enable_frame_pointer
=no
13329 enable_frame_pointer
=yes
13337 i
[34567]86-*-* | x86_64-
*-*)
13338 if test "x$enable_cld" = xyes
; then
13339 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13341 if test "x$enable_frame_pointer" = xyes
; then
13342 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13347 # Windows32 Registry support for specifying GCC installation paths.
13348 # Check whether --enable-win32-registry was given.
13349 if test "${enable_win32_registry+set}" = set; then :
13350 enableval
=$enable_win32_registry;
13355 win32 | pe | cygwin
* | mingw32
*)
13356 if test "x$enable_win32_registry" != xno
; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13358 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13359 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13360 $as_echo_n "(cached) " >&6
13362 ac_func_search_save_LIBS
=$LIBS
13363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 /* Override any GCC internal prototype to avoid an error.
13367 Use char because int might match the return type of a GCC
13368 builtin and then its argument prototype would still apply. */
13372 char RegOpenKeyExA ();
13376 return RegOpenKeyExA ();
13381 for ac_lib
in '' advapi32
; do
13382 if test -z "$ac_lib"; then
13383 ac_res
="none required"
13386 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13388 if ac_fn_cxx_try_link
"$LINENO"; then :
13389 ac_cv_search_RegOpenKeyExA
=$ac_res
13391 rm -f core conftest.err conftest.
$ac_objext \
13393 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13397 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13400 ac_cv_search_RegOpenKeyExA
=no
13402 rm conftest.
$ac_ext
13403 LIBS
=$ac_func_search_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13406 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13407 ac_res
=$ac_cv_search_RegOpenKeyExA
13408 if test "$ac_res" != no
; then :
13409 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13412 enable_win32_registry
=no
13417 if test "x$enable_win32_registry" != xno
; then
13419 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13422 if test "x$enable_win32_registry" != xyes \
13423 && test "x$enable_win32_registry" != x
; then
13425 cat >>confdefs.h
<<_ACEOF
13426 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13434 # Get an absolute path to the GCC top-level source directory
13435 holddir
=`${PWDCMD-pwd}`
13437 topdir
=`${PWDCMD-pwd}`
13440 # Conditionalize the makefile for this host machine.
13442 for f
in ${host_xmake_file}
13444 if test -f ${srcdir}/config
/$f
13446 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13450 # Conditionalize the makefile for this target machine.
13452 for f
in ${tmake_file}
13454 if test -f ${srcdir}/config
/$f
13456 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13459 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13461 out_object_file
=`basename $out_file .cc`.o
13462 common_out_object_file
=`basename $common_out_file .cc`.o
13464 tm_file_list
="options.h"
13465 tm_include_list
="options.h insn-constants.h"
13466 for f
in $tm_file; do
13469 f
=`echo $f | sed 's/^..//'`
13470 tm_file_list
="${tm_file_list} $f"
13471 tm_include_list
="${tm_include_list} $f"
13474 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13475 tm_include_list
="${tm_include_list} $f"
13478 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13479 tm_include_list
="${tm_include_list} config/$f"
13486 for f
in $tm_p_file; do
13489 tm_p_file_list
="${tm_p_file_list} $f"
13490 tm_p_include_list
="${tm_p_include_list} $f"
13493 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13494 tm_p_include_list
="${tm_p_include_list} config/$f"
13500 for f
in $tm_d_file; do
13503 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13504 tm_d_include_list
="${tm_d_include_list} config/$f"
13511 for f
in $xm_file; do
13514 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13515 xm_include_list
="${xm_include_list} $f"
13518 xm_file_list
="${xm_file_list} $f"
13519 xm_include_list
="${xm_include_list} $f"
13522 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13523 xm_include_list
="${xm_include_list} config/$f"
13529 host_xm_include_list
=
13530 for f
in $host_xm_file; do
13533 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13534 host_xm_include_list
="${host_xm_include_list} $f"
13537 host_xm_file_list
="${host_xm_file_list} $f"
13538 host_xm_include_list
="${host_xm_include_list} $f"
13541 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13542 host_xm_include_list
="${host_xm_include_list} config/$f"
13547 build_xm_file_list
=
13548 for f
in $build_xm_file; do
13551 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13552 build_xm_include_list
="${build_xm_include_list} $f"
13554 auto-build.h | auto-host.h
)
13555 build_xm_file_list
="${build_xm_file_list} $f"
13556 build_xm_include_list
="${build_xm_include_list} $f"
13559 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13560 build_xm_include_list
="${build_xm_include_list} config/$f"
13565 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13566 # cross-compiler which does not use the native headers and libraries.
13567 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13570 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13571 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13573 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13574 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13575 if test "x$with_build_sysroot" != x
; then
13576 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13578 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13581 if test x
$host != x
$target
13583 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13585 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13586 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13587 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13590 if test "x$with_build_sysroot" != "x"; then
13591 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13592 elif test "x$with_sysroot" = x
; then
13593 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13594 elif test "x$with_sysroot" = xyes
; then
13595 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13597 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13600 target_header_dir
=${native_system_header_dir}
13603 # If this is a cross-compiler that does not
13604 # have its own set of headers then define
13607 # If this is using newlib, without having the headers available now,
13608 # then define inhibit_libc in LIBGCC2_CFLAGS.
13609 # This prevents libgcc2 from containing any code which requires libc
13611 : ${inhibit_libc=false}
13612 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13613 test x
$with_newlib = xyes
; } &&
13614 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13619 # When building gcc with a cross-compiler, we need to adjust things so
13620 # that the generator programs are still built with the native compiler.
13621 # Also, we cannot run fixincludes.
13623 # These are the normal (build=host) settings:
13624 CC_FOR_BUILD
='$(CC)'
13625 CXX_FOR_BUILD
='$(CXX)'
13626 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13627 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13628 BUILD_LDFLAGS
='$(LDFLAGS)'
13629 STMP_FIXINC
=stmp-fixinc
13631 # And these apply if build != host, or we are generating coverage data
13632 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13634 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13635 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13636 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13640 if test x
$enable_fixincludes = xno
;
13645 # Expand extra_headers to include complete path.
13646 # This substitutes for lots of t-* files.
13647 extra_headers_list
=
13648 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13649 for file in ${extra_headers} ; do
13650 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13653 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13654 if test x
"$use_gcc_tgmath" = xyes
13655 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13658 # Define collect2 in Makefile.
13659 case $host_can_use_collect2 in
13661 *) collect2
='collect2$(exeext)' ;;
13665 # Add a definition of USE_COLLECT2 if system wants one.
13666 case $use_collect2 in
13667 no
) use_collect2
= ;;
13670 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13671 xm_defines
="${xm_defines} USE_COLLECT2"
13672 case $host_can_use_collect2 in
13674 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13681 cat >>confdefs.h
<<_ACEOF
13682 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13686 # ---------------------------
13687 # Assembler & linker features
13688 # ---------------------------
13690 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13691 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13692 # However when ld-new is first executed from the build tree, libtool will
13693 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13694 # to the build tree. While doing this we need to use the previous-stage
13695 # linker, or we have an infinite loop. The presence of a shell script as
13696 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13697 # the gcc/collect-ld script. So we need to know how libtool works, or
13698 # exec-tool will fail.
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13704 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13709 macro_version
='2.2.7a'
13710 macro_revision
='1.3134'
13724 ltmain
="$ac_aux_dir/ltmain.sh"
13726 # Backslashify metacharacters that are still active within
13727 # double-quoted strings.
13728 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13730 # Same as above, but do not quote variable references.
13731 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13733 # Sed substitution to delay expansion of an escaped shell variable in a
13734 # double_quote_subst'ed string.
13735 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13737 # Sed substitution to delay expansion of an escaped single quote.
13738 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13740 # Sed substitution to avoid accidental globbing in evaled expressions
13741 no_glob_subst
='s/\*/\\\*/g'
13743 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13748 $as_echo_n "checking how to print strings... " >&6; }
13749 # Test print first, because it will be a builtin if present.
13750 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13753 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13756 # Use this function as a fallback that always works.
13757 func_fallback_echo ()
13759 eval 'cat <<_LTECHO_EOF
13763 ECHO='func_fallback_echo
'
13766 # func_echo_all arg...
13767 # Invoke $ECHO with all args, space-separated.
13774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13775 $as_echo "printf" >&6; } ;;
13776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13777 $as_echo "print -r" >&6; } ;;
13778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13779 $as_echo "cat" >&6; } ;;
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13796 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13797 if ${ac_cv_path_SED+:} false; then :
13798 $as_echo_n "(cached) " >&6
13800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13801 for ac_i in 1 2 3 4 5 6 7; do
13802 ac_script="$ac_script$as_nl$ac_script"
13804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13805 { ac_script=; unset ac_script;}
13806 if test -z "$SED"; then
13807 ac_path_SED_found=false
13808 # Loop through the user's path and
test for each of PROGNAME-LIST
13809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13810 for as_dir
in $PATH
13813 test -z "$as_dir" && as_dir
=.
13814 for ac_prog
in sed gsed
; do
13815 for ac_exec_ext
in '' $ac_executable_extensions; do
13816 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13817 as_fn_executable_p
"$ac_path_SED" ||
continue
13818 # Check for GNU ac_path_SED and select it if it is found.
13819 # Check for GNU $ac_path_SED
13820 case `"$ac_path_SED" --version 2>&1` in
13822 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13825 $as_echo_n 0123456789 >"conftest.in"
13828 cat "conftest.in" "conftest.in" >"conftest.tmp"
13829 mv "conftest.tmp" "conftest.in"
13830 cp "conftest.in" "conftest.nl"
13831 $as_echo '' >> "conftest.nl"
13832 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13833 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13834 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13835 if test $ac_count -gt ${ac_path_SED_max-0}; then
13836 # Best one so far, save it but keep looking for a better one
13837 ac_cv_path_SED
="$ac_path_SED"
13838 ac_path_SED_max
=$ac_count
13840 # 10*(2^10) chars as input seems more than enough
13841 test $ac_count -gt 10 && break
13843 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13846 $ac_path_SED_found && break 3
13851 if test -z "$ac_cv_path_SED"; then
13852 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13855 ac_cv_path_SED
=$SED
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13860 $as_echo "$ac_cv_path_SED" >&6; }
13861 SED
="$ac_cv_path_SED"
13864 test -z "$SED" && SED
=sed
13865 Xsed
="$SED -e 1s/^X//"
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13878 $as_echo_n "checking for fgrep... " >&6; }
13879 if ${ac_cv_path_FGREP+:} false
; then :
13880 $as_echo_n "(cached) " >&6
13882 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13883 then ac_cv_path_FGREP
="$GREP -F"
13885 if test -z "$FGREP"; then
13886 ac_path_FGREP_found
=false
13887 # Loop through the user's path and test for each of PROGNAME-LIST
13888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13889 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13892 test -z "$as_dir" && as_dir
=.
13893 for ac_prog
in fgrep
; do
13894 for ac_exec_ext
in '' $ac_executable_extensions; do
13895 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13896 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13897 # Check for GNU ac_path_FGREP and select it if it is found.
13898 # Check for GNU $ac_path_FGREP
13899 case `"$ac_path_FGREP" --version 2>&1` in
13901 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13904 $as_echo_n 0123456789 >"conftest.in"
13907 cat "conftest.in" "conftest.in" >"conftest.tmp"
13908 mv "conftest.tmp" "conftest.in"
13909 cp "conftest.in" "conftest.nl"
13910 $as_echo 'FGREP' >> "conftest.nl"
13911 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13912 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13913 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13915 # Best one so far, save it but keep looking for a better one
13916 ac_cv_path_FGREP
="$ac_path_FGREP"
13917 ac_path_FGREP_max
=$ac_count
13919 # 10*(2^10) chars as input seems more than enough
13920 test $ac_count -gt 10 && break
13922 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13925 $ac_path_FGREP_found && break 3
13930 if test -z "$ac_cv_path_FGREP"; then
13931 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13934 ac_cv_path_FGREP
=$FGREP
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13940 $as_echo "$ac_cv_path_FGREP" >&6; }
13941 FGREP
="$ac_cv_path_FGREP"
13944 test -z "$GREP" && GREP
=grep
13964 # Check whether --with-gnu-ld was given.
13965 if test "${with_gnu_ld+set}" = set; then :
13966 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13972 if test "$GCC" = yes; then
13973 # Check if gcc -print-prog-name=ld gives a path.
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13975 $as_echo_n "checking for ld used by $CC... " >&6; }
13978 # gcc leaves a trailing carriage return which upsets mingw
13979 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13981 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13984 # Accept absolute paths.
13986 re_direlt
='/[^/][^/]*/\.\./'
13987 # Canonicalize the pathname of ld
13988 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13989 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13990 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13992 test -z "$LD" && LD
="$ac_prog"
13995 # If it fails, then pretend we aren't using GCC.
13999 # If it is relative, then search for the first ld in PATH.
14000 with_gnu_ld
=unknown
14003 elif test "$with_gnu_ld" = yes; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14005 $as_echo_n "checking for GNU ld... " >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14008 $as_echo_n "checking for non-GNU ld... " >&6; }
14010 if ${lt_cv_path_LD+:} false
; then :
14011 $as_echo_n "(cached) " >&6
14013 if test -z "$LD"; then
14014 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14015 for ac_dir
in $PATH; do
14017 test -z "$ac_dir" && ac_dir
=.
14018 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14019 lt_cv_path_LD
="$ac_dir/$ac_prog"
14020 # Check to see if the program is GNU ld. I'd rather use --version,
14021 # but apparently some variants of GNU ld only accept -v.
14022 # Break only if it was the GNU/non-GNU ld that we prefer.
14023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14024 *GNU
* |
*'with BFD'*)
14025 test "$with_gnu_ld" != no
&& break
14028 test "$with_gnu_ld" != yes && break
14035 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14039 LD
="$lt_cv_path_LD"
14040 if test -n "$LD"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14042 $as_echo "$LD" >&6; }
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045 $as_echo "no" >&6; }
14047 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14049 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14050 if ${lt_cv_prog_gnu_ld+:} false
; then :
14051 $as_echo_n "(cached) " >&6
14053 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14054 case `$LD -v 2>&1 </dev/null` in
14055 *GNU
* |
*'with BFD'*)
14056 lt_cv_prog_gnu_ld
=yes
14059 lt_cv_prog_gnu_ld
=no
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14064 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14065 with_gnu_ld
=$lt_cv_prog_gnu_ld
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14076 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14077 if ${lt_cv_path_NM+:} false
; then :
14078 $as_echo_n "(cached) " >&6
14080 if test -n "$NM"; then
14081 # Let the user override the test.
14082 lt_cv_path_NM
="$NM"
14084 lt_nm_to_check
="${ac_tool_prefix}nm"
14085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14086 lt_nm_to_check
="$lt_nm_to_check nm"
14088 for lt_tmp_nm
in $lt_nm_to_check; do
14089 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14090 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14092 test -z "$ac_dir" && ac_dir
=.
14093 tmp_nm
="$ac_dir/$lt_tmp_nm"
14094 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14095 # Check to see if the nm accepts a BSD-compat flag.
14096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14097 # nm: unknown option "B" ignored
14098 # Tru64's nm complains that /dev/null is an invalid object file
14099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14100 */dev
/null
* |
*'Invalid file or object type'*)
14101 lt_cv_path_NM
="$tmp_nm -B"
14105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14107 lt_cv_path_NM
="$tmp_nm -p"
14111 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14112 continue # so that we can try to find one that supports BSD flags
14121 : ${lt_cv_path_NM=no}
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14125 $as_echo "$lt_cv_path_NM" >&6; }
14126 if test "$lt_cv_path_NM" != "no"; then
14127 NM
="$lt_cv_path_NM"
14129 # Didn't find any BSD compatible name lister, look for dumpbin.
14130 if test -n "$DUMPBIN"; then :
14131 # Let the user override the test.
14133 if test -n "$ac_tool_prefix"; then
14134 for ac_prog
in dumpbin
"link -dump"
14136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14137 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139 $as_echo_n "checking for $ac_word... " >&6; }
14140 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14141 $as_echo_n "(cached) " >&6
14143 if test -n "$DUMPBIN"; then
14144 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14147 for as_dir
in $PATH
14150 test -z "$as_dir" && as_dir
=.
14151 for ac_exec_ext
in '' $ac_executable_extensions; do
14152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14153 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 DUMPBIN
=$ac_cv_prog_DUMPBIN
14164 if test -n "$DUMPBIN"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14166 $as_echo "$DUMPBIN" >&6; }
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14173 test -n "$DUMPBIN" && break
14176 if test -z "$DUMPBIN"; then
14177 ac_ct_DUMPBIN
=$DUMPBIN
14178 for ac_prog
in dumpbin
"link -dump"
14180 # Extract the first word of "$ac_prog", so it can be a program name with args.
14181 set dummy
$ac_prog; ac_word
=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14185 $as_echo_n "(cached) " >&6
14187 if test -n "$ac_ct_DUMPBIN"; then
14188 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14191 for as_dir
in $PATH
14194 test -z "$as_dir" && as_dir
=.
14195 for ac_exec_ext
in '' $ac_executable_extensions; do
14196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14208 if test -n "$ac_ct_DUMPBIN"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14210 $as_echo "$ac_ct_DUMPBIN" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14217 test -n "$ac_ct_DUMPBIN" && break
14220 if test "x$ac_ct_DUMPBIN" = x
; then
14223 case $cross_compiling:$ac_tool_warned in
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14227 ac_tool_warned
=yes ;;
14229 DUMPBIN
=$ac_ct_DUMPBIN
14233 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14235 DUMPBIN
="$DUMPBIN -symbols"
14243 if test "$DUMPBIN" != ":"; then
14247 test -z "$NM" && NM
=nm
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14255 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14256 if ${lt_cv_nm_interface+:} false
; then :
14257 $as_echo_n "(cached) " >&6
14259 lt_cv_nm_interface
="BSD nm"
14260 echo "int some_variable = 0;" > conftest.
$ac_ext
14261 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14262 (eval "$ac_compile" 2>conftest.err
)
14263 cat conftest.err
>&5
14264 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14265 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14266 cat conftest.err
>&5
14267 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14268 cat conftest.out
>&5
14269 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14270 lt_cv_nm_interface
="MS dumpbin"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14275 $as_echo "$lt_cv_nm_interface" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14278 $as_echo_n "checking whether ln -s works... " >&6; }
14280 if test "$LN_S" = "ln -s"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14282 $as_echo "yes" >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14285 $as_echo "no, using $LN_S" >&6; }
14288 # find the maximum length of command line arguments
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14290 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14291 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14292 $as_echo_n "(cached) " >&6
14299 # On DJGPP, this test can blow up pretty badly due to problems in libc
14300 # (any single argument exceeding 2000 bytes causes a buffer overrun
14301 # during glob expansion). Even if it were fixed, the result of this
14302 # check would be larger than it should be.
14303 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14307 # Under GNU Hurd, this test is not required because there is
14308 # no limit to the length of command line arguments.
14309 # Libtool will interpret -1 as no limit whatsoever
14310 lt_cv_sys_max_cmd_len
=-1;
14313 cygwin
* | mingw
* | cegcc
*)
14314 # On Win9x/ME, this test blows up -- it succeeds, but takes
14315 # about 5 minutes as the teststring grows exponentially.
14316 # Worse, since 9x/ME are not pre-emptively multitasking,
14317 # you end up with a "frozen" computer, even though with patience
14318 # the test eventually succeeds (with a max line length of 256k).
14319 # Instead, let's just punt: use the minimum linelength reported by
14320 # all of the supported platforms: 8192 (on NT/2K/XP).
14321 lt_cv_sys_max_cmd_len
=8192;
14325 # On MiNT this can take a long time and run out of memory.
14326 lt_cv_sys_max_cmd_len
=8192;
14330 # On AmigaOS with pdksh, this test takes hours, literally.
14331 # So we just punt and use a minimum line length of 8192.
14332 lt_cv_sys_max_cmd_len
=8192;
14335 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14336 # This has been around since 386BSD, at least. Likely further.
14337 if test -x /sbin
/sysctl
; then
14338 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14339 elif test -x /usr
/sbin
/sysctl
; then
14340 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14342 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14344 # And add a safety zone
14345 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14346 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14351 lt_cv_sys_max_cmd_len
=196608
14355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14357 # nice to cause kernel panics so lets avoid the loop below.
14358 # First set a reasonable default.
14359 lt_cv_sys_max_cmd_len
=16384
14361 if test -x /sbin
/sysconfig
; then
14362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14363 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14368 lt_cv_sys_max_cmd_len
=102400
14370 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14371 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14372 if test -n "$kargmax"; then
14373 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14375 lt_cv_sys_max_cmd_len
=32768
14379 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14380 if test -n "$lt_cv_sys_max_cmd_len"; then
14381 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14382 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14384 # Make teststring a little bigger before we do anything with it.
14385 # a 1K string should be a reasonable start.
14386 for i
in 1 2 3 4 5 6 7 8 ; do
14387 teststring
=$teststring$teststring
14389 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14390 # If test is not a shell built-in, we'll probably end up computing a
14391 # maximum length that is only half of the actual maximum length, but
14393 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14394 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14395 test $i != 17 # 1/2 MB should be enough
14398 teststring
=$teststring$teststring
14400 # Only check the string length outside the loop.
14401 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14403 # Add a significant safety factor because C++ compilers can tack on
14404 # massive amounts of additional arguments before passing them to the
14405 # linker. It appears as though 1/2 is a usable value.
14406 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14413 if test -n $lt_cv_sys_max_cmd_len ; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14415 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14418 $as_echo "none" >&6; }
14420 max_cmd_len
=$lt_cv_sys_max_cmd_len
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14432 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14433 # Try some XSI features
14435 ( _lt_dummy
="a/b/c"
14436 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14438 && eval 'test $(( 1 + 1 )) -eq 2 \
14439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14442 $as_echo "$xsi_shell" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14446 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14448 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14450 && lt_shell_append=yes
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14452 $as_echo "$lt_shell_append" >&6; }
14455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14465 # test EBCDIC or ASCII
14466 case `echo X|tr X '\101'` in
14467 A) # ASCII based system
14468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14469 lt_SP2NL='tr \040 \012'
14470 lt_NL2SP='tr \015\012 \040\040'
14472 *) # EBCDIC based system
14473 lt_SP2NL='tr \100 \n'
14474 lt_NL2SP='tr \r\n \100\100'
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14487 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14488 if ${lt_cv_ld_reload_flag+:} false; then :
14489 $as_echo_n "(cached
) " >&6
14491 lt_cv_ld_reload_flag='-r'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14494 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14495 reload_flag=$lt_cv_ld_reload_flag
14496 case $reload_flag in
14498 *) reload_flag=" $reload_flag" ;;
14500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14503 if test "$GCC" = yes; then
14504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14519 if test -n "$ac_tool_prefix"; then
14520 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14521 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14523 $as_echo_n "checking
for $ac_word...
" >&6; }
14524 if ${ac_cv_prog_OBJDUMP+:} false; then :
14525 $as_echo_n "(cached
) " >&6
14527 if test -n "$OBJDUMP"; then
14528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14547 OBJDUMP=$ac_cv_prog_OBJDUMP
14548 if test -n "$OBJDUMP"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14550 $as_echo "$OBJDUMP" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14553 $as_echo "no
" >&6; }
14558 if test -z "$ac_cv_prog_OBJDUMP"; then
14559 ac_ct_OBJDUMP=$OBJDUMP
14560 # Extract the first word of "objdump
", so it can be a program name with args.
14561 set dummy objdump; ac_word=$2
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14563 $as_echo_n "checking
for $ac_word...
" >&6; }
14564 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14565 $as_echo_n "(cached
) " >&6
14567 if test -n "$ac_ct_OBJDUMP"; then
14568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571 for as_dir in $PATH
14574 test -z "$as_dir" && as_dir=.
14575 for ac_exec_ext in '' $ac_executable_extensions; do
14576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14577 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14587 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14588 if test -n "$ac_ct_OBJDUMP"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14590 $as_echo "$ac_ct_OBJDUMP" >&6; }
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14593 $as_echo "no
" >&6; }
14596 if test "x
$ac_ct_OBJDUMP" = x; then
14599 case $cross_compiling:$ac_tool_warned in
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14602 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14603 ac_tool_warned=yes ;;
14605 OBJDUMP=$ac_ct_OBJDUMP
14608 OBJDUMP="$ac_cv_prog_OBJDUMP"
14611 test -z "$OBJDUMP" && OBJDUMP=objdump
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14622 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14623 if ${lt_cv_deplibs_check_method+:} false; then :
14624 $as_echo_n "(cached
) " >&6
14626 lt_cv_file_magic_cmd='$MAGIC_CMD'
14627 lt_cv_file_magic_test_file=
14628 lt_cv_deplibs_check_method='unknown'
14629 # Need to set the preceding variable on all platforms that support
14630 # interlibrary dependencies.
14631 # 'none' -- dependencies not supported.
14632 # `unknown' -- same as none, but documents that we really don't know.
14633 # 'pass_all' -- all dependencies passed with no checks.
14634 # 'test_compile' -- check by making test program.
14635 # 'file_magic [[regex]]' -- check by looking for files in library path
14636 # which responds to the $file_magic_cmd with a given extended regex.
14637 # If you have `file' or equivalent on your system and you're not sure
14638 # whether `pass_all' will *always* work, you probably want this one.
14642 lt_cv_deplibs_check_method=pass_all
14646 lt_cv_deplibs_check_method=pass_all
14650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14651 lt_cv_file_magic_cmd='/usr/bin/file -L'
14652 lt_cv_file_magic_test_file=/shlib/libc.so
14656 # func_win32_libid is a shell function defined in ltmain.sh
14657 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14658 lt_cv_file_magic_cmd='func_win32_libid'
14662 # Base MSYS/MinGW do not provide the 'file' command needed by
14663 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14664 # unless we find 'file', for example because we are cross-compiling.
14665 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14666 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14667 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14668 lt_cv_file_magic_cmd='func_win32_libid'
14670 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14671 lt_cv_file_magic_cmd='$OBJDUMP -f'
14676 # use the weaker test based on 'objdump'. See mingw*.
14677 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14678 lt_cv_file_magic_cmd='$OBJDUMP -f'
14681 darwin* | rhapsody*)
14682 lt_cv_deplibs_check_method=pass_all
14685 freebsd* | dragonfly*)
14686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14689 # Not sure whether the presence of OpenBSD here was a mistake.
14690 # Let's accept both of them until this is cleared up.
14691 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14692 lt_cv_file_magic_cmd=/usr/bin/file
14693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14697 lt_cv_deplibs_check_method=pass_all
14702 lt_cv_deplibs_check_method=pass_all
14706 lt_cv_deplibs_check_method=pass_all
14709 hpux10.20* | hpux11*)
14710 lt_cv_file_magic_cmd=/usr/bin/file
14713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14714 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14717 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]'
14718 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14722 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14728 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14732 irix5* | irix6* | nonstopux*)
14734 *-32|*"-32 ") libmagic=32-bit;;
14735 *-n32|*"-n32 ") libmagic=N32;;
14736 *-64|*"-64 ") libmagic=64-bit;;
14737 *) libmagic=never-match;;
14739 lt_cv_deplibs_check_method=pass_all
14742 # This must be Linux ELF.
14743 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14744 lt_cv_deplibs_check_method=pass_all
14748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14757 lt_cv_file_magic_cmd=/usr/bin/file
14758 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14762 lt_cv_deplibs_check_method=pass_all
14766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14773 osf3* | osf4* | osf5*)
14774 lt_cv_deplibs_check_method=pass_all
14778 lt_cv_deplibs_check_method=pass_all
14782 lt_cv_deplibs_check_method=pass_all
14785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14786 lt_cv_deplibs_check_method=pass_all
14790 case $host_vendor in
14792 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]'
14793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14796 lt_cv_deplibs_check_method=pass_all
14799 lt_cv_file_magic_cmd='/bin/file'
14800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14803 lt_cv_file_magic_cmd='/bin/file'
14804 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14805 lt_cv_file_magic_test_file=/lib/libc.so
14808 lt_cv_deplibs_check_method=pass_all
14811 lt_cv_deplibs_check_method=pass_all
14817 lt_cv_deplibs_check_method=pass_all
14820 # Assume VxWorks cross toolchains are built on Linux, possibly
14821 # as canadian for Windows hosts.
14822 lt_cv_deplibs_check_method=pass_all
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14828 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14829 file_magic_cmd=$lt_cv_file_magic_cmd
14830 deplibs_check_method=$lt_cv_deplibs_check_method
14831 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14844 if test -n "$ac_tool_prefix"; then
14845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14846 set dummy ${ac_tool_prefix}ar; ac_word=$2
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14848 $as_echo_n "checking
for $ac_word...
" >&6; }
14849 if ${ac_cv_prog_AR+:} false; then :
14850 $as_echo_n "(cached
) " >&6
14852 if test -n "$AR"; then
14853 ac_cv_prog_AR="$AR" # Let the user override the test.
14855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856 for as_dir in $PATH
14859 test -z "$as_dir" && as_dir=.
14860 for ac_exec_ext in '' $ac_executable_extensions; do
14861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14862 ac_cv_prog_AR="${ac_tool_prefix}ar"
14863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14873 if test -n "$AR"; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14875 $as_echo "$AR" >&6; }
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14878 $as_echo "no
" >&6; }
14883 if test -z "$ac_cv_prog_AR"; then
14885 # Extract the first word of "ar", so it can be a program name with args.
14886 set dummy ar; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14888 $as_echo_n "checking
for $ac_word...
" >&6; }
14889 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14890 $as_echo_n "(cached
) " >&6
14892 if test -n "$ac_ct_AR"; then
14893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14902 ac_cv_prog_ac_ct_AR="ar"
14903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14912 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14913 if test -n "$ac_ct_AR"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14915 $as_echo "$ac_ct_AR" >&6; }
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14918 $as_echo "no
" >&6; }
14921 if test "x
$ac_ct_AR" = x; then
14924 case $cross_compiling:$ac_tool_warned in
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14927 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14928 ac_tool_warned=yes ;;
14933 AR="$ac_cv_prog_AR"
14936 test -z "$AR" && AR=ar
14937 test -z "$AR_FLAGS" && AR_FLAGS=cru
14949 if test -n "$ac_tool_prefix"; then
14950 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14951 set dummy ${ac_tool_prefix}strip; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14953 $as_echo_n "checking
for $ac_word...
" >&6; }
14954 if ${ac_cv_prog_STRIP+:} false; then :
14955 $as_echo_n "(cached
) " >&6
14957 if test -n "$STRIP"; then
14958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14977 STRIP=$ac_cv_prog_STRIP
14978 if test -n "$STRIP"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14980 $as_echo "$STRIP" >&6; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14983 $as_echo "no
" >&6; }
14988 if test -z "$ac_cv_prog_STRIP"; then
14990 # Extract the first word of "strip
", so it can be a program name with args.
14991 set dummy strip; ac_word=$2
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14993 $as_echo_n "checking
for $ac_word...
" >&6; }
14994 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14995 $as_echo_n "(cached
) " >&6
14997 if test -n "$ac_ct_STRIP"; then
14998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15007 ac_cv_prog_ac_ct_STRIP="strip
"
15008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15018 if test -n "$ac_ct_STRIP"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15020 $as_echo "$ac_ct_STRIP" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15023 $as_echo "no
" >&6; }
15026 if test "x
$ac_ct_STRIP" = x; then
15029 case $cross_compiling:$ac_tool_warned in
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15032 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15033 ac_tool_warned=yes ;;
15038 STRIP="$ac_cv_prog_STRIP"
15041 test -z "$STRIP" && STRIP=:
15048 if test -n "$ac_tool_prefix"; then
15049 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15052 $as_echo_n "checking
for $ac_word...
" >&6; }
15053 if ${ac_cv_prog_RANLIB+:} false; then :
15054 $as_echo_n "(cached
) " >&6
15056 if test -n "$RANLIB"; then
15057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060 for as_dir in $PATH
15063 test -z "$as_dir" && as_dir=.
15064 for ac_exec_ext in '' $ac_executable_extensions; do
15065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15076 RANLIB=$ac_cv_prog_RANLIB
15077 if test -n "$RANLIB"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15079 $as_echo "$RANLIB" >&6; }
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15082 $as_echo "no
" >&6; }
15087 if test -z "$ac_cv_prog_RANLIB"; then
15088 ac_ct_RANLIB=$RANLIB
15089 # Extract the first word of "ranlib
", so it can be a program name with args.
15090 set dummy ranlib; ac_word=$2
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15092 $as_echo_n "checking
for $ac_word...
" >&6; }
15093 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15094 $as_echo_n "(cached
) " >&6
15096 if test -n "$ac_ct_RANLIB"; then
15097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 for as_dir in $PATH
15103 test -z "$as_dir" && as_dir=.
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15117 if test -n "$ac_ct_RANLIB"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15119 $as_echo "$ac_ct_RANLIB" >&6; }
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15122 $as_echo "no
" >&6; }
15125 if test "x
$ac_ct_RANLIB" = x; then
15128 case $cross_compiling:$ac_tool_warned in
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15131 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15132 ac_tool_warned=yes ;;
15134 RANLIB=$ac_ct_RANLIB
15137 RANLIB="$ac_cv_prog_RANLIB"
15140 test -z "$RANLIB" && RANLIB=:
15147 # Determine commands to create old-style static archives.
15148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15149 old_postinstall_cmds='chmod 644 $oldlib'
15150 old_postuninstall_cmds=
15152 if test -n "$RANLIB"; then
15155 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15158 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15161 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15166 lock_old_archive_extraction=yes ;;
15168 lock_old_archive_extraction=no ;;
15209 # If no C compiler was specified, use CC.
15212 # If no C compiler flags were specified, use CFLAGS.
15213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15215 # Allow CC to be a program name with arguments.
15219 # Check for command to grab the raw symbol name followed by C symbol from nm.
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15221 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15222 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15223 $as_echo_n "(cached
) " >&6
15226 # These are sane defaults that work on at least a few old systems.
15227 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15229 # Character class describing NM global symbol codes.
15230 symcode='[BCDEGRST]'
15232 # Regexp to match symbols that can be accessed directly from C.
15233 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15235 # Define system-specific variables.
15240 cygwin* | mingw* | pw32* | cegcc*)
15241 symcode='[ABCDGISTW]'
15244 if test "$host_cpu" = ia64; then
15245 symcode='[ABCDEGRST]'
15248 irix* | nonstopux*)
15249 symcode='[BCDEGRST]'
15252 symcode='[BCDEGQRST]'
15263 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15271 # If we're using GNU nm, then use its standard symbol codes.
15272 case `$NM -V 2>&1` in
15273 *GNU* | *'with BFD'*)
15274 symcode='[ABCDGIRSTW]' ;;
15277 # Transform an extracted symbol line into a proper C declaration.
15278 # Some systems (esp. on ia64) link data and code symbols differently,
15279 # so use this general approach.
15280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15282 # Transform an extracted symbol line into symbol name and symbol address
15283 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15284 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'"
15286 # Handle CRLF in mingw tool chain
15290 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15294 # Try without a prefix underscore, then with it.
15295 for ac_symprfx in "" "_
"; do
15297 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15298 symxfrm="\\1 $ac_symprfx\\2 \\2"
15300 # Write the raw and C identifiers.
15301 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15302 # Fake it for dumpbin and say T for any non-static function
15303 # and D for any global variable.
15304 # Also find C++ and __fastcall symbols from MSVC++,
15305 # which start with @ or ?.
15306 lt_cv_sys_global_symbol_pipe="$AWK '"\
15307 " {last_section=section; section=\$ 3};"\
15308 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15309 " \$ 0!~/External *\|/{next};"\
15310 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15311 " {if(hide[section]) next};"\
15312 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15313 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15314 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15315 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15316 " ' prfx
=^
$ac_symprfx"
15318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15321 # Check to see that the pipe works correctly.
15325 cat > conftest.$ac_ext <<_LT_EOF
15330 void nm_test_func(void);
15331 void nm_test_func(void){}
15335 int main(){nm_test_var='a';nm_test_func();return(0);}
15338 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15339 (eval $ac_compile) 2>&5
15341 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15342 test $ac_status = 0; }; then
15343 # Now try to grab the symbols.
15345 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15346 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15348 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15349 test $ac_status = 0; } && test -s "$nlist"; then
15350 # Try sorting and uniquifying the output.
15351 if sort "$nlist" | uniq > "$nlist"T; then
15352 mv -f "$nlist"T "$nlist"
15357 # Make sure that we snagged all the symbols we need.
15358 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15359 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15360 cat <<_LT_EOF > conftest.$ac_ext
15366 # Now generate the symbol file.
15367 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15369 cat <<_LT_EOF >> conftest.$ac_ext
15371 /* The mapping between symbol names and symbols. */
15376 lt__PROGRAM__LTX_preloaded_symbols[] =
15378 { "@PROGRAM@
", (void *) 0 },
15380 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15381 cat <<\_LT_EOF >> conftest.$ac_ext
15385 /* This works around a problem in FreeBSD linker */
15386 #ifdef FREEBSD_WORKAROUND
15387 static const void *lt_preloaded_setup() {
15388 return lt__PROGRAM__LTX_preloaded_symbols;
15396 # Now try linking the two files.
15397 mv conftest.$ac_objext conftstm.$ac_objext
15398 lt_save_LIBS="$LIBS"
15399 lt_save_CFLAGS="$CFLAGS"
15400 LIBS="conftstm.
$ac_objext"
15401 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15402 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15403 (eval $ac_link) 2>&5
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15406 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15409 LIBS="$lt_save_LIBS"
15410 CFLAGS="$lt_save_CFLAGS"
15412 echo "cannot
find nm_test_func
in $nlist" >&5
15415 echo "cannot
find nm_test_var
in $nlist" >&5
15418 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15421 echo "$progname: failed program was
:" >&5
15422 cat conftest.$ac_ext >&5
15424 rm -rf conftest* conftst*
15426 # Do not use the global_symbol_pipe unless it works.
15427 if test "$pipe_works" = yes; then
15430 lt_cv_sys_global_symbol_pipe=
15436 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15437 lt_cv_sys_global_symbol_to_cdecl=
15439 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15441 $as_echo "failed
" >&6; }
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15444 $as_echo "ok
" >&6; }
15468 # Check whether --enable-libtool-lock was given.
15469 if test "${enable_libtool_lock+set}" = set; then :
15470 enableval=$enable_libtool_lock;
15473 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15475 # Some flags need to be propagated to the compiler or linker for good
15479 # Find out which ABI we are using.
15480 echo 'int i;' > conftest.$ac_ext
15481 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15482 (eval $ac_compile) 2>&5
15484 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15485 test $ac_status = 0; }; then
15486 case `/usr/bin/file conftest.$ac_objext` in
15488 HPUX_IA64_MODE="32"
15491 HPUX_IA64_MODE="64"
15498 # Find out which ABI we are using.
15499 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15500 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15501 (eval $ac_compile) 2>&5
15503 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15504 test $ac_status = 0; }; then
15505 if test "$lt_cv_prog_gnu_ld" = yes; then
15506 case `/usr/bin/file conftest.$ac_objext` in
15508 LD="${LD-ld} -melf32bsmip"
15511 LD="${LD-ld} -melf32bmipn32"
15514 LD="${LD-ld} -melf64bmip"
15518 case `/usr/bin/file conftest.$ac_objext` in
15534 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15535 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15536 # Find out which ABI we are using.
15537 echo 'int i;' > conftest.$ac_ext
15538 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15539 (eval $ac_compile) 2>&5
15541 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15542 test $ac_status = 0; }; then
15543 case `/usr/bin/file conftest.o` in
15546 x86_64-*kfreebsd*-gnu)
15547 LD="${LD-ld} -m elf_i386_fbsd
"
15550 case `/usr/bin/file conftest.o` in
15552 LD="${LD-ld} -m elf32_x86_64
"
15555 LD="${LD-ld} -m elf_i386
"
15559 powerpc64le-*linux*)
15560 LD="${LD-ld} -m elf32lppclinux
"
15563 LD="${LD-ld} -m elf32ppclinux
"
15566 LD="${LD-ld} -m elf_s390
"
15569 LD="${LD-ld} -m elf32_sparc
"
15575 x86_64-*kfreebsd*-gnu)
15576 LD="${LD-ld} -m elf_x86_64_fbsd
"
15579 LD="${LD-ld} -m elf_x86_64
"
15582 LD="${LD-ld} -m elf64lppc
"
15585 LD="${LD-ld} -m elf64ppc
"
15587 s390*-*linux*|s390*-*tpf*)
15588 LD="${LD-ld} -m elf64_s390
"
15591 LD="${LD-ld} -m elf64_sparc
"
15601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15602 SAVE_CFLAGS="$CFLAGS"
15603 CFLAGS="$CFLAGS -belf"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15605 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15606 if ${lt_cv_cc_needs_belf+:} false; then :
15607 $as_echo_n "(cached
) " >&6
15610 ac_cpp='$CPP $CPPFLAGS'
15611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15626 if ac_fn_c_try_link "$LINENO"; then :
15627 lt_cv_cc_needs_belf=yes
15629 lt_cv_cc_needs_belf=no
15631 rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15641 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15644 CFLAGS="$SAVE_CFLAGS"
15648 # Find out which ABI we are using.
15649 echo 'int i;' > conftest.$ac_ext
15650 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15651 (eval $ac_compile) 2>&5
15653 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15654 test $ac_status = 0; }; then
15655 case `/usr/bin/file conftest.o` in
15657 case $lt_cv_prog_gnu_ld in
15658 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15660 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15672 need_locks="$enable_libtool_lock"
15676 rhapsody* | darwin*)
15677 if test -n "$ac_tool_prefix"; then
15678 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15681 $as_echo_n "checking
for $ac_word...
" >&6; }
15682 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15683 $as_echo_n "(cached
) " >&6
15685 if test -n "$DSYMUTIL"; then
15686 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15695 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15705 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15706 if test -n "$DSYMUTIL"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15708 $as_echo "$DSYMUTIL" >&6; }
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15711 $as_echo "no
" >&6; }
15716 if test -z "$ac_cv_prog_DSYMUTIL"; then
15717 ac_ct_DSYMUTIL=$DSYMUTIL
15718 # Extract the first word of "dsymutil
", so it can be a program name with args.
15719 set dummy dsymutil; ac_word=$2
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15721 $as_echo_n "checking
for $ac_word...
" >&6; }
15722 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15723 $as_echo_n "(cached
) " >&6
15725 if test -n "$ac_ct_DSYMUTIL"; then
15726 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729 for as_dir in $PATH
15732 test -z "$as_dir" && as_dir=.
15733 for ac_exec_ext in '' $ac_executable_extensions; do
15734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15735 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15745 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15746 if test -n "$ac_ct_DSYMUTIL"; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15748 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15751 $as_echo "no
" >&6; }
15754 if test "x
$ac_ct_DSYMUTIL" = x; then
15757 case $cross_compiling:$ac_tool_warned in
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15760 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15761 ac_tool_warned=yes ;;
15763 DSYMUTIL=$ac_ct_DSYMUTIL
15766 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15769 if test -n "$ac_tool_prefix"; then
15770 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15771 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15773 $as_echo_n "checking
for $ac_word...
" >&6; }
15774 if ${ac_cv_prog_NMEDIT+:} false; then :
15775 $as_echo_n "(cached
) " >&6
15777 if test -n "$NMEDIT"; then
15778 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15797 NMEDIT=$ac_cv_prog_NMEDIT
15798 if test -n "$NMEDIT"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15800 $as_echo "$NMEDIT" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15803 $as_echo "no
" >&6; }
15808 if test -z "$ac_cv_prog_NMEDIT"; then
15809 ac_ct_NMEDIT=$NMEDIT
15810 # Extract the first word of "nmedit
", so it can be a program name with args.
15811 set dummy nmedit; ac_word=$2
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15813 $as_echo_n "checking
for $ac_word...
" >&6; }
15814 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15815 $as_echo_n "(cached
) " >&6
15817 if test -n "$ac_ct_NMEDIT"; then
15818 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15827 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15828 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15838 if test -n "$ac_ct_NMEDIT"; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15840 $as_echo "$ac_ct_NMEDIT" >&6; }
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15843 $as_echo "no
" >&6; }
15846 if test "x
$ac_ct_NMEDIT" = x; then
15849 case $cross_compiling:$ac_tool_warned in
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15852 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15853 ac_tool_warned=yes ;;
15855 NMEDIT=$ac_ct_NMEDIT
15858 NMEDIT="$ac_cv_prog_NMEDIT"
15861 if test -n "$ac_tool_prefix"; then
15862 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15863 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15865 $as_echo_n "checking
for $ac_word...
" >&6; }
15866 if ${ac_cv_prog_LIPO+:} false; then :
15867 $as_echo_n "(cached
) " >&6
15869 if test -n "$LIPO"; then
15870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15876 test -z "$as_dir" && as_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15889 LIPO=$ac_cv_prog_LIPO
15890 if test -n "$LIPO"; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15892 $as_echo "$LIPO" >&6; }
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15895 $as_echo "no
" >&6; }
15900 if test -z "$ac_cv_prog_LIPO"; then
15902 # Extract the first word of "lipo
", so it can be a program name with args.
15903 set dummy lipo; ac_word=$2
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15905 $as_echo_n "checking
for $ac_word...
" >&6; }
15906 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15907 $as_echo_n "(cached
) " >&6
15909 if test -n "$ac_ct_LIPO"; then
15910 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_ac_ct_LIPO="lipo
"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15929 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15930 if test -n "$ac_ct_LIPO"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15932 $as_echo "$ac_ct_LIPO" >&6; }
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15935 $as_echo "no
" >&6; }
15938 if test "x
$ac_ct_LIPO" = x; then
15941 case $cross_compiling:$ac_tool_warned in
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15944 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15945 ac_tool_warned=yes ;;
15950 LIPO="$ac_cv_prog_LIPO"
15953 if test -n "$ac_tool_prefix"; then
15954 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15955 set dummy ${ac_tool_prefix}otool; ac_word=$2
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15957 $as_echo_n "checking
for $ac_word...
" >&6; }
15958 if ${ac_cv_prog_OTOOL+:} false; then :
15959 $as_echo_n "(cached
) " >&6
15961 if test -n "$OTOOL"; then
15962 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15965 for as_dir in $PATH
15968 test -z "$as_dir" && as_dir=.
15969 for ac_exec_ext in '' $ac_executable_extensions; do
15970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15971 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15972 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15981 OTOOL=$ac_cv_prog_OTOOL
15982 if test -n "$OTOOL"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15984 $as_echo "$OTOOL" >&6; }
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15987 $as_echo "no
" >&6; }
15992 if test -z "$ac_cv_prog_OTOOL"; then
15994 # Extract the first word of "otool
", so it can be a program name with args.
15995 set dummy otool; ac_word=$2
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15997 $as_echo_n "checking
for $ac_word...
" >&6; }
15998 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15999 $as_echo_n "(cached
) " >&6
16001 if test -n "$ac_ct_OTOOL"; then
16002 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16008 test -z "$as_dir" && as_dir=.
16009 for ac_exec_ext in '' $ac_executable_extensions; do
16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011 ac_cv_prog_ac_ct_OTOOL="otool
"
16012 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16021 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16022 if test -n "$ac_ct_OTOOL"; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16024 $as_echo "$ac_ct_OTOOL" >&6; }
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16027 $as_echo "no
" >&6; }
16030 if test "x
$ac_ct_OTOOL" = x; then
16033 case $cross_compiling:$ac_tool_warned in
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16036 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16037 ac_tool_warned=yes ;;
16042 OTOOL="$ac_cv_prog_OTOOL"
16045 if test -n "$ac_tool_prefix"; then
16046 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16047 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16049 $as_echo_n "checking
for $ac_word...
" >&6; }
16050 if ${ac_cv_prog_OTOOL64+:} false; then :
16051 $as_echo_n "(cached
) " >&6
16053 if test -n "$OTOOL64"; then
16054 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16057 for as_dir in $PATH
16060 test -z "$as_dir" && as_dir=.
16061 for ac_exec_ext in '' $ac_executable_extensions; do
16062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16073 OTOOL64=$ac_cv_prog_OTOOL64
16074 if test -n "$OTOOL64"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16076 $as_echo "$OTOOL64" >&6; }
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16079 $as_echo "no
" >&6; }
16084 if test -z "$ac_cv_prog_OTOOL64"; then
16085 ac_ct_OTOOL64=$OTOOL64
16086 # Extract the first word of "otool64
", so it can be a program name with args.
16087 set dummy otool64; ac_word=$2
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16089 $as_echo_n "checking
for $ac_word...
" >&6; }
16090 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16091 $as_echo_n "(cached
) " >&6
16093 if test -n "$ac_ct_OTOOL64"; then
16094 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16097 for as_dir in $PATH
16100 test -z "$as_dir" && as_dir=.
16101 for ac_exec_ext in '' $ac_executable_extensions; do
16102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16103 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16113 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16114 if test -n "$ac_ct_OTOOL64"; then
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16116 $as_echo "$ac_ct_OTOOL64" >&6; }
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16119 $as_echo "no
" >&6; }
16122 if test "x
$ac_ct_OTOOL64" = x; then
16125 case $cross_compiling:$ac_tool_warned in
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16128 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16129 ac_tool_warned=yes ;;
16131 OTOOL64=$ac_ct_OTOOL64
16134 OTOOL64="$ac_cv_prog_OTOOL64"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16164 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16165 if ${lt_cv_apple_cc_single_mod+:} false; then :
16166 $as_echo_n "(cached
) " >&6
16168 lt_cv_apple_cc_single_mod=no
16169 if test -z "${LT_MULTI_MODULE}"; then
16170 # By default we will add the -single_module flag. You can override
16171 # by either setting the environment variable LT_MULTI_MODULE
16172 # non-empty at configure time, or by adding -multi_module to the
16174 rm -rf libconftest.dylib*
16175 echo "int foo
(void
){return 1;}" > conftest.c
16176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16177 -dynamiclib -Wl,-single_module conftest.c
" >&5
16178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16181 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16182 lt_cv_apple_cc_single_mod=yes
16184 cat conftest.err >&5
16186 rm -rf libconftest.dylib*
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16191 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16193 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16194 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16195 $as_echo_n "(cached
) " >&6
16197 lt_cv_ld_exported_symbols_list=no
16198 save_LDFLAGS=$LDFLAGS
16199 echo "_main
" > conftest.sym
16200 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 lt_cv_ld_exported_symbols_list=yes
16215 lt_cv_ld_exported_symbols_list=no
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LDFLAGS="$save_LDFLAGS"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16223 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16225 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16226 if ${lt_cv_ld_force_load+:} false; then :
16227 $as_echo_n "(cached
) " >&6
16229 lt_cv_ld_force_load=no
16230 cat > conftest.c << _LT_EOF
16231 int forced_loaded() { return 2;}
16233 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16234 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16235 echo "$AR cru libconftest.a conftest.o
" >&5
16236 $AR cru libconftest.a conftest.o 2>&5
16237 cat > conftest.c << _LT_EOF
16238 int main() { return 0;}
16240 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16241 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16243 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16244 lt_cv_ld_force_load=yes
16246 cat conftest.err >&5
16248 rm -f conftest.err libconftest.a conftest conftest.c
16249 rm -rf conftest.dSYM
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16253 $as_echo "$lt_cv_ld_force_load" >&6; }
16254 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16255 # build without first building modern cctools / linker.
16256 case $host_cpu-$host_os in
16257 *-rhapsody* | *-darwin1.[012])
16258 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16262 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16263 # deployment target is forced to an earlier version.
16264 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16265 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16275 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16276 _lt_dar_single_mod='$single_module'
16278 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16279 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16283 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16284 _lt_dsymutil='~$DSYMUTIL $lib || :'
16292 for ac_header in dlfcn.h
16294 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16295 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16296 cat >>confdefs.h <<_ACEOF
16297 #define HAVE_DLFCN_H 1
16314 enable_win32_dll=no
16317 # Check whether --enable-shared was given.
16318 if test "${enable_shared+set}" = set; then :
16319 enableval=$enable_shared; p=${PACKAGE-default}
16321 yes) enable_shared=yes ;;
16322 no) enable_shared=no ;;
16325 # Look at the argument we got. We use all the common list separators.
16326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16327 for pkg in $enableval; do
16329 if test "X
$pkg" = "X
$p"; then
16348 # Check whether --enable-static was given.
16349 if test "${enable_static+set}" = set; then :
16350 enableval=$enable_static; p=${PACKAGE-default}
16352 yes) enable_static=yes ;;
16353 no) enable_static=no ;;
16356 # Look at the argument we got. We use all the common list separators.
16357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16358 for pkg in $enableval; do
16360 if test "X
$pkg" = "X
$p"; then
16380 # Check whether --with-pic was given.
16381 if test "${with_pic+set}" = set; then :
16382 withval=$with_pic; pic_mode="$withval"
16388 test -z "$pic_mode" && pic_mode=default
16396 # Check whether --enable-fast-install was given.
16397 if test "${enable_fast_install+set}" = set; then :
16398 enableval=$enable_fast_install; p=${PACKAGE-default}
16400 yes) enable_fast_install=yes ;;
16401 no) enable_fast_install=no ;;
16403 enable_fast_install=no
16404 # Look at the argument we got. We use all the common list separators.
16405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16406 for pkg in $enableval; do
16408 if test "X
$pkg" = "X
$p"; then
16409 enable_fast_install=yes
16416 enable_fast_install=yes
16429 # This can be used to rebuild libtool when needed
16430 LIBTOOL_DEPS="$ltmain"
16432 # Always use our own libtool.
16433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16460 test -z "$LN_S" && LN_S="ln -s"
16475 if test -n "${ZSH_VERSION+set}" ; then
16476 setopt NO_GLOB_SUBST
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16480 $as_echo_n "checking
for objdir...
" >&6; }
16481 if ${lt_cv_objdir+:} false; then :
16482 $as_echo_n "(cached
) " >&6
16484 rm -f .libs 2>/dev/null
16485 mkdir .libs 2>/dev/null
16486 if test -d .libs; then
16489 # MS-DOS does not allow filenames that begin with a dot.
16492 rmdir .libs 2>/dev/null
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16495 $as_echo "$lt_cv_objdir" >&6; }
16496 objdir=$lt_cv_objdir
16502 cat >>confdefs.h <<_ACEOF
16503 #define LT_OBJDIR "$lt_cv_objdir/"
16511 # AIX sometimes has problems with the GCC collect2 program. For some
16512 # reason, if we set the COLLECT_NAMES environment variable, the problems
16513 # vanish in a puff of smoke.
16514 if test "X
${COLLECT_NAMES+set}" != Xset; then
16516 export COLLECT_NAMES
16521 # Global variables:
16523 can_build_shared=yes
16525 # All known linkers require a `.a' archive for static linking (except MSVC,
16526 # which needs '.lib').
16529 with_gnu_ld="$lt_cv_prog_gnu_ld"
16532 old_CFLAGS="$CFLAGS"
16534 # Set sane defaults for various variables
16535 test -z "$CC" && CC=cc
16536 test -z "$LTCC" && LTCC=$CC
16537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16538 test -z "$LD" && LD=ld
16539 test -z "$ac_objext" && ac_objext=o
16541 for cc_temp in $compiler""; do
16543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16549 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16552 # Only perform the check for file, if the check method requires it
16553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16554 case $deplibs_check_method in
16556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16558 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16560 $as_echo_n "(cached
) " >&6
16564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16567 lt_save_MAGIC_CMD="$MAGIC_CMD"
16568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16569 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16570 for ac_dir in $ac_dummy; do
16572 test -z "$ac_dir" && ac_dir=.
16573 if test -f $ac_dir/${ac_tool_prefix}file; then
16574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16575 if test -n "$file_magic_test_file"; then
16576 case $deplibs_check_method in
16578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16581 $EGREP "$file_magic_regex" > /dev/null; then
16586 *** Warning: the command libtool uses to detect shared libraries,
16587 *** $file_magic_cmd, produces output that libtool cannot recognize.
16588 *** The result is that libtool may fail to recognize shared libraries
16589 *** as such. This will affect the creation of libtool libraries that
16590 *** depend on shared libraries, but programs linked with such libtool
16591 *** libraries will work regardless of this problem. Nevertheless, you
16592 *** may want to report the problem to your system manager and/or to
16593 *** bug-libtool@gnu.org
16603 MAGIC_CMD="$lt_save_MAGIC_CMD"
16608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16609 if test -n "$MAGIC_CMD"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16611 $as_echo "$MAGIC_CMD" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16614 $as_echo "no
" >&6; }
16621 if test -z "$lt_cv_path_MAGIC_CMD"; then
16622 if test -n "$ac_tool_prefix"; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16624 $as_echo_n "checking
for file...
" >&6; }
16625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16626 $as_echo_n "(cached
) " >&6
16630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16633 lt_save_MAGIC_CMD="$MAGIC_CMD"
16634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16635 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16636 for ac_dir in $ac_dummy; do
16638 test -z "$ac_dir" && ac_dir=.
16639 if test -f $ac_dir/file; then
16640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16641 if test -n "$file_magic_test_file"; then
16642 case $deplibs_check_method in
16644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16647 $EGREP "$file_magic_regex" > /dev/null; then
16652 *** Warning: the command libtool uses to detect shared libraries,
16653 *** $file_magic_cmd, produces output that libtool cannot recognize.
16654 *** The result is that libtool may fail to recognize shared libraries
16655 *** as such. This will affect the creation of libtool libraries that
16656 *** depend on shared libraries, but programs linked with such libtool
16657 *** libraries will work regardless of this problem. Nevertheless, you
16658 *** may want to report the problem to your system manager and/or to
16659 *** bug-libtool@gnu.org
16669 MAGIC_CMD="$lt_save_MAGIC_CMD"
16674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16675 if test -n "$MAGIC_CMD"; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16677 $as_echo "$MAGIC_CMD" >&6; }
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16680 $as_echo "no
" >&6; }
16693 # Use C for the default configuration in the libtool script
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703 # Source file extension for C test sources.
16706 # Object file extension for compiled C test sources.
16710 # Code to be used in simple compile tests
16711 lt_simple_compile_test_code="int some_variable
= 0;"
16713 # Code to be used in simple link tests
16714 lt_simple_link_test_code='int main(){return(0);}'
16722 # If no C compiler was specified, use CC.
16725 # If no C compiler flags were specified, use CFLAGS.
16726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16728 # Allow CC to be a program name with arguments.
16731 # Save the default compiler, since it gets overwritten when the other
16732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16733 compiler_DEFAULT=$CC
16735 # save warnings/boilerplate of simple test code
16736 ac_outfile=conftest.$ac_objext
16737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16739 _lt_compiler_boilerplate=`cat conftest.err`
16742 ac_outfile=conftest.$ac_objext
16743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16745 _lt_linker_boilerplate=`cat conftest.err`
16750 ## There is no encapsulation within the following macros, do not change
16751 ## the running order or otherwise move them around unless you know exactly
16752 ## what you are doing...
16753 if test -n "$compiler"; then
16755 lt_prog_compiler_no_builtin_flag=
16757 if test "$GCC" = yes; then
16758 case $cc_basename in
16760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16766 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16767 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16768 $as_echo_n "(cached
) " >&6
16770 lt_cv_prog_compiler_rtti_exceptions=no
16771 ac_outfile=conftest.$ac_objext
16772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16773 lt_compiler_flag="-fno-rtti -fno-exceptions"
16774 # Insert the option either (1) after the last *FLAGS variable, or
16775 # (2) before a word containing "conftest.
", or (3) at the end.
16776 # Note that $ac_compile itself does not contain backslashes and begins
16777 # with a dollar sign (not a hyphen), so the echo should work correctly.
16778 # The option is referenced via a variable to avoid confusing sed.
16779 lt_compile=`echo "$ac_compile" | $SED \
16780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782 -e 's:$: $lt_compiler_flag:'`
16783 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16784 (eval "$lt_compile" 2>conftest.err)
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16788 if (exit $ac_status) && test -s "$ac_outfile"; then
16789 # The compiler can only warn and ignore the option if not recognized
16790 # So say no if there are warnings other than the usual output.
16791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16794 lt_cv_prog_compiler_rtti_exceptions=yes
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16816 lt_prog_compiler_wl=
16817 lt_prog_compiler_pic=
16818 lt_prog_compiler_static=
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16821 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16823 if test "$GCC" = yes; then
16824 lt_prog_compiler_wl='-Wl,'
16825 lt_prog_compiler_static='-static'
16829 # All AIX code is PIC.
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static='-Bstatic'
16834 lt_prog_compiler_pic='-fPIC'
16840 # see comment about AmigaOS4 .so support
16841 lt_prog_compiler_pic='-fPIC'
16844 # FIXME: we need at least 68020 code to build shared libraries, but
16845 # adding the `-m68020' flag to GCC prevents building anything better,
16847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16853 # PIC is the default for these OSes.
16856 mingw* | cygwin* | pw32* | os2* | cegcc*)
16857 # This hack is so that the source file can tell whether it is being
16858 # built for inclusion in a dll (and should export symbols for example).
16859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16860 # (--disable-auto-import) libraries
16861 lt_prog_compiler_pic='-DDLL_EXPORT'
16864 darwin* | rhapsody*)
16865 # PIC is the default on this platform
16866 # Common symbols not allowed in MH_DYLIB files
16867 lt_prog_compiler_pic='-fno-common'
16871 # PIC is the default for Haiku.
16872 # The "-static" flag exists, but is broken.
16873 lt_prog_compiler_static=
16877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16879 # sets the default TLS model and affects inlining.
16885 lt_prog_compiler_pic='-fPIC'
16891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16892 # Instead, we relocate shared libraries at runtime.
16896 # Just because we use GCC doesn't mean we suddenly get shared libraries
16897 # on systems that don't support them.
16898 lt_prog_compiler_can_build_shared=no
16903 # QNX uses GNU C++, but need to define -shared option too, otherwise
16904 # it will coredump.
16905 lt_prog_compiler_pic='-fPIC -shared'
16909 if test -d /usr/nec; then
16910 lt_prog_compiler_pic=-Kconform_pic
16915 lt_prog_compiler_pic='-fPIC'
16919 case $cc_basename in
16920 nvcc*) # Cuda Compiler Driver 2.2
16921 lt_prog_compiler_wl='-Xlinker '
16922 lt_prog_compiler_pic='-Xcompiler -fPIC'
16926 # PORTME Check for flag to pass linker flags through the system compiler.
16929 lt_prog_compiler_wl='-Wl,'
16930 if test "$host_cpu" = ia64; then
16931 # AIX 5 now supports IA64 processor
16932 lt_prog_compiler_static='-Bstatic'
16934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16938 mingw* | cygwin* | pw32* | os2* | cegcc*)
16939 # This hack is so that the source file can tell whether it is being
16940 # built for inclusion in a dll (and should export symbols for example).
16941 lt_prog_compiler_pic='-DDLL_EXPORT'
16944 hpux9* | hpux10* | hpux11*)
16945 lt_prog_compiler_wl='-Wl,'
16946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16947 # not for PA HP-UX.
16953 lt_prog_compiler_pic='+Z'
16956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16957 lt_prog_compiler_static='${wl}-a ${wl}archive'
16960 irix5* | irix6* | nonstopux*)
16961 lt_prog_compiler_wl='-Wl,'
16962 # PIC (with -KPIC) is the default.
16963 lt_prog_compiler_static='-non_shared'
16966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16967 case $cc_basename in
16968 # old Intel for x86_64 which still supported -KPIC.
16970 lt_prog_compiler_wl='-Wl,'
16971 lt_prog_compiler_pic='-KPIC'
16972 lt_prog_compiler_static='-static'
16974 # icc used to be incompatible with GCC.
16975 # ICC 10 doesn't accept -KPIC any more.
16977 lt_prog_compiler_wl='-Wl,'
16978 lt_prog_compiler_pic='-fPIC'
16979 lt_prog_compiler_static='-static'
16981 # Lahey Fortran 8.1.
16983 lt_prog_compiler_wl='-Wl,'
16984 lt_prog_compiler_pic='--shared'
16985 lt_prog_compiler_static='--static'
16987 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16988 # Portland Group compilers (*not* the Pentium gcc compiler,
16989 # which looks to be a dead project)
16990 lt_prog_compiler_wl='-Wl,'
16991 lt_prog_compiler_pic='-fpic'
16992 lt_prog_compiler_static='-Bstatic'
16995 lt_prog_compiler_wl='-Wl,'
16996 # All Alpha code is PIC.
16997 lt_prog_compiler_static='-non_shared'
16999 xl* | bgxl* | bgf* | mpixl*)
17000 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_pic='-qpic'
17003 lt_prog_compiler_static='-qstaticlink'
17006 case `$CC -V 2>&1 | sed 5q` in
17007 *Sun\ F* | *Sun*Fortran*)
17008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17009 lt_prog_compiler_pic='-KPIC'
17010 lt_prog_compiler_static='-Bstatic'
17011 lt_prog_compiler_wl=''
17015 lt_prog_compiler_pic='-KPIC'
17016 lt_prog_compiler_static='-Bstatic'
17017 lt_prog_compiler_wl='-Wl,'
17025 lt_prog_compiler_pic='-KPIC'
17026 lt_prog_compiler_static='-Bstatic'
17030 # QNX uses GNU C++, but need to define -shared option too, otherwise
17031 # it will coredump.
17032 lt_prog_compiler_pic='-fPIC -shared'
17035 osf3* | osf4* | osf5*)
17036 lt_prog_compiler_wl='-Wl,'
17037 # All OSF/1 code is PIC.
17038 lt_prog_compiler_static='-non_shared'
17042 lt_prog_compiler_static='-non_shared'
17046 lt_prog_compiler_pic='-KPIC'
17047 lt_prog_compiler_static='-Bstatic'
17048 case $cc_basename in
17049 f77* | f90* | f95*)
17050 lt_prog_compiler_wl='-Qoption ld ';;
17052 lt_prog_compiler_wl='-Wl,';;
17057 lt_prog_compiler_wl='-Qoption ld '
17058 lt_prog_compiler_pic='-PIC'
17059 lt_prog_compiler_static='-Bstatic'
17062 sysv4 | sysv4.2uw2* | sysv4.3*)
17063 lt_prog_compiler_wl='-Wl,'
17064 lt_prog_compiler_pic='-KPIC'
17065 lt_prog_compiler_static='-Bstatic'
17069 if test -d /usr/nec ;then
17070 lt_prog_compiler_pic='-Kconform_pic'
17071 lt_prog_compiler_static='-Bstatic'
17075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17076 lt_prog_compiler_wl='-Wl,'
17077 lt_prog_compiler_pic='-KPIC'
17078 lt_prog_compiler_static='-Bstatic'
17082 lt_prog_compiler_wl='-Wl,'
17083 lt_prog_compiler_can_build_shared=no
17087 lt_prog_compiler_pic='-pic'
17088 lt_prog_compiler_static='-Bstatic'
17092 lt_prog_compiler_can_build_shared=no
17098 # For platforms which do not support PIC, -DPIC is meaningless:
17100 lt_prog_compiler_pic=
17103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17107 $as_echo "$lt_prog_compiler_pic" >&6; }
17115 # Check to make sure the PIC flag actually works.
17117 if test -n "$lt_prog_compiler_pic"; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17119 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17120 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17121 $as_echo_n "(cached
) " >&6
17123 lt_cv_prog_compiler_pic_works=no
17124 ac_outfile=conftest.$ac_objext
17125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17127 # Insert the option either (1) after the last *FLAGS variable, or
17128 # (2) before a word containing "conftest.
", or (3) at the end.
17129 # Note that $ac_compile itself does not contain backslashes and begins
17130 # with a dollar sign (not a hyphen), so the echo should work correctly.
17131 # The option is referenced via a variable to avoid confusing sed.
17132 lt_compile=`echo "$ac_compile" | $SED \
17133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17135 -e 's:$: $lt_compiler_flag:'`
17136 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17137 (eval "$lt_compile" 2>conftest.err)
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17141 if (exit $ac_status) && test -s "$ac_outfile"; then
17142 # The compiler can only warn and ignore the option if not recognized
17143 # So say no if there are warnings other than the usual output.
17144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17147 lt_cv_prog_compiler_pic_works=yes
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17154 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17156 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17157 case $lt_prog_compiler_pic in
17159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17162 lt_prog_compiler_pic=
17163 lt_prog_compiler_can_build_shared=no
17174 # Check to make sure the static flag actually works.
17176 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17178 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17179 if ${lt_cv_prog_compiler_static_works+:} false; then :
17180 $as_echo_n "(cached
) " >&6
17182 lt_cv_prog_compiler_static_works=no
17183 save_LDFLAGS="$LDFLAGS"
17184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17187 # The linker can only warn and ignore the option if not recognized
17188 # So say no if there are warnings
17189 if test -s conftest.err; then
17190 # Append any errors to the config.log.
17191 cat conftest.err 1>&5
17192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17194 if diff conftest.exp conftest.er2 >/dev/null; then
17195 lt_cv_prog_compiler_static_works=yes
17198 lt_cv_prog_compiler_static_works=yes
17202 LDFLAGS="$save_LDFLAGS"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17206 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17208 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17211 lt_prog_compiler_static=
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17221 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17222 if ${lt_cv_prog_compiler_c_o+:} false; then :
17223 $as_echo_n "(cached
) " >&6
17225 lt_cv_prog_compiler_c_o=no
17226 $RM -r conftest 2>/dev/null
17230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17233 # Insert the option either (1) after the last *FLAGS variable, or
17234 # (2) before a word containing "conftest.
", or (3) at the end.
17235 # Note that $ac_compile itself does not contain backslashes and begins
17236 # with a dollar sign (not a hyphen), so the echo should work correctly.
17237 lt_compile=`echo "$ac_compile" | $SED \
17238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17240 -e 's:$: $lt_compiler_flag:'`
17241 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17242 (eval "$lt_compile" 2>out/conftest.err)
17244 cat out/conftest.err >&5
17245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17248 # The compiler can only warn and ignore the option if not recognized
17249 # So say no if there are warnings
17250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17253 lt_cv_prog_compiler_c_o=yes
17258 # SGI C++ compiler will create directory out/ii_files/ for
17259 # template instantiation
17260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17261 $RM out/* && rmdir out
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17276 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17277 if ${lt_cv_prog_compiler_c_o+:} false; then :
17278 $as_echo_n "(cached
) " >&6
17280 lt_cv_prog_compiler_c_o=no
17281 $RM -r conftest 2>/dev/null
17285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17287 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17288 # Insert the option either (1) after the last *FLAGS variable, or
17289 # (2) before a word containing "conftest.
", or (3) at the end.
17290 # Note that $ac_compile itself does not contain backslashes and begins
17291 # with a dollar sign (not a hyphen), so the echo should work correctly.
17292 lt_compile=`echo "$ac_compile" | $SED \
17293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17295 -e 's:$: $lt_compiler_flag:'`
17296 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17297 (eval "$lt_compile" 2>out/conftest.err)
17299 cat out/conftest.err >&5
17300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17303 # The compiler can only warn and ignore the option if not recognized
17304 # So say no if there are warnings
17305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17308 lt_cv_prog_compiler_c_o=yes
17313 # SGI C++ compiler will create directory out/ii_files/ for
17314 # template instantiation
17315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17316 $RM out/* && rmdir out
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17323 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17328 hard_links="nottested
"
17329 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17330 # do not overwrite the value of need_locks provided by the user
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17332 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17337 ln conftest.a conftest.b 2>&5 || hard_links=no
17338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17340 $as_echo "$hard_links" >&6; }
17341 if test "$hard_links" = no; then
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17343 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17356 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17359 allow_undefined_flag=
17360 always_export_symbols=no
17362 archive_expsym_cmds=
17363 compiler_needs_object=no
17364 enable_shared_with_static_runtimes=no
17365 export_dynamic_flag_spec=
17366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17367 hardcode_automatic=no
17369 hardcode_direct_absolute=no
17370 hardcode_libdir_flag_spec=
17371 hardcode_libdir_flag_spec_ld=
17372 hardcode_libdir_separator=
17373 hardcode_minus_L=no
17374 hardcode_shlibpath_var=unsupported
17376 link_all_deplibs=unknown
17378 module_expsym_cmds=
17379 old_archive_from_new_cmds=
17380 old_archive_from_expsyms_cmds=
17381 thread_safe_flag_spec=
17382 whole_archive_flag_spec=
17383 # include_expsyms should be a list of space-separated symbols to be *always*
17384 # included in the symbol list
17386 # exclude_expsyms can be an extended regexp of symbols to exclude
17387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17389 # as well as any symbol that contains `d'.
17390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17392 # platforms (ab)use it in PIC code, but their linkers get confused if
17393 # the symbol is explicitly referenced. Since portable code cannot
17394 # rely on this symbol name, it's probably fine to never include it in
17395 # preloaded symbol tables.
17396 # Exclude shared library initialization/finalization symbols.
17397 extract_expsyms_cmds=
17400 cygwin* | mingw* | pw32* | cegcc*)
17401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17402 # When not using gcc, we currently assume that we are using
17403 # Microsoft Visual C++.
17404 if test "$GCC" != yes; then
17409 # we just hope/assume this is gcc and not c89 (= MSVC++)
17419 # On some targets, GNU ld is compatible enough with the native linker
17420 # that we're better off using the native interface for both.
17421 lt_use_gnu_ld_interface=no
17422 if test "$with_gnu_ld" = yes; then
17425 # The AIX port of GNU ld has always aspired to compatibility
17426 # with the native linker. However, as the warning in the GNU ld
17427 # block says, versions before 2.19.5* couldn't really create working
17428 # shared libraries, regardless of the interface used.
17429 case `$LD -v 2>&1` in
17430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17432 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17434 lt_use_gnu_ld_interface=yes
17439 lt_use_gnu_ld_interface=yes
17444 if test "$lt_use_gnu_ld_interface" = yes; then
17445 # If archive_cmds runs LD, not CC, wlarc should be empty
17448 # Set some defaults for GNU ld with shared library support. These
17449 # are reset later if shared libraries are not supported. Putting them
17450 # here allows them to be overridden if necessary.
17451 runpath_var=LD_RUN_PATH
17452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17453 export_dynamic_flag_spec='${wl}--export-dynamic'
17454 # ancient GNU ld didn't support --whole-archive et. al.
17455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17458 whole_archive_flag_spec=
17460 supports_anon_versioning=no
17461 case `$LD -v 2>&1` in
17462 *GNU\ gold*) supports_anon_versioning=yes ;;
17463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17466 *\ 2.11.*) ;; # other 2.11 versions
17467 *) supports_anon_versioning=yes ;;
17470 # See if GNU ld supports shared libraries.
17473 # On AIX/PPC, the GNU linker is very broken
17474 if test "$host_cpu" != ia64; then
17478 *** Warning: the GNU linker, at least up to release 2.19, is reported
17479 *** to be unable to reliably create shared libraries on AIX.
17480 *** Therefore, libtool is disabling shared libraries support. If you
17481 *** really care for shared libraries, you may want to install binutils
17482 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17483 *** You will then need to restart the configuration process.
17492 # see comment about AmigaOS4 .so support
17493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17494 archive_expsym_cmds=''
17497 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)'
17498 hardcode_libdir_flag_spec
='-L$libdir'
17499 hardcode_minus_L
=yes
17505 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17506 allow_undefined_flag
=unsupported
17507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17508 # support --undefined. This deserves some investigation. FIXME
17509 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17515 cygwin
* | mingw
* | pw32
* | cegcc
*)
17516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17517 # as there is no search path for DLLs.
17518 hardcode_libdir_flag_spec
='-L$libdir'
17519 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17520 allow_undefined_flag
=unsupported
17521 always_export_symbols
=no
17522 enable_shared_with_static_runtimes
=yes
17523 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17525 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17526 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17527 # If the export-symbols file already is a .def file (1st line
17528 # is EXPORTS), use it as is; otherwise, prepend...
17529 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17530 cp $export_symbols $output_objdir/$soname.def;
17532 echo EXPORTS > $output_objdir/$soname.def;
17533 cat $export_symbols >> $output_objdir/$soname.def;
17535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17542 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 link_all_deplibs
=yes
17548 hardcode_shlibpath_var
=no
17549 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17550 export_dynamic_flag_spec
='${wl}-E'
17551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17552 # Instead, shared libraries are loaded at an image base (0x10000000 by
17553 # default) and relocated if they conflict, which is a slow very memory
17554 # consuming and fragmenting process. To avoid this, we pick a random,
17555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17557 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17558 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'
17561 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17563 if test "$host_os" = linux-dietlibc
; then
17564 case $cc_basename in
17565 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17568 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17569 && test "$tmp_diet" = no
17571 tmp_addflag
=' $pic_flag'
17572 tmp_sharedflag
='-shared'
17573 case $cc_basename,$host_cpu in
17574 pgcc
*) # Portland Group C compiler
17575 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'
17576 tmp_addflag
=' $pic_flag'
17578 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17579 # Portland Group f77 and f90 compilers
17580 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'
17581 tmp_addflag
=' $pic_flag -Mnomain' ;;
17582 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17583 tmp_addflag
=' -i_dynamic' ;;
17584 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17585 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17586 ifc
* | ifort
*) # Intel Fortran compiler
17587 tmp_addflag
=' -nofor_main' ;;
17588 lf95
*) # Lahey Fortran 8.1
17589 whole_archive_flag_spec
=
17590 tmp_sharedflag
='--shared' ;;
17591 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17592 tmp_sharedflag
='-qmkshrobj'
17594 nvcc
*) # Cuda Compiler Driver 2.2
17595 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'
17596 compiler_needs_object
=yes
17599 case `$CC -V 2>&1 | sed 5q` in
17600 *Sun\ C
*) # Sun C 5.9
17601 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'
17602 compiler_needs_object
=yes
17603 tmp_sharedflag
='-G' ;;
17604 *Sun\ F
*) # Sun Fortran 8.3
17605 tmp_sharedflag
='-G' ;;
17607 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 if test "x$supports_anon_versioning" = xyes
; then
17610 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17612 echo "local: *; };" >> $output_objdir/$libname.ver~
17613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17616 case $cc_basename in
17617 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17619 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17620 hardcode_libdir_flag_spec
=
17621 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17622 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17623 if test "x$supports_anon_versioning" = xyes
; then
17624 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17626 echo "local: *; };" >> $output_objdir/$libname.ver~
17627 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17637 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17638 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17641 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17647 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17652 *** create shared libraries on Solaris systems. Therefore, libtool
17653 *** is disabling shared libraries support. We urge you to upgrade GNU
17654 *** binutils to release 2.9.1 or newer. Another option is to modify
17655 *** your PATH or compiler configuration so that the native linker is
17656 *** used, and then restart.
17659 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17660 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17661 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17667 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17668 case `$LD -v 2>&1` in
17669 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17674 *** reliably create shared libraries on SCO systems. Therefore, libtool
17675 *** is disabling shared libraries support. We urge you to upgrade GNU
17676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17677 *** your PATH or compiler configuration so that the native linker is
17678 *** used, and then restart.
17683 # For security reasons, it is highly recommended that you always
17684 # use absolute paths for naming shared libraries, and exclude the
17685 # DT_RUNPATH tag from executables and libraries. But doing so
17686 # requires that you compile everything twice, which is a pain.
17687 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17688 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17689 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17690 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17699 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct
=yes
17702 hardcode_shlibpath_var
=no
17706 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17707 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17708 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17715 if test "$ld_shlibs" = no
; then
17717 hardcode_libdir_flag_spec
=
17718 export_dynamic_flag_spec
=
17719 whole_archive_flag_spec
=
17722 # PORTME fill in a description of your system's linker (not GNU ld)
17725 allow_undefined_flag
=unsupported
17726 always_export_symbols
=yes
17727 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'
17728 # Note: this linker hardcodes the directories in LIBPATH if there
17729 # are no directories specified by -L.
17730 hardcode_minus_L
=yes
17731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17732 # Neither direct hardcoding nor static linking is supported with a
17734 hardcode_direct
=unsupported
17739 if test "$host_cpu" = ia64
; then
17740 # On IA64, the linker does run time linking by default, so we don't
17741 # have to do anything special.
17742 aix_use_runtimelinking
=no
17743 exp_sym_flag
='-Bexport'
17746 # If we're using GNU nm, then we don't want the "-C" option.
17747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17748 # Also, AIX nm treats weak defined symbols like other global
17749 # defined symbols, whereas GNU nm marks them as "W".
17750 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17751 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'
17753 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'
17755 aix_use_runtimelinking
=no
17757 # Test if we are trying to use run time linking or normal
17758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17759 # need to do runtime linking.
17760 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17761 for ld_flag
in $LDFLAGS; do
17762 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17763 aix_use_runtimelinking
=yes
17770 exp_sym_flag
='-bexport'
17771 no_entry_flag
='-bnoentry'
17774 # When large executables or shared objects are built, AIX ld can
17775 # have problems creating the table of contents. If linking a library
17776 # or program results in "error TOC overflow" add -mminimal-toc to
17777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17781 hardcode_direct
=yes
17782 hardcode_direct_absolute
=yes
17783 hardcode_libdir_separator
=':'
17784 link_all_deplibs
=yes
17785 file_list_spec
='${wl}-f,'
17787 if test "$GCC" = yes; then
17788 case $host_os in aix4.
[012]|aix4.
[012].
*)
17789 # We only want to do this on AIX 4.2 and lower, the check
17790 # below for broken collect2 doesn't work under 4.3+
17791 collect2name
=`${CC} -print-prog-name=collect2`
17792 if test -f "$collect2name" &&
17793 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17795 # We have reworked collect2
17798 # We have old collect2
17799 hardcode_direct
=unsupported
17800 # It fails to find uninstalled libraries when the uninstalled
17801 # path is not listed in the libpath. Setting hardcode_minus_L
17802 # to unsupported forces relinking
17803 hardcode_minus_L
=yes
17804 hardcode_libdir_flag_spec
='-L$libdir'
17805 hardcode_libdir_separator
=
17809 shared_flag
='-shared'
17810 if test "$aix_use_runtimelinking" = yes; then
17811 shared_flag
="$shared_flag "'${wl}-G'
17815 if test "$host_cpu" = ia64
; then
17816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17817 # chokes on -Wl,-G. The following line is correct:
17820 if test "$aix_use_runtimelinking" = yes; then
17821 shared_flag
='${wl}-G'
17823 shared_flag
='${wl}-bM:SRE'
17828 export_dynamic_flag_spec
='${wl}-bexpall'
17829 # It seems that -bexpall does not export symbols beginning with
17830 # underscore (_), so it is better to generate a list of symbols to export.
17831 always_export_symbols
=yes
17832 if test "$aix_use_runtimelinking" = yes; then
17833 # Warning - without using the other runtime loading flags (-brtl),
17834 # -berok will link without error, but may produce a broken library.
17835 allow_undefined_flag
='-berok'
17836 # Determine the default libpath from the value encoded in an
17837 # empty executable.
17838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17849 if ac_fn_c_try_link
"$LINENO"; then :
17851 lt_aix_libpath_sed
='
17852 /Import File Strings/,/^$/ {
17858 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 rm -f core conftest.err conftest.
$ac_objext \
17865 conftest
$ac_exeext conftest.
$ac_ext
17866 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17868 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17869 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"
17871 if test "$host_cpu" = ia64
; then
17872 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17873 allow_undefined_flag
="-z nodefs"
17874 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"
17876 # Determine the default libpath from the value encoded in an
17877 # empty executable.
17878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17889 if ac_fn_c_try_link
"$LINENO"; then :
17891 lt_aix_libpath_sed
='
17892 /Import File Strings/,/^$/ {
17898 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$aix_libpath"; then
17901 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904 rm -f core conftest.err conftest.
$ac_objext \
17905 conftest
$ac_exeext conftest.
$ac_ext
17906 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17908 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17909 # Warning - without using the other run time loading flags,
17910 # -berok will link without error, but may produce a broken library.
17911 no_undefined_flag
=' ${wl}-bernotok'
17912 allow_undefined_flag
=' ${wl}-berok'
17913 if test "$with_gnu_ld" = yes; then
17914 # We only use this code for GNU lds that support --whole-archive.
17915 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17917 # Exported symbols can be pulled into shared objects from archives
17918 whole_archive_flag_spec
='$convenience'
17920 archive_cmds_need_lc
=yes
17921 # This is similar to how AIX traditionally builds its shared libraries.
17922 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'
17930 # see comment about AmigaOS4 .so support
17931 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17932 archive_expsym_cmds
=''
17935 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)'
17936 hardcode_libdir_flag_spec
='-L$libdir'
17937 hardcode_minus_L
=yes
17943 export_dynamic_flag_spec
=-rdynamic
17946 cygwin
* | mingw
* | pw32
* | cegcc
*)
17947 # When not using gcc, we currently assume that we are using
17948 # Microsoft Visual C++.
17949 # hardcode_libdir_flag_spec is actually meaningless, as there is
17950 # no search path for DLLs.
17951 hardcode_libdir_flag_spec
=' '
17952 allow_undefined_flag
=unsupported
17953 # Tell ltmain to make .lib files, not .a files.
17955 # Tell ltmain to make .dll files, not .so files.
17957 # FIXME: Setting linknames here is a bad hack.
17958 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17959 # The linker will automatically build a .lib file if we build a DLL.
17960 old_archive_from_new_cmds
='true'
17961 # FIXME: Should let the user specify the lib program.
17962 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17963 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17964 enable_shared_with_static_runtimes
=yes
17967 darwin
* | rhapsody
*)
17970 archive_cmds_need_lc
=no
17972 hardcode_automatic
=yes
17973 hardcode_shlibpath_var
=unsupported
17974 if test "$lt_cv_ld_force_load" = "yes"; then
17975 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\"`'
17977 whole_archive_flag_spec
=''
17979 link_all_deplibs
=yes
17980 allow_undefined_flag
="$_lt_dar_allow_undefined"
17981 case $cc_basename in
17982 ifort
*) _lt_dar_can_shared
=yes ;;
17983 *) _lt_dar_can_shared
=$GCC ;;
17985 if test "$_lt_dar_can_shared" = "yes"; then
17986 output_verbose_link_cmd
=func_echo_all
17987 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17988 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17989 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}"
17990 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}"
17999 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_libdir_flag_spec
='-L$libdir'
18001 hardcode_shlibpath_var
=no
18004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18005 # support. Future versions do this automatically, but an explicit c++rt0.o
18006 # does not break anything, and helps significantly (at the cost of a little
18009 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18010 hardcode_libdir_flag_spec
='-R$libdir'
18011 hardcode_direct
=yes
18012 hardcode_shlibpath_var
=no
18015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18017 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_direct
=yes
18019 hardcode_minus_L
=yes
18020 hardcode_shlibpath_var
=no
18023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18024 freebsd
* | dragonfly
*)
18025 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18026 hardcode_libdir_flag_spec
='-R$libdir'
18027 hardcode_direct
=yes
18028 hardcode_shlibpath_var
=no
18032 if test "$GCC" = yes; then
18033 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'
18035 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'
18037 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18038 hardcode_libdir_separator
=:
18039 hardcode_direct
=yes
18041 # hardcode_minus_L: Not really in the search PATH,
18042 # but as the default location of the library.
18043 hardcode_minus_L
=yes
18044 export_dynamic_flag_spec
='${wl}-E'
18048 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18049 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18051 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18053 if test "$with_gnu_ld" = no
; then
18054 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18055 hardcode_libdir_flag_spec_ld
='+b $libdir'
18056 hardcode_libdir_separator
=:
18057 hardcode_direct
=yes
18058 hardcode_direct_absolute
=yes
18059 export_dynamic_flag_spec
='${wl}-E'
18060 # hardcode_minus_L: Not really in the search PATH,
18061 # but as the default location of the library.
18062 hardcode_minus_L
=yes
18067 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18070 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18073 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18082 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18085 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18089 # Older versions of the 11.00 compiler do not understand -b yet
18090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18092 $as_echo_n "checking if $CC understands -b... " >&6; }
18093 if ${lt_cv_prog_compiler__b+:} false
; then :
18094 $as_echo_n "(cached) " >&6
18096 lt_cv_prog_compiler__b
=no
18097 save_LDFLAGS
="$LDFLAGS"
18098 LDFLAGS
="$LDFLAGS -b"
18099 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18100 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18101 # The linker can only warn and ignore the option if not recognized
18102 # So say no if there are warnings
18103 if test -s conftest.err
; then
18104 # Append any errors to the config.log.
18105 cat conftest.err
1>&5
18106 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18107 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18108 if diff conftest.exp conftest.er2
>/dev
/null
; then
18109 lt_cv_prog_compiler__b
=yes
18112 lt_cv_prog_compiler__b
=yes
18116 LDFLAGS
="$save_LDFLAGS"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18122 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18123 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18131 if test "$with_gnu_ld" = no
; then
18132 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18133 hardcode_libdir_separator
=:
18138 hardcode_shlibpath_var
=no
18141 hardcode_direct
=yes
18142 hardcode_direct_absolute
=yes
18143 export_dynamic_flag_spec
='${wl}-E'
18145 # hardcode_minus_L: Not really in the search PATH,
18146 # but as the default location of the library.
18147 hardcode_minus_L
=yes
18153 irix5
* | irix6
* | nonstopux
*)
18154 if test "$GCC" = yes; then
18155 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'
18156 # Try to use the -exported_symbol ld option, if it does not
18157 # work, assume that -exports_file does not work either and
18158 # implicitly export all symbols.
18159 save_LDFLAGS
="$LDFLAGS"
18160 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18165 if ac_fn_c_try_link
"$LINENO"; then :
18166 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'
18169 rm -f core conftest.err conftest.
$ac_objext \
18170 conftest
$ac_exeext conftest.
$ac_ext
18171 LDFLAGS
="$save_LDFLAGS"
18173 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'
18174 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'
18176 archive_cmds_need_lc
='no'
18177 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18178 hardcode_libdir_separator
=:
18180 link_all_deplibs
=yes
18184 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18185 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18187 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18189 hardcode_libdir_flag_spec
='-R$libdir'
18190 hardcode_direct
=yes
18191 hardcode_shlibpath_var
=no
18195 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_direct
=yes
18197 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18198 hardcode_libdir_separator
=:
18199 hardcode_shlibpath_var
=no
18206 if test -f /usr
/libexec
/ld.so
; then
18207 hardcode_direct
=yes
18208 hardcode_shlibpath_var
=no
18209 hardcode_direct_absolute
=yes
18210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18213 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18214 export_dynamic_flag_spec
='${wl}-E'
18217 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18218 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_libdir_flag_spec
='-R$libdir'
18222 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18223 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18233 hardcode_libdir_flag_spec
='-L$libdir'
18234 hardcode_minus_L
=yes
18235 allow_undefined_flag
=unsupported
18236 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'
18237 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18241 if test "$GCC" = yes; then
18242 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18243 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'
18245 allow_undefined_flag
=' -expect_unresolved \*'
18246 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'
18248 archive_cmds_need_lc
='no'
18249 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18250 hardcode_libdir_separator
=:
18253 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18254 if test "$GCC" = yes; then
18255 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18256 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'
18257 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18259 allow_undefined_flag
=' -expect_unresolved \*'
18260 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'
18261 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~
18262 $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'
18264 # Both c and cxx compiler support -rpath directly
18265 hardcode_libdir_flag_spec
='-rpath $libdir'
18267 archive_cmds_need_lc
='no'
18268 hardcode_libdir_separator
=:
18272 no_undefined_flag
=' -z defs'
18273 if test "$GCC" = yes; then
18275 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18277 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18279 case `$CC -V 2>&1` in
18282 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18283 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18288 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18290 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18294 hardcode_libdir_flag_spec
='-R$libdir'
18295 hardcode_shlibpath_var
=no
18297 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18299 # The compiler driver will combine and reorder linker options,
18300 # but understands `-z linker_flag'. GCC discards it without `$wl',
18301 # but is careful enough not to reorder.
18302 # Supported since Solaris 2.6 (maybe 2.5.1?)
18303 if test "$GCC" = yes; then
18304 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18306 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18310 link_all_deplibs
=yes
18314 if test "x$host_vendor" = xsequent
; then
18315 # Use $CC to link under sequent, because it throws in some extra .o
18316 # files that make .init and .fini sections work.
18317 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18319 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18321 hardcode_libdir_flag_spec
='-L$libdir'
18322 hardcode_direct
=yes
18323 hardcode_minus_L
=yes
18324 hardcode_shlibpath_var
=no
18328 case $host_vendor in
18330 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331 hardcode_direct
=yes # is this really true???
18334 ## LD is ld it makes a PLAMLIB
18335 ## CC just makes a GrossModule.
18336 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18337 reload_cmds
='$CC -r -o $output$reload_objs'
18341 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18345 runpath_var
='LD_RUN_PATH'
18346 hardcode_shlibpath_var
=no
18350 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351 hardcode_shlibpath_var
=no
18352 export_dynamic_flag_spec
='-Bexport'
18356 if test -d /usr
/nec
; then
18357 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_shlibpath_var
=no
18359 runpath_var
=LD_RUN_PATH
18360 hardcode_runpath_var
=yes
18365 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18366 no_undefined_flag
='${wl}-z,text'
18367 archive_cmds_need_lc
=no
18368 hardcode_shlibpath_var
=no
18369 runpath_var
='LD_RUN_PATH'
18371 if test "$GCC" = yes; then
18372 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18373 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18375 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380 sysv5
* | sco3.2v5
* | sco5v6
*)
18381 # Note: We can NOT use -z defs as we might desire, because we do not
18382 # link with -lc, and that would cause any symbols used from libc to
18383 # always be unresolved, which means just about no library would
18384 # ever link correctly. If we're not using GNU ld we use -z text
18385 # though, which does catch some bad symbols but isn't as heavy-handed
18387 no_undefined_flag
='${wl}-z,text'
18388 allow_undefined_flag
='${wl}-z,nodefs'
18389 archive_cmds_need_lc
=no
18390 hardcode_shlibpath_var
=no
18391 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18392 hardcode_libdir_separator
=':'
18393 link_all_deplibs
=yes
18394 export_dynamic_flag_spec
='${wl}-Bexport'
18395 runpath_var
='LD_RUN_PATH'
18397 if test "$GCC" = yes; then
18398 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18401 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18402 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_libdir_flag_spec
='-L$libdir'
18409 hardcode_shlibpath_var
=no
18417 if test x
$host_vendor = xsni
; then
18419 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18420 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18427 $as_echo "$ld_shlibs" >&6; }
18428 test "$ld_shlibs" = no
&& can_build_shared
=no
18430 with_gnu_ld
=$with_gnu_ld
18447 # Do we need to explicitly link libc?
18449 case "x$archive_cmds_need_lc" in
18451 # Assume -lc should be added
18452 archive_cmds_need_lc
=yes
18454 if test "$enable_shared" = yes && test "$GCC" = yes; then
18455 case $archive_cmds in
18457 # FIXME: we may have to deal with multi-command sequences.
18460 # Test whether the compiler implicitly links with -lc since on some
18461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18462 # to ld, don't add -lc before -lgcc.
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18465 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18466 $as_echo_n "(cached) " >&6
18469 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18472 (eval $ac_compile) 2>&5
18474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18475 test $ac_status = 0; } 2>conftest.err
; then
18478 libobjs
=conftest.
$ac_objext
18480 wl
=$lt_prog_compiler_wl
18481 pic_flag
=$lt_prog_compiler_pic
18487 lt_save_allow_undefined_flag
=$allow_undefined_flag
18488 allow_undefined_flag
=
18489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18490 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18493 test $ac_status = 0; }
18495 lt_cv_archive_cmds_need_lc
=no
18497 lt_cv_archive_cmds_need_lc
=yes
18499 allow_undefined_flag
=$lt_save_allow_undefined_flag
18501 cat conftest.err
1>&5
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18508 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18674 if test "$GCC" = yes; then
18676 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18677 *) lt_awk_arg
="/^libraries:/" ;;
18680 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18681 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18683 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18684 case $lt_search_path_spec in
18686 # if the path contains ";" then we assume it to be the separator
18687 # otherwise default to the standard path separator (i.e. ":") - it is
18688 # assumed that no part of a normal pathname contains ";" but that should
18689 # okay in the real world where ";" in dirpaths is itself problematic.
18690 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18693 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18696 # Ok, now we have the path, separated by spaces, we can step through it
18697 # and add multilib dir if necessary.
18698 lt_tmp_lt_search_path_spec
=
18699 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18700 for lt_sys_path
in $lt_search_path_spec; do
18701 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18702 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18704 test -d "$lt_sys_path" && \
18705 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18708 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18709 BEGIN {RS=" "; FS="/|\n";} {
18712 for (lt_i = NF; lt_i > 0; lt_i--) {
18713 if ($lt_i != "" && $lt_i != ".") {
18714 if ($lt_i == "..") {
18717 if (lt_count == 0) {
18718 lt_foo="/" $lt_i lt_foo;
18725 if (lt_foo != "") { lt_freq[lt_foo]++; }
18726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18728 # AWK program above erroneously prepends '/' to C:/dos/paths
18731 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18732 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18734 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18736 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18738 library_names_spec
=
18739 libname_spec
='lib$name'
18743 postuninstall_cmds
=
18747 shlibpath_overrides_runpath
=unknown
18749 dynamic_linker
="$host_os ld.so"
18750 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18751 need_lib_prefix
=unknown
18752 hardcode_into_libs
=no
18754 # when you set need_version to no, make sure it does not cause -set_version
18755 # flags to be left without arguments
18756 need_version
=unknown
18761 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18762 shlibpath_var
=LIBPATH
18764 # AIX 3 has no versioning support, so we append a major version to the name.
18765 soname_spec
='${libname}${release}${shared_ext}$major'
18772 hardcode_into_libs
=yes
18773 if test "$host_cpu" = ia64
; then
18774 # AIX 5 supports IA64
18775 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18776 shlibpath_var
=LD_LIBRARY_PATH
18778 # With GCC up to 2.95.x, collect2 would create an import file
18779 # for dependence libraries. The import file would start with
18780 # the line `#! .'. This would cause the generated library to
18781 # depend on `.', always an invalid library. This was fixed in
18782 # development snapshots of GCC prior to 3.0.
18784 aix4 | aix4.
[01] | aix4.
[01].
*)
18785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18787 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18790 can_build_shared
=no
18794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18795 # soname into executable. Probably we can add versioning support to
18796 # collect2, so additional links can be useful in future.
18797 if test "$aix_use_runtimelinking" = yes; then
18798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18799 # instead of lib<name>.a to let people know that these are not
18800 # typical AIX shared libraries.
18801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803 # We preserve .a as extension for shared libraries through AIX4.2
18804 # and later when we are not doing run time linking.
18805 library_names_spec
='${libname}${release}.a $libname.a'
18806 soname_spec
='${libname}${release}${shared_ext}$major'
18808 shlibpath_var
=LIBPATH
18815 # Since July 2007 AmigaOS4 officially supports .so libraries.
18816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820 library_names_spec
='$libname.ixlibrary $libname.a'
18821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18822 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'
18828 library_names_spec
='${libname}${shared_ext}'
18829 dynamic_linker
="$host_os ld.so"
18830 shlibpath_var
=LIBRARY_PATH
18836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837 soname_spec
='${libname}${release}${shared_ext}$major'
18838 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18839 shlibpath_var
=LD_LIBRARY_PATH
18840 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18841 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18842 # the default ld.so.conf also contains /usr/contrib/lib and
18843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18844 # libtool to hard-code these into programs
18847 cygwin
* | mingw
* | pw32
* | cegcc
*)
18848 version_type
=windows
18853 case $GCC,$host_os in
18854 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18855 library_names_spec
='$libname.dll.a'
18856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18857 postinstall_cmds
='base_file=`basename \${file}`~
18858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18859 dldir=$destdir/`dirname \$dlpath`~
18860 test -d \$dldir || mkdir -p \$dldir~
18861 $install_prog $dir/$dlname \$dldir/$dlname~
18862 chmod a+x \$dldir/$dlname~
18863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18866 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18867 dlpath=$dir/\$dldll~
18869 shlibpath_overrides_runpath
=yes
18873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18874 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18876 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18879 # MinGW DLLs use traditional 'lib' prefix
18880 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18883 # pw32 DLLs use 'pw' prefix rather than 'lib'
18884 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18890 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18893 dynamic_linker
='Win32 ld.exe'
18894 # FIXME: first we should search . and the directory the executable is in
18898 darwin
* | rhapsody
*)
18899 dynamic_linker
="$host_os dyld"
18900 version_type
=darwin
18903 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18904 soname_spec
='${libname}${release}${major}$shared_ext'
18905 shlibpath_overrides_runpath
=yes
18906 shlibpath_var
=DYLD_LIBRARY_PATH
18907 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18909 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18910 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18918 soname_spec
='${libname}${release}${shared_ext}$major'
18919 shlibpath_var
=LD_LIBRARY_PATH
18922 freebsd
* | dragonfly
*)
18923 # DragonFly does not have aout. When/if they implement a new
18924 # versioning mechanism, adjust this.
18925 if test -x /usr
/bin
/objformat
; then
18926 objformat
=`/usr/bin/objformat`
18929 freebsd
[23].
*) objformat
=aout
;;
18930 *) objformat
=elf
;;
18933 version_type
=freebsd-
$objformat
18934 case $version_type in
18936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18941 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18945 shlibpath_var
=LD_LIBRARY_PATH
18948 shlibpath_overrides_runpath
=yes
18950 freebsd3.
[01]* | freebsdelf3.
[01]*)
18951 shlibpath_overrides_runpath
=yes
18952 hardcode_into_libs
=yes
18954 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18955 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18956 shlibpath_overrides_runpath
=no
18957 hardcode_into_libs
=yes
18959 *) # from 4.6 on, and DragonFly
18960 shlibpath_overrides_runpath
=yes
18961 hardcode_into_libs
=yes
18970 dynamic_linker
="$host_os runtime_loader"
18971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18972 soname_spec
='${libname}${release}${shared_ext}$major'
18973 shlibpath_var
=LIBRARY_PATH
18974 shlibpath_overrides_runpath
=yes
18975 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18976 hardcode_into_libs
=yes
18979 hpux9
* | hpux10
* | hpux11
*)
18980 # Give a soname corresponding to the major version so that dld.sl refuses to
18981 # link against other versions.
18988 hardcode_into_libs
=yes
18989 dynamic_linker
="$host_os dld.so"
18990 shlibpath_var
=LD_LIBRARY_PATH
18991 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993 soname_spec
='${libname}${release}${shared_ext}$major'
18994 if test "X$HPUX_IA64_MODE" = X32
; then
18995 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18997 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18999 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19003 hardcode_into_libs
=yes
19004 dynamic_linker
="$host_os dld.sl"
19005 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19006 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 soname_spec
='${libname}${release}${shared_ext}$major'
19009 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19010 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19014 dynamic_linker
="$host_os dld.sl"
19015 shlibpath_var
=SHLIB_PATH
19016 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018 soname_spec
='${libname}${release}${shared_ext}$major'
19021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19022 postinstall_cmds
='chmod 555 $lib'
19023 # or fails outright, so override atomically:
19024 install_override_mode
=555
19031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19032 soname_spec
='${libname}${release}${shared_ext}$major'
19033 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19034 shlibpath_var
=LD_LIBRARY_PATH
19035 shlibpath_overrides_runpath
=no
19036 hardcode_into_libs
=yes
19039 irix5
* | irix6
* | nonstopux
*)
19041 nonstopux
*) version_type
=nonstopux
;;
19043 if test "$lt_cv_prog_gnu_ld" = yes; then
19051 soname_spec
='${libname}${release}${shared_ext}$major'
19052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19054 irix5
* | nonstopux
*)
19055 libsuff
= shlibsuff
=
19058 case $LD in # libtool.m4 will add one of these switches to LD
19059 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19060 libsuff
= shlibsuff
= libmagic
=32-bit;;
19061 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19062 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19063 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19064 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19065 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19069 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19070 shlibpath_overrides_runpath
=no
19071 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19072 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19073 hardcode_into_libs
=yes
19076 # No shared lib support for Linux oldld, aout, or coff.
19077 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19081 # This must be Linux ELF.
19083 # uclinux* changes (here and below) have been submitted to the libtool
19084 # project, but have not yet been accepted: they are GCC-local changes
19085 # for the time being. (See
19086 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19087 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 soname_spec
='${libname}${release}${shared_ext}$major'
19093 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19094 shlibpath_var
=LD_LIBRARY_PATH
19095 shlibpath_overrides_runpath
=no
19097 # Some binutils ld are patched to set DT_RUNPATH
19098 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19099 $as_echo_n "(cached) " >&6
19101 lt_cv_shlibpath_overrides_runpath
=no
19102 save_LDFLAGS
=$LDFLAGS
19103 save_libdir
=$libdir
19104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19117 if ac_fn_c_try_link
"$LINENO"; then :
19118 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19119 lt_cv_shlibpath_overrides_runpath
=yes
19122 rm -f core conftest.err conftest.
$ac_objext \
19123 conftest
$ac_exeext conftest.
$ac_ext
19124 LDFLAGS
=$save_LDFLAGS
19125 libdir
=$save_libdir
19129 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19131 # This implies no fast_install, which is unacceptable.
19132 # Some rework will be needed to allow for fast_install
19133 # before this can be enabled.
19134 hardcode_into_libs
=yes
19136 # Append ld.so.conf contents to the search path
19137 if test -f /etc
/ld.so.conf
; then
19138 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' ' '`
19139 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19142 # We used to test for /lib/ld.so.1 and disable shared libraries on
19143 # powerpc, because MkLinux only supported shared libraries with the
19144 # GNU dynamic linker. Since this was broken with cross compilers,
19145 # most powerpc-linux boxes support dynamic linking these days and
19146 # people can always --disable-shared, the test was removed, and we
19147 # assume the GNU/Linux dynamic linker is in use.
19148 dynamic_linker
='GNU/Linux ld.so'
19155 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19157 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19158 dynamic_linker
='NetBSD (a.out) ld.so'
19160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19161 soname_spec
='${libname}${release}${shared_ext}$major'
19162 dynamic_linker
='NetBSD ld.elf_so'
19164 shlibpath_var
=LD_LIBRARY_PATH
19165 shlibpath_overrides_runpath
=yes
19166 hardcode_into_libs
=yes
19171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 shlibpath_var
=LD_LIBRARY_PATH
19173 shlibpath_overrides_runpath
=yes
19180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 soname_spec
='${libname}${release}${shared_ext}$major'
19182 shlibpath_var
=LD_LIBRARY_PATH
19183 shlibpath_overrides_runpath
=no
19184 hardcode_into_libs
=yes
19185 dynamic_linker
='ldqnx.so'
19190 sys_lib_dlsearch_path_spec
="/usr/lib"
19192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19194 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19195 *) need_version
=no
;;
19197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19198 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19199 shlibpath_var
=LD_LIBRARY_PATH
19200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19202 openbsd2.
[89] | openbsd2.
[89].
*)
19203 shlibpath_overrides_runpath
=no
19206 shlibpath_overrides_runpath
=yes
19210 shlibpath_overrides_runpath
=yes
19215 libname_spec
='$name'
19218 library_names_spec
='$libname${shared_ext} $libname.a'
19219 dynamic_linker
='OS/2 ld.exe'
19220 shlibpath_var
=LIBPATH
19223 osf3
* | osf4
* | osf5
*)
19227 soname_spec
='${libname}${release}${shared_ext}$major'
19228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19229 shlibpath_var
=LD_LIBRARY_PATH
19230 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19231 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19243 soname_spec
='${libname}${release}${shared_ext}$major'
19244 shlibpath_var
=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath
=yes
19246 hardcode_into_libs
=yes
19247 # ldd complains unless libraries are executable
19248 postinstall_cmds
='chmod +x $lib'
19253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19254 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19255 shlibpath_var
=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath
=yes
19257 if test "$with_gnu_ld" = yes; then
19265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec
='${libname}${release}${shared_ext}$major'
19267 shlibpath_var
=LD_LIBRARY_PATH
19268 case $host_vendor in
19270 shlibpath_overrides_runpath
=no
19272 runpath_var
=LD_RUN_PATH
19280 shlibpath_overrides_runpath
=no
19281 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19287 if test -d /usr
/nec
;then
19289 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19290 soname_spec
='$libname${shared_ext}.$major'
19291 shlibpath_var
=LD_LIBRARY_PATH
19295 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19296 version_type
=freebsd-elf
19299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19300 soname_spec
='${libname}${release}${shared_ext}$major'
19301 shlibpath_var
=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath
=yes
19303 hardcode_into_libs
=yes
19304 if test "$with_gnu_ld" = yes; then
19305 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19307 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19310 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19314 sys_lib_dlsearch_path_spec
='/usr/lib'
19318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 shlibpath_var
=LD_LIBRARY_PATH
19324 shlibpath_overrides_runpath
=no
19325 hardcode_into_libs
=yes
19330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331 soname_spec
='${libname}${release}${shared_ext}$major'
19332 shlibpath_var
=LD_LIBRARY_PATH
19335 # Shared libraries for VwWorks, >= 7 only at this stage
19336 # and (fpic) still incompatible with "large" code models
19337 # in a few configurations. Only for RTP mode in any case,
19338 # and upon explicit request at configure time.
19341 case ${with_multisubdir}-${enable_shared} in
19348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec
='${libname}${release}${shared_ext}$major'
19350 dynamic_linker
="$host_os module_loader"
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19359 $as_echo "$dynamic_linker" >&6; }
19360 test "$dynamic_linker" = no
&& can_build_shared
=no
19362 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19363 if test "$GCC" = yes; then
19364 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19368 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19371 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19468 if test -n "$hardcode_libdir_flag_spec" ||
19469 test -n "$runpath_var" ||
19470 test "X$hardcode_automatic" = "Xyes" ; then
19472 # We can hardcode non-existent directories.
19473 if test "$hardcode_direct" != no
&&
19474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19475 # have to relink, otherwise we might link with an installed library
19476 # when we should be linking with a yet-to-be-installed one
19477 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19478 test "$hardcode_minus_L" != no
; then
19479 # Linking always hardcodes the temporary library directory.
19480 hardcode_action
=relink
19482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19483 hardcode_action
=immediate
19486 # We cannot hardcode anything, or else we can only hardcode existing
19488 hardcode_action
=unsupported
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19491 $as_echo "$hardcode_action" >&6; }
19493 if test "$hardcode_action" = relink ||
19494 test "$inherit_rpath" = yes; then
19495 # Fast installation is not supported
19496 enable_fast_install
=no
19497 elif test "$shlibpath_overrides_runpath" = yes ||
19498 test "$enable_shared" = no
; then
19499 # Fast installation is not necessary
19500 enable_fast_install
=needless
19508 if test "x$enable_dlopen" != xyes
; then
19509 enable_dlopen
=unknown
19510 enable_dlopen_self
=unknown
19511 enable_dlopen_self_static
=unknown
19518 lt_cv_dlopen
="load_add_on"
19520 lt_cv_dlopen_self
=yes
19523 mingw
* | pw32
* | cegcc
*)
19524 lt_cv_dlopen
="LoadLibrary"
19529 lt_cv_dlopen
="dlopen"
19534 # if libdl is installed we need to link against it
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19537 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19538 $as_echo_n "(cached) " >&6
19540 ac_check_lib_save_LIBS
=$LIBS
19542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 /* Override any GCC internal prototype to avoid an error.
19546 Use char because int might match the return type of a GCC
19547 builtin and then its argument prototype would still apply. */
19560 if ac_fn_c_try_link
"$LINENO"; then :
19561 ac_cv_lib_dl_dlopen
=yes
19563 ac_cv_lib_dl_dlopen
=no
19565 rm -f core conftest.err conftest.
$ac_objext \
19566 conftest
$ac_exeext conftest.
$ac_ext
19567 LIBS
=$ac_check_lib_save_LIBS
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19571 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19572 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19575 lt_cv_dlopen
="dyld"
19577 lt_cv_dlopen_self
=yes
19584 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19585 if test "x$ac_cv_func_shl_load" = xyes
; then :
19586 lt_cv_dlopen
="shl_load"
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19589 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19590 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19591 $as_echo_n "(cached) " >&6
19593 ac_check_lib_save_LIBS
=$LIBS
19595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19608 return shl_load ();
19613 if ac_fn_c_try_link
"$LINENO"; then :
19614 ac_cv_lib_dld_shl_load
=yes
19616 ac_cv_lib_dld_shl_load
=no
19618 rm -f core conftest.err conftest.
$ac_objext \
19619 conftest
$ac_exeext conftest.
$ac_ext
19620 LIBS
=$ac_check_lib_save_LIBS
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19623 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19624 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19625 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19627 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19628 if test "x$ac_cv_func_dlopen" = xyes
; then :
19629 lt_cv_dlopen
="dlopen"
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19632 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19633 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19634 $as_echo_n "(cached) " >&6
19636 ac_check_lib_save_LIBS
=$LIBS
19638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19656 if ac_fn_c_try_link
"$LINENO"; then :
19657 ac_cv_lib_dl_dlopen
=yes
19659 ac_cv_lib_dl_dlopen
=no
19661 rm -f core conftest.err conftest.
$ac_objext \
19662 conftest
$ac_exeext conftest.
$ac_ext
19663 LIBS
=$ac_check_lib_save_LIBS
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19666 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19667 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19668 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19671 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19672 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19673 $as_echo_n "(cached) " >&6
19675 ac_check_lib_save_LIBS
=$LIBS
19676 LIBS
="-lsvld $LIBS"
19677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19695 if ac_fn_c_try_link
"$LINENO"; then :
19696 ac_cv_lib_svld_dlopen
=yes
19698 ac_cv_lib_svld_dlopen
=no
19700 rm -f core conftest.err conftest.
$ac_objext \
19701 conftest
$ac_exeext conftest.
$ac_ext
19702 LIBS
=$ac_check_lib_save_LIBS
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19705 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19706 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19707 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19710 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19711 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19712 $as_echo_n "(cached) " >&6
19714 ac_check_lib_save_LIBS
=$LIBS
19716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19729 return dld_link ();
19734 if ac_fn_c_try_link
"$LINENO"; then :
19735 ac_cv_lib_dld_dld_link
=yes
19737 ac_cv_lib_dld_dld_link
=no
19739 rm -f core conftest.err conftest.
$ac_objext \
19740 conftest
$ac_exeext conftest.
$ac_ext
19741 LIBS
=$ac_check_lib_save_LIBS
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19744 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19745 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19746 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19767 if test "x$lt_cv_dlopen" != xno
; then
19773 case $lt_cv_dlopen in
19775 save_CPPFLAGS
="$CPPFLAGS"
19776 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19778 save_LDFLAGS
="$LDFLAGS"
19779 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19782 LIBS
="$lt_cv_dlopen_libs $LIBS"
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19785 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19786 if ${lt_cv_dlopen_self+:} false
; then :
19787 $as_echo_n "(cached) " >&6
19789 if test "$cross_compiling" = yes; then :
19790 lt_cv_dlopen_self
=cross
19792 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19793 lt_status
=$lt_dlunknown
19794 cat > conftest.
$ac_ext <<_LT_EOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19805 # define LT_DLGLOBAL RTLD_GLOBAL
19808 # define LT_DLGLOBAL DL_GLOBAL
19810 # define LT_DLGLOBAL 0
19814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19815 find out it does not work in some platform. */
19816 #ifndef LT_DLLAZY_OR_NOW
19818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19821 # define LT_DLLAZY_OR_NOW DL_LAZY
19824 # define LT_DLLAZY_OR_NOW RTLD_NOW
19827 # define LT_DLLAZY_OR_NOW DL_NOW
19829 # define LT_DLLAZY_OR_NOW 0
19836 /* When -fvisbility=hidden is used, assume the code has been annotated
19837 correspondingly for the symbols needed. */
19838 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19839 void fnord () __attribute__((visibility("default")));
19842 void fnord () { int i=42; }
19845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19846 int status = $lt_dlunknown;
19850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19854 else puts (dlerror ());
19856 /* dlclose (self); */
19864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19865 (eval $ac_link) 2>&5
19867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19868 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19869 (.
/conftest
; exit; ) >&5 2>/dev
/null
19871 case x
$lt_status in
19872 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19873 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19874 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19877 # compilation failed
19878 lt_cv_dlopen_self
=no
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19886 $as_echo "$lt_cv_dlopen_self" >&6; }
19888 if test "x$lt_cv_dlopen_self" = xyes
; then
19889 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19892 if ${lt_cv_dlopen_self_static+:} false
; then :
19893 $as_echo_n "(cached) " >&6
19895 if test "$cross_compiling" = yes; then :
19896 lt_cv_dlopen_self_static
=cross
19898 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19899 lt_status
=$lt_dlunknown
19900 cat > conftest.
$ac_ext <<_LT_EOF
19901 #line 19901 "configure"
19902 #include "confdefs.h"
19911 # define LT_DLGLOBAL RTLD_GLOBAL
19914 # define LT_DLGLOBAL DL_GLOBAL
19916 # define LT_DLGLOBAL 0
19920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19921 find out it does not work in some platform. */
19922 #ifndef LT_DLLAZY_OR_NOW
19924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19927 # define LT_DLLAZY_OR_NOW DL_LAZY
19930 # define LT_DLLAZY_OR_NOW RTLD_NOW
19933 # define LT_DLLAZY_OR_NOW DL_NOW
19935 # define LT_DLLAZY_OR_NOW 0
19942 /* When -fvisbility=hidden is used, assume the code has been annotated
19943 correspondingly for the symbols needed. */
19944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19945 void fnord () __attribute__((visibility("default")));
19948 void fnord () { int i=42; }
19951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19952 int status = $lt_dlunknown;
19956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19960 else puts (dlerror ());
19962 /* dlclose (self); */
19970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19971 (eval $ac_link) 2>&5
19973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19974 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19975 (.
/conftest
; exit; ) >&5 2>/dev
/null
19977 case x
$lt_status in
19978 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19979 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19980 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19983 # compilation failed
19984 lt_cv_dlopen_self_static
=no
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19992 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19995 CPPFLAGS
="$save_CPPFLAGS"
19996 LDFLAGS
="$save_LDFLAGS"
20001 case $lt_cv_dlopen_self in
20002 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20003 *) enable_dlopen_self
=unknown
;;
20006 case $lt_cv_dlopen_self_static in
20007 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20008 *) enable_dlopen_self_static
=unknown
;;
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20031 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20032 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20033 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20034 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 $as_echo "yes" >&6; }
20038 # FIXME - insert some real tests, host_os isn't really good enough
20041 if test -n "$STRIP" ; then
20042 striplib
="$STRIP -x"
20043 old_striplib
="$STRIP -S"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20045 $as_echo "yes" >&6; }
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20053 $as_echo "no" >&6; }
20069 # Report which library types will actually be built
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20071 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20073 $as_echo "$can_build_shared" >&6; }
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20076 $as_echo_n "checking whether to build shared libraries... " >&6; }
20077 test "$can_build_shared" = "no" && enable_shared
=no
20079 # On AIX, shared libraries and static libraries use the same namespace, and
20080 # are all built from PIC.
20083 test "$enable_shared" = yes && enable_static
=no
20084 if test -n "$RANLIB"; then
20085 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20086 postinstall_cmds
='$RANLIB $lib'
20091 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20092 test "$enable_shared" = yes && enable_static
=no
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20097 $as_echo "$enable_shared" >&6; }
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20100 $as_echo_n "checking whether to build static libraries... " >&6; }
20101 # Make sure either enable_shared or enable_static is yes.
20102 test "$enable_shared" = yes || enable_static
=yes
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20104 $as_echo "$enable_static" >&6; }
20111 ac_cpp
='$CXXCPP $CPPFLAGS'
20112 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20118 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20119 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20120 (test "X$CXX" != "Xg++"))) ; then
20122 ac_cpp
='$CXXCPP $CPPFLAGS'
20123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20127 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20128 if test -z "$CXXCPP"; then
20129 if ${ac_cv_prog_CXXCPP+:} false
; then :
20130 $as_echo_n "(cached) " >&6
20132 # Double quotes because CXXCPP needs to be expanded
20133 for CXXCPP
in "$CXX -E" "/lib/cpp"
20135 ac_preproc_ok
=false
20136 for ac_cxx_preproc_warn_flag
in '' yes
20138 # Use a header file that comes with gcc, so configuring glibc
20139 # with a fresh cross-compiler works.
20140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 # <limits.h> exists even on freestanding compilers.
20142 # On the NeXT, cc -E runs the code through the compiler's parser,
20143 # not just through cpp. "Syntax error" is here to catch this case.
20144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20147 # include <limits.h>
20149 # include <assert.h>
20153 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20156 # Broken: fails on valid input.
20159 rm -f conftest.err conftest.i conftest.
$ac_ext
20161 # OK, works on sane cases. Now check whether nonexistent headers
20162 # can be detected and how.
20163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 #include <ac_nonexistent.h>
20167 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20168 # Broken: success on invalid input.
20171 # Passes both tests.
20175 rm -f conftest.err conftest.i conftest.
$ac_ext
20178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20179 rm -f conftest.i conftest.err conftest.
$ac_ext
20180 if $ac_preproc_ok; then :
20185 ac_cv_prog_CXXCPP
=$CXXCPP
20188 CXXCPP
=$ac_cv_prog_CXXCPP
20190 ac_cv_prog_CXXCPP
=$CXXCPP
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20193 $as_echo "$CXXCPP" >&6; }
20194 ac_preproc_ok
=false
20195 for ac_cxx_preproc_warn_flag
in '' yes
20197 # Use a header file that comes with gcc, so configuring glibc
20198 # with a fresh cross-compiler works.
20199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20200 # <limits.h> exists even on freestanding compilers.
20201 # On the NeXT, cc -E runs the code through the compiler's parser,
20202 # not just through cpp. "Syntax error" is here to catch this case.
20203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20206 # include <limits.h>
20208 # include <assert.h>
20212 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20215 # Broken: fails on valid input.
20218 rm -f conftest.err conftest.i conftest.
$ac_ext
20220 # OK, works on sane cases. Now check whether nonexistent headers
20221 # can be detected and how.
20222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224 #include <ac_nonexistent.h>
20226 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20227 # Broken: success on invalid input.
20230 # Passes both tests.
20234 rm -f conftest.err conftest.i conftest.
$ac_ext
20237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20238 rm -f conftest.i conftest.err conftest.
$ac_ext
20239 if $ac_preproc_ok; then :
20242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20244 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20245 See \`config.log' for more details" "$LINENO" 5; }
20249 ac_cpp
='$CXXCPP $CPPFLAGS'
20250 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20255 _lt_caught_CXX_error
=yes
20259 ac_cpp
='$CXXCPP $CPPFLAGS'
20260 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20264 archive_cmds_need_lc_CXX
=no
20265 allow_undefined_flag_CXX
=
20266 always_export_symbols_CXX
=no
20267 archive_expsym_cmds_CXX
=
20268 compiler_needs_object_CXX
=no
20269 export_dynamic_flag_spec_CXX
=
20270 hardcode_direct_CXX
=no
20271 hardcode_direct_absolute_CXX
=no
20272 hardcode_libdir_flag_spec_CXX
=
20273 hardcode_libdir_flag_spec_ld_CXX
=
20274 hardcode_libdir_separator_CXX
=
20275 hardcode_minus_L_CXX
=no
20276 hardcode_shlibpath_var_CXX
=unsupported
20277 hardcode_automatic_CXX
=no
20278 inherit_rpath_CXX
=no
20280 module_expsym_cmds_CXX
=
20281 link_all_deplibs_CXX
=unknown
20282 old_archive_cmds_CXX
=$old_archive_cmds
20283 reload_flag_CXX
=$reload_flag
20284 reload_cmds_CXX
=$reload_cmds
20285 no_undefined_flag_CXX
=
20286 whole_archive_flag_spec_CXX
=
20287 enable_shared_with_static_runtimes_CXX
=no
20289 # Source file extension for C++ test sources.
20292 # Object file extension for compiled C++ test sources.
20296 # No sense in running all these tests if we already determined that
20297 # the CXX compiler isn't working. Some variables (like enable_shared)
20298 # are currently assumed to apply to all compilers on this platform,
20299 # and will be corrupted by setting them based on a non-working compiler.
20300 if test "$_lt_caught_CXX_error" != yes; then
20301 # Code to be used in simple compile tests
20302 lt_simple_compile_test_code
="int some_variable = 0;"
20304 # Code to be used in simple link tests
20305 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20307 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20314 # If no C compiler was specified, use CC.
20317 # If no C compiler flags were specified, use CFLAGS.
20318 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20320 # Allow CC to be a program name with arguments.
20324 # save warnings/boilerplate of simple test code
20325 ac_outfile
=conftest.
$ac_objext
20326 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20327 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20328 _lt_compiler_boilerplate
=`cat conftest.err`
20331 ac_outfile
=conftest.
$ac_objext
20332 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20333 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20334 _lt_linker_boilerplate
=`cat conftest.err`
20338 # Allow CC to be a program name with arguments.
20343 lt_save_with_gnu_ld
=$with_gnu_ld
20344 lt_save_path_LD
=$lt_cv_path_LD
20345 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20346 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20348 $as_unset lt_cv_prog_gnu_ld
20350 if test -n "${lt_cv_path_LDCXX+set}"; then
20351 lt_cv_path_LD
=$lt_cv_path_LDCXX
20353 $as_unset lt_cv_path_LD
20355 test -z "${LDCXX+set}" || LD
=$LDCXX
20359 for cc_temp
in $compiler""; do
20361 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20362 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20367 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20370 if test -n "$compiler"; then
20371 # We don't want -fno-exception when compiling C++ code, so set the
20372 # no_builtin_flag separately
20373 if test "$GXX" = yes; then
20374 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20376 lt_prog_compiler_no_builtin_flag_CXX
=
20379 if test "$GXX" = yes; then
20380 # Set up default GNU C++ configuration
20384 # Check whether --with-gnu-ld was given.
20385 if test "${with_gnu_ld+set}" = set; then :
20386 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20392 if test "$GCC" = yes; then
20393 # Check if gcc -print-prog-name=ld gives a path.
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20395 $as_echo_n "checking for ld used by $CC... " >&6; }
20398 # gcc leaves a trailing carriage return which upsets mingw
20399 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20401 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20404 # Accept absolute paths.
20406 re_direlt
='/[^/][^/]*/\.\./'
20407 # Canonicalize the pathname of ld
20408 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20409 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20410 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20412 test -z "$LD" && LD
="$ac_prog"
20415 # If it fails, then pretend we aren't using GCC.
20419 # If it is relative, then search for the first ld in PATH.
20420 with_gnu_ld
=unknown
20423 elif test "$with_gnu_ld" = yes; then
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20425 $as_echo_n "checking for GNU ld... " >&6; }
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20428 $as_echo_n "checking for non-GNU ld... " >&6; }
20430 if ${lt_cv_path_LD+:} false
; then :
20431 $as_echo_n "(cached) " >&6
20433 if test -z "$LD"; then
20434 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20435 for ac_dir
in $PATH; do
20437 test -z "$ac_dir" && ac_dir
=.
20438 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20439 lt_cv_path_LD
="$ac_dir/$ac_prog"
20440 # Check to see if the program is GNU ld. I'd rather use --version,
20441 # but apparently some variants of GNU ld only accept -v.
20442 # Break only if it was the GNU/non-GNU ld that we prefer.
20443 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20444 *GNU
* |
*'with BFD'*)
20445 test "$with_gnu_ld" != no
&& break
20448 test "$with_gnu_ld" != yes && break
20455 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20459 LD
="$lt_cv_path_LD"
20460 if test -n "$LD"; then
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20462 $as_echo "$LD" >&6; }
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20465 $as_echo "no" >&6; }
20467 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20469 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20470 if ${lt_cv_prog_gnu_ld+:} false
; then :
20471 $as_echo_n "(cached) " >&6
20473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20474 case `$LD -v 2>&1 </dev/null` in
20475 *GNU
* |
*'with BFD'*)
20476 lt_cv_prog_gnu_ld
=yes
20479 lt_cv_prog_gnu_ld
=no
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20484 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20485 with_gnu_ld
=$lt_cv_prog_gnu_ld
20493 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20494 # archiving commands below assume that GNU ld is being used.
20495 if test "$with_gnu_ld" = yes; then
20496 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20497 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'
20499 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20500 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20502 # If archive_cmds runs LD, not CC, wlarc should be empty
20503 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20504 # investigate it a little bit more. (MM)
20507 # ancient GNU ld didn't support --whole-archive et. al.
20508 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20509 $GREP 'no-whole-archive' > /dev
/null
; then
20510 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20512 whole_archive_flag_spec_CXX
=
20518 # A generic and very simple default shared library creation
20519 # command for GNU C++ for the case where it uses the native
20520 # linker, instead of GNU ld. If possible, this setting should
20521 # overridden to take advantage of the native linker features on
20522 # the platform it is being used on.
20523 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20526 # Commands to make compiler produce verbose output that lists
20527 # what "hidden" libraries, object files and flags are used when
20528 # linking a shared library.
20529 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20537 # PORTME: fill in a description of your system's C++ link characteristics
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20543 # FIXME: insert proper C++ library support
20547 if test "$host_cpu" = ia64
; then
20548 # On IA64, the linker does run time linking by default, so we don't
20549 # have to do anything special.
20550 aix_use_runtimelinking
=no
20551 exp_sym_flag
='-Bexport'
20554 aix_use_runtimelinking
=no
20556 # Test if we are trying to use run time linking or normal
20557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20558 # need to do runtime linking.
20559 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20560 for ld_flag
in $LDFLAGS; do
20563 aix_use_runtimelinking
=yes
20571 exp_sym_flag
='-bexport'
20572 no_entry_flag
='-bnoentry'
20575 # When large executables or shared objects are built, AIX ld can
20576 # have problems creating the table of contents. If linking a library
20577 # or program results in "error TOC overflow" add -mminimal-toc to
20578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20581 archive_cmds_CXX
=''
20582 hardcode_direct_CXX
=yes
20583 hardcode_direct_absolute_CXX
=yes
20584 hardcode_libdir_separator_CXX
=':'
20585 link_all_deplibs_CXX
=yes
20586 file_list_spec_CXX
='${wl}-f,'
20588 if test "$GXX" = yes; then
20589 case $host_os in aix4.
[012]|aix4.
[012].
*)
20590 # We only want to do this on AIX 4.2 and lower, the check
20591 # below for broken collect2 doesn't work under 4.3+
20592 collect2name
=`${CC} -print-prog-name=collect2`
20593 if test -f "$collect2name" &&
20594 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20596 # We have reworked collect2
20599 # We have old collect2
20600 hardcode_direct_CXX
=unsupported
20601 # It fails to find uninstalled libraries when the uninstalled
20602 # path is not listed in the libpath. Setting hardcode_minus_L
20603 # to unsupported forces relinking
20604 hardcode_minus_L_CXX
=yes
20605 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20606 hardcode_libdir_separator_CXX
=
20609 shared_flag
='-shared'
20610 if test "$aix_use_runtimelinking" = yes; then
20611 shared_flag
="$shared_flag "'${wl}-G'
20615 if test "$host_cpu" = ia64
; then
20616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20617 # chokes on -Wl,-G. The following line is correct:
20620 if test "$aix_use_runtimelinking" = yes; then
20621 shared_flag
='${wl}-G'
20623 shared_flag
='${wl}-bM:SRE'
20628 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20629 # It seems that -bexpall does not export symbols beginning with
20630 # underscore (_), so it is better to generate a list of symbols to
20632 always_export_symbols_CXX
=yes
20633 if test "$aix_use_runtimelinking" = yes; then
20634 # Warning - without using the other runtime loading flags (-brtl),
20635 # -berok will link without error, but may produce a broken library.
20636 allow_undefined_flag_CXX
='-berok'
20637 # Determine the default libpath from the value encoded in an empty
20639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20650 if ac_fn_cxx_try_link
"$LINENO"; then :
20652 lt_aix_libpath_sed
='
20653 /Import File Strings/,/^$/ {
20659 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20660 # Check for a 64-bit object if we didn't find anything.
20661 if test -z "$aix_libpath"; then
20662 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20665 rm -f core conftest.err conftest.
$ac_objext \
20666 conftest
$ac_exeext conftest.
$ac_ext
20667 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20669 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20671 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"
20673 if test "$host_cpu" = ia64
; then
20674 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20675 allow_undefined_flag_CXX
="-z nodefs"
20676 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"
20678 # Determine the default libpath from the value encoded in an
20679 # empty executable.
20680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20691 if ac_fn_cxx_try_link
"$LINENO"; then :
20693 lt_aix_libpath_sed
='
20694 /Import File Strings/,/^$/ {
20700 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20701 # Check for a 64-bit object if we didn't find anything.
20702 if test -z "$aix_libpath"; then
20703 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20706 rm -f core conftest.err conftest.
$ac_objext \
20707 conftest
$ac_exeext conftest.
$ac_ext
20708 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20710 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20711 # Warning - without using the other run time loading flags,
20712 # -berok will link without error, but may produce a broken library.
20713 no_undefined_flag_CXX
=' ${wl}-bernotok'
20714 allow_undefined_flag_CXX
=' ${wl}-berok'
20715 if test "$with_gnu_ld" = yes; then
20716 # We only use this code for GNU lds that support --whole-archive.
20717 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20719 # Exported symbols can be pulled into shared objects from archives
20720 whole_archive_flag_spec_CXX
='$convenience'
20722 archive_cmds_need_lc_CXX
=yes
20723 # This is similar to how AIX traditionally builds its shared
20725 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'
20731 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20732 allow_undefined_flag_CXX
=unsupported
20733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20734 # support --undefined. This deserves some investigation. FIXME
20735 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20742 case $cc_basename in
20744 # FIXME: insert proper C++ library support
20750 cygwin
* | mingw
* | pw32
* | cegcc
*)
20751 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20752 # as there is no search path for DLLs.
20753 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20754 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20755 allow_undefined_flag_CXX
=unsupported
20756 always_export_symbols_CXX
=no
20757 enable_shared_with_static_runtimes_CXX
=yes
20759 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20760 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'
20761 # If the export-symbols file already is a .def file (1st line
20762 # is EXPORTS), use it as is; otherwise, prepend...
20763 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20764 cp $export_symbols $output_objdir/$soname.def;
20766 echo EXPORTS > $output_objdir/$soname.def;
20767 cat $export_symbols >> $output_objdir/$soname.def;
20769 $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'
20774 darwin
* | rhapsody
*)
20777 archive_cmds_need_lc_CXX
=no
20778 hardcode_direct_CXX
=no
20779 hardcode_automatic_CXX
=yes
20780 hardcode_shlibpath_var_CXX
=unsupported
20781 if test "$lt_cv_ld_force_load" = "yes"; then
20782 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\"`'
20784 whole_archive_flag_spec_CXX
=''
20786 link_all_deplibs_CXX
=yes
20787 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20788 case $cc_basename in
20789 ifort
*) _lt_dar_can_shared
=yes ;;
20790 *) _lt_dar_can_shared
=$GCC ;;
20792 if test "$_lt_dar_can_shared" = "yes"; then
20793 output_verbose_link_cmd
=func_echo_all
20794 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}"
20795 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20796 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}"
20797 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}"
20798 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20799 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}"
20800 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}"
20810 case $cc_basename in
20812 # FIXME: insert proper C++ library support
20816 # Green Hills C++ Compiler
20817 # FIXME: insert proper C++ library support
20821 # FIXME: insert proper C++ library support
20828 # C++ shared libraries reported to be fairly broken before
20834 archive_cmds_need_lc_CXX
=no
20837 freebsd
* | dragonfly
*)
20838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20847 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20848 link_all_deplibs_CXX
=yes
20852 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20853 hardcode_libdir_separator_CXX
=:
20854 export_dynamic_flag_spec_CXX
='${wl}-E'
20855 hardcode_direct_CXX
=yes
20856 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20857 # but as the default
20858 # location of the library.
20860 case $cc_basename in
20862 # FIXME: insert proper C++ library support
20866 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'
20867 # Commands to make compiler produce verbose output that lists
20868 # what "hidden" libraries, object files and flags are used when
20869 # linking a shared library.
20871 # There doesn't appear to be a way to prevent this compiler from
20872 # explicitly linking system object files so we need to strip them
20873 # from the output so that they don't get included in the library
20875 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"'
20878 if test "$GXX" = yes; then
20879 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'
20881 # FIXME: insert proper C++ library support
20889 if test $with_gnu_ld = no
; then
20890 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20891 hardcode_libdir_separator_CXX
=:
20897 export_dynamic_flag_spec_CXX
='${wl}-E'
20903 hardcode_direct_CXX
=no
20904 hardcode_shlibpath_var_CXX
=no
20907 hardcode_direct_CXX
=yes
20908 hardcode_direct_absolute_CXX
=yes
20909 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20910 # but as the default
20911 # location of the library.
20915 case $cc_basename in
20917 # FIXME: insert proper C++ library support
20923 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20926 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20929 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20932 # Commands to make compiler produce verbose output that lists
20933 # what "hidden" libraries, object files and flags are used when
20934 # linking a shared library.
20936 # There doesn't appear to be a way to prevent this compiler from
20937 # explicitly linking system object files so we need to strip them
20938 # from the output so that they don't get included in the library
20940 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"'
20943 if test "$GXX" = yes; then
20944 if test $with_gnu_ld = no
; then
20947 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20950 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20953 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'
20958 # FIXME: insert proper C++ library support
20966 hardcode_direct_CXX
=no
20967 hardcode_shlibpath_var_CXX
=no
20968 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20969 export_dynamic_flag_spec_CXX
='${wl}-E'
20970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20971 # Instead, shared libraries are loaded at an image base (0x10000000 by
20972 # default) and relocated if they conflict, which is a slow very memory
20973 # consuming and fragmenting process. To avoid this, we pick a random,
20974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20976 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'
20977 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'
20980 case $cc_basename in
20983 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'
20985 # Archives containing C++ object files must be created using
20986 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20987 # necessary to make sure instantiated templates are included
20989 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20992 if test "$GXX" = yes; then
20993 if test "$with_gnu_ld" = no
; then
20994 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'
20996 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'
20999 link_all_deplibs_CXX
=yes
21002 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21003 hardcode_libdir_separator_CXX
=:
21004 inherit_rpath_CXX
=yes
21007 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21008 case $cc_basename in
21010 # Kuck and Associates, Inc. (KAI) C++ Compiler
21012 # KCC will only create a shared library if the output file
21013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21014 # to its proper name (with version) after linking.
21015 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'
21016 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'
21017 # Commands to make compiler produce verbose output that lists
21018 # what "hidden" libraries, object files and flags are used when
21019 # linking a shared library.
21021 # There doesn't appear to be a way to prevent this compiler from
21022 # explicitly linking system object files so we need to strip them
21023 # from the output so that they don't get included in the library
21025 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"'
21027 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21028 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21030 # Archives containing C++ object files must be created using
21031 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21032 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21037 # version 8.0 and above of icpc choke on multiply defined symbols
21038 # if we add $predep_objects and $postdep_objects, however 7.1 and
21039 # earlier do not add the objects themselves.
21040 case `$CC -V 2>&1` in
21042 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21043 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'
21045 *) # Version 8.0 or newer
21048 ia64
*) tmp_idyn
=' -i_dynamic';;
21050 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21051 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'
21054 archive_cmds_need_lc_CXX
=no
21055 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21056 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21057 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21060 # Portland Group C++ compiler
21062 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21063 prelink_cmds_CXX
='tpldir=Template.dir~
21065 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21066 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21067 old_archive_cmds_CXX
='tpldir=Template.dir~
21069 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21070 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21072 archive_cmds_CXX
='tpldir=Template.dir~
21074 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21075 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21076 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21078 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21079 $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'
21081 *) # Version 6 and above use weak symbols
21082 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21083 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'
21087 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21088 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21089 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'
21093 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21094 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'
21096 runpath_var
=LD_RUN_PATH
21097 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21098 hardcode_libdir_separator_CXX
=:
21100 # Commands to make compiler produce verbose output that lists
21101 # what "hidden" libraries, object files and flags are used when
21102 # linking a shared library.
21104 # There doesn't appear to be a way to prevent this compiler from
21105 # explicitly linking system object files so we need to strip them
21106 # from the output so that they don't get included in the library
21108 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'
21110 xl
* | mpixl
* | bgxl
*)
21111 # IBM XL 8.0 on PPC, with GNU ld
21112 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21113 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21114 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21115 if test "x$supports_anon_versioning" = xyes
; then
21116 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21118 echo "local: *; };" >> $output_objdir/$libname.ver~
21119 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21123 case `$CC -V 2>&1 | sed 5q` in
21126 no_undefined_flag_CXX
=' -zdefs'
21127 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21128 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'
21129 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21130 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'
21131 compiler_needs_object_CXX
=yes
21133 # Not sure whether something based on
21134 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21136 output_verbose_link_cmd
='func_echo_all'
21138 # Archives containing C++ object files must be created using
21139 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21140 # necessary to make sure instantiated templates are included
21142 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21150 # FIXME: insert proper C++ library support
21155 # FIXME: insert proper C++ library support
21160 case $cc_basename in
21162 # FIXME: insert proper C++ library support
21166 # FIXME: insert proper C++ library support
21173 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21174 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21176 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21177 hardcode_direct_CXX
=yes
21178 hardcode_shlibpath_var_CXX
=no
21180 # Workaround some broken pre-1.5 toolchains
21181 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21189 # C++ shared libraries are fairly broken
21194 if test -f /usr
/libexec
/ld.so
; then
21195 hardcode_direct_CXX
=yes
21196 hardcode_shlibpath_var_CXX
=no
21197 hardcode_direct_absolute_CXX
=yes
21198 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21199 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21201 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21202 export_dynamic_flag_spec_CXX
='${wl}-E'
21203 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21205 output_verbose_link_cmd
=func_echo_all
21211 osf3
* | osf4
* | osf5
*)
21212 case $cc_basename in
21214 # Kuck and Associates, Inc. (KAI) C++ Compiler
21216 # KCC will only create a shared library if the output file
21217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21218 # to its proper name (with version) after linking.
21219 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'
21221 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21222 hardcode_libdir_separator_CXX
=:
21224 # Archives containing C++ object files must be created using
21225 # the KAI C++ compiler.
21227 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21228 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21232 # Rational C++ 2.4.1
21233 # FIXME: insert proper C++ library support
21239 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21240 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'
21241 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21244 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21245 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'
21246 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21247 echo "-hidden">> $lib.exp~
21248 $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~
21250 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21254 hardcode_libdir_separator_CXX
=:
21256 # Commands to make compiler produce verbose output that lists
21257 # what "hidden" libraries, object files and flags are used when
21258 # linking a shared library.
21260 # There doesn't appear to be a way to prevent this compiler from
21261 # explicitly linking system object files so we need to strip them
21262 # from the output so that they don't get included in the library
21264 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"'
21267 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21268 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21271 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'
21274 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'
21278 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21279 hardcode_libdir_separator_CXX
=:
21281 # Commands to make compiler produce verbose output that lists
21282 # what "hidden" libraries, object files and flags are used when
21283 # linking a shared library.
21284 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21287 # FIXME: insert proper C++ library support
21295 # FIXME: insert proper C++ library support
21300 case $cc_basename in
21303 # FIXME: insert proper C++ library support
21308 # FIXME: insert proper C++ library support
21312 # FIXME: insert proper C++ library support
21319 case $cc_basename in
21321 # Sun C++ 4.2, 5.x and Centerline C++
21322 archive_cmds_need_lc_CXX
=yes
21323 no_undefined_flag_CXX
=' -zdefs'
21324 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21325 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21326 $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'
21328 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21329 hardcode_shlibpath_var_CXX
=no
21331 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21333 # The compiler driver will combine and reorder linker options,
21334 # but understands `-z linker_flag'.
21335 # Supported since Solaris 2.6 (maybe 2.5.1?)
21336 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21339 link_all_deplibs_CXX
=yes
21341 output_verbose_link_cmd
='func_echo_all'
21343 # Archives containing C++ object files must be created using
21344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21345 # necessary to make sure instantiated templates are included
21347 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21350 # Green Hills C++ Compiler
21351 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21353 # The C++ compiler must be used to create the archive.
21354 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21357 # GNU C++ compiler with Solaris linker
21358 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21359 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21360 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21361 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21362 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21363 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21365 # Commands to make compiler produce verbose output that lists
21366 # what "hidden" libraries, object files and flags are used when
21367 # linking a shared library.
21368 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21370 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21372 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21373 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21376 # Commands to make compiler produce verbose output that lists
21377 # what "hidden" libraries, object files and flags are used when
21378 # linking a shared library.
21379 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21382 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21384 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21386 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21394 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21395 no_undefined_flag_CXX
='${wl}-z,text'
21396 archive_cmds_need_lc_CXX
=no
21397 hardcode_shlibpath_var_CXX
=no
21398 runpath_var
='LD_RUN_PATH'
21400 case $cc_basename in
21402 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21403 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21406 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21407 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21412 sysv5
* | sco3.2v5
* | sco5v6
*)
21413 # Note: We can NOT use -z defs as we might desire, because we do not
21414 # link with -lc, and that would cause any symbols used from libc to
21415 # always be unresolved, which means just about no library would
21416 # ever link correctly. If we're not using GNU ld we use -z text
21417 # though, which does catch some bad symbols but isn't as heavy-handed
21419 no_undefined_flag_CXX
='${wl}-z,text'
21420 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21421 archive_cmds_need_lc_CXX
=no
21422 hardcode_shlibpath_var_CXX
=no
21423 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21424 hardcode_libdir_separator_CXX
=':'
21425 link_all_deplibs_CXX
=yes
21426 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21427 runpath_var
='LD_RUN_PATH'
21429 case $cc_basename in
21431 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21432 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21433 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21434 '"$old_archive_cmds_CXX"
21435 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21436 '"$reload_cmds_CXX"
21439 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21440 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21446 case $cc_basename in
21448 # NonStop-UX NCC 3.20
21449 # FIXME: insert proper C++ library support
21453 # FIXME: insert proper C++ library support
21460 # For VxWorks ports, we assume the use of a GNU linker with
21461 # standard elf conventions.
21466 # FIXME: insert proper C++ library support
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21472 $as_echo "$ld_shlibs_CXX" >&6; }
21473 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21479 ## There is no encapsulation within the following macros, do not change
21480 ## the running order or otherwise move them around unless you know exactly
21481 ## what you are doing...
21482 # Dependencies to place before and after the object being linked:
21483 predep_objects_CXX
=
21484 postdep_objects_CXX
=
21487 compiler_lib_search_path_CXX
=
21489 cat > conftest.
$ac_ext <<_LT_EOF
21493 Foo (void) { a = 0; }
21499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21500 (eval $ac_compile) 2>&5
21502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21503 test $ac_status = 0; }; then
21504 # Parse the compiler output and extract the necessary
21505 # objects, libraries and library flags.
21507 # Sentinel used to keep track of whether or not we are before
21508 # the conftest object file.
21509 pre_test_object_deps_done
=no
21511 for p
in `eval "$output_verbose_link_cmd"`; do
21515 # Some compilers place space between "-{L,R}" and the path.
21516 # Remove the space.
21517 if test $p = "-L" ||
21518 test $p = "-R"; then
21525 if test "$pre_test_object_deps_done" = no
; then
21528 # Internal compiler library paths should come after those
21529 # provided the user. The postdeps already come after the
21530 # user supplied libs so there is no need to process them.
21531 if test -z "$compiler_lib_search_path_CXX"; then
21532 compiler_lib_search_path_CXX
="${prev}${p}"
21534 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21537 # The "-l" case would never come before the object being
21538 # linked, so don't bother handling this case.
21541 if test -z "$postdeps_CXX"; then
21542 postdeps_CXX
="${prev}${p}"
21544 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21550 # This assumes that the test object file only shows up
21551 # once in the compiler output.
21552 if test "$p" = "conftest.$objext"; then
21553 pre_test_object_deps_done
=yes
21557 if test "$pre_test_object_deps_done" = no
; then
21558 if test -z "$predep_objects_CXX"; then
21559 predep_objects_CXX
="$p"
21561 predep_objects_CXX
="$predep_objects_CXX $p"
21564 if test -z "$postdep_objects_CXX"; then
21565 postdep_objects_CXX
="$p"
21567 postdep_objects_CXX
="$postdep_objects_CXX $p"
21572 *) ;; # Ignore the rest.
21580 echo "libtool.m4: error: problem compiling CXX test program"
21583 $RM -f confest.
$objext
21585 # PORTME: override above test on systems where it is broken
21588 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21589 # hack all around it, let's just trust "g++" to DTRT.
21590 predep_objects_CXX
=
21591 postdep_objects_CXX
=
21596 case `$CC -V 2>&1 | sed 5q` in
21600 # The more standards-conforming stlport4 library is
21601 # incompatible with the Cstd library. Avoid specifying
21602 # it if it's in CXXFLAGS. Ignore libCrun as
21603 # -library=stlport4 depends on it.
21604 case " $CXX $CXXFLAGS " in
21605 *" -library=stlport4 "*)
21606 solaris_use_stlport4
=yes
21610 if test "$solaris_use_stlport4" != yes; then
21611 postdeps_CXX
='-library=Cstd -library=Crun'
21618 case $cc_basename in
21620 # The more standards-conforming stlport4 library is
21621 # incompatible with the Cstd library. Avoid specifying
21622 # it if it's in CXXFLAGS. Ignore libCrun as
21623 # -library=stlport4 depends on it.
21624 case " $CXX $CXXFLAGS " in
21625 *" -library=stlport4 "*)
21626 solaris_use_stlport4
=yes
21630 # Adding this requires a known-good setup of shared libraries for
21631 # Sun compiler versions before 5.6, else PIC objects from an old
21632 # archive will be linked into the output, leading to subtle bugs.
21633 if test "$solaris_use_stlport4" != yes; then
21634 postdeps_CXX
='-library=Cstd -library=Crun'
21642 case " $postdeps_CXX " in
21643 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21645 compiler_lib_search_dirs_CXX
=
21646 if test -n "${compiler_lib_search_path_CXX}"; then
21647 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21680 lt_prog_compiler_wl_CXX
=
21681 lt_prog_compiler_pic_CXX
=
21682 lt_prog_compiler_static_CXX
=
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21687 # C++ specific cases for pic, static, wl, etc.
21688 if test "$GXX" = yes; then
21689 lt_prog_compiler_wl_CXX
='-Wl,'
21690 lt_prog_compiler_static_CXX
='-static'
21694 # All AIX code is PIC.
21695 if test "$host_cpu" = ia64
; then
21696 # AIX 5 now supports IA64 processor
21697 lt_prog_compiler_static_CXX
='-Bstatic'
21699 lt_prog_compiler_pic_CXX
='-fPIC'
21705 # see comment about AmigaOS4 .so support
21706 lt_prog_compiler_pic_CXX
='-fPIC'
21709 # FIXME: we need at least 68020 code to build shared libraries, but
21710 # adding the `-m68020' flag to GCC prevents building anything better,
21712 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21717 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21718 # PIC is the default for these OSes.
21720 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21721 # This hack is so that the source file can tell whether it is being
21722 # built for inclusion in a dll (and should export symbols for example).
21723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21724 # (--disable-auto-import) libraries
21725 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21727 darwin
* | rhapsody
*)
21728 # PIC is the default on this platform
21729 # Common symbols not allowed in MH_DYLIB files
21730 lt_prog_compiler_pic_CXX
='-fno-common'
21733 # DJGPP does not support shared libraries at all
21734 lt_prog_compiler_pic_CXX
=
21737 # PIC is the default for Haiku.
21738 # The "-static" flag exists, but is broken.
21739 lt_prog_compiler_static_CXX
=
21742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21743 # Instead, we relocate shared libraries at runtime.
21746 if test -d /usr
/nec
; then
21747 lt_prog_compiler_pic_CXX
=-Kconform_pic
21751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21753 # sets the default TLS model and affects inlining.
21758 lt_prog_compiler_pic_CXX
='-fPIC'
21763 # QNX uses GNU C++, but need to define -shared option too, otherwise
21764 # it will coredump.
21765 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21768 lt_prog_compiler_pic_CXX
='-fPIC'
21774 # All AIX code is PIC.
21775 if test "$host_cpu" = ia64
; then
21776 # AIX 5 now supports IA64 processor
21777 lt_prog_compiler_static_CXX
='-Bstatic'
21779 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21783 case $cc_basename in
21785 # Green Hills C++ Compiler
21786 # _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"
21791 case $cc_basename in
21793 lt_prog_compiler_pic_CXX
='-KPIC'
21796 # Green Hills C++ Compiler
21797 lt_prog_compiler_pic_CXX
='-pic'
21803 freebsd
* | dragonfly
*)
21804 # FreeBSD uses GNU C++
21806 hpux9
* | hpux10
* | hpux11
*)
21807 case $cc_basename in
21809 lt_prog_compiler_wl_CXX
='-Wl,'
21810 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21811 if test "$host_cpu" != ia64
; then
21812 lt_prog_compiler_pic_CXX
='+Z'
21816 lt_prog_compiler_wl_CXX
='-Wl,'
21817 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21823 lt_prog_compiler_pic_CXX
='+Z'
21832 # This is c89, which is MS Visual C++ (no shared libs)
21833 # Anyone wants to do a port?
21835 irix5
* | irix6
* | nonstopux
*)
21836 case $cc_basename in
21838 lt_prog_compiler_wl_CXX
='-Wl,'
21839 lt_prog_compiler_static_CXX
='-non_shared'
21840 # CC pic flag -KPIC is the default.
21846 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21847 case $cc_basename in
21850 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21851 lt_prog_compiler_pic_CXX
='-fPIC'
21854 # old Intel C++ for x86_64 which still supported -KPIC.
21855 lt_prog_compiler_wl_CXX
='-Wl,'
21856 lt_prog_compiler_pic_CXX
='-KPIC'
21857 lt_prog_compiler_static_CXX
='-static'
21860 # Intel C++, used to be incompatible with GCC.
21861 # ICC 10 doesn't accept -KPIC any more.
21862 lt_prog_compiler_wl_CXX
='-Wl,'
21863 lt_prog_compiler_pic_CXX
='-fPIC'
21864 lt_prog_compiler_static_CXX
='-static'
21867 # Portland Group C++ compiler
21868 lt_prog_compiler_wl_CXX
='-Wl,'
21869 lt_prog_compiler_pic_CXX
='-fpic'
21870 lt_prog_compiler_static_CXX
='-Bstatic'
21874 # Make sure the PIC flag is empty. It appears that all Alpha
21875 # Linux and Compaq Tru64 Unix objects are PIC.
21876 lt_prog_compiler_pic_CXX
=
21877 lt_prog_compiler_static_CXX
='-non_shared'
21879 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21880 # IBM XL 8.0, 9.0 on PPC and BlueGene
21881 lt_prog_compiler_wl_CXX
='-Wl,'
21882 lt_prog_compiler_pic_CXX
='-qpic'
21883 lt_prog_compiler_static_CXX
='-qstaticlink'
21886 case `$CC -V 2>&1 | sed 5q` in
21889 lt_prog_compiler_pic_CXX
='-KPIC'
21890 lt_prog_compiler_static_CXX
='-Bstatic'
21891 lt_prog_compiler_wl_CXX
='-Qoption ld '
21902 case $cc_basename in
21904 lt_prog_compiler_pic_CXX
='-W c,exportall'
21913 # QNX uses GNU C++, but need to define -shared option too, otherwise
21914 # it will coredump.
21915 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21917 osf3
* | osf4
* | osf5
*)
21918 case $cc_basename in
21920 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21923 # Rational C++ 2.4.1
21924 lt_prog_compiler_pic_CXX
='-pic'
21927 # Digital/Compaq C++
21928 lt_prog_compiler_wl_CXX
='-Wl,'
21929 # Make sure the PIC flag is empty. It appears that all Alpha
21930 # Linux and Compaq Tru64 Unix objects are PIC.
21931 lt_prog_compiler_pic_CXX
=
21932 lt_prog_compiler_static_CXX
='-non_shared'
21941 case $cc_basename in
21943 # Sun C++ 4.2, 5.x and Centerline C++
21944 lt_prog_compiler_pic_CXX
='-KPIC'
21945 lt_prog_compiler_static_CXX
='-Bstatic'
21946 lt_prog_compiler_wl_CXX
='-Qoption ld '
21949 # Green Hills C++ Compiler
21950 lt_prog_compiler_pic_CXX
='-PIC'
21957 case $cc_basename in
21960 lt_prog_compiler_pic_CXX
='-pic'
21961 lt_prog_compiler_static_CXX
='-Bstatic'
21965 lt_prog_compiler_pic_CXX
='-pic'
21971 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21972 case $cc_basename in
21974 lt_prog_compiler_wl_CXX
='-Wl,'
21975 lt_prog_compiler_pic_CXX
='-KPIC'
21976 lt_prog_compiler_static_CXX
='-Bstatic'
21981 case $cc_basename in
21983 # NonStop-UX NCC 3.20
21984 lt_prog_compiler_pic_CXX
='-KPIC'
21993 lt_prog_compiler_can_build_shared_CXX
=no
21999 # For platforms which do not support PIC, -DPIC is meaningless:
22001 lt_prog_compiler_pic_CXX
=
22004 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22008 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22013 # Check to make sure the PIC flag actually works.
22015 if test -n "$lt_prog_compiler_pic_CXX"; then
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22017 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22018 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22019 $as_echo_n "(cached) " >&6
22021 lt_cv_prog_compiler_pic_works_CXX
=no
22022 ac_outfile
=conftest.
$ac_objext
22023 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22024 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22025 # Insert the option either (1) after the last *FLAGS variable, or
22026 # (2) before a word containing "conftest.", or (3) at the end.
22027 # Note that $ac_compile itself does not contain backslashes and begins
22028 # with a dollar sign (not a hyphen), so the echo should work correctly.
22029 # The option is referenced via a variable to avoid confusing sed.
22030 lt_compile
=`echo "$ac_compile" | $SED \
22031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22033 -e 's:$: $lt_compiler_flag:'`
22034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22035 (eval "$lt_compile" 2>conftest.err
)
22037 cat conftest.err
>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 if (exit $ac_status) && test -s "$ac_outfile"; then
22040 # The compiler can only warn and ignore the option if not recognized
22041 # So say no if there are warnings other than the usual output.
22042 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22043 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22044 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22045 lt_cv_prog_compiler_pic_works_CXX
=yes
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22052 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22054 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22055 case $lt_prog_compiler_pic_CXX in
22057 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22060 lt_prog_compiler_pic_CXX
=
22061 lt_prog_compiler_can_build_shared_CXX
=no
22069 # Check to make sure the static flag actually works.
22071 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22074 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22075 $as_echo_n "(cached) " >&6
22077 lt_cv_prog_compiler_static_works_CXX
=no
22078 save_LDFLAGS
="$LDFLAGS"
22079 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22080 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22081 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22082 # The linker can only warn and ignore the option if not recognized
22083 # So say no if there are warnings
22084 if test -s conftest.err
; then
22085 # Append any errors to the config.log.
22086 cat conftest.err
1>&5
22087 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22088 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22089 if diff conftest.exp conftest.er2
>/dev
/null
; then
22090 lt_cv_prog_compiler_static_works_CXX
=yes
22093 lt_cv_prog_compiler_static_works_CXX
=yes
22097 LDFLAGS
="$save_LDFLAGS"
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22101 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22103 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22106 lt_prog_compiler_static_CXX
=
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22114 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22115 $as_echo_n "(cached) " >&6
22117 lt_cv_prog_compiler_c_o_CXX
=no
22118 $RM -r conftest
2>/dev
/null
22122 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22124 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22125 # Insert the option either (1) after the last *FLAGS variable, or
22126 # (2) before a word containing "conftest.", or (3) at the end.
22127 # Note that $ac_compile itself does not contain backslashes and begins
22128 # with a dollar sign (not a hyphen), so the echo should work correctly.
22129 lt_compile
=`echo "$ac_compile" | $SED \
22130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22132 -e 's:$: $lt_compiler_flag:'`
22133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22134 (eval "$lt_compile" 2>out
/conftest.err
)
22136 cat out
/conftest.err
>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22140 # The compiler can only warn and ignore the option if not recognized
22141 # So say no if there are warnings
22142 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22143 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22144 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22145 lt_cv_prog_compiler_c_o_CXX
=yes
22150 # SGI C++ compiler will create directory out/ii_files/ for
22151 # template instantiation
22152 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22153 $RM out
/* && rmdir out
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22160 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22166 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22167 $as_echo_n "(cached) " >&6
22169 lt_cv_prog_compiler_c_o_CXX
=no
22170 $RM -r conftest
2>/dev
/null
22174 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22176 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22177 # Insert the option either (1) after the last *FLAGS variable, or
22178 # (2) before a word containing "conftest.", or (3) at the end.
22179 # Note that $ac_compile itself does not contain backslashes and begins
22180 # with a dollar sign (not a hyphen), so the echo should work correctly.
22181 lt_compile
=`echo "$ac_compile" | $SED \
22182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22184 -e 's:$: $lt_compiler_flag:'`
22185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22186 (eval "$lt_compile" 2>out
/conftest.err
)
22188 cat out
/conftest.err
>&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22192 # The compiler can only warn and ignore the option if not recognized
22193 # So say no if there are warnings
22194 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22195 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22196 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22197 lt_cv_prog_compiler_c_o_CXX
=yes
22202 # SGI C++ compiler will create directory out/ii_files/ for
22203 # template instantiation
22204 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22205 $RM out
/* && rmdir out
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22212 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22217 hard_links
="nottested"
22218 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22219 # do not overwrite the value of need_locks provided by the user
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22221 $as_echo_n "checking if we can lock with hard links... " >&6; }
22224 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22226 ln conftest.a conftest.b
2>&5 || hard_links
=no
22227 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22229 $as_echo "$hard_links" >&6; }
22230 if test "$hard_links" = no
; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22244 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22247 # If we're using GNU nm, then we don't want the "-C" option.
22248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22249 # Also, AIX nm treats weak defined symbols like other global defined
22250 # symbols, whereas GNU nm marks them as "W".
22251 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22252 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'
22254 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'
22258 export_symbols_cmds_CXX
="$ltdll_cmds"
22260 cygwin
* | mingw
* | cegcc
*)
22261 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'
22264 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22267 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22270 $as_echo "$ld_shlibs_CXX" >&6; }
22271 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22273 with_gnu_ld_CXX
=$with_gnu_ld
22281 # Do we need to explicitly link libc?
22283 case "x$archive_cmds_need_lc_CXX" in
22285 # Assume -lc should be added
22286 archive_cmds_need_lc_CXX
=yes
22288 if test "$enable_shared" = yes && test "$GCC" = yes; then
22289 case $archive_cmds_CXX in
22291 # FIXME: we may have to deal with multi-command sequences.
22294 # Test whether the compiler implicitly links with -lc since on some
22295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22296 # to ld, don't add -lc before -lgcc.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22298 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22299 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22300 $as_echo_n "(cached) " >&6
22303 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22306 (eval $ac_compile) 2>&5
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; } 2>conftest.err
; then
22312 libobjs
=conftest.
$ac_objext
22314 wl
=$lt_prog_compiler_wl_CXX
22315 pic_flag
=$lt_prog_compiler_pic_CXX
22321 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22322 allow_undefined_flag_CXX
=
22323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22324 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }
22329 lt_cv_archive_cmds_need_lc_CXX
=no
22331 lt_cv_archive_cmds_need_lc_CXX
=yes
22333 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22335 cat conftest.err
1>&5
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22341 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22342 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22415 library_names_spec
=
22416 libname_spec
='lib$name'
22420 postuninstall_cmds
=
22424 shlibpath_overrides_runpath
=unknown
22426 dynamic_linker
="$host_os ld.so"
22427 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22428 need_lib_prefix
=unknown
22429 hardcode_into_libs
=no
22431 # when you set need_version to no, make sure it does not cause -set_version
22432 # flags to be left without arguments
22433 need_version
=unknown
22438 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22439 shlibpath_var
=LIBPATH
22441 # AIX 3 has no versioning support, so we append a major version to the name.
22442 soname_spec
='${libname}${release}${shared_ext}$major'
22449 hardcode_into_libs
=yes
22450 if test "$host_cpu" = ia64
; then
22451 # AIX 5 supports IA64
22452 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22453 shlibpath_var
=LD_LIBRARY_PATH
22455 # With GCC up to 2.95.x, collect2 would create an import file
22456 # for dependence libraries. The import file would start with
22457 # the line `#! .'. This would cause the generated library to
22458 # depend on `.', always an invalid library. This was fixed in
22459 # development snapshots of GCC prior to 3.0.
22461 aix4 | aix4.
[01] | aix4.
[01].
*)
22462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22464 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22467 can_build_shared
=no
22471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22472 # soname into executable. Probably we can add versioning support to
22473 # collect2, so additional links can be useful in future.
22474 if test "$aix_use_runtimelinking" = yes; then
22475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22476 # instead of lib<name>.a to let people know that these are not
22477 # typical AIX shared libraries.
22478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22480 # We preserve .a as extension for shared libraries through AIX4.2
22481 # and later when we are not doing run time linking.
22482 library_names_spec
='${libname}${release}.a $libname.a'
22483 soname_spec
='${libname}${release}${shared_ext}$major'
22485 shlibpath_var
=LIBPATH
22492 # Since July 2007 AmigaOS4 officially supports .so libraries.
22493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22497 library_names_spec
='$libname.ixlibrary $libname.a'
22498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22499 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'
22505 library_names_spec
='${libname}${shared_ext}'
22506 dynamic_linker
="$host_os ld.so"
22507 shlibpath_var
=LIBRARY_PATH
22513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22514 soname_spec
='${libname}${release}${shared_ext}$major'
22515 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22516 shlibpath_var
=LD_LIBRARY_PATH
22517 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22518 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22519 # the default ld.so.conf also contains /usr/contrib/lib and
22520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22521 # libtool to hard-code these into programs
22524 cygwin
* | mingw
* | pw32
* | cegcc
*)
22525 version_type
=windows
22530 case $GCC,$host_os in
22531 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22532 library_names_spec
='$libname.dll.a'
22533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22534 postinstall_cmds
='base_file=`basename \${file}`~
22535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22536 dldir=$destdir/`dirname \$dlpath`~
22537 test -d \$dldir || mkdir -p \$dldir~
22538 $install_prog $dir/$dlname \$dldir/$dlname~
22539 chmod a+x \$dldir/$dlname~
22540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22543 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22544 dlpath=$dir/\$dldll~
22546 shlibpath_overrides_runpath
=yes
22550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22551 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22555 # MinGW DLLs use traditional 'lib' prefix
22556 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22559 # pw32 DLLs use 'pw' prefix rather than 'lib'
22560 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22566 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22569 dynamic_linker
='Win32 ld.exe'
22570 # FIXME: first we should search . and the directory the executable is in
22574 darwin
* | rhapsody
*)
22575 dynamic_linker
="$host_os dyld"
22576 version_type
=darwin
22579 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22580 soname_spec
='${libname}${release}${major}$shared_ext'
22581 shlibpath_overrides_runpath
=yes
22582 shlibpath_var
=DYLD_LIBRARY_PATH
22583 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22585 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22593 soname_spec
='${libname}${release}${shared_ext}$major'
22594 shlibpath_var
=LD_LIBRARY_PATH
22597 freebsd
* | dragonfly
*)
22598 # DragonFly does not have aout. When/if they implement a new
22599 # versioning mechanism, adjust this.
22600 if test -x /usr
/bin
/objformat
; then
22601 objformat
=`/usr/bin/objformat`
22604 freebsd
[23].
*) objformat
=aout
;;
22605 *) objformat
=elf
;;
22608 version_type
=freebsd-
$objformat
22609 case $version_type in
22611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22616 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22620 shlibpath_var
=LD_LIBRARY_PATH
22623 shlibpath_overrides_runpath
=yes
22625 freebsd3.
[01]* | freebsdelf3.
[01]*)
22626 shlibpath_overrides_runpath
=yes
22627 hardcode_into_libs
=yes
22629 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22630 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22631 shlibpath_overrides_runpath
=no
22632 hardcode_into_libs
=yes
22634 *) # from 4.6 on, and DragonFly
22635 shlibpath_overrides_runpath
=yes
22636 hardcode_into_libs
=yes
22645 dynamic_linker
="$host_os runtime_loader"
22646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22647 soname_spec
='${libname}${release}${shared_ext}$major'
22648 shlibpath_var
=LIBRARY_PATH
22649 shlibpath_overrides_runpath
=yes
22650 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22651 hardcode_into_libs
=yes
22654 hpux9
* | hpux10
* | hpux11
*)
22655 # Give a soname corresponding to the major version so that dld.sl refuses to
22656 # link against other versions.
22663 hardcode_into_libs
=yes
22664 dynamic_linker
="$host_os dld.so"
22665 shlibpath_var
=LD_LIBRARY_PATH
22666 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22668 soname_spec
='${libname}${release}${shared_ext}$major'
22669 if test "X$HPUX_IA64_MODE" = X32
; then
22670 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22672 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22674 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22678 hardcode_into_libs
=yes
22679 dynamic_linker
="$host_os dld.sl"
22680 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22681 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22683 soname_spec
='${libname}${release}${shared_ext}$major'
22684 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22685 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22689 dynamic_linker
="$host_os dld.sl"
22690 shlibpath_var
=SHLIB_PATH
22691 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec
='${libname}${release}${shared_ext}$major'
22696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22697 postinstall_cmds
='chmod 555 $lib'
22698 # or fails outright, so override atomically:
22699 install_override_mode
=555
22706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22707 soname_spec
='${libname}${release}${shared_ext}$major'
22708 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22709 shlibpath_var
=LD_LIBRARY_PATH
22710 shlibpath_overrides_runpath
=no
22711 hardcode_into_libs
=yes
22714 irix5
* | irix6
* | nonstopux
*)
22716 nonstopux
*) version_type
=nonstopux
;;
22718 if test "$lt_cv_prog_gnu_ld" = yes; then
22726 soname_spec
='${libname}${release}${shared_ext}$major'
22727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22729 irix5
* | nonstopux
*)
22730 libsuff
= shlibsuff
=
22733 case $LD in # libtool.m4 will add one of these switches to LD
22734 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22735 libsuff
= shlibsuff
= libmagic
=32-bit;;
22736 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22737 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22738 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22739 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22740 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22744 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22745 shlibpath_overrides_runpath
=no
22746 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22747 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22748 hardcode_into_libs
=yes
22751 # No shared lib support for Linux oldld, aout, or coff.
22752 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22756 # This must be Linux ELF.
22758 # uclinux* changes (here and below) have been submitted to the libtool
22759 # project, but have not yet been accepted: they are GCC-local changes
22760 # for the time being. (See
22761 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22762 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec
='${libname}${release}${shared_ext}$major'
22768 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22769 shlibpath_var
=LD_LIBRARY_PATH
22770 shlibpath_overrides_runpath
=no
22772 # Some binutils ld are patched to set DT_RUNPATH
22773 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22774 $as_echo_n "(cached) " >&6
22776 lt_cv_shlibpath_overrides_runpath
=no
22777 save_LDFLAGS
=$LDFLAGS
22778 save_libdir
=$libdir
22779 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22780 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h. */
22792 if ac_fn_cxx_try_link
"$LINENO"; then :
22793 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22794 lt_cv_shlibpath_overrides_runpath
=yes
22797 rm -f core conftest.err conftest.
$ac_objext \
22798 conftest
$ac_exeext conftest.
$ac_ext
22799 LDFLAGS
=$save_LDFLAGS
22800 libdir
=$save_libdir
22804 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22806 # This implies no fast_install, which is unacceptable.
22807 # Some rework will be needed to allow for fast_install
22808 # before this can be enabled.
22809 hardcode_into_libs
=yes
22811 # Append ld.so.conf contents to the search path
22812 if test -f /etc
/ld.so.conf
; then
22813 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' ' '`
22814 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22817 # We used to test for /lib/ld.so.1 and disable shared libraries on
22818 # powerpc, because MkLinux only supported shared libraries with the
22819 # GNU dynamic linker. Since this was broken with cross compilers,
22820 # most powerpc-linux boxes support dynamic linking these days and
22821 # people can always --disable-shared, the test was removed, and we
22822 # assume the GNU/Linux dynamic linker is in use.
22823 dynamic_linker
='GNU/Linux ld.so'
22830 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22832 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22833 dynamic_linker
='NetBSD (a.out) ld.so'
22835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22836 soname_spec
='${libname}${release}${shared_ext}$major'
22837 dynamic_linker
='NetBSD ld.elf_so'
22839 shlibpath_var
=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath
=yes
22841 hardcode_into_libs
=yes
22846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847 shlibpath_var
=LD_LIBRARY_PATH
22848 shlibpath_overrides_runpath
=yes
22855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22856 soname_spec
='${libname}${release}${shared_ext}$major'
22857 shlibpath_var
=LD_LIBRARY_PATH
22858 shlibpath_overrides_runpath
=no
22859 hardcode_into_libs
=yes
22860 dynamic_linker
='ldqnx.so'
22865 sys_lib_dlsearch_path_spec
="/usr/lib"
22867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22869 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22870 *) need_version
=no
;;
22872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22873 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22874 shlibpath_var
=LD_LIBRARY_PATH
22875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22877 openbsd2.
[89] | openbsd2.
[89].
*)
22878 shlibpath_overrides_runpath
=no
22881 shlibpath_overrides_runpath
=yes
22885 shlibpath_overrides_runpath
=yes
22890 libname_spec
='$name'
22893 library_names_spec
='$libname${shared_ext} $libname.a'
22894 dynamic_linker
='OS/2 ld.exe'
22895 shlibpath_var
=LIBPATH
22898 osf3
* | osf4
* | osf5
*)
22902 soname_spec
='${libname}${release}${shared_ext}$major'
22903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22904 shlibpath_var
=LD_LIBRARY_PATH
22905 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22906 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec
='${libname}${release}${shared_ext}$major'
22919 shlibpath_var
=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath
=yes
22921 hardcode_into_libs
=yes
22922 # ldd complains unless libraries are executable
22923 postinstall_cmds
='chmod +x $lib'
22928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22929 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22930 shlibpath_var
=LD_LIBRARY_PATH
22931 shlibpath_overrides_runpath
=yes
22932 if test "$with_gnu_ld" = yes; then
22940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 soname_spec
='${libname}${release}${shared_ext}$major'
22942 shlibpath_var
=LD_LIBRARY_PATH
22943 case $host_vendor in
22945 shlibpath_overrides_runpath
=no
22947 runpath_var
=LD_RUN_PATH
22955 shlibpath_overrides_runpath
=no
22956 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22962 if test -d /usr
/nec
;then
22964 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22965 soname_spec
='$libname${shared_ext}.$major'
22966 shlibpath_var
=LD_LIBRARY_PATH
22970 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22971 version_type
=freebsd-elf
22974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22975 soname_spec
='${libname}${release}${shared_ext}$major'
22976 shlibpath_var
=LD_LIBRARY_PATH
22977 shlibpath_overrides_runpath
=yes
22978 hardcode_into_libs
=yes
22979 if test "$with_gnu_ld" = yes; then
22980 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22982 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22985 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22989 sys_lib_dlsearch_path_spec
='/usr/lib'
22993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22998 shlibpath_var
=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath
=no
23000 hardcode_into_libs
=yes
23005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23006 soname_spec
='${libname}${release}${shared_ext}$major'
23007 shlibpath_var
=LD_LIBRARY_PATH
23010 # Shared libraries for VwWorks, >= 7 only at this stage
23011 # and (fpic) still incompatible with "large" code models
23012 # in a few configurations. Only for RTP mode in any case,
23013 # and upon explicit request at configure time.
23016 case ${with_multisubdir}-${enable_shared} in
23023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23024 soname_spec
='${libname}${release}${shared_ext}$major'
23025 dynamic_linker
="$host_os module_loader"
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23034 $as_echo "$dynamic_linker" >&6; }
23035 test "$dynamic_linker" = no
&& can_build_shared
=no
23037 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23038 if test "$GCC" = yes; then
23039 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23042 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23043 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23045 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23046 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23087 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23088 hardcode_action_CXX
=
23089 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23090 test -n "$runpath_var_CXX" ||
23091 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23093 # We can hardcode non-existent directories.
23094 if test "$hardcode_direct_CXX" != no
&&
23095 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23096 # have to relink, otherwise we might link with an installed library
23097 # when we should be linking with a yet-to-be-installed one
23098 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23099 test "$hardcode_minus_L_CXX" != no
; then
23100 # Linking always hardcodes the temporary library directory.
23101 hardcode_action_CXX
=relink
23103 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23104 hardcode_action_CXX
=immediate
23107 # We cannot hardcode anything, or else we can only hardcode existing
23109 hardcode_action_CXX
=unsupported
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23112 $as_echo "$hardcode_action_CXX" >&6; }
23114 if test "$hardcode_action_CXX" = relink ||
23115 test "$inherit_rpath_CXX" = yes; then
23116 # Fast installation is not supported
23117 enable_fast_install
=no
23118 elif test "$shlibpath_overrides_runpath" = yes ||
23119 test "$enable_shared" = no
; then
23120 # Fast installation is not necessary
23121 enable_fast_install
=needless
23130 fi # test -n "$compiler"
23136 with_gnu_ld
=$lt_save_with_gnu_ld
23137 lt_cv_path_LDCXX
=$lt_cv_path_LD
23138 lt_cv_path_LD
=$lt_save_path_LD
23139 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23140 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23141 fi # test "$_lt_caught_CXX_error" != yes
23144 ac_cpp
='$CXXCPP $CPPFLAGS'
23145 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23146 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23147 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23164 # Only expand once:
23170 # Identify the assembler which will work hand-in-glove with the newly
23171 # built GCC, so that we can examine its features. This is the assembler
23172 # which will be driven by the driver program.
23174 # If build != host, and we aren't building gas in-tree, we identify a
23175 # build->target assembler and hope that it will have the same features
23176 # as the host->target assembler we'll be using.
23177 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23179 if ${gcc_cv_as+:} false
; then :
23183 if test -x "$DEFAULT_ASSEMBLER"; then
23184 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23185 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23186 && test -f ..
/gas
/Makefile \
23187 && test x
$build = x
$host; then
23188 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23189 elif test -x as
$build_exeext; then
23190 # Build using assembler in the current directory.
23191 gcc_cv_as
=.
/as
$build_exeext
23192 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23193 gcc_cv_as
="$AS_FOR_TARGET"
23195 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23196 set dummy
$AS_FOR_TARGET; ac_word
=$2
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23198 $as_echo_n "checking for $ac_word... " >&6; }
23199 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23200 $as_echo_n "(cached) " >&6
23204 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23208 for as_dir
in $PATH
23211 test -z "$as_dir" && as_dir
=.
23212 for ac_exec_ext
in '' $ac_executable_extensions; do
23213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23214 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23225 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23226 if test -n "$gcc_cv_as"; then
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23228 $as_echo "$gcc_cv_as" >&6; }
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23238 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23240 case "$ORIGINAL_AS_FOR_TARGET" in
23241 .
/as | .
/as
$build_exeext) ;;
23242 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23247 # Check whether --enable-ld was given.
23248 if test "${enable_ld+set}" = set; then :
23249 enableval
=$enable_ld; case "${enableval}" in
23257 install_gold_as_default
=no
23258 # Check whether --enable-gold was given.
23259 if test "${enable_gold+set}" = set; then :
23260 enableval
=$enable_gold; case "${enableval}" in
23262 install_gold_as_default
=yes
23265 if test x
${default_ld} != x
; then
23266 install_gold_as_default
=yes
23272 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23278 # Identify the linker which will work hand-in-glove with the newly
23279 # built GCC, so that we can examine its features. This is the linker
23280 # which will be driven by the driver program.
23282 # If build != host, and we aren't building gas in-tree, we identify a
23283 # build->target linker and hope that it will have the same features
23284 # as the host->target linker we'll be using.
23285 gcc_cv_gld_major_version
=
23286 gcc_cv_gld_minor_version
=
23287 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23288 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23289 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23291 if ${gcc_cv_ld+:} false
; then :
23295 if test -x "$DEFAULT_LINKER"; then
23296 gcc_cv_ld
="$DEFAULT_LINKER"
23297 elif test $install_gold_as_default = yes \
23298 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23299 && test -f ..
/gold
/Makefile \
23300 && test x
$build = x
$host; then
23301 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23302 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23303 && test -f ..
/ld
/Makefile \
23304 && test x
$build = x
$host; then
23305 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23306 elif test -x collect-ld
$build_exeext; then
23307 # Build using linker in the current directory.
23308 gcc_cv_ld
=.
/collect-ld
$build_exeext
23309 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23310 gcc_cv_ld
="$LD_FOR_TARGET"
23312 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23313 set dummy
$LD_FOR_TARGET; ac_word
=$2
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23315 $as_echo_n "checking for $ac_word... " >&6; }
23316 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23317 $as_echo_n "(cached) " >&6
23321 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23325 for as_dir
in $PATH
23328 test -z "$as_dir" && as_dir
=.
23329 for ac_exec_ext
in '' $ac_executable_extensions; do
23330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23331 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23342 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23343 if test -n "$gcc_cv_ld"; then
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23345 $as_echo "$gcc_cv_ld" >&6; }
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23348 $as_echo "no" >&6; }
23355 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23356 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23357 # if the PLUGIN_LD is set ld-new, just have it as ld
23358 # as that is the installed named.
23359 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23360 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23361 PLUGIN_LD_SUFFIX
=ld
23364 # Check whether --with-plugin-ld was given.
23365 if test "${with_plugin_ld+set}" = set; then :
23366 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23367 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23368 PLUGIN_LD_SUFFIX
="$withval"
23374 cat >>confdefs.h
<<_ACEOF
23375 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23379 # Check to see if we are using gold instead of ld
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23381 $as_echo_n "checking whether we are using gold... " >&6; }
23383 if test x
$gcc_cv_ld != x
; then
23384 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23385 |
grep "GNU gold" > /dev
/null
; then
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23390 $as_echo "$ld_is_gold" >&6; }
23392 # Check to see if we are using mold instead of ld
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23394 $as_echo_n "checking whether we are using mold... " >&6; }
23396 if test x
$gcc_cv_ld != x
; then
23397 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23398 |
grep "mold" > /dev
/null
; then
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23403 $as_echo "$ld_is_mold" >&6; }
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23407 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23408 # Check to see if default ld is not gold, but gold is
23409 # available and has support for split stack. If gcc was configured
23410 # with gold then no checking is done.
23412 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23414 # For platforms other than powerpc64*, enable as appropriate.
23416 gold_non_default
=no
23417 ld_gold
=`which ${gcc_cv_ld}.gold`
23418 # Make sure this gold has minimal split stack support
23419 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23420 ld_vers
=`$ld_gold --version | sed 1q`
23421 gold_vers
=`echo $ld_vers | sed -n \
23422 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23424 # check that the gold version contains the complete split stack support
23425 # on powerpc64 big and little endian
23427 case "$gold_vers" in
23428 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23430 *) gold_non_default
=no
23436 if test $gold_non_default = yes; then
23438 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23443 $as_echo "$gold_non_default" >&6; }
23445 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23447 case "$ORIGINAL_LD_FOR_TARGET" in
23448 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23449 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23454 $as_echo_n "checking what linker to use... " >&6; }
23455 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23456 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23457 # Single tree build which includes ld. We want to prefer it
23458 # over whatever linker top-level may have detected, since
23459 # we'll use what we're building after installation anyway.
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23461 $as_echo "newly built ld" >&6; }
23463 in_tree_ld_is_elf
=no
23464 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23465 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23466 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23467 in_tree_ld_is_elf
=yes
23468 elif test "$ld_is_gold" = yes; then
23469 in_tree_ld_is_elf
=yes
23471 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
23473 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23474 if test x
$gcc_cv_gld_version != x
; then
23478 case $gcc_cv_gld_version in
23480 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23482 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23483 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23484 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23485 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23488 $as_echo "$gcc_cv_ld" >&6; }
23490 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23491 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23492 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23498 # Figure out what nm we will be using.
23499 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23500 if ${gcc_cv_nm+:} false
; then :
23504 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23505 && test -f ..
/binutils
/Makefile \
23506 && test x
$build = x
$host; then
23507 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23508 elif test -x nm
$build_exeext; then
23509 gcc_cv_nm
=.
/nm
$build_exeext
23510 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23511 gcc_cv_nm
="$NM_FOR_TARGET"
23513 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23514 set dummy
$NM_FOR_TARGET; ac_word
=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23518 $as_echo_n "(cached) " >&6
23522 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23526 for as_dir
in $PATH
23529 test -z "$as_dir" && as_dir
=.
23530 for ac_exec_ext
in '' $ac_executable_extensions; do
23531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23532 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23543 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23544 if test -n "$gcc_cv_nm"; then
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23546 $as_echo "$gcc_cv_nm" >&6; }
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23557 $as_echo_n "checking what nm to use... " >&6; }
23558 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23559 # Single tree build which includes binutils.
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23561 $as_echo "newly built nm" >&6; }
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23565 $as_echo "$gcc_cv_nm" >&6; }
23569 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23571 case "$ORIGINAL_NM_FOR_TARGET" in
23572 .
/nm | .
/nm
$build_exeext) ;;
23573 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23578 # Figure out what objdump we will be using.
23579 if ${gcc_cv_objdump+:} false
; then :
23583 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23584 && test -f ..
/binutils
/Makefile \
23585 && test x
$build = x
$host; then
23586 # Single tree build which includes binutils.
23587 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23588 elif test -x objdump
$build_exeext; then
23589 gcc_cv_objdump
=.
/objdump
$build_exeext
23590 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23591 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23593 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23594 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23596 $as_echo_n "checking for $ac_word... " >&6; }
23597 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23598 $as_echo_n "(cached) " >&6
23600 case $gcc_cv_objdump in
23602 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23606 for as_dir
in $PATH
23609 test -z "$as_dir" && as_dir
=.
23610 for ac_exec_ext
in '' $ac_executable_extensions; do
23611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23612 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23623 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23624 if test -n "$gcc_cv_objdump"; then
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23626 $as_echo "$gcc_cv_objdump" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23637 $as_echo_n "checking what objdump to use... " >&6; }
23638 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23639 # Single tree build which includes binutils.
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23641 $as_echo "newly built objdump" >&6; }
23642 elif test x
$gcc_cv_objdump = x
; then
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23644 $as_echo "not found" >&6; }
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23647 $as_echo "$gcc_cv_objdump" >&6; }
23650 # Figure out what readelf we will be using.
23651 if ${gcc_cv_readelf+:} false
; then :
23655 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23656 && test -f ..
/binutils
/Makefile \
23657 && test x
$build = x
$host; then
23658 # Single tree build which includes binutils.
23659 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23660 elif test -x readelf
$build_exeext; then
23661 gcc_cv_readelf
=.
/readelf
$build_exeext
23662 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23663 gcc_cv_readelf
="$READELF_FOR_TARGET"
23665 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23666 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23668 $as_echo_n "checking for $ac_word... " >&6; }
23669 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23670 $as_echo_n "(cached) " >&6
23672 case $gcc_cv_readelf in
23674 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23678 for as_dir
in $PATH
23681 test -z "$as_dir" && as_dir
=.
23682 for ac_exec_ext
in '' $ac_executable_extensions; do
23683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23684 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23695 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23696 if test -n "$gcc_cv_readelf"; then
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23698 $as_echo "$gcc_cv_readelf" >&6; }
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23701 $as_echo "no" >&6; }
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23709 $as_echo_n "checking what readelf to use... " >&6; }
23710 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23711 # Single tree build which includes binutils.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23713 $as_echo "newly built readelf" >&6; }
23714 elif test x
$gcc_cv_readelf = x
; then
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23716 $as_echo "not found" >&6; }
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23719 $as_echo "$gcc_cv_readelf" >&6; }
23722 # Figure out what otool we will be using.
23723 if ${gcc_cv_otool+:} false
; then :
23727 if test -x otool
$build_exeext; then
23728 gcc_cv_otool
=.
/otool
$build_exeext
23729 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23730 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23732 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23733 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23735 $as_echo_n "checking for $ac_word... " >&6; }
23736 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23737 $as_echo_n "(cached) " >&6
23739 case $gcc_cv_otool in
23741 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23745 for as_dir
in $PATH
23748 test -z "$as_dir" && as_dir
=.
23749 for ac_exec_ext
in '' $ac_executable_extensions; do
23750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23751 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23762 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23763 if test -n "$gcc_cv_otool"; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23765 $as_echo "$gcc_cv_otool" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23776 $as_echo_n "checking what otool to use... " >&6; }
23777 if test x
$gcc_cv_otool = x
; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23779 $as_echo "not found" >&6; }
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23782 $as_echo "$gcc_cv_otool" >&6; }
23785 # Figure out the dsymutil we will use.
23786 if ${gcc_cv_dsymutil+:} false
; then :
23790 if test -x "$DEFAULT_DSYMUTIL"; then
23791 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23792 elif test -x dsymutil
$build_exeext; then
23793 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23794 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23795 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23796 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23797 gcc_cv_dsymutil
=$DSYMUTIL
23799 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23800 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23802 $as_echo_n "checking for $ac_word... " >&6; }
23803 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23804 $as_echo_n "(cached) " >&6
23806 case $gcc_cv_dsymutil in
23808 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23812 for as_dir
in $PATH
23815 test -z "$as_dir" && as_dir
=.
23816 for ac_exec_ext
in '' $ac_executable_extensions; do
23817 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23818 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23829 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23830 if test -n "$gcc_cv_dsymutil"; then
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23832 $as_echo "$gcc_cv_dsymutil" >&6; }
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23835 $as_echo "no" >&6; }
23842 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23844 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23845 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23846 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23850 # Figure out what assembler alignment features are present.
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23852 $as_echo_n "checking assembler flags... " >&6; }
23853 if ${gcc_cv_as_flags+:} false
; then :
23854 $as_echo_n "(cached) " >&6
23857 i
[34567]86-*-linux*)
23858 gcc_cv_as_flags
=--32
23860 x86_64-
*-linux-gnux32)
23861 gcc_cv_as_flags
=--x32
23864 gcc_cv_as_flags
=--64
23866 powerpc
*-*-darwin*)
23867 gcc_cv_as_flags
="-arch ppc"
23870 gcc_cv_as_flags
=" "
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23875 $as_echo "$gcc_cv_as_flags" >&6; }
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23878 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23879 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23880 $as_echo_n "(cached) " >&6
23882 gcc_cv_as_balign_and_p2align
=no
23883 if test x
$gcc_cv_as != x
; then
23884 $as_echo '.balign 4
23885 .p2align 2' > conftest.s
23886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23893 gcc_cv_as_balign_and_p2align
=yes
23895 echo "configure: failed program was" >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23902 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23903 if test $gcc_cv_as_balign_and_p2align = yes; then
23905 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23911 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23912 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23913 $as_echo_n "(cached) " >&6
23915 gcc_cv_as_max_skip_p2align
=no
23916 if test x
$gcc_cv_as != x
; then
23917 $as_echo '.p2align 4,,7' > conftest.s
23918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23920 (eval $ac_try) 2>&5
23922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23923 test $ac_status = 0; }; }
23925 gcc_cv_as_max_skip_p2align
=yes
23927 echo "configure: failed program was" >&5
23930 rm -f conftest.o conftest.s
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23934 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23935 if test $gcc_cv_as_max_skip_p2align = yes; then
23937 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23943 $as_echo_n "checking assembler for .literal16... " >&6; }
23944 if ${gcc_cv_as_literal16+:} false
; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_literal16
=no
23948 if test x
$gcc_cv_as != x
; then
23949 $as_echo '.literal16' > conftest.s
23950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23952 (eval $ac_try) 2>&5
23954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23955 test $ac_status = 0; }; }
23957 gcc_cv_as_literal16
=yes
23959 echo "configure: failed program was" >&5
23962 rm -f conftest.o conftest.s
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23966 $as_echo "$gcc_cv_as_literal16" >&6; }
23967 if test $gcc_cv_as_literal16 = yes; then
23969 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23975 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23976 if ${gcc_cv_as_subsection_m1+:} false
; then :
23977 $as_echo_n "(cached) " >&6
23979 gcc_cv_as_subsection_m1
=no
23980 if test x
$gcc_cv_as != x
; then
23981 $as_echo 'conftest_label1: .word 0
23983 conftest_label2: .word 0
23984 .previous' > conftest.s
23985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23987 (eval $ac_try) 2>&5
23989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23990 test $ac_status = 0; }; }
23992 if test x
$gcc_cv_nm != x
; then
23993 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23994 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23995 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23997 else gcc_cv_as_subsection_m1
=yes
23999 rm -f conftest.nm1 conftest.nm2
24002 echo "configure: failed program was" >&5
24005 rm -f conftest.o conftest.s
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24009 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24010 if test $gcc_cv_as_subsection_m1 = yes; then
24012 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24018 $as_echo_n "checking assembler for .weak... " >&6; }
24019 if ${gcc_cv_as_weak+:} false
; then :
24020 $as_echo_n "(cached) " >&6
24023 if test x
$gcc_cv_as != x
; then
24024 $as_echo ' .weak foobar' > conftest.s
24025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24027 (eval $ac_try) 2>&5
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; }
24034 echo "configure: failed program was" >&5
24037 rm -f conftest.o conftest.s
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24041 $as_echo "$gcc_cv_as_weak" >&6; }
24042 if test $gcc_cv_as_weak = yes; then
24044 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24050 $as_echo_n "checking assembler for .weakref... " >&6; }
24051 if ${gcc_cv_as_weakref+:} false
; then :
24052 $as_echo_n "(cached) " >&6
24054 gcc_cv_as_weakref
=no
24055 if test x
$gcc_cv_as != x
; then
24056 $as_echo ' .weakref foobar, barfnot' > conftest.s
24057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24064 gcc_cv_as_weakref
=yes
24066 echo "configure: failed program was" >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24073 $as_echo "$gcc_cv_as_weakref" >&6; }
24074 if test $gcc_cv_as_weakref = yes; then
24076 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24082 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24083 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24084 $as_echo_n "(cached) " >&6
24086 gcc_cv_as_nsubspa_comdat
=no
24087 if test x
$gcc_cv_as != x
; then
24088 $as_echo ' .SPACE $TEXT$
24089 .NSUBSPA $CODE$,COMDAT' > conftest.s
24090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24097 gcc_cv_as_nsubspa_comdat
=yes
24099 echo "configure: failed program was" >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24106 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24107 if test $gcc_cv_as_nsubspa_comdat = yes; then
24109 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24114 # .hidden needs to be supported in both the assembler and the linker,
24115 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24116 # This is irritatingly difficult to feature test for; we have to check the
24117 # date string after the version number. If we've got an in-tree
24118 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24120 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24121 case "${target}" in
24123 conftest_s
=' .globl foobar,hidden'
24126 conftest_s
=' .hidden foobar
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24131 $as_echo_n "checking assembler for .hidden... " >&6; }
24132 if ${gcc_cv_as_hidden+:} false
; then :
24133 $as_echo_n "(cached) " >&6
24135 gcc_cv_as_hidden
=no
24136 if test x
$gcc_cv_as != x
; then
24137 $as_echo "$conftest_s" > conftest.s
24138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24140 (eval $ac_try) 2>&5
24142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143 test $ac_status = 0; }; }
24145 gcc_cv_as_hidden
=yes
24147 echo "configure: failed program was" >&5
24150 rm -f conftest.o conftest.s
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24154 $as_echo "$gcc_cv_as_hidden" >&6; }
24157 case "${target}" in
24159 # Darwin as has some visibility support, though with a different syntax.
24160 gcc_cv_as_hidden
=yes
24164 # gnu_indirect_function type is an extension proposed at
24165 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24166 # selection of function implementation
24167 # Check whether --enable-gnu-indirect-function was given.
24168 if test "${enable_gnu_indirect_function+set}" = set; then :
24169 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24171 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24172 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24175 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24179 case "${target}" in
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24182 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24183 cat > conftest.s
<<EOF
24185 .type foo_resolver, @function
24188 .size foo_resolver, .-foo_resolver
24191 .type foo, %gnu_indirect_function
24192 .set foo, foo_resolver
24195 .type bar, @function
24201 if test x
$gcc_cv_as != x \
24202 && test x
$gcc_cv_ld != x \
24203 && test x
$gcc_cv_readelf != x \
24204 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24205 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24206 && $gcc_cv_readelf --relocs --wide conftest \
24207 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24208 enable_gnu_indirect_function
=yes
24210 rm -f conftest conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24212 $as_echo "$enable_gnu_indirect_function" >&6; }
24216 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24218 cat >>confdefs.h
<<_ACEOF
24219 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24224 if test $in_tree_ld != yes ; then
24225 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24226 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24227 if test x
"$ld_is_gold" = xyes
; then
24228 # GNU gold --version looks like this:
24230 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24232 # We extract the binutils version which is more familiar and specific
24233 # than the gold version.
24234 ld_vers
=`echo $ld_ver | sed -n \
24235 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24237 # GNU ld --version looks like this:
24239 # GNU ld (GNU Binutils) 2.21.51.20110225
24240 ld_vers
=`echo $ld_ver | sed -n \
24241 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24243 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'`
24244 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24245 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24246 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24248 case "${target}" in
24250 # Solaris 2 ld -V output looks like this for a regular version:
24252 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24254 # but test versions add stuff at the end:
24256 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24258 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24259 # numbers can be used in ld.so.1 feature checks even if a different
24260 # linker is configured.
24261 ld_ver
=`$gcc_cv_ld -V 2>&1`
24262 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24263 ld_vers
=`echo $ld_ver | sed -n \
24264 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24265 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24266 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24274 $as_echo_n "checking linker for .hidden support... " >&6; }
24275 if ${gcc_cv_ld_hidden+:} false
; then :
24276 $as_echo_n "(cached) " >&6
24278 if test $in_tree_ld = yes ; then
24279 gcc_cv_ld_hidden
=no
24280 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 \
24281 && test $in_tree_ld_is_elf = yes; then
24282 gcc_cv_ld_hidden
=yes
24285 gcc_cv_ld_hidden
=yes
24286 if test x
"$ld_is_gold" = xyes
; then
24288 elif test x
"$ld_is_mold" = xyes
; then
24290 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24291 if test 0"$ld_date" -lt 20020404; then
24292 if test -n "$ld_date"; then
24293 # If there was date string, but was earlier than 2002-04-04, fail
24294 gcc_cv_ld_hidden
=no
24295 elif test -z "$ld_vers"; then
24296 # If there was no date string nor ld version number, something is wrong
24297 gcc_cv_ld_hidden
=no
24299 test -z "$ld_vers_patch" && ld_vers_patch
=0
24300 if test "$ld_vers_major" -lt 2; then
24301 gcc_cv_ld_hidden
=no
24302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24303 gcc_cv_ld_hidden
="no"
24304 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24305 gcc_cv_ld_hidden
=no
24310 case "${target}" in
24312 gcc_cv_ld_hidden
=yes
24315 # Darwin ld has some visibility support.
24316 gcc_cv_ld_hidden
=yes
24318 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24319 gcc_cv_ld_hidden
=yes
24322 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24323 # .symbolic was only added in Solaris 9 12/02.
24324 gcc_cv_ld_hidden
=yes
24327 gcc_cv_ld_hidden
=no
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24334 $as_echo "$gcc_cv_ld_hidden" >&6; }
24335 libgcc_visibility
=no
24338 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24339 libgcc_visibility
=yes
24341 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24346 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24347 gcc_cv_ld_ro_rw_mix
=unknown
24348 if test $in_tree_ld = yes ; then
24349 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 \
24350 && test $in_tree_ld_is_elf = yes; then
24351 gcc_cv_ld_ro_rw_mix
=read-write
24353 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24354 echo '.section myfoosect, "a"' > conftest1.s
24355 echo '.section myfoosect, "aw"' > conftest2.s
24356 echo '.byte 1' >> conftest2.s
24357 echo '.section myfoosect, "a"' > conftest3.s
24358 echo '.byte 0' >> conftest3.s
24359 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24360 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24361 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24362 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24363 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24364 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24365 | sed -e '/myfoosect/!d' -e N`
24366 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24367 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24368 gcc_cv_ld_ro_rw_mix
=read-only
24370 gcc_cv_ld_ro_rw_mix
=read-write
24374 rm -f conftest.
* conftest
[123].
*
24376 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24378 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24382 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24384 # Check whether --enable-initfini-array was given.
24385 if test "${enable_initfini_array+set}" = set; then :
24386 enableval
=$enable_initfini_array;
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24390 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24391 if ${gcc_cv_initfini_array+:} false
; then :
24392 $as_echo_n "(cached) " >&6
24394 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24395 case "${target}" in
24397 if test "$cross_compiling" = yes; then :
24398 gcc_cv_initfini_array
=no
24400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24404 #error Not an ELF OS
24406 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24407 if it can be used. */
24409 int main (void) { return x; }
24410 int foo (void) { x = 0; }
24411 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24414 if ac_fn_cxx_try_run
"$LINENO"; then :
24415 gcc_cv_initfini_array
=yes
24417 gcc_cv_initfini_array
=no
24419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24424 gcc_cv_initfini_array
=no
24425 if test $in_tree_ld = yes ; then
24426 if test "$gcc_cv_gld_major_version" -eq 2 \
24427 -a "$gcc_cv_gld_minor_version" -ge 22 \
24428 -o "$gcc_cv_gld_major_version" -gt 2 \
24429 && test $in_tree_ld_is_elf = yes; then
24430 gcc_cv_initfini_array
=yes
24432 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24433 case $target:$gas in
24436 sh_type
='%progbits'
24438 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24440 sh_type
='@progbits'
24442 sparc
*-*-solaris2*:no
)
24444 sh_type
='#progbits'
24448 case "$target:$gnu_ld" in
24450 cat > conftest.s
<<EOF
24451 .section .dtors,$sh_flags,$sh_type
24453 .byte 'A', 'A', 'A', 'A'
24454 .section .ctors,$sh_flags,$sh_type
24456 .byte 'B', 'B', 'B', 'B'
24457 .section .fini_array.65530,$sh_flags,$sh_type
24459 .byte 'C', 'C', 'C', 'C'
24460 .section .init_array.65530,$sh_flags,$sh_type
24462 .byte 'D', 'D', 'D', 'D'
24463 .section .dtors.64528,$sh_flags,$sh_type
24465 .byte 'E', 'E', 'E', 'E'
24466 .section .ctors.64528,$sh_flags,$sh_type
24468 .byte 'F', 'F', 'F', 'F'
24469 .section .fini_array.01005,$sh_flags,$sh_type
24471 .byte 'G', 'G', 'G', 'G'
24472 .section .init_array.01005,$sh_flags,$sh_type
24474 .byte 'H', 'H', 'H', 'H'
24479 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24480 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24481 && $gcc_cv_objdump -s -j .init_array conftest \
24482 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24483 && $gcc_cv_objdump -s -j .fini_array conftest \
24484 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24485 gcc_cv_initfini_array
=yes
24489 # When Solaris ld added constructor priority support, it was
24490 # decided to only handle .init_array.N/.fini_array.N since
24491 # there was no need for backwards compatibility with
24492 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24493 # sections with correct execution order resp. to
24494 # .init_array/.fini_array, while gld merges them into
24495 # .init_array/.fini_array.
24496 cat > conftest.s
<<EOF
24497 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24499 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24500 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24502 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24503 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24505 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24506 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24508 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24513 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24514 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24515 && $gcc_cv_objdump -s -j .init_array conftest \
24516 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24517 && $gcc_cv_objdump -s -j .fini_array conftest \
24518 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24519 gcc_cv_initfini_array
=yes
24523 rm -f conftest conftest.
*
24525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24529 # error Not an ELF OS
24531 #include <stdlib.h>
24532 #if defined __GLIBC_PREREQ
24533 # if __GLIBC_PREREQ (2, 4)
24535 # error GLIBC 2.4 required
24538 # if defined __sun__ && defined __svr4__
24539 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24541 # error The C library not known to support .init_array/.fini_array
24546 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24549 gcc_cv_initfini_array
=no
24551 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24554 case "${target}" in
24555 aarch64
*-linux-gnu*)
24556 # AArch64 postdates glibc support for .init_array/.fini_array,
24557 # so we don't need the preprocessor test above.
24558 gcc_cv_initfini_array
=yes
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24563 $as_echo_n "checking cross compile... guessing... " >&6; }
24564 gcc_cv_initfini_array
=no
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24570 $as_echo "$gcc_cv_initfini_array" >&6; }
24571 enable_initfini_array
=$gcc_cv_initfini_array
24576 cat >>confdefs.h
<<_ACEOF
24577 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24582 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24583 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24584 # these directives, even when they appear to accept them.
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24586 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24587 if ${gcc_cv_as_leb128+:} false
; then :
24588 $as_echo_n "(cached) " >&6
24590 gcc_cv_as_leb128
=no
24591 if test x
$gcc_cv_as != x
; then
24598 .uleb128 0x8000000000000000
24600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24608 if test "x$gcc_cv_objdump" != x
; then
24609 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24610 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24611 gcc_cv_as_leb128
=yes
24613 elif test "x$gcc_cv_otool" != x
; then
24614 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24615 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24616 gcc_cv_as_leb128
=yes
24619 # play safe, assume the assembler is broken.
24624 echo "configure: failed program was" >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24631 $as_echo "$gcc_cv_as_leb128" >&6; }
24632 if test $gcc_cv_as_leb128 = yes; then
24634 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24637 if test $gcc_cv_as_leb128 != yes; then
24639 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24643 # Determine if an .eh_frame section is read-only.
24644 gcc_fn_eh_frame_ro
() {
24645 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24646 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24647 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24650 # Check if we have assembler support for unwind directives.
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24652 $as_echo_n "checking assembler for cfi directives... " >&6; }
24653 if ${gcc_cv_as_cfi_directive+:} false
; then :
24654 $as_echo_n "(cached) " >&6
24656 gcc_cv_as_cfi_directive
=no
24657 if test x
$gcc_cv_as != x
; then
24663 .cfi_escape 1, 2, 3, 4, 5
24664 .cfi_endproc' > conftest.s
24665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667 (eval $ac_try) 2>&5
24669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670 test $ac_status = 0; }; }
24674 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24675 # read-only and read-write sections, we need to make sure that the
24676 # assembler used emits read-write .eh_frame sections.
24677 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24678 gcc_cv_as_cfi_directive
=yes
24679 elif test "x$gcc_cv_objdump" = x
; then
24680 # No objdump, err on the side of caution.
24681 gcc_cv_as_cfi_directive
=no
24683 if test x
$gas = xyes
; then
24691 sparc
*-*-solaris2.
*)
24692 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24693 if gcc_fn_eh_frame_ro
$as_32_opt \
24694 || gcc_fn_eh_frame_ro
$as_64_opt; then
24695 gcc_cv_as_cfi_directive
=no
24697 gcc_cv_as_cfi_directive
=yes
24700 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24701 # On Solaris/x86, make sure that GCC and assembler agree on using
24702 # read-only .eh_frame sections for 64-bit.
24703 if gcc_fn_eh_frame_ro
$as_32_opt; then
24704 gcc_cv_as_cfi_directive
=no
24705 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24706 gcc_cv_as_cfi_directive
=yes
24708 gcc_cv_as_cfi_directive
=no
24715 gcc_cv_as_cfi_directive
=yes
24719 echo "configure: failed program was" >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24726 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24729 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24731 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24732 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24733 $as_echo_n "(cached) " >&6
24735 gcc_cv_as_cfi_advance_working
=no
24736 if test x
$gcc_cv_as != x
; then
24739 .cfi_adjust_cfa_offset 64
24741 .cfi_adjust_cfa_offset 128
24742 .cfi_endproc' > conftest.s
24743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24745 (eval $ac_try) 2>&5
24747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24748 test $ac_status = 0; }; }
24751 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24752 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24753 gcc_cv_as_cfi_advance_working
=yes
24757 echo "configure: failed program was" >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24764 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24768 # no objdump, err on the side of caution
24769 gcc_cv_as_cfi_advance_working
=no
24773 cat >>confdefs.h
<<_ACEOF
24774 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24775 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24781 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24782 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24783 $as_echo_n "(cached) " >&6
24785 gcc_cv_as_cfi_personality_directive
=no
24786 if test x
$gcc_cv_as != x
; then
24789 .cfi_personality 0, symbol
24790 .cfi_endproc' > conftest.s
24791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24798 gcc_cv_as_cfi_personality_directive
=yes
24800 echo "configure: failed program was" >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24807 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24811 cat >>confdefs.h
<<_ACEOF
24812 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24817 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24818 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24819 $as_echo_n "(cached) " >&6
24821 gcc_cv_as_cfi_sections_directive
=no
24822 if test x
$gcc_cv_as != x
; then
24824 .cfi_sections .debug_frame, .eh_frame
24826 .cfi_endproc' > conftest.s
24827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24835 win32 | pe | cygwin
* | mingw32
*)
24836 # Need to check that we generated the correct relocation for the
24837 # .debug_frame section. This was fixed for binutils 2.21.
24838 gcc_cv_as_cfi_sections_directive
=no
24839 if test "x$gcc_cv_objdump" != x
; then
24840 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24841 grep -i secrel
> /dev
/null
; then
24842 gcc_cv_as_cfi_sections_directive
=yes
24847 gcc_cv_as_cfi_sections_directive
=yes
24851 echo "configure: failed program was" >&5
24854 rm -f conftest.o conftest.s
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24858 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24863 cat >>confdefs.h
<<_ACEOF
24864 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24868 # GAS versions up to and including 2.11.0 may mis-optimize
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24871 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24872 if ${gcc_cv_as_eh_frame+:} false
; then :
24873 $as_echo_n "(cached) " >&6
24875 gcc_cv_as_eh_frame
=no
24876 if test x
$gcc_cv_as != x
; then
24883 .section .eh_frame,"aw",@progbits
24885 .4byte .LECIE1-.LSCIE1
24899 .4byte .LEFDE1-.LASFDE1
24901 .4byte .LASFDE1-__FRAME_BEGIN__
24908 .LEFDE1:' > conftest.s
24909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24916 cat > conftest.lit
<<EOF
24917 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24918 0010 01000000 12000000 18000000 00000000 ................
24919 0020 08000000 04080000 0044 .........D
24921 cat > conftest.big
<<EOF
24922 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24923 0010 00000001 00000012 00000018 00000000 ................
24924 0020 00000008 04000000 0844 .........D
24926 # If the assembler didn't choke, and we can objdump,
24927 # and we got the correct data, then succeed.
24928 # The text in the here-document typically retains its unix-style line
24929 # endings, while the output of objdump will use host line endings.
24930 # Therefore, use diff -b for the comparisons.
24931 if test x
$gcc_cv_objdump != x \
24932 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24933 |
tail -3 > conftest.got \
24934 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24935 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24937 gcc_cv_as_eh_frame
=yes
24938 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }; then
24944 gcc_cv_as_eh_frame
=buggy
24946 # Uh oh, what do we do now?
24947 gcc_cv_as_eh_frame
=no
24950 echo "configure: failed program was" >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24957 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24961 if test $gcc_cv_as_eh_frame = buggy
; then
24963 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24967 # Test if the assembler supports the section flag 'e' or #exclude for
24968 # specifying an excluded section.
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24970 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24971 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24972 $as_echo_n "(cached) " >&6
24974 gcc_cv_as_section_exclude_e
=no
24975 if test x
$gcc_cv_as != x
; then
24976 $as_echo '.section foo1,"e"
24977 .byte 0,0,0,0' > conftest.s
24978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24980 (eval $ac_try) 2>&5
24982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24983 test $ac_status = 0; }; }
24985 gcc_cv_as_section_exclude_e
=yes
24987 echo "configure: failed program was" >&5
24990 rm -f conftest.o conftest.s
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24994 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24997 if test $gcc_cv_as_section_exclude_e = no
; then
24998 case "${target}" in
24999 # Solaris as uses #exclude instead.
25001 case "${target}" in
25002 sparc
*-*-solaris2*)
25003 conftest_s
='.section "foo1", #exclude'
25005 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25006 conftest_s
='.section foo1, #exclude'
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25012 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25013 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25014 $as_echo_n "(cached) " >&6
25016 gcc_cv_as_section_exclude_hash
=no
25017 if test x
$gcc_cv_as != x
; then
25018 $as_echo "$conftest_s
25019 .byte 0,0,0,0" > conftest.s
25020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25027 gcc_cv_as_section_exclude_hash
=yes
25029 echo "configure: failed program was" >&5
25032 rm -f conftest.o conftest.s
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25036 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25041 cat >>confdefs.h
<<_ACEOF
25042 #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`
25046 # Test if the assembler supports the section flag 'R' for specifying
25047 # section with SHF_GNU_RETAIN.
25048 case "${target}" in
25049 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25050 # assembler supports the section flag 'R', it doesn't mean that
25051 # Solairs ld supports it.
25053 gcc_cv_as_shf_gnu_retain
=no
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25057 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25058 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25059 $as_echo_n "(cached) " >&6
25061 gcc_cv_as_shf_gnu_retain
=no
25062 if test x
$gcc_cv_as != x
; then
25063 $as_echo '.section .foo,"awR",%progbits
25064 .byte 0' > conftest.s
25065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; }
25072 gcc_cv_as_shf_gnu_retain
=yes
25074 echo "configure: failed program was" >&5
25077 rm -f conftest.o conftest.s
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25081 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25087 cat >>confdefs.h
<<_ACEOF
25088 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25092 # Test if the assembler supports the section flag 'o' for specifying
25093 # section with link-order.
25094 case "${target}" in
25095 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25096 # assembler supports the section flag 'o', it doesn't mean that
25097 # Solairs ld supports it.
25099 gcc_cv_as_section_link_order
=no
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25103 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25104 if ${gcc_cv_as_section_link_order+:} false
; then :
25105 $as_echo_n "(cached) " >&6
25107 gcc_cv_as_section_link_order
=no
25108 if test x
$gcc_cv_as != x
; then
25109 $as_echo '.section .foo,"a"
25111 .section __patchable_function_entries,"awo",%progbits,.foo
25112 .byte 0' > conftest.s
25113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115 (eval $ac_try) 2>&5
25117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118 test $ac_status = 0; }; }
25120 gcc_cv_as_section_link_order
=yes
25122 echo "configure: failed program was" >&5
25125 rm -f conftest.o conftest.s
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25129 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25135 cat >>confdefs.h
<<_ACEOF
25136 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25141 $as_echo_n "checking assembler for section merging support... " >&6; }
25142 if ${gcc_cv_as_shf_merge+:} false
; then :
25143 $as_echo_n "(cached) " >&6
25145 gcc_cv_as_shf_merge
=no
25146 if test x
$gcc_cv_as != x
; then
25147 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25155 gcc_cv_as_shf_merge
=yes
25157 echo "configure: failed program was" >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25164 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25167 if test $gcc_cv_as_shf_merge = no
; then
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25169 $as_echo_n "checking assembler for section merging support... " >&6; }
25170 if ${gcc_cv_as_shf_merge+:} false
; then :
25171 $as_echo_n "(cached) " >&6
25173 gcc_cv_as_shf_merge
=no
25174 if test x
$gcc_cv_as != x
; then
25175 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25178 (eval $ac_try) 2>&5
25180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; }
25183 gcc_cv_as_shf_merge
=yes
25185 echo "configure: failed program was" >&5
25188 rm -f conftest.o conftest.s
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25192 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25197 cat >>confdefs.h
<<_ACEOF
25198 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25202 gcc_cv_ld_aligned_shf_merge
=yes
25204 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25206 sparc
*-*-solaris2.11
*)
25207 if test x
"$gnu_ld" = xno \
25208 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25209 gcc_cv_ld_aligned_shf_merge
=no
25214 cat >>confdefs.h
<<_ACEOF
25215 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25220 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25221 if ${gcc_cv_as_comdat_group+:} false
; then :
25222 $as_echo_n "(cached) " >&6
25224 gcc_cv_as_comdat_group
=no
25225 if test x
$gcc_cv_as != x
; then
25226 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25227 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25234 gcc_cv_as_comdat_group
=yes
25236 echo "configure: failed program was" >&5
25239 rm -f conftest.o conftest.s
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25243 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25246 if test $gcc_cv_as_comdat_group = yes; then
25247 gcc_cv_as_comdat_group_percent
=no
25248 gcc_cv_as_comdat_group_group
=no
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25251 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25252 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25253 $as_echo_n "(cached) " >&6
25255 gcc_cv_as_comdat_group_percent
=no
25256 if test x
$gcc_cv_as != x
; then
25257 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25265 gcc_cv_as_comdat_group_percent
=yes
25267 echo "configure: failed program was" >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25274 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25277 if test $gcc_cv_as_comdat_group_percent = yes; then
25278 gcc_cv_as_comdat_group_group
=no
25280 case "${target}" in
25281 # Sun as uses a completely different syntax.
25283 case "${target}" in
25284 sparc
*-*-solaris2*)
25286 .group foo,".text%foo",#comdat
25287 .section ".text%foo", #alloc,#execinstr,#progbits
25292 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25294 .group foo,.text%foo,#comdat
25295 .section .text%foo, "ax", @progbits
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25302 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25303 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25304 $as_echo_n "(cached) " >&6
25306 gcc_cv_as_comdat_group_group
=no
25307 if test x
$gcc_cv_as != x
; then
25308 $as_echo "$conftest_s" > conftest.s
25309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25316 gcc_cv_as_comdat_group_group
=yes
25318 echo "configure: failed program was" >&5
25321 rm -f conftest.o conftest.s
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25325 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25330 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25331 gcc_cv_as_comdat_group_group
=no
25335 if test x
"$ld_is_gold" = xyes
; then
25337 elif test x
"$ld_is_mold" = xyes
; then
25339 elif test $in_tree_ld = yes ; then
25341 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 \
25342 && test $in_tree_ld_is_elf = yes; then
25345 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25347 if test 0"$ld_date" -lt 20050308; then
25348 if test -n "$ld_date"; then
25349 # If there was date string, but was earlier than 2005-03-08, fail
25351 elif test "$ld_vers_major" -lt 2; then
25353 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25358 case "${target}" in
25359 *-*-solaris2.1
[1-9]*)
25361 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25362 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25365 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25366 # least ld version 1.2267.
25367 if test "$ld_vers_major" -gt 1; then
25369 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25371 elif test "$ld_vers_minor" -ge 2267; then
25376 # Assume linkers other than GNU ld don't support COMDAT group.
25381 # Allow overriding the automatic COMDAT group tests above.
25382 # Check whether --enable-comdat was given.
25383 if test "${enable_comdat+set}" = set; then :
25384 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25387 if test $comdat_group = no
; then
25388 gcc_cv_as_comdat_group
=no
25389 gcc_cv_as_comdat_group_percent
=no
25390 gcc_cv_as_comdat_group_group
=no
25393 cat >>confdefs.h
<<_ACEOF
25394 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25395 || test $gcc_cv_as_comdat_group_percent = yes \
25396 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25400 # Restrict this test to Solaris/x86: other targets define this statically.
25401 case "${target}" in
25402 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25404 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25405 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25406 hidden_linkonce
=yes
25408 case "${target}" in
25409 # Full support for hidden thunks in linkonce sections only appeared in
25410 # Solaris 11/OpenSolaris.
25411 *-*-solaris2.1
[1-9]*)
25412 hidden_linkonce
=yes
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25420 $as_echo "$hidden_linkonce" >&6; }
25422 cat >>confdefs.h
<<_ACEOF
25423 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25430 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25431 if ${gcc_cv_as_is_stmt+:} false
; then :
25432 $as_echo_n "(cached) " >&6
25434 gcc_cv_as_is_stmt
=no
25435 if test x
$gcc_cv_as != x
; then
25438 .loc 1 1 0 is_stmt 1' > conftest.s
25439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25446 gcc_cv_as_is_stmt
=yes
25448 echo "configure: failed program was" >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25455 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25456 if test $gcc_cv_as_is_stmt = yes; then
25458 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25464 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25465 if ${gcc_cv_as_discriminator+:} false
; then :
25466 $as_echo_n "(cached) " >&6
25468 gcc_cv_as_discriminator
=no
25469 if test x
$gcc_cv_as != x
; then
25472 .loc 1 1 0 discriminator 1' > conftest.s
25473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25480 gcc_cv_as_discriminator
=yes
25482 echo "configure: failed program was" >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25489 $as_echo "$gcc_cv_as_discriminator" >&6; }
25490 if test $gcc_cv_as_discriminator = yes; then
25492 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25497 # Catch the newlib flag of the same name so we can gate GCC features on it.
25498 # Check whether --enable-newlib-nano-formatted-io was given.
25499 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25500 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25504 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25510 # Thread-local storage - the check is heavily parameterized.
25516 .section ".tdata","awT",@progbits
25519 ldq $27,__tls_get_addr($29) !literal!1
25520 lda $16,foo($29) !tlsgd!1
25521 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25522 ldq $27,__tls_get_addr($29) !literal!2
25523 lda $16,foo($29) !tlsldm!2
25524 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25525 ldq $1,foo($29) !gotdtprel
25526 ldah $2,foo($29) !dtprelhi
25527 lda $3,foo($2) !dtprello
25528 lda $4,foo($29) !dtprel
25529 ldq $1,foo($29) !gottprel
25530 ldah $2,foo($29) !tprelhi
25531 lda $3,foo($2) !tprello
25532 lda $4,foo($29) !tprel'
25533 tls_as_opt
=--fatal-warnings
25537 add_s r0,r0, @foo@tpoff'
25539 cris-
*-*|crisv32-
*-*)
25541 .section ".tdata","awT",@progbits
25546 tls_as_opt
=--fatal-warnings
25550 .section ".tdata","awT",@progbits
25553 call #gettlsoff(x)'
25560 .section ".tdata","awT",@progbits
25564 addil LT%foo-$tls_gdidx$,gp
25565 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25568 addil LT%foo-$tls_ldidx$,gp
25570 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25571 addil LR%foo-$tls_dtpoff$,%ret0
25572 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25574 addil LT%foo-$tls_ieoff$,gp
25575 ldw RT%foo-$tls_ieoff$(%r1),%t2
25578 addil LR%foo-$tls_leoff$,%t1
25579 ldo RR%foo-$tls_leoff$(%r1),%t2'
25580 tls_as_opt
=--fatal-warnings
25584 .section ".tdata","awT",%progbits
25587 .word foo(gottpoff)
25593 i
[34567]86-*-* | x86_64-
*-*)
25595 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25602 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25604 .section .tdata,"awt",@progbits'
25607 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25611 .section ".tdata","awT",@progbits'
25613 tls_as_opt
="--fatal-warnings"
25617 if test x
$on_solaris = xyes
; then
25619 yes) tls_as_opt
="$tls_as_opt --32" ;;
25622 conftest_s
="$conftest_s
25626 leal foo@tlsgd(,%ebx,1), %eax
25627 leal foo@tlsldm(%ebx), %eax
25628 leal foo@dtpoff(%eax), %edx
25629 movl foo@gottpoff(%ebx), %eax
25630 subl foo@gottpoff(%ebx), %eax
25631 addl foo@gotntpoff(%ebx), %eax
25632 movl foo@indntpoff, %eax
25633 movl \$foo@tpoff, %eax
25634 subl \$foo@tpoff, %eax
25635 leal foo@ntpoff(%ecx), %eax"
25638 if test x
$on_solaris = xyes
; then
25640 yes) tls_as_opt
="$tls_as_opt --64" ;;
25641 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25644 conftest_s
="$conftest_s
25648 leaq foo@tlsgd(%rip), %rdi
25649 leaq foo@tlsld(%rip), %rdi
25650 leaq foo@dtpoff(%rax), %rdx
25651 movq foo@gottpoff(%rip), %rax
25652 movq \$foo@tpoff, %rax"
25658 .section ".tdata","awT",@progbits
25661 addl r16 = @ltoff(@dtpmod(foo#)), gp
25662 addl r17 = @ltoff(@dtprel(foo#)), gp
25663 addl r18 = @ltoff(@tprel(foo#)), gp
25664 addl r19 = @dtprel(foo#), gp
25665 adds r21 = @dtprel(foo#), r13
25666 movl r23 = @dtprel(foo#)
25667 addl r20 = @tprel(foo#), gp
25668 adds r22 = @tprel(foo#), r13
25669 movl r24 = @tprel(foo#)'
25670 tls_as_opt
=--fatal-warnings
25674 .section .tdata,"awT",@progbits
25681 tls_as_opt
='--fatal-warnings'
25685 .section .tdata,"awT",@progbits
25689 addik r5,r20,x@TLSGD
25690 addik r5,r20,x@TLSLDM'
25691 tls_as_opt
='--fatal-warnings'
25695 .section .tdata,"awT",@progbits
25699 addiu $4, $28, %tlsgd(x)
25700 addiu $4, $28, %tlsldm(x)
25701 lui $4, %dtprel_hi(x)
25702 addiu $4, $4, %dtprel_lo(x)
25703 lw $4, %gottprel(x)($28)
25704 lui $4, %tprel_hi(x)
25705 addiu $4, $4, %tprel_lo(x)'
25706 tls_as_opt
='-32 --fatal-warnings'
25710 .section .tdata,"awT",@progbits
25715 move.l x@TLSGD(%a5),%a0
25716 move.l x@TLSLDM(%a5),%a0
25717 move.l x@TLSLDO(%a5),%a0
25718 move.l x@TLSIE(%a5),%a0
25719 move.l x@TLSLE(%a5),%a0'
25720 tls_as_opt
='--fatal-warnings'
25724 .section ".tdata","awT",@progbits'
25725 tls_as_opt
="--fatal-warnings"
25729 .section ".tdata","awT",%progbits
25733 add x0, x0, #:tlsgd_lo12:x
25736 tls_as_opt
='--fatal-warnings'
25740 .section ".tdata","awT",@progbits
25743 l.movhi r3, tpoffha(foo)
25745 l.lwz r4, tpofflo(foo)(r3)'
25746 tls_as_opt
=--fatal-warnings
25750 .extern __get_tpointer
25766 .section ".tdata","awT",@progbits
25774 addi 3,2,ld0@got@tlsgd
25780 addi 3,2,x1@got@tlsld
25786 addis 9,3,x2@dtprel@ha
25787 addi 9,9,x2@dtprel@l
25790 ld 9,x3@got@dtprel(2)
25794 tls_as_opt
="-a64 --fatal-warnings"
25798 .section ".tdata","awT",@progbits
25806 addi 3,31,ld0@got@tlsgd
25808 addi 3,31,x1@got@tlsld
25811 addis 9,3,x2@dtprel@ha
25812 addi 9,9,x2@dtprel@l
25813 lwz 9,x3@got@tprel(31)
25816 addis 9,2,x2@tprel@ha
25817 addi 9,9,x2@tprel@l'
25818 tls_as_opt
="-a32 --fatal-warnings"
25822 .section .tdata,"awT",@progbits
25826 call __tls_get_addr'
25827 tls_as_opt
='--fatal-warnings'
25831 .section ".tdata","awT",@progbits
25838 .long foo@GOTNTPOFF
25839 .long foo@INDNTPOFF
25840 l %r1,foo@GOTNTPOFF(%r12)
25841 l %r1,0(%r1):tls_load:foo
25842 bas %r14,0(%r1,%r13):tls_gdcall:foo
25843 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25844 tls_as_opt
="-m31 --fatal-warnings"
25848 .section ".tdata","awT",@progbits
25855 .quad foo@GOTNTPOFF
25856 lg %r1,foo@GOTNTPOFF(%r12)
25857 larl %r1,foo@INDNTPOFF
25858 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25859 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25860 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25862 sh-
*-* | sh
[123456789lbe
]*-*-*)
25864 .section ".tdata","awT",@progbits
25872 tls_as_opt
=--fatal-warnings
25876 sparc
*-sun-solaris2.
*)
25883 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25885 .section ".tdata",#alloc,#write,#tls'
25888 .section ".tdata","awT",@progbits'
25889 tls_as_opt
="-32 --fatal-warnings"
25891 conftest_s
="$conftest_s
25894 sethi %tgd_hi22(foo), %o0
25895 add %o0, %tgd_lo10(foo), %o1
25896 add %l7, %o1, %o0, %tgd_add(foo)
25897 call __tls_get_addr, %tgd_call(foo)
25898 sethi %tldm_hi22(foo), %l1
25899 add %l1, %tldm_lo10(foo), %l2
25900 add %l7, %l2, %o0, %tldm_add(foo)
25901 call __tls_get_addr, %tldm_call(foo)
25902 sethi %tldo_hix22(foo), %l3
25903 xor %l3, %tldo_lox10(foo), %l4
25904 add %o0, %l4, %l5, %tldo_add(foo)
25905 sethi %tie_hi22(foo), %o3
25906 add %o3, %tie_lo10(foo), %o3
25907 ld [%l7 + %o3], %o2, %tie_ld(foo)
25908 add %g7, %o2, %o4, %tie_add(foo)
25909 sethi %tle_hix22(foo), %l1
25910 xor %l1, %tle_lox10(foo), %o5
25911 ld [%g7 + %o5], %o1"
25915 .section ".tdata","awT",@progbits
25918 movi a8, foo@TLSFUNC
25919 movi a10, foo@TLSARG
25920 callx8.tls a8, foo@TLSCALL'
25924 if test "x$enable_tls" = xno
; then
25925 : # TLS explicitly disabled.
25926 elif test "x$enable_tls" = xyes
; then
25927 set_have_as_tls
=yes # TLS explicitly enabled.
25928 elif test -z "$conftest_s"; then
25929 : # If we don't have a check, assume no support.
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25932 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25933 if ${gcc_cv_as_tls+:} false
; then :
25934 $as_echo_n "(cached) " >&6
25937 if test x
$gcc_cv_as != x
; then
25938 $as_echo "$conftest_s" > conftest.s
25939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25941 (eval $ac_try) 2>&5
25943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25944 test $ac_status = 0; }; }
25948 echo "configure: failed program was" >&5
25951 rm -f conftest.o conftest.s
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25955 $as_echo "$gcc_cv_as_tls" >&6; }
25956 if test $gcc_cv_as_tls = yes; then
25957 set_have_as_tls
=yes
25961 if test $set_have_as_tls = yes ; then
25963 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25967 # Target-specific assembler checks.
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25970 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25971 gcc_cv_ld_static_dynamic
=no
25972 gcc_cv_ld_static_option
='-Bstatic'
25973 gcc_cv_ld_dynamic_option
='-Bdynamic'
25974 if test $in_tree_ld = yes ; then
25975 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
25976 gcc_cv_ld_static_dynamic
=yes
25978 elif test x
$gcc_cv_ld != x
; then
25979 # Check if linker supports -Bstatic/-Bdynamic option
25980 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25981 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25982 gcc_cv_ld_static_dynamic
=yes
25985 # AIX ld uses -b flags
25986 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25987 gcc_cv_ld_static_dynamic
=yes
25988 gcc_cv_ld_static_option
="-bstatic"
25989 gcc_cv_ld_dynamic_option
="-bdynamic"
25991 # HP-UX ld uses -a flags to select between shared and archive.
25993 if test x
"$gnu_ld" = xno
; then
25994 gcc_cv_ld_static_dynamic
=yes
25995 gcc_cv_ld_static_option
="-aarchive_shared"
25996 gcc_cv_ld_dynamic_option
="-adefault"
25999 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26001 gcc_cv_ld_static_dynamic
=yes
26006 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26008 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26011 cat >>confdefs.h
<<_ACEOF
26012 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26016 cat >>confdefs.h
<<_ACEOF
26017 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26022 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26025 $as_echo_n "checking linker --version-script option... " >&6; }
26026 gcc_cv_ld_version_script
=no
26027 ld_version_script_option
=''
26028 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26029 gcc_cv_ld_version_script
=yes
26030 ld_version_script_option
='--version-script'
26031 elif test x
$gcc_cv_ld != x
; then
26033 # Solaris 2 ld always supports -M. It also supports a subset of
26034 # --version-script since Solaris 11.4, but requires
26035 # -z gnu-version-script-compat to activate.
26037 gcc_cv_ld_version_script
=yes
26038 ld_version_script_option
='-M'
26042 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26044 $as_echo "$gcc_cv_ld_version_script" >&6; }
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26048 $as_echo_n "checking linker soname option... " >&6; }
26049 gcc_cv_ld_soname
=no
26050 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26051 gcc_cv_ld_soname
=yes
26052 ld_soname_option
='-soname'
26053 elif test x
$gcc_cv_ld != x
; then
26056 gcc_cv_ld_soname
=yes
26057 ld_soname_option
='-install_name'
26059 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26060 # ld compatiblity since some Solaris 10 update.
26062 gcc_cv_ld_soname
=yes
26063 ld_soname_option
='-h'
26067 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26069 $as_echo "$gcc_cv_ld_soname" >&6; }
26072 if test x
"$demangler_in_ld" = xyes
; then
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26074 $as_echo_n "checking linker --demangle support... " >&6; }
26075 gcc_cv_ld_demangle
=no
26076 if test $in_tree_ld = yes; then
26077 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 \
26078 gcc_cv_ld_demangle
=yes
26080 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26081 # Check if the GNU linker supports --demangle option
26082 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26083 gcc_cv_ld_demangle
=yes
26086 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26088 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26092 $as_echo "$gcc_cv_ld_demangle" >&6; }
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26096 $as_echo_n "checking linker plugin support... " >&6; }
26097 gcc_cv_lto_plugin
=0
26098 if test -f liblto_plugin.la
; then
26099 save_ld_ver
="$ld_ver"
26100 save_ld_vers_major
="$ld_vers_major"
26101 save_ld_vers_minor
="$ld_vers_minor"
26102 save_ld_is_gold
="$ld_is_gold"
26106 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26108 # FIXME: ld_is_gold?
26109 ld_vers_major
="$gcc_cv_gld_major_version"
26110 ld_vers_minor
="$gcc_cv_gld_minor_version"
26112 # Determine plugin linker version.
26113 # FIXME: Partial duplicate from above, generalize.
26114 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26115 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26116 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26118 ld_vers
=`echo $ld_ver | sed -n \
26119 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26121 ld_vers
=`echo $ld_ver | sed -n \
26122 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26124 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26125 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26129 # Determine plugin support.
26130 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26131 # Require GNU ld or gold 2.21+ for plugin support by default.
26132 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26133 gcc_cv_lto_plugin
=2
26134 elif test "$ld_is_mold" = yes; then
26135 gcc_cv_lto_plugin
=2
26136 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26137 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26138 gcc_cv_lto_plugin
=1
26142 ld_ver
="$save_ld_ver"
26143 ld_vers_major
="$save_ld_vers_major"
26144 ld_vers_minor
="$save_ld_vers_minor"
26145 ld_is_gold
="$save_ld_is_gold"
26148 cat >>confdefs.h
<<_ACEOF
26149 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26153 $as_echo "$gcc_cv_lto_plugin" >&6; }
26155 # Target OS-specific assembler checks.
26157 case "$target_os" in
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26160 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26161 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26162 $as_echo_n "(cached) " >&6
26164 gcc_cv_as_mmacosx_version_min
=no
26165 if test x
$gcc_cv_as != x
; then
26166 $as_echo '.text' > conftest.s
26167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169 (eval $ac_try) 2>&5
26171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; }
26174 gcc_cv_as_mmacosx_version_min
=yes
26176 echo "configure: failed program was" >&5
26179 rm -f conftest.o conftest.s
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26183 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26184 if test $gcc_cv_as_mmacosx_version_min = yes; then
26186 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26193 # Target CPU-specific assembler checks.
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26198 $as_echo_n "checking assembler for -mabi option... " >&6; }
26199 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26200 $as_echo_n "(cached) " >&6
26202 gcc_cv_as_aarch64_mabi
=no
26203 if test x
$gcc_cv_as != x
; then
26204 $as_echo '.text' > conftest.s
26205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207 (eval $ac_try) 2>&5
26209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; }
26212 gcc_cv_as_aarch64_mabi
=yes
26214 echo "configure: failed program was" >&5
26217 rm -f conftest.o conftest.s
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26221 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26224 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26226 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26229 if test x
$with_abi = xilp32
; then
26230 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26231 Upgrade the Assembler." "$LINENO" 5
26233 if test x
"$with_multilib_list" = xdefault
; then
26234 TM_MULTILIB_CONFIG
=lp64
26236 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26237 for aarch64_multilib
in ${aarch64_multilibs}; do
26238 case ${aarch64_multilib} in
26240 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26241 Upgrade the Assembler." "$LINENO" 5
26249 # Check if we have binutils support for relocations types needed by -fpic
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26251 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26252 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26253 $as_echo_n "(cached) " >&6
26255 gcc_cv_as_aarch64_picreloc
=no
26256 if test x
$gcc_cv_as != x
; then
26259 ldr x0, [x2, #:gotpage_lo15:globalsym]
26261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26268 gcc_cv_as_aarch64_picreloc
=yes
26270 echo "configure: failed program was" >&5
26273 rm -f conftest.o conftest.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26277 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26278 if test $gcc_cv_as_aarch64_picreloc = yes; then
26280 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26284 # Enable Branch Target Identification Mechanism and Return Address
26285 # Signing by default.
26286 # Check whether --enable-standard-branch-protection was given.
26287 if test "${enable_standard_branch_protection+set}" = set; then :
26288 enableval
=$enable_standard_branch_protection;
26291 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26296 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26297 Valid choices are 'yes' and 'no'." "$LINENO" 5
26303 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26304 # Check whether --enable-fix-cortex-a53-835769 was given.
26305 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26306 enableval
=$enable_fix_cortex_a53_835769;
26309 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26314 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26315 Valid choices are 'yes' and 'no'." "$LINENO" 5
26322 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26323 # Check whether --enable-fix-cortex-a53-843419 was given.
26324 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26325 enableval
=$enable_fix_cortex_a53_843419;
26328 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26333 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26334 Valid choices are 'yes' and 'no'." "$LINENO" 5
26343 # All TARGET_ABI_OSF targets.
26344 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26346 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26347 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26348 $as_echo_n "(cached) " >&6
26350 gcc_cv_as_alpha_explicit_relocs
=no
26351 if test x
$gcc_cv_as != x
; then
26352 $as_echo ' .set nomacro
26354 extbl $3, $2, $3 !lituse_bytoff!1
26355 ldq $2, a($29) !literal!1
26356 ldq $4, b($29) !literal!2
26357 ldq_u $3, 0($2) !lituse_base!1
26358 ldq $27, f($29) !literal!5
26359 jsr $26, ($27), f !lituse_jsr!5
26360 ldah $29, 0($26) !gpdisp!3
26361 lda $0, c($29) !gprel
26362 ldah $1, d($29) !gprelhigh
26363 lda $1, d($1) !gprellow
26364 lda $29, 0($29) !gpdisp!3' > conftest.s
26365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26372 gcc_cv_as_alpha_explicit_relocs
=yes
26374 echo "configure: failed program was" >&5
26377 rm -f conftest.o conftest.s
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26381 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26382 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26384 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26389 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26390 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26391 $as_echo_n "(cached) " >&6
26393 gcc_cv_as_alpha_jsrdirect_relocs
=no
26394 if test x
$gcc_cv_as != x
; then
26395 $as_echo ' .set nomacro
26397 ldq $27, a($29) !literal!1
26398 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26401 (eval $ac_try) 2>&5
26403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26404 test $ac_status = 0; }; }
26406 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26408 echo "configure: failed program was" >&5
26411 rm -f conftest.o conftest.s
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26415 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26416 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26418 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26426 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26427 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26428 $as_echo_n "(cached) " >&6
26430 gcc_cv_as_avr_mlink_relax
=no
26431 if test x
$gcc_cv_as != x
; then
26432 $as_echo '.text' > conftest.s
26433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26435 (eval $ac_try) 2>&5
26437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26438 test $ac_status = 0; }; }
26440 gcc_cv_as_avr_mlink_relax
=yes
26442 echo "configure: failed program was" >&5
26445 rm -f conftest.o conftest.s
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26449 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26450 if test $gcc_cv_as_avr_mlink_relax = yes; then
26452 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26458 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26459 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26460 $as_echo_n "(cached) " >&6
26462 gcc_cv_as_avr_mrmw
=no
26463 if test x
$gcc_cv_as != x
; then
26464 $as_echo '.text' > conftest.s
26465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467 (eval $ac_try) 2>&5
26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470 test $ac_status = 0; }; }
26472 gcc_cv_as_avr_mrmw
=yes
26474 echo "configure: failed program was" >&5
26477 rm -f conftest.o conftest.s
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26481 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26482 if test $gcc_cv_as_avr_mrmw = yes; then
26484 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26490 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26491 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26492 $as_echo_n "(cached) " >&6
26494 gcc_cv_as_avr_mgccisr
=no
26495 if test x
$gcc_cv_as != x
; then
26501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26503 (eval $ac_try) 2>&5
26505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26506 test $ac_status = 0; }; }
26508 gcc_cv_as_avr_mgccisr
=yes
26510 echo "configure: failed program was" >&5
26513 rm -f conftest.o conftest.s
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26517 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26518 if test $gcc_cv_as_avr_mgccisr = yes; then
26520 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26525 # Check how default linker description file implements .rodata for
26526 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26527 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26529 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26530 cat > conftest.s
<<EOF
26531 .section .rodata,"a",@progbits
26533 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26538 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540 (eval $ac_try) 2>&5
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; }
26544 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26550 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26552 (eval $ac_try) 2>&5
26554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26555 test $ac_status = 0; }; }
26556 if test -s conftest.nm
26558 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26560 $as_echo "yes" >&6; }
26562 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26566 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26567 echo "$as_me: nm output was" >&5
26568 cat conftest.nm
>&5
26569 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26570 { $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
26571 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26575 $as_echo "test failed" >&6; }
26576 echo "$as_me: failed program was" >&5
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26579 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26581 rm -f conftest.s conftest.o conftest.elf conftest.nm
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26586 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26587 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26588 $as_echo_n "(cached) " >&6
26590 gcc_cv_as_cris_no_mul_bug
=no
26591 if test x
$gcc_cv_as != x
; then
26592 $as_echo '.text' > conftest.s
26593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; }
26600 gcc_cv_as_cris_no_mul_bug
=yes
26602 echo "configure: failed program was" >&5
26605 rm -f conftest.o conftest.s
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26609 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26610 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26612 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26620 $as_echo_n "checking assembler for -relax option... " >&6; }
26621 if ${gcc_cv_as_sparc_relax+:} false
; then :
26622 $as_echo_n "(cached) " >&6
26624 gcc_cv_as_sparc_relax
=no
26625 if test x
$gcc_cv_as != x
; then
26626 $as_echo '.text' > conftest.s
26627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26629 (eval $ac_try) 2>&5
26631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26632 test $ac_status = 0; }; }
26634 gcc_cv_as_sparc_relax
=yes
26636 echo "configure: failed program was" >&5
26639 rm -f conftest.o conftest.s
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26643 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26644 if test $gcc_cv_as_sparc_relax = yes; then
26646 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26652 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26653 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26654 $as_echo_n "(cached) " >&6
26656 gcc_cv_as_sparc_gotdata_op
=no
26657 if test x
$gcc_cv_as != x
; then
26663 sethi %gdop_hix22(foo), %g1
26664 xor %g1, %gdop_lox10(foo), %g1
26665 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; }
26673 if test x
$gcc_cv_ld != x \
26674 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26675 if test x
$gcc_cv_objdump != x
; then
26676 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26677 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26678 gcc_cv_as_sparc_gotdata_op
=no
26680 gcc_cv_as_sparc_gotdata_op
=yes
26686 echo "configure: failed program was" >&5
26689 rm -f conftest.o conftest.s
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26693 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26694 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26696 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26702 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26703 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26704 $as_echo_n "(cached) " >&6
26706 gcc_cv_as_sparc_ua_pcrel
=no
26707 if test x
$gcc_cv_as != x
; then
26714 .uaword %r_disp32(foo)' > conftest.s
26715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x \
26723 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26724 gcc_cv_as_sparc_ua_pcrel
=yes
26728 echo "configure: failed program was" >&5
26731 rm -f conftest.o conftest.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26735 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26736 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26738 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26742 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26743 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26744 $as_echo_n "(cached) " >&6
26746 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26747 if test x
$gcc_cv_as != x
; then
26751 .uaword %r_disp32(foo)
26752 .byte 0x32, 0x33, 0x34
26756 .skip 4' > conftest.s
26757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759 (eval $ac_try) 2>&5
26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762 test $ac_status = 0; }; }
26764 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26765 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26766 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26767 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26768 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26769 |
grep 'DISP32' > /dev
/null
2>&1; then
26772 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26777 echo "configure: failed program was" >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26784 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26785 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26787 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26793 # unaligned pcrel relocs
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26796 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26797 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26798 $as_echo_n "(cached) " >&6
26800 gcc_cv_as_sparc_offsetable_lo10
=no
26801 if test x
$gcc_cv_as != x
; then
26803 or %g1, %lo(ab) + 12, %g1
26804 or %g1, %lo(ab + 12), %g1' > conftest.s
26805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26812 if test x
$gcc_cv_objdump != x \
26813 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26814 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26815 gcc_cv_as_sparc_offsetable_lo10
=yes
26818 echo "configure: failed program was" >&5
26821 rm -f conftest.o conftest.s
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26825 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26826 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26828 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26834 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26835 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26836 $as_echo_n "(cached) " >&6
26838 gcc_cv_as_sparc_fmaf
=no
26839 if test x
$gcc_cv_as != x
; then
26841 .register %g2, #scratch
26842 .register %g3, #scratch
26844 fmaddd %f0, %f2, %f4, %f6
26845 addxccc %g1, %g2, %g3
26846 fsrl32 %f2, %f4, %f8
26847 fnaddd %f10, %f12, %f14' > conftest.s
26848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26850 (eval $ac_try) 2>&5
26852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26853 test $ac_status = 0; }; }
26855 gcc_cv_as_sparc_fmaf
=yes
26857 echo "configure: failed program was" >&5
26860 rm -f conftest.o conftest.s
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26864 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26865 if test $gcc_cv_as_sparc_fmaf = yes; then
26867 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26873 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26874 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 gcc_cv_as_sparc_sparc4
=no
26878 if test x
$gcc_cv_as != x
; then
26880 .register %g2, #scratch
26881 .register %g3, #scratch
26884 1: cwbneg %g2, %g3, 1f
26887 aes_kexpand0 %f4, %f6, %f8
26888 des_round %f38, %f40, %f42, %f44
26889 camellia_f %f54, %f56, %f58, %f60
26890 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26893 (eval $ac_try) 2>&5
26895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26896 test $ac_status = 0; }; }
26898 gcc_cv_as_sparc_sparc4
=yes
26900 echo "configure: failed program was" >&5
26903 rm -f conftest.o conftest.s
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26907 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26908 if test $gcc_cv_as_sparc_sparc4 = yes; then
26910 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26916 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26917 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26918 $as_echo_n "(cached) " >&6
26920 gcc_cv_as_sparc_sparc5
=no
26921 if test x
$gcc_cv_as != x
; then
26923 .register %g2, #scratch
26924 .register %g3, #scratch
26926 subxc %g1, %g2, %g3
26927 fpadd8 %f0, %f2, %f4' > conftest.s
26928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26935 gcc_cv_as_sparc_sparc5
=yes
26937 echo "configure: failed program was" >&5
26940 rm -f conftest.o conftest.s
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26944 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26945 if test $gcc_cv_as_sparc_sparc5 = yes; then
26947 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26953 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26954 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26955 $as_echo_n "(cached) " >&6
26957 gcc_cv_as_sparc_sparc6
=no
26958 if test x
$gcc_cv_as != x
; then
26960 .register %g2, #scratch
26961 .register %g3, #scratch
26964 fpsll64x %f0, %f2, %f4' > conftest.s
26965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; }
26972 gcc_cv_as_sparc_sparc6
=yes
26974 echo "configure: failed program was" >&5
26977 rm -f conftest.o conftest.s
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26981 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26982 if test $gcc_cv_as_sparc_sparc6 = yes; then
26984 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26990 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26991 if ${gcc_cv_as_sparc_leon+:} false
; then :
26992 $as_echo_n "(cached) " >&6
26994 gcc_cv_as_sparc_leon
=no
26995 if test x
$gcc_cv_as != x
; then
26997 .register %g2, #scratch
26998 .register %g3, #scratch
27002 casa [%g2] 0xb, %g3, %g1' > conftest.s
27003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27005 (eval $ac_try) 2>&5
27007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27008 test $ac_status = 0; }; }
27010 gcc_cv_as_sparc_leon
=yes
27012 echo "configure: failed program was" >&5
27015 rm -f conftest.o conftest.s
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27019 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27020 if test $gcc_cv_as_sparc_leon = yes; then
27022 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27028 i
[34567]86-*-* | x86_64-
*-*)
27031 # Full C++ conformance when using a shared libstdc++-v3 requires some
27032 # support from the Cygwin DLL, which in more recent versions exports
27033 # wrappers to aid in interposing and redirecting operators new, delete,
27034 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27035 # are configuring for a version of Cygwin that exports the wrappers.
27036 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27037 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27038 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27039 gcc_ac_cygwin_dll_wrappers
=yes
27041 gcc_ac_cygwin_dll_wrappers
=no
27045 # Can't check presence of libc functions during cross-compile, so
27046 # we just have to assume we're building for an up-to-date target.
27047 gcc_ac_cygwin_dll_wrappers
=yes
27050 cat >>confdefs.h
<<_ACEOF
27051 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27056 cygwin
* | pe | mingw32
*)
27057 # Recent binutils allows the three-operand form of ".comm" on PE. This
27058 # definition is used unconditionally to initialise the default state of
27059 # the target option variable that governs usage of the feature.
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27061 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27062 if ${gcc_cv_as_comm_has_align+:} false
; then :
27063 $as_echo_n "(cached) " >&6
27065 gcc_cv_as_comm_has_align
=no
27066 if test x
$gcc_cv_as != x
; then
27067 $as_echo '.comm foo,1,32' > conftest.s
27068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27070 (eval $ac_try) 2>&5
27072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27073 test $ac_status = 0; }; }
27075 gcc_cv_as_comm_has_align
=yes
27077 echo "configure: failed program was" >&5
27080 rm -f conftest.o conftest.s
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27084 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27088 cat >>confdefs.h
<<_ACEOF
27089 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27092 # Used for DWARF 2 in PE
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27094 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27095 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27096 $as_echo_n "(cached) " >&6
27098 gcc_cv_as_ix86_pe_secrel32
=no
27099 if test x
$gcc_cv_as != x
; then
27103 .secrel32 foo' > conftest.s
27104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27111 if test x
$gcc_cv_ld != x \
27112 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27113 gcc_cv_as_ix86_pe_secrel32
=yes
27117 echo "configure: failed program was" >&5
27120 rm -f conftest.o conftest.s
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27124 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27125 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27127 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27131 # Test if the assembler supports the extended form of the .section
27132 # directive that specifies section alignment. LTO support uses this,
27133 # but normally only after installation, so we warn but don't fail the
27134 # configure if LTO is enabled but the assembler does not support it.
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27136 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27137 if ${gcc_cv_as_section_has_align+:} false
; then :
27138 $as_echo_n "(cached) " >&6
27140 gcc_cv_as_section_has_align
=no
27141 if test x
$gcc_cv_as != x
; then
27142 $as_echo '.section lto_test,"dr0"' > conftest.s
27143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27150 gcc_cv_as_section_has_align
=yes
27152 echo "configure: failed program was" >&5
27155 rm -f conftest.o conftest.s
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27159 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27162 if test x
$gcc_cv_as_section_has_align != xyes
; then
27163 case ",$enable_languages," in
27165 { $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
27166 $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;}
27173 darwin2
* | darwin19
*)
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27175 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27176 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27177 $as_echo_n "(cached) " >&6
27179 gcc_cv_as_mllvm_x86_pad_for_align
=no
27180 if test x
$gcc_cv_as != x
; then
27181 $as_echo '.text' > conftest.s
27182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27184 (eval $ac_try) 2>&5
27186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27187 test $ac_status = 0; }; }
27189 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27191 echo "configure: failed program was" >&5
27194 rm -f conftest.o conftest.s
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27198 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27199 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27201 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27209 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27210 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27211 $as_echo_n "(cached) " >&6
27213 gcc_cv_as_ix86_xbrace_comment
=no
27214 if test x
$gcc_cv_as != x
; then
27215 $as_echo '.text' > conftest.s
27216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; }
27223 gcc_cv_as_ix86_xbrace_comment
=yes
27225 echo "configure: failed program was" >&5
27228 rm -f conftest.o conftest.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27232 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27233 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27235 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27241 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27242 if ${gcc_cv_as_ix86_filds+:} false
; then :
27243 $as_echo_n "(cached) " >&6
27245 gcc_cv_as_ix86_filds
=no
27246 if test x
$gcc_cv_as != x
; then
27247 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27250 (eval $ac_try) 2>&5
27252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27253 test $ac_status = 0; }; }
27255 gcc_cv_as_ix86_filds
=yes
27257 echo "configure: failed program was" >&5
27260 rm -f conftest.o conftest.s
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27264 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27265 if test $gcc_cv_as_ix86_filds = yes; then
27267 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27273 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27274 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27275 $as_echo_n "(cached) " >&6
27277 gcc_cv_as_ix86_fildq
=no
27278 if test x
$gcc_cv_as != x
; then
27279 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27282 (eval $ac_try) 2>&5
27284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27285 test $ac_status = 0; }; }
27287 gcc_cv_as_ix86_fildq
=yes
27289 echo "configure: failed program was" >&5
27292 rm -f conftest.o conftest.s
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27296 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27297 if test $gcc_cv_as_ix86_fildq = yes; then
27299 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27305 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27306 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27307 $as_echo_n "(cached) " >&6
27309 gcc_cv_as_ix86_cmov_sun_syntax
=no
27310 if test x
$gcc_cv_as != x
; then
27311 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27312 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27314 (eval $ac_try) 2>&5
27316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27317 test $ac_status = 0; }; }
27319 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27321 echo "configure: failed program was" >&5
27324 rm -f conftest.o conftest.s
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27328 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27329 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27331 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27337 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27338 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27339 $as_echo_n "(cached) " >&6
27341 gcc_cv_as_ix86_ffreep
=no
27342 if test x
$gcc_cv_as != x
; then
27343 $as_echo 'ffreep %st(1)' > conftest.s
27344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27346 (eval $ac_try) 2>&5
27348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27349 test $ac_status = 0; }; }
27351 gcc_cv_as_ix86_ffreep
=yes
27353 echo "configure: failed program was" >&5
27356 rm -f conftest.o conftest.s
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27360 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27361 if test $gcc_cv_as_ix86_ffreep = yes; then
27363 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27369 $as_echo_n "checking assembler for .quad directive... " >&6; }
27370 if ${gcc_cv_as_ix86_quad+:} false
; then :
27371 $as_echo_n "(cached) " >&6
27373 gcc_cv_as_ix86_quad
=no
27374 if test x
$gcc_cv_as != x
; then
27375 $as_echo '.quad 0' > conftest.s
27376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27378 (eval $ac_try) 2>&5
27380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381 test $ac_status = 0; }; }
27383 gcc_cv_as_ix86_quad
=yes
27385 echo "configure: failed program was" >&5
27388 rm -f conftest.o conftest.s
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27392 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27393 if test $gcc_cv_as_ix86_quad = yes; then
27395 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27401 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27402 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27403 $as_echo_n "(cached) " >&6
27405 gcc_cv_as_ix86_sahf
=no
27406 if test x
$gcc_cv_as != x
; then
27409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27416 gcc_cv_as_ix86_sahf
=yes
27418 echo "configure: failed program was" >&5
27421 rm -f conftest.o conftest.s
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27425 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27426 if test $gcc_cv_as_ix86_sahf = yes; then
27428 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27434 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27435 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27436 $as_echo_n "(cached) " >&6
27438 gcc_cv_as_ix86_interunit_movq
=no
27439 if test x
$gcc_cv_as != x
; then
27442 movq %rax, %xmm0' > conftest.s
27443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27450 gcc_cv_as_ix86_interunit_movq
=yes
27452 echo "configure: failed program was" >&5
27455 rm -f conftest.o conftest.s
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27459 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27463 cat >>confdefs.h
<<_ACEOF
27464 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27469 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27470 if ${gcc_cv_as_ix86_hle+:} false
; then :
27471 $as_echo_n "(cached) " >&6
27473 gcc_cv_as_ix86_hle
=no
27474 if test x
$gcc_cv_as != x
; then
27475 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27478 (eval $ac_try) 2>&5
27480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27481 test $ac_status = 0; }; }
27483 gcc_cv_as_ix86_hle
=yes
27485 echo "configure: failed program was" >&5
27488 rm -f conftest.o conftest.s
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27492 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27493 if test $gcc_cv_as_ix86_hle = yes; then
27495 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27501 $as_echo_n "checking assembler for swap suffix... " >&6; }
27502 if ${gcc_cv_as_ix86_swap+:} false
; then :
27503 $as_echo_n "(cached) " >&6
27505 gcc_cv_as_ix86_swap
=no
27506 if test x
$gcc_cv_as != x
; then
27507 $as_echo 'movl.s %esp, %ebp' > conftest.s
27508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27510 (eval $ac_try) 2>&5
27512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27513 test $ac_status = 0; }; }
27515 gcc_cv_as_ix86_swap
=yes
27517 echo "configure: failed program was" >&5
27520 rm -f conftest.o conftest.s
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27524 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27525 if test $gcc_cv_as_ix86_swap = yes; then
27527 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27533 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27534 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27535 $as_echo_n "(cached) " >&6
27537 gcc_cv_as_ix86_diff_sect_delta
=no
27538 if test x
$gcc_cv_as != x
; then
27539 $as_echo '.section .rodata
27545 .L2: nop' > conftest.s
27546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27548 (eval $ac_try) 2>&5
27550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551 test $ac_status = 0; }; }
27553 gcc_cv_as_ix86_diff_sect_delta
=yes
27555 echo "configure: failed program was" >&5
27558 rm -f conftest.o conftest.s
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27562 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27563 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27565 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27571 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27572 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27573 $as_echo_n "(cached) " >&6
27575 gcc_cv_as_ix86_rep_lock_prefix
=no
27576 if test x
$gcc_cv_as != x
; then
27577 $as_echo 'rep movsl
27582 lock addl %edi, (%eax,%esi)
27583 lock orl $0, (%esp)' > conftest.s
27584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27586 (eval $ac_try) 2>&5
27588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27589 test $ac_status = 0; }; }
27591 gcc_cv_as_ix86_rep_lock_prefix
=yes
27593 echo "configure: failed program was" >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27600 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27601 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27603 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27609 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27610 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27611 $as_echo_n "(cached) " >&6
27613 gcc_cv_as_ix86_ud2
=no
27614 if test x
$gcc_cv_as != x
; then
27615 $as_echo 'ud2' > conftest.s
27616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27623 gcc_cv_as_ix86_ud2
=yes
27625 echo "configure: failed program was" >&5
27628 rm -f conftest.o conftest.s
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27632 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27633 if test $gcc_cv_as_ix86_ud2 = yes; then
27635 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27640 # Enforce 32-bit output with gas and gld.
27641 if test x
$gas = xyes
; then
27642 as_ix86_gas_32_opt
="--32"
27644 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27645 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27646 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27648 ld_ix86_gld_32_opt
="-melf_i386"
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27653 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27654 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27655 $as_echo_n "(cached) " >&6
27657 gcc_cv_as_ix86_tlsgdplt
=no
27658 if test x
$gcc_cv_as != x
; then
27659 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27662 (eval $ac_try) 2>&5
27664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665 test $ac_status = 0; }; }
27667 if test x
$gcc_cv_ld != x \
27668 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27669 gcc_cv_as_ix86_tlsgdplt
=yes
27673 echo "configure: failed program was" >&5
27676 rm -f conftest.o conftest.s
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27680 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27681 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27683 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27689 .section .tdata,"aw'$tls_section_flag'",@progbits
27691 .section .text,"ax",@progbits
27692 call tls_ld@tlsldmplt'
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27695 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27696 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27697 $as_echo_n "(cached) " >&6
27699 gcc_cv_as_ix86_tlsldmplt
=no
27700 if test x
$gcc_cv_as != x
; then
27701 $as_echo "$conftest_s" > conftest.s
27702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27704 (eval $ac_try) 2>&5
27706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27707 test $ac_status = 0; }; }
27709 if test x
$gcc_cv_ld != x \
27710 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27711 gcc_cv_as_ix86_tlsldmplt
=yes
27715 echo "configure: failed program was" >&5
27718 rm -f conftest.o conftest.s
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27722 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27726 cat >>confdefs.h
<<_ACEOF
27727 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27732 .section .text,"ax",@progbits
27734 .type _start, @function
27736 leal value@tlsldm(%ebx), %eax
27737 call ___tls_get_addr@plt
27739 .section .tdata,"aw'$tls_section_flag'",@progbits
27740 .type value, @object
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27743 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27744 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27745 $as_echo_n "(cached) " >&6
27747 gcc_cv_as_ix86_tlsldm
=no
27748 if test x
$gcc_cv_as != x
; then
27749 $as_echo "$conftest_s" > conftest.s
27750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27752 (eval $ac_try) 2>&5
27754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27755 test $ac_status = 0; }; }
27757 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27758 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27759 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27760 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27761 gcc_cv_as_ix86_tlsldm
=yes
27766 echo "configure: failed program was" >&5
27769 rm -f conftest.o conftest.s
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27773 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27777 cat >>confdefs.h
<<_ACEOF
27778 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27792 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27793 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27794 $as_echo_n "(cached) " >&6
27796 gcc_cv_as_ix86_got32x
=no
27797 if test x
$gcc_cv_as != x
; then
27798 $as_echo "$conftest_s" > conftest.s
27799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; }
27806 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27807 && test x
$gcc_cv_readelf != x \
27808 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27809 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27810 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27811 if $gcc_cv_objdump -dw conftest
2>&1 \
27812 |
grep 0xffffff > /dev
/null
2>&1; then
27813 gcc_cv_as_ix86_got32x
=no
27815 gcc_cv_as_ix86_got32x
=yes
27820 echo "configure: failed program was" >&5
27823 rm -f conftest.o conftest.s
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27827 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27831 cat >>confdefs.h
<<_ACEOF
27832 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27837 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27838 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27839 $as_echo_n "(cached) " >&6
27841 gcc_cv_as_ix86_gotoff_in_data
=no
27842 if test x
$gcc_cv_as != x
; then
27847 .long .L0@GOTOFF' > conftest.s
27848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850 (eval $ac_try) 2>&5
27852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853 test $ac_status = 0; }; }
27855 gcc_cv_as_ix86_gotoff_in_data
=yes
27857 echo "configure: failed program was" >&5
27860 rm -f conftest.o conftest.s
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27864 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27868 cat >>confdefs.h
<<_ACEOF
27869 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27874 .section .text,"ax",@progbits
27876 .type _start, @function
27878 leal ld@tlsldm(%ecx), %eax
27879 call *___tls_get_addr@GOT(%ecx)
27880 leal gd@tlsgd(%ecx), %eax
27881 call *___tls_get_addr@GOT(%ecx)
27883 .section .tdata,"aw'$tls_section_flag'",@progbits
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27892 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27893 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27894 $as_echo_n "(cached) " >&6
27896 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27897 if test x
$gcc_cv_as != x
; then
27898 $as_echo "$conftest_s" > conftest.s
27899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27906 if test x
$gcc_cv_ld != x \
27907 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27908 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27912 echo "configure: failed program was" >&5
27915 rm -f conftest.o conftest.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27919 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27923 cat >>confdefs.h
<<_ACEOF
27924 #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`
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27931 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27932 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27933 $as_echo_n "(cached) " >&6
27935 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27936 if test x
$gcc_cv_as != x
; then
27938 addl r15 = @ltoffx(x#), gp
27940 ld8.mov r16 = [r15], x#
27942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27944 (eval $ac_try) 2>&5
27946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27947 test $ac_status = 0; }; }
27949 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27951 echo "configure: failed program was" >&5
27954 rm -f conftest.o conftest.s
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27958 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27959 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27961 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27973 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27974 if ${gcc_cv_as_machine_directive+:} false
; then :
27975 $as_echo_n "(cached) " >&6
27977 gcc_cv_as_machine_directive
=no
27978 if test x
$gcc_cv_as != x
; then
27979 $as_echo ' .machine ppc7400' > conftest.s
27980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27982 (eval $ac_try) 2>&5
27984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27985 test $ac_status = 0; }; }
27987 gcc_cv_as_machine_directive
=yes
27989 echo "configure: failed program was" >&5
27992 rm -f conftest.o conftest.s
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27996 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27999 if test x
$gcc_cv_as_machine_directive != xyes
; then
28000 echo "*** This target requires an assembler supporting \".machine\"" >&2
28001 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28002 test x
$build = x
$target && exit 1
28008 *-*-aix*) conftest_s
=' .machine "pwr5"
28011 *-*-darwin*) conftest_s
=' .text
28013 *) conftest_s
=' .machine power4
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28019 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28020 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28021 $as_echo_n "(cached) " >&6
28023 gcc_cv_as_powerpc_mfcrf
=no
28024 if test x
$gcc_cv_as != x
; then
28025 $as_echo "$conftest_s" > conftest.s
28026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28028 (eval $ac_try) 2>&5
28030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031 test $ac_status = 0; }; }
28033 gcc_cv_as_powerpc_mfcrf
=yes
28035 echo "configure: failed program was" >&5
28038 rm -f conftest.o conftest.s
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28042 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28043 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28045 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28051 *-*-aix*) conftest_s
=' .csect .text[PR]
28053 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28057 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28058 *) conftest_s
=' .text
28060 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28064 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28065 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28066 $as_echo_n "(cached) " >&6
28068 gcc_cv_as_powerpc_rel16
=no
28069 if test x
$gcc_cv_as != x
; then
28070 $as_echo "$conftest_s" > conftest.s
28071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28073 (eval $ac_try) 2>&5
28075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28076 test $ac_status = 0; }; }
28078 gcc_cv_as_powerpc_rel16
=yes
28080 echo "configure: failed program was" >&5
28083 rm -f conftest.o conftest.s
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28087 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28088 if test $gcc_cv_as_powerpc_rel16 = yes; then
28090 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28096 *-*-aix*) conftest_s
=' .machine "pwr7"
28099 *) conftest_s
=' .machine power7
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28105 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28106 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28107 $as_echo_n "(cached) " >&6
28109 gcc_cv_as_powerpc_vsx
=no
28110 if test x
$gcc_cv_as != x
; then
28111 $as_echo "$conftest_s" > conftest.s
28112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28114 (eval $ac_try) 2>&5
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; }
28119 gcc_cv_as_powerpc_vsx
=yes
28121 echo "configure: failed program was" >&5
28124 rm -f conftest.o conftest.s
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28128 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28129 if test $gcc_cv_as_powerpc_vsx = yes; then
28131 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28137 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28138 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28139 $as_echo_n "(cached) " >&6
28141 gcc_cv_as_powerpc_gnu_attribute
=no
28142 if test x
$gcc_cv_as != x
; then
28143 $as_echo '.gnu_attribute 4,1' > 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_powerpc_gnu_attribute
=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_powerpc_gnu_attribute" >&5
28160 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28161 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28163 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28169 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28170 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28171 $as_echo_n "(cached) " >&6
28173 gcc_cv_as_powerpc_entry_markers
=no
28174 if test x
$gcc_cv_as != x
; then
28175 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28178 (eval $ac_try) 2>&5
28180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28181 test $ac_status = 0; }; }
28183 gcc_cv_as_powerpc_entry_markers
=yes
28185 echo "configure: failed program was" >&5
28188 rm -f conftest.o conftest.s
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28192 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28193 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28195 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28201 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28202 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28203 $as_echo_n "(cached) " >&6
28205 gcc_cv_as_powerpc_pltseq_markers
=no
28206 if test x
$gcc_cv_as != x
; then
28207 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28210 (eval $ac_try) 2>&5
28212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28213 test $ac_status = 0; }; }
28215 gcc_cv_as_powerpc_pltseq_markers
=yes
28217 echo "configure: failed program was" >&5
28220 rm -f conftest.o conftest.s
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28224 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28225 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28227 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28235 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28236 if ${gcc_cv_as_aix_ref+:} false
; then :
28237 $as_echo_n "(cached) " >&6
28239 gcc_cv_as_aix_ref
=no
28240 if test x
$gcc_cv_as != x
; then
28241 $as_echo ' .csect stuff[rw]
28247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28249 (eval $ac_try) 2>&5
28251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28252 test $ac_status = 0; }; }
28254 gcc_cv_as_aix_ref
=yes
28256 echo "configure: failed program was" >&5
28259 rm -f conftest.o conftest.s
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28263 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28264 if test $gcc_cv_as_aix_ref = yes; then
28266 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28272 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28273 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28274 $as_echo_n "(cached) " >&6
28276 gcc_cv_as_aix_dwloc
=no
28277 if test x
$gcc_cv_as != x
; then
28278 $as_echo ' .dwsect 0xA0000
28282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28284 (eval $ac_try) 2>&5
28286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28287 test $ac_status = 0; }; }
28289 gcc_cv_as_aix_dwloc
=yes
28291 echo "configure: failed program was" >&5
28294 rm -f conftest.o conftest.s
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28298 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28299 if test $gcc_cv_as_aix_dwloc = yes; then
28301 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28311 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28312 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28313 $as_echo_n "(cached) " >&6
28315 gcc_cv_as_mips_explicit_relocs
=no
28316 if test x
$gcc_cv_as != x
; then
28317 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28325 gcc_cv_as_mips_explicit_relocs
=yes
28327 echo "configure: failed program was" >&5
28330 rm -f conftest.o conftest.s
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28334 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28335 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28336 if test x
$target_cpu_default = x
28337 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28338 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28344 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28345 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28346 $as_echo_n "(cached) " >&6
28348 gcc_cv_as_mips_no_shared
=no
28349 if test x
$gcc_cv_as != x
; then
28350 $as_echo 'nop' > conftest.s
28351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28353 (eval $ac_try) 2>&5
28355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28356 test $ac_status = 0; }; }
28358 gcc_cv_as_mips_no_shared
=yes
28360 echo "configure: failed program was" >&5
28363 rm -f conftest.o conftest.s
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28367 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28368 if test $gcc_cv_as_mips_no_shared = yes; then
28370 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28376 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28377 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28378 $as_echo_n "(cached) " >&6
28380 gcc_cv_as_mips_gnu_attribute
=no
28381 if test x
$gcc_cv_as != x
; then
28382 $as_echo '.gnu_attribute 4,1' > conftest.s
28383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28385 (eval $ac_try) 2>&5
28387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28388 test $ac_status = 0; }; }
28390 gcc_cv_as_mips_gnu_attribute
=yes
28392 echo "configure: failed program was" >&5
28395 rm -f conftest.o conftest.s
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28399 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28400 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28402 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28408 $as_echo_n "checking assembler for .module support... " >&6; }
28409 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28410 $as_echo_n "(cached) " >&6
28412 gcc_cv_as_mips_dot_module
=no
28413 if test x
$gcc_cv_as != x
; then
28414 $as_echo '.module mips2
28415 .module fp=xx' > conftest.s
28416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28418 (eval $ac_try) 2>&5
28420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421 test $ac_status = 0; }; }
28423 gcc_cv_as_mips_dot_module
=yes
28425 echo "configure: failed program was" >&5
28428 rm -f conftest.o conftest.s
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28432 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28433 if test $gcc_cv_as_mips_dot_module = yes; then
28435 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28439 if test x
$gcc_cv_as_mips_dot_module = xno \
28440 && test x
$with_fp_32 != x
; then
28441 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28445 $as_echo_n "checking assembler for .micromips support... " >&6; }
28446 if ${gcc_cv_as_micromips_support+:} false
; then :
28447 $as_echo_n "(cached) " >&6
28449 gcc_cv_as_micromips_support
=no
28450 if test x
$gcc_cv_as != x
; then
28451 $as_echo '.set micromips' > conftest.s
28452 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28459 gcc_cv_as_micromips_support
=yes
28461 echo "configure: failed program was" >&5
28464 rm -f conftest.o conftest.s
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28468 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28469 if test $gcc_cv_as_micromips_support = yes; then
28471 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28477 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28478 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28479 $as_echo_n "(cached) " >&6
28481 gcc_cv_as_mips_dtprelword
=no
28482 if test x
$gcc_cv_as != x
; then
28483 $as_echo '.section .tdata,"awT",@progbits
28487 .dtprelword x+0x8000' > conftest.s
28488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28490 (eval $ac_try) 2>&5
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; }
28495 gcc_cv_as_mips_dtprelword
=yes
28497 echo "configure: failed program was" >&5
28500 rm -f conftest.o conftest.s
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28504 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28505 if test $gcc_cv_as_mips_dtprelword = yes; then
28507 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28513 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28514 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28515 $as_echo_n "(cached) " >&6
28517 gcc_cv_as_mips_dspr1_mult
=no
28518 if test x
$gcc_cv_as != x
; then
28519 $as_echo ' .set mips32r2
28527 multu $ac3,$4,$5' > conftest.s
28528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28530 (eval $ac_try) 2>&5
28532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28533 test $ac_status = 0; }; }
28535 gcc_cv_as_mips_dspr1_mult
=yes
28537 echo "configure: failed program was" >&5
28540 rm -f conftest.o conftest.s
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28544 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28545 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28547 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28553 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28554 gcc_cv_as_ld_jalr_reloc
=no
28555 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28556 if test $in_tree_ld = yes ; then
28557 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 \
28558 && test $in_tree_ld_is_elf = yes; then
28559 gcc_cv_as_ld_jalr_reloc
=yes
28561 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28562 echo ' .ent x' > conftest.s
28563 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28564 echo ' lw $25,%call16(y)($28)' >> conftest.s
28565 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28566 echo '1: jalr $25' >> conftest.s
28567 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28568 echo '1: jalr $25' >> conftest.s
28569 echo ' .end x' >> conftest.s
28570 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28571 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28572 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28573 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28574 gcc_cv_as_ld_jalr_reloc
=yes
28580 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28581 if test x
$target_cpu_default = x
; then
28582 target_cpu_default
=MASK_RELAX_PIC_CALLS
28584 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28588 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28591 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28592 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28593 $as_echo_n "(cached) " >&6
28595 gcc_cv_ld_mips_personality_relaxation
=no
28596 if test $in_tree_ld = yes ; then
28597 if test "$gcc_cv_gld_major_version" -eq 2 \
28598 -a "$gcc_cv_gld_minor_version" -ge 21 \
28599 -o "$gcc_cv_gld_major_version" -gt 2; then
28600 gcc_cv_ld_mips_personality_relaxation
=yes
28602 elif test x
$gcc_cv_as != x \
28603 -a x
$gcc_cv_ld != x \
28604 -a x
$gcc_cv_readelf != x
; then
28605 cat > conftest.s
<<EOF
28607 .cfi_personality 0x80,indirect_ptr
28614 .section .data,"aw",@progbits
28618 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28619 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28620 if $gcc_cv_readelf -d conftest
2>&1 \
28621 |
grep TEXTREL
> /dev
/null
2>&1; then
28623 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28624 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28627 gcc_cv_ld_mips_personality_relaxation
=yes
28631 rm -f conftest.s conftest.o conftest
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28634 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28635 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28637 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28642 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28643 if ${gcc_cv_as_mips_nan+:} false
; then :
28644 $as_echo_n "(cached) " >&6
28646 gcc_cv_as_mips_nan
=no
28647 if test x
$gcc_cv_as != x
; then
28648 $as_echo '' > conftest.s
28649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28651 (eval $ac_try) 2>&5
28653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28654 test $ac_status = 0; }; }
28656 gcc_cv_as_mips_nan
=yes
28658 echo "configure: failed program was" >&5
28661 rm -f conftest.o conftest.s
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28665 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28666 if test $gcc_cv_as_mips_nan = yes; then
28668 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28672 if test x
$gcc_cv_as_mips_nan = xno \
28673 && test x
$with_nan != x
; then
28674 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28678 # Earlier GAS versions generically support .gnu_attribute, but the
28679 # msp430 assembler will not do anything with it.
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28681 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28682 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28683 $as_echo_n "(cached) " >&6
28685 gcc_cv_as_msp430_gnu_attribute
=no
28686 if test x
$gcc_cv_as != x
; then
28687 $as_echo '.gnu_attribute 4,1' > conftest.s
28688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28690 (eval $ac_try) 2>&5
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; }
28695 gcc_cv_as_msp430_gnu_attribute
=yes
28697 echo "configure: failed program was" >&5
28700 rm -f conftest.o conftest.s
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28704 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28705 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28707 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28712 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28713 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28714 $as_echo_n "(cached) " >&6
28716 gcc_cv_as_msp430_mspabi_attribute
=no
28717 if test x
$gcc_cv_as != x
; then
28718 $as_echo '.mspabi_attribute 4,2' > conftest.s
28719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28721 (eval $ac_try) 2>&5
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; }
28726 gcc_cv_as_msp430_mspabi_attribute
=yes
28728 echo "configure: failed program was" >&5
28731 rm -f conftest.o conftest.s
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28735 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28736 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28738 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28742 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28744 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28749 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28750 # syntax that is documented in the ABI specification.
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28752 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28753 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28754 $as_echo_n "(cached) " >&6
28756 gcc_cv_as_nios2_gotoff_relocation
=no
28757 if test x
$gcc_cv_as != x
; then
28758 $as_echo ' .extern foo
28760 .long %gotoff(foo)' > conftest.s
28761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28763 (eval $ac_try) 2>&5
28765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28766 test $ac_status = 0; }; }
28768 gcc_cv_as_nios2_gotoff_relocation
=yes
28770 echo "configure: failed program was" >&5
28773 rm -f conftest.o conftest.s
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28777 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28778 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28780 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28787 $as_echo_n "checking assembler for .attribute support... " >&6; }
28788 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28789 $as_echo_n "(cached) " >&6
28791 gcc_cv_as_riscv_attribute
=no
28792 if test x
$gcc_cv_as != x
; then
28793 $as_echo '.attribute stack_align,4' > conftest.s
28794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; }
28801 gcc_cv_as_riscv_attribute
=yes
28803 echo "configure: failed program was" >&5
28806 rm -f conftest.o conftest.s
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28810 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28811 if test $gcc_cv_as_riscv_attribute = yes; then
28813 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28818 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28819 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28820 $as_echo_n "(cached) " >&6
28822 gcc_cv_as_riscv_isa_spec
=no
28823 if test x
$gcc_cv_as != x
; then
28824 $as_echo '' > conftest.s
28825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28827 (eval $ac_try) 2>&5
28829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28830 test $ac_status = 0; }; }
28832 gcc_cv_as_riscv_isa_spec
=yes
28834 echo "configure: failed program was" >&5
28837 rm -f conftest.o conftest.s
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28841 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28842 if test $gcc_cv_as_riscv_isa_spec = yes; then
28844 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28849 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28850 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28851 $as_echo_n "(cached) " >&6
28853 gcc_cv_as_riscv_march_zifencei
=no
28854 if test x
$gcc_cv_as != x
; then
28855 $as_echo '' > conftest.s
28856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28858 (eval $ac_try) 2>&5
28860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28861 test $ac_status = 0; }; }
28863 gcc_cv_as_riscv_march_zifencei
=yes
28865 echo "configure: failed program was" >&5
28868 rm -f conftest.o conftest.s
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28872 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28873 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28875 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28882 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28883 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28884 $as_echo_n "(cached) " >&6
28886 gcc_cv_as_loongarch_dtprelword
=no
28887 if test x
$gcc_cv_as != x
; then
28888 $as_echo '' > conftest.s
28889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28891 (eval $ac_try) 2>&5
28893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28894 test $ac_status = 0; }; }
28896 .section .tdata
,"awT",@progbits
28900 .dtprelword x
+0x8000
28902 echo "configure: failed program was" >&5
28905 rm -f conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28909 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28911 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28913 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28917 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28918 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
28919 $as_echo_n "(cached) " >&6
28921 gcc_cv_as_loongarch_explicit_relocs
=no
28922 if test x
$gcc_cv_as != x
; then
28923 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28926 (eval $ac_try) 2>&5
28928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28929 test $ac_status = 0; }; }
28931 gcc_cv_as_loongarch_explicit_relocs
=yes
28933 echo "configure: failed program was" >&5
28936 rm -f conftest.o conftest.s
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28940 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28941 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28943 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28948 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28949 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
28950 $as_echo_n "(cached) " >&6
28952 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
28953 if test x
$gcc_cv_as != x
; then
28954 $as_echo '.cfi_startproc
28955 .cfi_personality 0x9b,a
28957 .cfi_endproc' > conftest.s
28958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28960 (eval $ac_try) 2>&5
28962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28963 test $ac_status = 0; }; }
28965 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
28967 echo "configure: failed program was" >&5
28970 rm -f conftest.o conftest.s
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28974 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28975 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28977 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28984 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28985 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28986 $as_echo_n "(cached) " >&6
28988 gcc_cv_as_s390_gnu_attribute
=no
28989 if test x
$gcc_cv_as != x
; then
28990 $as_echo '.gnu_attribute 8,1' > conftest.s
28991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28993 (eval $ac_try) 2>&5
28995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28996 test $ac_status = 0; }; }
28998 gcc_cv_as_s390_gnu_attribute
=yes
29000 echo "configure: failed program was" >&5
29003 rm -f conftest.o conftest.s
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29007 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29008 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29010 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29015 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29016 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29017 $as_echo_n "(cached) " >&6
29019 gcc_cv_as_s390_machine_machinemode
=no
29020 if test x
$gcc_cv_as != x
; then
29021 $as_echo ' .machinemode push
29024 .machine pop' > conftest.s
29025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29027 (eval $ac_try) 2>&5
29029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29030 test $ac_status = 0; }; }
29032 gcc_cv_as_s390_machine_machinemode
=yes
29034 echo "configure: failed program was" >&5
29037 rm -f conftest.o conftest.s
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29041 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29042 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29044 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29049 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29050 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29051 $as_echo_n "(cached) " >&6
29053 gcc_cv_as_s390_architecture_modifiers
=no
29054 if test x
$gcc_cv_as != x
; then
29055 $as_echo ' .machine z13+vx ' > conftest.s
29056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29058 (eval $ac_try) 2>&5
29060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29061 test $ac_status = 0; }; }
29063 gcc_cv_as_s390_architecture_modifiers
=yes
29065 echo "configure: failed program was" >&5
29068 rm -f conftest.o conftest.s
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29072 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29073 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29075 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29080 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29081 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29082 $as_echo_n "(cached) " >&6
29084 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29085 if test x
$gcc_cv_as != x
; then
29086 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29089 (eval $ac_try) 2>&5
29091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29092 test $ac_status = 0; }; }
29094 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29096 echo "configure: failed program was" >&5
29099 rm -f conftest.o conftest.s
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29103 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29104 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29106 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29111 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29112 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29113 $as_echo_n "(cached) " >&6
29115 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29116 if test x
$gcc_cv_as != x
; then
29117 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29120 (eval $ac_try) 2>&5
29122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29123 test $ac_status = 0; }; }
29125 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29127 echo "configure: failed program was" >&5
29130 rm -f conftest.o conftest.s
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29134 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29135 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29137 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29145 # Mips, LoongArch and HP-UX need the GNU assembler.
29146 # Linux on IA64 might be able to use the Intel assembler.
29149 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29150 if test x
$gas_flag = xyes \
29151 ||
test x
"$host" != x
"$build" \
29152 ||
test ! -x "$gcc_cv_as" \
29153 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29156 echo "*** This configuration requires the GNU assembler" >&2
29162 # AMD GCN needs the LLVM assembler and linker.
29163 # Test that LLVM is at least 13.0.1.
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29167 $as_echo_n "checking llvm assembler version... " >&6; }
29168 gcc_cv_as_version
="unknown"
29169 if test x
$gcc_cv_as != x
; then
29170 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29171 case "$gcc_cv_as_version" in
29172 13.0.
[1-9]*) ;; # 13.0.1+
29173 13.
[1-9]*) ;; # 13.1+
29174 1[4-9]*) ;; # 14..19
29175 [2-9][0-9]*) ;; # 20..99
29176 [1-9][0-9][0-9]*) ;; # 100+
29177 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29178 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29182 $as_echo "$gcc_cv_as_version, ok" >&6; }
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29189 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29190 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29191 $as_echo_n "(cached) " >&6
29193 gcc_cv_as_arm_option_extensions
=no
29194 if test x
$gcc_cv_as != x
; then
29198 vmov.f32 s0, s1' > conftest.s
29199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29201 (eval $ac_try) 2>&5
29203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29204 test $ac_status = 0; }; }
29206 gcc_cv_as_arm_option_extensions
=yes
29208 echo "configure: failed program was" >&5
29211 rm -f conftest.o conftest.s
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29215 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29216 if test $gcc_cv_as_arm_option_extensions = yes; then
29218 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29224 # ??? Not all targets support dwarf2 debug_line, even within a version
29225 # of gas. Moreover, we need to emit a valid instruction to trigger any
29226 # info to the output file. So, as supported targets are added to gas 2.11,
29227 # add some instruction here to (also) show we expect this might work.
29228 # ??? Once 2.11 is released, probably need to add first known working
29229 # version to the per-target configury.
29230 case "$cpu_type" in
29231 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29232 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29233 | visium | xstormy16 | xtensa
)
29243 if test x
"$insn" != x
; then
29245 .file 1 \"conftest.s\"
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29249 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29250 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29251 $as_echo_n "(cached) " >&6
29253 gcc_cv_as_dwarf2_debug_line
=no
29254 if test x
$gcc_cv_as != x
; then
29255 $as_echo "$conftest_s" > conftest.s
29256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29258 (eval $ac_try) 2>&5
29260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29261 test $ac_status = 0; }; }
29263 if test x
$gcc_cv_objdump != x \
29264 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29265 |
grep debug_line
> /dev
/null
2>&1; then
29266 gcc_cv_as_dwarf2_debug_line
=yes
29267 elif test x
$gcc_cv_otool != x \
29268 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29269 |
grep debug_line
> /dev
/null
2>&1; then
29270 gcc_cv_as_dwarf2_debug_line
=yes
29273 echo "configure: failed program was" >&5
29276 rm -f conftest.o conftest.s
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29280 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29284 # The .debug_line file table must be in the exact order that
29285 # we specified the files, since these indices are also used
29286 # by DW_AT_decl_file. Approximate this test by testing if
29287 # the assembler bitches if the same index is assigned twice.
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29289 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29290 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29291 $as_echo_n "(cached) " >&6
29293 gcc_cv_as_dwarf2_file_buggy
=no
29294 if test x
$gcc_cv_as != x
; then
29295 $as_echo ' .file 1 "foo.s"
29296 .file 1 "bar.s"' > conftest.s
29297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29299 (eval $ac_try) 2>&5
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; }
29304 gcc_cv_as_dwarf2_file_buggy
=yes
29306 echo "configure: failed program was" >&5
29309 rm -f conftest.o conftest.s
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29313 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29317 if test $gcc_cv_as_dwarf2_debug_line = yes \
29318 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29320 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29323 if test $gcc_cv_as_leb128 = yes; then
29325 .file 1 \"conftest.s\"
29326 .loc 1 3 0 view .LVU1
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29333 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29334 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29335 $as_echo_n "(cached) " >&6
29337 gcc_cv_as_dwarf2_debug_view
=no
29338 if test x
$gcc_cv_as != x
; then
29339 $as_echo "$conftest_s" > conftest.s
29340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29342 (eval $ac_try) 2>&5
29344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29345 test $ac_status = 0; }; }
29347 gcc_cv_as_dwarf2_debug_view
=yes
29349 echo "configure: failed program was" >&5
29352 rm -f conftest.o conftest.s
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29356 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29357 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29359 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29367 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29368 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29369 $as_echo_n "(cached) " >&6
29371 gcc_cv_as_gdwarf2_flag
=no
29372 if test x
$gcc_cv_as != x
; then
29373 $as_echo "$insn" > conftest.s
29374 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29376 (eval $ac_try) 2>&5
29378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29379 test $ac_status = 0; }; }
29381 gcc_cv_as_gdwarf2_flag
=yes
29383 echo "configure: failed program was" >&5
29386 rm -f conftest.o conftest.s
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29390 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29391 if test $gcc_cv_as_gdwarf2_flag = yes; then
29393 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29399 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29400 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29401 $as_echo_n "(cached) " >&6
29403 gcc_cv_as_gdwarf_5_flag
=no
29404 if test x
$gcc_cv_as != x
; then
29405 $as_echo "$insn" > conftest.s
29406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29408 (eval $ac_try) 2>&5
29410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29411 test $ac_status = 0; }; }
29413 if test x
$gcc_cv_objdump != x \
29414 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29415 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29416 gcc_cv_as_gdwarf_5_flag
=yes;
29419 echo "configure: failed program was" >&5
29422 rm -f conftest.o conftest.s
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29426 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29427 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29429 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29435 win32 | pe | cygwin
* | mingw32
*)
29436 section_flags
=\"dr
\"
29437 function_type
=".def foo; .scl 2; .type 32; .endef"
29440 section_flags
=\"\",%progbits
29441 function_type
=".type foo, %function"
29442 function_size
=".size foo, .-foo";;
29444 dwarf4_debug_info_size
=0x46
29445 dwarf4_high_pc_form
=7
29446 dwarf4_debug_aranges_size
=0x2c
29448 for dwarf4_addr_size
in 8 4; do
29464 .section .debug_info,$section_flags
29466 .4byte $dwarf4_debug_info_size
29468 .4byte .Ldebug_abbrev0
29469 .byte 0x$dwarf4_addr_size
29471 .ascii \"GNU C17\\0\"
29475 .${dwarf4_addr_size}byte .Ltext0
29476 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29477 .4byte .Ldebug_line0
29483 .${dwarf4_addr_size}byte .LFB0
29484 .${dwarf4_addr_size}byte .LFE0-.LFB0
29488 .section .debug_abbrev,$section_flags
29504 .byte 0x$dwarf4_high_pc_form
29525 .byte 0x$dwarf4_high_pc_form
29531 .section .debug_aranges,$section_flags
29532 .4byte $dwarf4_debug_aranges_size
29534 .4byte .Ldebug_info0
29539 .${dwarf4_addr_size}byte .Ltext0
29540 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29541 .${dwarf4_addr_size}byte 0
29542 .${dwarf4_addr_size}byte 0
29543 .section .debug_line,$section_flags
29545 .4byte .LELT0-.LSLT0
29548 .4byte .LELTP0-.LASLTP0
29576 .byte 0x$dwarf4_line_sz
29578 .${dwarf4_addr_size}byte .LM1
29583 .byte 0x$dwarf4_line_sz
29585 .${dwarf4_addr_size}byte .LM2
29590 .byte 0x$dwarf4_line_sz
29592 .${dwarf4_addr_size}byte .Letext0
29597 .section .debug_str,$section_flags
29601 if test $dwarf4_addr_size = 4; then
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29603 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29604 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29605 $as_echo_n "(cached) " >&6
29607 gcc_cv_as_debug_line_32_flag
=no
29608 if test x
$gcc_cv_as != x
; then
29609 $as_echo "$conftest_s" > conftest.s
29610 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29612 (eval $ac_try) 2>&5
29614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29615 test $ac_status = 0; }; }
29617 gcc_cv_as_debug_line_32_flag
=yes
29619 echo "configure: failed program was" >&5
29622 rm -f conftest.o conftest.s
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29626 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29627 if test $gcc_cv_as_debug_line_32_flag = yes; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29633 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29634 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29635 $as_echo_n "(cached) " >&6
29637 gcc_cv_as_debug_line_64_flag
=no
29638 if test x
$gcc_cv_as != x
; then
29639 $as_echo "$conftest_s" > conftest.s
29640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29642 (eval $ac_try) 2>&5
29644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29645 test $ac_status = 0; }; }
29647 gcc_cv_as_debug_line_64_flag
=yes
29649 echo "configure: failed program was" >&5
29652 rm -f conftest.o conftest.s
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29656 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29657 if test $gcc_cv_as_debug_line_64_flag = yes; then
29662 if test $dwarf4_success = yes; then
29664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29665 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29666 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29667 $as_echo_n "(cached) " >&6
29669 gcc_cv_as_dwarf_4_debug_line_flag
=no
29670 if test x
$gcc_cv_as != x
; then
29671 $as_echo "$conftest_s" > conftest.s
29672 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29674 (eval $ac_try) 2>&5
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; }
29679 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29681 echo "configure: failed program was" >&5
29684 rm -f conftest.o conftest.s
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29688 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29689 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29695 dwarf4_debug_info_size
=0x36
29696 dwarf4_high_pc_form
=6
29697 dwarf4_debug_aranges_size
=0x1c
29701 if test $dwarf4_success = yes; then
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29720 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29721 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29722 $as_echo_n "(cached) " >&6
29724 gcc_cv_as_dwarf_4_app_flag
=no
29725 if test x
$gcc_cv_as != x
; then
29726 $as_echo "$conftest_s" > conftest.s
29727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; }
29734 gcc_cv_as_dwarf_4_app_flag
=yes
29736 echo "configure: failed program was" >&5
29739 rm -f conftest.o conftest.s
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29743 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29744 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29750 if test $dwarf4_success = yes; then
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29761 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29762 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29763 $as_echo_n "(cached) " >&6
29765 gcc_cv_as_working_gdwarf_n_flag
=no
29766 if test x
$gcc_cv_as != x
; then
29767 $as_echo "$conftest_s" > conftest.s
29768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29770 (eval $ac_try) 2>&5
29772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29773 test $ac_status = 0; }; }
29775 if test x
$gcc_cv_objdump != x \
29776 && $gcc_cv_objdump -W conftest.o
2>&1 \
29777 |
grep conftest.s
> /dev
/null
2>&1; then
29778 gcc_cv_as_working_gdwarf_n_flag
=no
29780 gcc_cv_as_working_gdwarf_n_flag
=yes
29783 echo "configure: failed program was" >&5
29786 rm -f conftest.o conftest.s
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29790 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29793 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29795 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29801 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29802 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29803 $as_echo_n "(cached) " >&6
29805 gcc_cv_as_debug_prefix_map_flag
=no
29806 if test x
$gcc_cv_as != x
; then
29807 $as_echo "$insn" > conftest.s
29808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29810 (eval $ac_try) 2>&5
29812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29813 test $ac_status = 0; }; }
29815 gcc_cv_as_debug_prefix_map_flag
=yes
29817 echo "configure: failed program was" >&5
29820 rm -f conftest.o conftest.s
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29824 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29825 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29827 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29834 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29835 if ${gcc_cv_as_compress_debug+:} false
; then :
29836 $as_echo_n "(cached) " >&6
29838 gcc_cv_as_compress_debug
=no
29839 if test x
$gcc_cv_as != x
; then
29840 $as_echo '' > conftest.s
29841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29843 (eval $ac_try) 2>&5
29845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29846 test $ac_status = 0; }; }
29848 # gas compiled without zlib cannot compress debug sections and warns
29849 # about it, but still exits successfully. So check for this, too.
29850 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29852 gcc_cv_as_compress_debug
=0
29853 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29855 gcc_cv_as_compress_debug
=1
29856 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29857 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29858 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29859 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29861 gcc_cv_as_compress_debug
=2
29864 gcc_cv_as_compress_debug
=0
29867 echo "configure: failed program was" >&5
29870 rm -f conftest.o conftest.s
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29874 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29878 cat >>confdefs.h
<<_ACEOF
29879 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29883 cat >>confdefs.h
<<_ACEOF
29884 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29888 cat >>confdefs.h
<<_ACEOF
29889 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29894 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29895 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29896 $as_echo_n "(cached) " >&6
29898 gcc_cv_as_lcomm_with_alignment
=no
29899 if test x
$gcc_cv_as != x
; then
29900 $as_echo '.lcomm bar,4,16' > conftest.s
29901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29903 (eval $ac_try) 2>&5
29905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29906 test $ac_status = 0; }; }
29908 gcc_cv_as_lcomm_with_alignment
=yes
29910 echo "configure: failed program was" >&5
29913 rm -f conftest.o conftest.s
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29917 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29918 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29920 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29925 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29926 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29927 && test "$prefix" != "NONE"; then
29929 cat >>confdefs.h
<<_ACEOF
29930 #define PREFIX_INCLUDE_DIR "$prefix/include"
29935 # Determine the version of glibc, if any, used on the target.
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29937 $as_echo_n "checking for target glibc version... " >&6; }
29939 # Check whether --with-glibc-version was given.
29940 if test "${with_glibc_version+set}" = set; then :
29941 withval
=$with_glibc_version;
29942 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29943 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29944 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29946 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29950 glibc_version_major
=0
29951 glibc_version_minor
=0
29952 if test -f $target_header_dir/features.h \
29953 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29954 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29955 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29956 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29961 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29963 cat >>confdefs.h
<<_ACEOF
29964 #define TARGET_GLIBC_MAJOR $glibc_version_major
29968 cat >>confdefs.h
<<_ACEOF
29969 #define TARGET_GLIBC_MINOR $glibc_version_minor
29973 # Check whether --enable-gnu-unique-object was given.
29974 if test "${enable_gnu_unique_object+set}" = set; then :
29975 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29977 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29978 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29982 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29983 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29984 $as_echo_n "(cached) " >&6
29986 gcc_cv_as_gnu_unique_object
=no
29987 if test x
$gcc_cv_as != x
; then
29988 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29991 (eval $ac_try) 2>&5
29993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29994 test $ac_status = 0; }; }
29996 gcc_cv_as_gnu_unique_object
=yes
29998 echo "configure: failed program was" >&5
30001 rm -f conftest.o conftest.s
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30005 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30006 if test $gcc_cv_as_gnu_unique_object = yes; then
30007 # We need to unquote above to to use the definition from config.gcc.
30008 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30010 if test $glibc_version_major -gt 2 \
30011 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30012 enable_gnu_unique_object
=yes
30019 if test x
$enable_gnu_unique_object = xyes
; then
30021 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30026 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30027 if ${gcc_cv_as_line_zero+:} false
; then :
30028 $as_echo_n "(cached) " >&6
30030 gcc_cv_as_line_zero
=no
30031 if test "x$gcc_cv_as" != x
; then
30032 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30033 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30035 (eval $ac_try) 2>&5
30037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30038 test $ac_status = 0; }; } &&
30039 test "x`cat conftest.out`" = x
30041 gcc_cv_as_line_zero
=yes
30043 echo "configure: failed program was" >&5
30045 echo "configure: error output was" >&5
30046 cat conftest.out
>&5
30048 rm -f conftest.o conftest.s conftest.out
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30052 $as_echo "$gcc_cv_as_line_zero" >&6; }
30053 if test "x$gcc_cv_as_line_zero" = xyes
; then
30055 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30060 $as_echo_n "checking support for thin archives... " >&6; }
30061 thin_archive_support
=no
30062 echo 'int main (void) { return 0; }' > conftest.c
30063 if ($AR --version |
sed 1q |
grep "GNU ar" \
30064 && $CC $CFLAGS -c conftest.c \
30065 && $AR rcT conftest.a conftest.o \
30066 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30067 thin_archive_support
=yes
30069 rm -f conftest.c conftest.o conftest.a conftest
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30071 $as_echo "$thin_archive_support" >&6; }
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30075 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30076 gcc_cv_ld_eh_frame_hdr
=no
30077 if test $in_tree_ld = yes ; then
30078 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 \
30079 && test $in_tree_ld_is_elf = yes; then
30080 gcc_cv_ld_eh_frame_hdr
=yes
30082 elif test x
$gcc_cv_ld != x
; then
30083 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30084 # Check if linker supports --eh-frame-hdr option
30085 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30086 gcc_cv_ld_eh_frame_hdr
=yes
30091 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30092 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30093 gcc_cv_ld_eh_frame_hdr
=yes
30100 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30102 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30106 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30109 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30110 gcc_cv_ld_eh_frame_ciev3
=no
30111 if test $in_tree_ld = yes ; then
30112 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 \
30113 && test $in_tree_ld_is_elf = yes; then
30114 gcc_cv_ld_eh_frame_ciev3
=yes
30116 elif test x
$gcc_cv_ld != x
; then
30117 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30118 gcc_cv_ld_eh_frame_ciev3
=yes
30119 if test 0"$ld_date" -lt 20040513; then
30120 if test -n "$ld_date"; then
30121 # If there was date string, but was earlier than 2004-05-13, fail
30122 gcc_cv_ld_eh_frame_ciev3
=no
30123 elif test "$ld_vers_major" -lt 2; then
30124 gcc_cv_ld_eh_frame_ciev3
=no
30125 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30126 gcc_cv_ld_eh_frame_ciev3
=no
30132 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30133 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30134 gcc_cv_ld_eh_frame_ciev3
=yes
30141 cat >>confdefs.h
<<_ACEOF
30142 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30146 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30149 $as_echo_n "checking linker position independent executable support... " >&6; }
30151 if test $in_tree_ld = yes ; then
30153 # Full PIE support on Solaris was only introduced in gld 2.26.
30154 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30155 *) gcc_gld_pie_min_version
=15 ;;
30157 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 \
30158 && test $in_tree_ld_is_elf = yes; then
30161 elif test x
$gcc_cv_ld != x
; then
30162 # Check if linker supports -pie option
30163 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30167 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30168 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30175 *-*-solaris2.1
[1-9]*)
30176 # Solaris 11.3 added PIE support.
30177 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30184 if test x
"$gcc_cv_ld_pie" = xyes
; then
30186 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30190 $as_echo "$gcc_cv_ld_pie" >&6; }
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30193 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30194 gcc_cv_ld_pie_copyreloc
=no
30195 if test $gcc_cv_ld_pie = yes ; then
30196 if test $in_tree_ld = yes ; then
30197 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
30198 gcc_cv_ld_pie_copyreloc
=yes
30200 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30201 # Check if linker supports -pie option with copy reloc
30203 i?
86-*-linux* | x86_64-
*-linux*)
30204 cat > conftest1.s
<<EOF
30207 .type a_glob, @object
30212 cat > conftest2.s
<<EOF
30215 .type main, @function
30217 movl %eax, a_glob(%rip)
30220 .section .data.rel,"aw",@progbits
30225 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30226 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30227 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30228 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30229 gcc_cv_ld_pie_copyreloc
=yes
30231 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30237 cat >>confdefs.h
<<_ACEOF
30238 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30242 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30245 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30246 gcc_cv_ld_eh_gc_sections
=no
30247 if test $in_tree_ld = yes ; then
30248 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 \
30249 && test $in_tree_ld_is_elf = yes; then
30250 gcc_cv_ld_eh_gc_sections
=yes
30252 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30253 cat > conftest.s
<<EOF
30256 .type _start, @function
30259 .size _start, .-_start
30260 .section .text.foo,"ax",@progbits
30261 .type foo, @function
30265 .section .gcc_except_table.foo,"a",@progbits
30268 .section .eh_frame,"a",@progbits
30271 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30272 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30273 |
grep "gc-sections option ignored" > /dev
/null
; then
30274 gcc_cv_ld_eh_gc_sections
=no
30275 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30276 |
grep gcc_except_table
> /dev
/null
; then
30277 gcc_cv_ld_eh_gc_sections
=yes
30278 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30279 if test x
$gcc_cv_as_comdat_group != xyes
; then
30280 gcc_cv_ld_eh_gc_sections
=no
30281 cat > conftest.s
<<EOF
30284 .type _start, @function
30287 .size _start, .-_start
30288 .section .gnu.linkonce.t.foo,"ax",@progbits
30289 .type foo, @function
30293 .section .gcc_except_table.foo,"a",@progbits
30296 .section .eh_frame,"a",@progbits
30299 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30300 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30301 |
grep "gc-sections option ignored" > /dev
/null
; then
30302 gcc_cv_ld_eh_gc_sections
=no
30303 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30304 |
grep gcc_except_table
> /dev
/null
; then
30305 gcc_cv_ld_eh_gc_sections
=yes
30311 rm -f conftest.s conftest.o conftest
30315 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30316 gcc_cv_ld_eh_gc_sections
=no
30319 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30321 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30325 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30328 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30329 gcc_cv_ld_eh_gc_sections_bug
=no
30330 if test $in_tree_ld = yes ; then
30331 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 \
30332 && test $in_tree_ld_is_elf = yes; then
30333 gcc_cv_ld_eh_gc_sections_bug
=yes
30335 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
30336 gcc_cv_ld_eh_gc_sections_bug
=yes
30337 cat > conftest.s
<<EOF
30340 .type _start, @function
30343 .size _start, .-_start
30344 .section .text.startup.foo,"ax",@progbits
30345 .type foo, @function
30349 .section .gcc_except_table.foo,"a",@progbits
30352 .section .eh_frame,"a",@progbits
30355 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30356 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30357 |
grep "gc-sections option ignored" > /dev
/null
; then
30359 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30360 |
grep gcc_except_table
> /dev
/null
; then
30361 gcc_cv_ld_eh_gc_sections_bug
=no
30364 rm -f conftest.s conftest.o conftest
30366 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30368 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30372 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30375 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30376 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30377 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30378 gcc_cv_ld_compress_debug
=1
30379 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30380 # Detect zstd debug section compression support
30381 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30382 gcc_cv_ld_compress_debug
=2
30385 case "${target}" in
30387 # Introduced in Solaris 11.2.
30388 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30389 gcc_cv_ld_compress_debug
=1
30390 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30392 gcc_cv_ld_compress_debug
=0
30396 # Assume linkers other than GNU ld don't support compessed debug
30398 gcc_cv_ld_compress_debug
=0
30403 cat >>confdefs.h
<<_ACEOF
30404 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30408 cat >>confdefs.h
<<_ACEOF
30409 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30413 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30415 if test x
"$ld64_flag" = x
"yes"; then
30417 # Set defaults for possibly untestable items.
30418 gcc_cv_ld64_export_dynamic
=0
30419 gcc_cv_ld64_platform_version
=0
30421 if test "$build" = "$host"; then
30427 # On Darwin, because of FAT library support, it is often possible to execute
30428 # exes from compatible archs even when the host differs from the build system.
30429 case "$build","$host" in
30430 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30431 darwin_try_test
=1;;
30435 # If the configurer specified a minimum ld64 version to be supported, then use
30436 # that to determine feature support.
30437 if test x
"${gcc_cv_ld64_version}" != x
; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30439 $as_echo_n "checking ld64 specified version... " >&6; }
30440 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30442 $as_echo "$gcc_cv_ld64_major" >&6; }
30443 if test "$gcc_cv_ld64_major" -ge 236; then
30444 gcc_cv_ld64_export_dynamic
=1
30446 if test "$gcc_cv_ld64_major" -ge 512; then
30447 gcc_cv_ld64_platform_version
=1
30449 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30450 # If the version was not specified, try to find it.
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30452 $as_echo_n "checking linker version... " >&6; }
30453 if test x
"${gcc_cv_ld64_version}" = x
; then
30454 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30457 $as_echo "$gcc_cv_ld64_version" >&6; }
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30460 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30461 gcc_cv_ld64_export_dynamic
=1
30462 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30463 gcc_cv_ld64_export_dynamic
=0
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30466 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30469 $as_echo_n "checking linker for -platform_version support... " >&6; }
30470 gcc_cv_ld64_platform_version
=1
30471 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30472 gcc_cv_ld64_platform_version
=0
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30475 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30478 if test x
"${gcc_cv_ld64_version}" != x
; then
30480 cat >>confdefs.h
<<_ACEOF
30481 #define LD64_VERSION "${gcc_cv_ld64_version}"
30487 cat >>confdefs.h
<<_ACEOF
30488 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30493 cat >>confdefs.h
<<_ACEOF
30494 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30499 if test x
"$dsymutil_flag" = x
"yes"; then
30501 # If the user specified a dsymutil path, then we will already have the
30502 # version string, otherwise, pick it up.
30503 if test x
"$gcc_cv_dsymutil" = x
; then
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30505 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30506 dsymutil_vers
="tool unspecified"
30507 elif test x
"$dsymutil_vers" = x
; then
30508 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30511 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30513 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30514 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30515 dsymutil_kind
=DWARFUTILS
30516 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30517 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30518 dsymutil_kind
=CLANG
30519 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30520 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30522 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30524 dsymutil_kind
=UNKNOWN
30525 dsymutil_vers
="0.0"
30527 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30528 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30529 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30530 if test x
"${dsymutil_minor}" = x
; then
30533 if test x
"${dsymutil_tiny}" = x
; then
30537 cat >>confdefs.h
<<_ACEOF
30538 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30542 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30546 win32 | pe | cygwin* | mingw32*)
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30548 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30549 gcc_cv_ld_broken_pe_dwarf5=yes
30550 if test $in_tree_ld = yes ; then
30551 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30552 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30553 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30554 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30555 gcc_cv_ld_broken_pe_dwarf5=no
30558 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30559 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30560 gcc_cv_ld_broken_pe_dwarf5=no
30563 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30565 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30569 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30572 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30573 gcc_cv_ld_disable_dynamicbase
=no
30574 if test $in_tree_ld = yes; then
30575 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30576 gcc_cv_ld_disable_dynamicbase
=yes
30579 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30580 gcc_cv_ld_disable_dynamicbase
=yes
30583 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30585 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30589 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30598 $as_echo_n "checking linker --as-needed support... " >&6; }
30599 if ${gcc_cv_ld_as_needed+:} false
; then :
30600 $as_echo_n "(cached) " >&6
30602 gcc_cv_ld_as_needed
=no
30603 gcc_cv_ld_as_needed_option
='--as-needed'
30604 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30605 if test $in_tree_ld = yes ; then
30606 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 \
30607 && test $in_tree_ld_is_elf = yes; then
30608 gcc_cv_ld_as_needed
=yes
30609 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30610 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30611 gcc_cv_ld_no_as_needed_option
='--pop-state'
30614 elif test x
$gcc_cv_ld != x
; then
30615 # Check if linker supports --as-needed and --no-as-needed options
30616 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30617 gcc_cv_ld_as_needed
=yes
30618 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30619 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30620 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30621 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30622 # Use these options only when both ld.bfd and ld.gold support
30623 # --push-state/--pop-state, which unfortunately wasn't added
30624 # at the same time.
30625 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30626 gcc_cv_ld_no_as_needed_option
='--pop-state'
30629 case "$target:$gnu_ld" in
30631 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30633 gcc_cv_ld_as_needed
=yes
30634 gcc_cv_ld_as_needed_option
="-z ignore"
30635 gcc_cv_ld_no_as_needed_option
="-z record"
30639 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30640 # dl_iterate_phdr, i.e. since Solaris 11.
30642 *-*-solaris2.1
[1-9]*)
30644 i?
86-*-* | x86_64-
*-*)
30645 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30646 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30647 gcc_cv_ld_as_needed
=no
30653 gcc_cv_ld_as_needed
=no
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30659 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30660 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30662 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30665 cat >>confdefs.h
<<_ACEOF
30666 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30670 cat >>confdefs.h
<<_ACEOF
30671 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30677 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30678 saved_LDFLAGS
="$LDFLAGS"
30679 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30680 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30682 /* end confdefs.h. */
30683 int main(void) {return 0;}
30685 if ac_fn_cxx_try_link
"$LINENO"; then :
30686 gcc_cv_ld_clearcap
=yes; break
30688 gcc_cv_ld_clearcap
=no
30690 rm -f core conftest.err conftest.
$ac_objext \
30691 conftest
$ac_exeext conftest.
$ac_ext
30693 LDFLAGS
="$saved_LDFLAGS"
30694 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30696 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30698 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30702 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30708 emul_name
="-melf32lppc"
30711 emul_name
="-melf32ppc"
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30715 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30716 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30717 $as_echo_n "(cached) " >&6
30719 gcc_cv_ld_ppc_attr
=no
30720 if test x
"$ld_is_gold" = xyes
; then
30721 gcc_cv_ld_ppc_attr
=yes
30722 elif test $in_tree_ld = yes ; then
30723 if test "$gcc_cv_gld_major_version" -eq 2 \
30724 -a "$gcc_cv_gld_minor_version" -ge 28 \
30725 -o "$gcc_cv_gld_major_version" -gt 2; then
30726 gcc_cv_ld_ppc_attr
=yes
30728 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30729 # check that merging the long double .gnu_attribute doesn't warn
30730 cat > conftest1.s
<<EOF
30733 cat > conftest2.s
<<EOF
30736 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30737 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30738 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30739 && test ! -s conftest.err
; then
30740 gcc_cv_ld_ppc_attr
=yes
30742 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30747 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30748 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30750 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30756 case "$target:$tm_file" in
30757 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30760 emul_name
="-melf64lppc"
30763 emul_name
="-melf64ppc"
30766 emul_name
="-melf64lppc_fbsd"
30769 emul_name
="-melf64ppc_fbsd"
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30773 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30774 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30775 $as_echo_n "(cached) " >&6
30777 gcc_cv_ld_no_dot_syms
=no
30778 if test x
"$ld_is_gold" = xyes
; then
30779 gcc_cv_ld_no_dot_syms
=yes
30780 elif test $in_tree_ld = yes ; then
30781 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
30782 gcc_cv_ld_no_dot_syms
=yes
30784 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30785 cat > conftest1.s
<<EOF
30789 cat > conftest2.s
<<EOF
30790 .section ".opd","aw"
30793 .type foo,@function
30795 .quad .LEfoo,.TOC.@tocbase,0
30801 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30802 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30803 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30804 gcc_cv_ld_no_dot_syms
=yes
30806 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30811 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30812 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30814 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30819 $as_echo_n "checking linker large toc support... " >&6; }
30820 if ${gcc_cv_ld_large_toc+:} false
; then :
30821 $as_echo_n "(cached) " >&6
30823 gcc_cv_ld_large_toc
=no
30824 if test x
"$ld_is_gold" = xyes
; then
30825 gcc_cv_ld_large_toc
=yes
30826 elif test $in_tree_ld = yes ; then
30827 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
30828 gcc_cv_ld_large_toc
=yes
30830 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30831 cat > conftest.s
<<EOF
30832 .section ".tbss","awT",@nobits
30838 addis 9,13,ie0@got@tprel@ha
30839 ld 9,ie0@got@tprel@l(9)
30841 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30842 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30843 gcc_cv_ld_large_toc
=yes
30845 rm -f conftest conftest.o conftest.s
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30850 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30851 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30853 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30858 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30859 if ${gcc_cv_ld_toc_align+:} false
; then :
30860 $as_echo_n "(cached) " >&6
30862 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30863 cat > conftest.s
<<EOF
30868 .section .data.rel.ro,"aw",@progbits
30873 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30874 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30875 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)) }'`
30877 rm -f conftest conftest.o conftest.s
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30882 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30883 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30885 cat >>confdefs.h
<<_ACEOF
30886 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30896 $as_echo_n "checking linker large toc support... " >&6; }
30897 if ${gcc_cv_ld_large_toc+:} false
; then :
30898 $as_echo_n "(cached) " >&6
30900 gcc_cv_ld_large_toc
=no
30901 if test x
$gcc_cv_as != x
; then
30902 cat > conftest.s
<<EOF
30912 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30913 gcc_cv_ld_large_toc
=yes
30915 rm -f conftest conftest.o conftest.s
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30920 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30921 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30923 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30930 $as_echo_n "checking linker --build-id support... " >&6; }
30931 if ${gcc_cv_ld_buildid+:} false
; then :
30932 $as_echo_n "(cached) " >&6
30934 gcc_cv_ld_buildid
=no
30935 if test $in_tree_ld = yes ; then
30936 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30937 "$gcc_cv_gld_minor_version" -ge 18 -o \
30938 "$gcc_cv_gld_major_version" -gt 2 \
30939 && test $in_tree_ld_is_elf = yes; then
30940 gcc_cv_ld_buildid
=yes
30942 elif test x
$gcc_cv_ld != x
; then
30943 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30944 gcc_cv_ld_buildid
=yes
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30949 $as_echo "$gcc_cv_ld_buildid" >&6; }
30950 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30952 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30956 # Check whether --enable-linker-build-id was given.
30957 if test "${enable_linker_build_id+set}" = set; then :
30958 enableval
=$enable_linker_build_id;
30960 enable_linker_build_id
=no
30964 if test x
"$enable_linker_build_id" = xyes
; then
30965 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30967 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30971 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30975 # In binutils 2.21, GNU ld gained support for new emulations fully
30976 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30978 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30979 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30980 $as_echo_n "(cached) " >&6
30982 gcc_cv_ld_sol2_emulation
=no
30983 if test $in_tree_ld = yes ; then
30984 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30985 "$gcc_cv_gld_minor_version" -ge 21 -o \
30986 "$gcc_cv_gld_major_version" -gt 2 \
30987 && test $in_tree_ld_is_elf = yes; then
30988 gcc_cv_ld_sol2_emulation
=yes
30990 elif test x
$gcc_cv_ld != x
; then
30991 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30992 grep _sol2
> /dev
/null
; then
30993 gcc_cv_ld_sol2_emulation
=yes
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30998 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30999 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31001 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31006 $as_echo_n "checking linker --sysroot support... " >&6; }
31007 if ${gcc_cv_ld_sysroot+:} false
; then :
31008 $as_echo_n "(cached) " >&6
31010 gcc_cv_ld_sysroot
=no
31011 if test $in_tree_ld = yes ; then
31012 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
31013 gcc_cv_ld_sysroot
=yes
31015 elif test x
$gcc_cv_ld != x
; then
31016 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31017 gcc_cv_ld_sysroot
=yes
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31022 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31023 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31025 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31031 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31033 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31034 if ${gcc_cv_solaris_crts+:} false
; then :
31035 $as_echo_n "(cached) " >&6
31037 gcc_cv_solaris_crts
=no
31038 if test x
$host != x
$target; then
31039 if test "x$with_sysroot" = xyes
; then
31040 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31042 target_sysroot
="${with_sysroot}"
31045 target_libdir
="$target_sysroot/usr/lib"
31046 # At the time they were added, gcrt1.o became a symlink for backwards
31047 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31049 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31050 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31052 sparc
*-*-solaris2*)
31053 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31058 $as_echo "$gcc_cv_solaris_crts" >&6; }
31061 if test x
$gcc_cv_solaris_crts = xyes
; then
31063 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31067 # Check whether --enable-libssp was given.
31068 if test "${enable_libssp+set}" = set; then :
31069 enableval
=$enable_libssp; case "${enableval}" in
31073 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31079 # Test for stack protector support in target C library.
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31081 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31082 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31083 $as_echo_n "(cached) " >&6
31085 gcc_cv_libc_provides_ssp
=no
31086 if test "x$enable_libssp" = "xno"; then
31087 gcc_cv_libc_provides_ssp
=yes
31088 elif test "x$enable_libssp" = "xyes"; then
31089 gcc_cv_libc_provides_ssp
=no
31093 # All versions of musl provide stack protector
31094 gcc_cv_libc_provides_ssp
=yes;;
31095 *-*-linux* |
*-*-kfreebsd*-gnu)
31096 # glibc 2.4 and later provides __stack_chk_fail and
31097 # either __stack_chk_guard, or TLS access to stack guard canary.
31099 if test $glibc_version_major -gt 2 \
31100 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31101 gcc_cv_libc_provides_ssp
=yes
31104 if test -f $target_header_dir/features.h \
31105 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31106 $target_header_dir/features.h
> /dev
/null
; then
31107 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31108 $target_header_dir/features.h
> /dev
/null
&& \
31109 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31110 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31111 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31112 gcc_cv_libc_provides_ssp
=yes
31114 # all versions of Bionic support stack protector
31115 elif test -f $target_header_dir/sys
/cdefs.h \
31116 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31117 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31118 gcc_cv_libc_provides_ssp
=yes
31123 # Avoid complicated tests (see
31124 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31125 # simply assert that glibc does provide this, which is true for all
31126 # realistically usable GNU/Hurd configurations.
31127 # All supported versions of musl provide it as well
31128 gcc_cv_libc_provides_ssp
=yes;;
31129 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31130 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31131 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31132 gcc_cv_libc_provides_ssp
=yes
31134 echo "no __stack_chk_fail on this target"
31138 *) gcc_cv_libc_provides_ssp
=no
;;
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31143 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31145 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31147 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31151 # Check whether --enable-default-ssp was given.
31152 # Check whether --enable-default-ssp was given.
31153 if test "${enable_default_ssp+set}" = set; then :
31154 enableval
=$enable_default_ssp;
31155 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31157 ia64
*-*-*) enable_default_ssp
=no
;;
31158 *) enable_default_ssp
=$enableval ;;
31161 enable_default_ssp
=no
31164 enable_default_ssp
=no
31167 if test x
$enable_default_ssp = xyes
; then
31169 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31174 # Test for <sys/sdt.h> on the target.
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31177 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31178 if ${gcc_cv_sys_sdt_h+:} false
; then :
31179 $as_echo_n "(cached) " >&6
31182 gcc_cv_sys_sdt_h
=no
31183 if test -f $target_header_dir/sys
/sdt.h
; then
31184 gcc_cv_sys_sdt_h
=yes
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31189 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31190 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31193 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31198 # Check if TFmode long double should be used by default or not.
31199 # Some glibc targets used DFmode long double, but with glibc 2.4
31200 # and later they can use TFmode.
31202 powerpc
*-*-linux* | \
31203 sparc
*-*-linux* | \
31207 # Check whether --with-long-double-128 was given.
31208 if test "${with_long_double_128+set}" = set; then :
31209 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31213 s390
*-*-linux-musl*)
31214 gcc_cv_target_ldbl128
=yes
31216 powerpc
*-*-linux-musl*)
31217 gcc_cv_target_ldbl128
=no
31221 if test $glibc_version_major -gt 2 \
31222 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31223 gcc_cv_target_ldbl128
=yes
31226 gcc_cv_target_ldbl128
=no
31227 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31228 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31229 && gcc_cv_target_ldbl128
=yes
31240 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31242 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31246 # Check if TFmode long double target should use the IBM extended double or IEEE
31247 # 128-bit floating point formats if long doubles are 128-bits long. The long
31248 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31249 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31252 # Check whether --with-long-double-format was given.
31253 if test "${with_long_double_format+set}" = set; then :
31254 withval
=$with_long_double_format;
31255 case "$target:$with_long_double_format" in
31256 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31259 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31260 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31261 case "$with_cpu" in
31262 power7 | power8 | power9 | power1
*)
31266 as_fn_error $?
"Configuration option --with-long-double-format is only \
31267 supported if the default cpu is power7 or newer" "$LINENO" 5
31268 with_long_double_format
=""
31272 powerpc64
*-*-linux*:*)
31273 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31274 with_long_double_format
=""
31277 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31278 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31279 with_long_double_format
=""
31285 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31286 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31287 gcc_cv_libc_provides_hwcap_in_tcb
=no
31291 if test $glibc_version_major -gt 2 \
31292 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31293 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31297 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31299 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31303 # Check if the target LIBC handles PT_GNU_STACK.
31304 gcc_cv_libc_gnustack
=unknown
31306 mips
*-*-linux-musl*)
31307 gcc_cv_libc_gnustack
=yes
31311 if test $glibc_version_major -gt 2 \
31312 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31313 gcc_cv_libc_gnustack
=yes
31317 if test x
$gcc_cv_libc_gnustack = xyes
; then
31319 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31324 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31325 gcc_cv_target_dl_iterate_phdr
=unknown
31328 # <link.h> needs both a dl_iterate_phdr declaration and support for
31329 # compilation with largefile support.
31330 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31331 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31332 gcc_cv_target_dl_iterate_phdr
=yes
31334 gcc_cv_target_dl_iterate_phdr
=no
31337 *-*-dragonfly* |
*-*-freebsd*)
31338 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31339 gcc_cv_target_dl_iterate_phdr
=yes
31341 gcc_cv_target_dl_iterate_phdr
=no
31345 gcc_cv_target_dl_iterate_phdr
=yes
31349 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31351 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31355 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31357 # We no longer support different GC mechanisms. Emit an error if
31358 # the user configures with --with-gc.
31360 # Check whether --with-gc was given.
31361 if test "${with_gc+set}" = set; then :
31362 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31366 # Libraries to use on the host. This will normally be set by the top
31367 # level Makefile. Here we simply capture the value for our Makefile.
31368 if test -z "${HOST_LIBS+set}"; then
31373 # Use the system's zlib library.
31375 # Use the system's zlib library.
31376 zlibdir
="-L\$(top_builddir)/../zlib"
31377 zlibinc
="-I\$(top_srcdir)/../zlib"
31379 # Check whether --with-system-zlib was given.
31380 if test "${with_system_zlib+set}" = set; then :
31381 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31395 # Check whether --enable-maintainer-mode was given.
31396 if test "${enable_maintainer_mode+set}" = set; then :
31397 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31404 $as_echo "$maintainer_mode" >&6; }
31406 if test "$maintainer_mode" = "yes"; then
31412 if test -z "$CTAGS"; then
31416 if test -z "$ETAGS"; then
31420 if test -z "$CSCOPE"; then
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31427 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31428 # Check whether --enable-link-mutex was given.
31429 if test "${enable_link_mutex+set}" = set; then :
31430 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31436 $as_echo "$do_link_mutex" >&6; }
31438 if test "$do_link_mutex" = "yes"; then
31441 DO_LINK_MUTEX
=false
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31447 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31448 # Check whether --enable-link-serialization was given.
31449 if test "${enable_link_serialization+set}" = set; then :
31450 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31452 do_link_serialization
=no
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31456 $as_echo "$do_link_serialization" >&6; }
31458 case "$do_link_serialization" in
31460 DO_LINK_SERIALIZATION
=1;;
31461 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31462 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31464 DO_LINK_SERIALIZATION
=;;
31466 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31474 # Make empty files to contain the specs and options for each language.
31475 # Then add #include lines to for a compiler that has specs and/or options.
31481 # These (without "all_") are set in each config-lang.in.
31482 # `language' must be a single word so is spelled singularly.
31485 all_outputs
='Makefile'
31486 # List of language configure and makefile fragments.
31487 all_lang_configurefrags
=
31488 all_lang_makefrags
=
31489 # Additional files for gengtype
31490 all_gtfiles
="$target_gtfiles"
31492 # These are the languages that are set in --enable-languages,
31493 # and are available in the GCC tree.
31494 all_selected_languages
=
31496 # Add the language fragments.
31497 # Languages are added via two mechanisms. Some information must be
31498 # recorded in makefile variables, these are defined in config-lang.in.
31499 # We accumulate them and plug them into the main Makefile.
31500 # The other mechanism is a set of hooks for each of the main targets
31501 # like `clean', `install', etc.
31503 language_hooks
="Make-hooks"
31505 for lang
in ${srcdir}/*/config-lang.
in
31507 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31509 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31510 if test "x$lang_alias" = x
31512 echo "$lang doesn't set \$language." 1>&2
31515 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31516 subdirs
="$subdirs $subdir"
31518 # $gcc_subdir is where the gcc integration files are to be found
31519 # for a language, both for internal compiler purposes (compiler
31520 # sources implementing front-end to GCC tree converters), and for
31521 # build infrastructure purposes (Make-lang.in, etc.)
31523 # This will be <subdir> (relative to $srcdir) if a line like
31524 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31525 # is found in <langdir>/config-lang.in, and will remain <langdir>
31528 # Except for the language alias (fetched above), the regular
31529 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31530 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31531 # only this and the language alias.
31533 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31534 if [ "$gcc_subdir" = "" ]; then
31535 gcc_subdir
="$subdir"
31538 case ",$enable_languages," in
31540 all_selected_languages
="$all_selected_languages $lang_alias"
31541 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31542 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31553 .
${srcdir}/$gcc_subdir/config-lang.
in
31554 if test "x$language" = x
31556 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31561 case ",$enable_languages," in
31562 *,$lang_alias,*) ;;
31564 for i
in $subdir_requires; do
31565 test -f "${srcdir}/$i/config-lang.in" && continue
31573 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31574 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31575 # Put c/Make-lang.in fragment first to match serialization languages order.
31576 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31578 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31580 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31581 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31582 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31584 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31585 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31587 all_languages
="$all_languages $language"
31588 all_compilers
="$all_compilers $compilers"
31589 all_outputs
="$all_outputs $outputs"
31590 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31591 case ",$enable_languages," in
31594 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31604 for language
in $all_selected_languages
31606 check_languages
="$check_languages check-$language"
31609 selftest_languages
=
31610 for language
in $all_selected_languages
31612 selftest_languages
="$selftest_languages selftest-$language"
31615 # We link each language in with a set of hooks, reached indirectly via
31616 # lang.${target}. Only do so for selected languages.
31620 target_list
="all.cross start.encap rest.encap tags \
31621 install-common install-man install-info install-dvi install-pdf \
31622 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31623 mostlyclean clean distclean maintainer-clean install-plugin"
31625 for t
in $target_list
31628 for lang
in $all_selected_languages
31632 echo "lang.$t: $x" >> Make-hooks
31635 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31636 echo "SERIAL_LIST =" >> Make-hooks
31637 echo else >> Make-hooks
31641 serialization_languages
=c
31642 for lang
in $all_selected_languages
31644 test $lang = c
&& continue
31645 if test $lang = lto
; then
31646 serialization_languages
="$serialization_languages lto1 lto2"
31648 serialization_languages
="$serialization_languages $lang"
31651 for lang
in $serialization_languages
31653 test $lang = c
&& continue
31654 lang_cnt
=`expr $lang_cnt + 1`
31655 lang_list
=" $prev$lang_list"
31658 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31659 echo endif
>> Make-hooks
31660 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31661 echo "INDEX.c = 0" >> Make-hooks
31663 for lang
in $serialization_languages
31665 test $lang = c
&& continue
31666 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31667 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31668 lang_cnt
=`expr $lang_cnt - 1`
31669 lang_idx
=`expr $lang_idx + 1`
31673 # Option include files
31676 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31677 option_includes
="option-includes.mk"
31686 echo "dir ." > .gdbinit
31687 echo "dir ${srcdir}" >> .gdbinit
31688 if test x
$gdb_needs_out_file_path = xyes
31690 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31692 if test "x$subdirs" != x
; then
31695 echo "dir ${srcdir}/$s" >> .gdbinit
31698 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31699 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31701 # Put a breakpoint on __asan_report_error to help with debugging buffer
31704 *-fsanitize=address
*)
31705 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31709 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31713 # Find a directory in which to install a shared libgcc.
31715 # Check whether --enable-version-specific-runtime-libs was given.
31716 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31717 enableval
=$enable_version_specific_runtime_libs;
31721 # Substitute configuration variables
31792 if test x
${build} = x
${host} ; then
31793 if test x
${host} = x
${target} ; then
31794 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31796 echo "Links are now set up to build a cross-compiler" 1>&2
31797 echo " from ${host} to ${target}." 1>&2
31800 if test x
${host} = x
${target} ; then
31801 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31802 echo " for ${target}." 1>&2
31804 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31805 echo " from ${host} to ${target}." 1>&2
31814 if test "x${ISLLIBS}" != "x" ; then
31816 $as_echo "#define HAVE_isl 1" >>confdefs.h
31820 # Check for plugin support
31821 # Check whether --enable-plugin was given.
31822 if test "${enable_plugin+set}" = set; then :
31823 enableval
=$enable_plugin; enable_plugin
=$enableval
31825 enable_plugin
=yes; default_plugin
=yes
31834 # Since plugin support under MinGW is not as straightforward as on
31835 # other platforms (e.g., we have to link import library, etc), we
31836 # only enable it if explicitly requested.
31837 if test x
"$default_plugin" = x
"yes"; then
31839 elif test x
"$enable_plugin" = x
"yes"; then
31840 # Use make's target variable to derive import library name.
31841 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31846 if test x
$build = x
$host; then
31847 export_sym_check
="nm${exeext} -g"
31848 elif test x
$host = x
$target; then
31849 export_sym_check
="$gcc_cv_nm -g"
31855 if test x
$build = x
$host; then
31856 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31857 elif test x
$host = x
$target; then
31858 export_sym_check
="$gcc_cv_objdump -T"
31865 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31868 $as_echo_n "checking for exported symbols... " >&6; }
31869 if test "x$export_sym_check" != x
; then
31870 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31871 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31872 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31873 : # No need to use a flag
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31875 $as_echo "yes" >&6; }
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31878 $as_echo "yes" >&6; }
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31880 $as_echo_n "checking for -rdynamic... " >&6; }
31881 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31882 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31883 plugin_rdynamic
=yes
31884 pluginlibs
="-rdynamic"
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31890 $as_echo "$plugin_rdynamic" >&6; }
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31894 $as_echo "unable to check" >&6; }
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31900 $as_echo_n "checking for library containing dlopen... " >&6; }
31901 if ${ac_cv_search_dlopen+:} false
; then :
31902 $as_echo_n "(cached) " >&6
31904 ac_func_search_save_LIBS
=$LIBS
31905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31906 /* end confdefs.h. */
31908 /* Override any GCC internal prototype to avoid an error.
31909 Use char because int might match the return type of a GCC
31910 builtin and then its argument prototype would still apply. */
31923 for ac_lib
in '' dl
; do
31924 if test -z "$ac_lib"; then
31925 ac_res
="none required"
31928 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31930 if ac_fn_cxx_try_link
"$LINENO"; then :
31931 ac_cv_search_dlopen
=$ac_res
31933 rm -f core conftest.err conftest.
$ac_objext \
31935 if ${ac_cv_search_dlopen+:} false
; then :
31939 if ${ac_cv_search_dlopen+:} false
; then :
31942 ac_cv_search_dlopen
=no
31944 rm conftest.
$ac_ext
31945 LIBS
=$ac_func_search_save_LIBS
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31948 $as_echo "$ac_cv_search_dlopen" >&6; }
31949 ac_res
=$ac_cv_search_dlopen
31950 if test "$ac_res" != no
; then :
31951 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31955 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31956 pluginlibs
="$pluginlibs -ldl"
31960 # Check that we can build shared objects with -fPIC -shared
31961 saved_LDFLAGS
="$LDFLAGS"
31962 saved_CFLAGS
="$CFLAGS"
31963 saved_CXXFLAGS
="$CXXFLAGS"
31966 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31967 CFLAGS
="$CFLAGS -fPIC"
31968 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31969 CXXFLAGS
="$CXXFLAGS -fPIC"
31970 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31973 CFLAGS
="$CFLAGS -fPIC"
31974 CXXFLAGS
="$CXXFLAGS -fPIC"
31975 LDFLAGS
="$LDFLAGS -fPIC -shared"
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31979 $as_echo_n "checking for -fPIC -shared... " >&6; }
31980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h. */
31991 if ac_fn_cxx_try_link
"$LINENO"; then :
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993 $as_echo "yes" >&6; }; have_pic_shared
=yes
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }; have_pic_shared
=no
31998 rm -f core conftest.err conftest.
$ac_objext \
31999 conftest
$ac_exeext conftest.
$ac_ext
32000 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32004 LDFLAGS
="$saved_LDFLAGS"
32005 CFLAGS
="$saved_CFLAGS"
32006 CXXFLAGS
="$saved_CXXFLAGS"
32008 # If plugin support had been requested but not available, fail.
32009 if test x
"$enable_plugin" = x
"no" ; then
32010 if test x
"$default_plugin" != x
"yes"; then
32012 Building GCC with plugin support requires a host that supports
32013 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32020 if test x
"$enable_plugin" = x
"yes"; then
32022 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32027 # Enable --enable-host-shared
32028 # Check whether --enable-host-shared was given.
32029 if test "${enable_host_shared+set}" = set; then :
32030 enableval
=$enable_host_shared; PICFLAG
=-fPIC
32039 # Check whether --enable-libquadmath-support was given.
32040 if test "${enable_libquadmath_support+set}" = set; then :
32041 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32043 ENABLE_LIBQUADMATH_SUPPORT
=yes
32046 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32048 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32053 # Specify what hash style to use by default.
32055 # Check whether --with-linker-hash-style was given.
32056 if test "${with_linker_hash_style+set}" = set; then :
32057 withval
=$with_linker_hash_style; case x
"$withval" in
32059 LINKER_HASH_STYLE
=sysv
32062 LINKER_HASH_STYLE
=gnu
32065 LINKER_HASH_STYLE
=both
32068 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32072 LINKER_HASH_STYLE
=''
32075 if test x
"${LINKER_HASH_STYLE}" != x
; then
32077 cat >>confdefs.h
<<_ACEOF
32078 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32083 # Specify what should be the default of -fdiagnostics-color option.
32085 # Check whether --with-diagnostics-color was given.
32086 if test "${with_diagnostics_color+set}" = set; then :
32087 withval
=$with_diagnostics_color; case x
"$withval" in
32089 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32092 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32095 DIAGNOSTICS_COLOR_DEFAULT
=-1
32098 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32101 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32105 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32109 cat >>confdefs.h
<<_ACEOF
32110 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32114 # Specify what should be the default of -fdiagnostics-urls option.
32116 # Check whether --with-diagnostics-urls was given.
32117 if test "${with_diagnostics_urls+set}" = set; then :
32118 withval
=$with_diagnostics_urls; case x
"$withval" in
32120 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32123 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32126 DIAGNOSTICS_URLS_DEFAULT
=-1
32129 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32132 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32136 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32140 cat >>confdefs.h
<<_ACEOF
32141 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32145 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32146 # of jit/jit-playback.cc.
32147 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32148 echo "gcc_driver_version: ${gcc_driver_version}"
32149 cat > gcc-driver-name.h
<<EOF
32150 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32153 # Check whether --enable-default-pie was given.
32154 # Check whether --enable-default-pie was given.
32155 if test "${enable_default_pie+set}" = set; then :
32156 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32158 enable_default_pie
=no
32161 if test x
$enable_default_pie = xyes
; then
32163 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32168 # Check if -fno-PIE works.
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32170 $as_echo_n "checking for -fno-PIE option... " >&6; }
32171 if ${gcc_cv_c_no_fpie+:} false
; then :
32172 $as_echo_n "(cached) " >&6
32174 saved_CXXFLAGS
="$CXXFLAGS"
32175 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32177 /* end confdefs.h. */
32178 int main(void) {return 0;}
32180 if ac_fn_cxx_try_compile
"$LINENO"; then :
32181 gcc_cv_c_no_fpie
=yes
32183 gcc_cv_c_no_fpie
=no
32185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32186 CXXFLAGS
="$saved_CXXFLAGS"
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32189 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32190 if test "$gcc_cv_c_no_fpie" = "yes"; then
32191 NO_PIE_CFLAGS
="-fno-PIE"
32195 # Check if -no-pie works.
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32197 $as_echo_n "checking for -no-pie option... " >&6; }
32198 if ${gcc_cv_no_pie+:} false
; then :
32199 $as_echo_n "(cached) " >&6
32201 saved_LDFLAGS
="$LDFLAGS"
32202 LDFLAGS
="$LDFLAGS -no-pie"
32203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32204 /* end confdefs.h. */
32205 int main(void) {return 0;}
32207 if ac_fn_cxx_try_link
"$LINENO"; then :
32212 rm -f core conftest.err conftest.
$ac_objext \
32213 conftest
$ac_exeext conftest.
$ac_ext
32214 LDFLAGS
="$saved_LDFLAGS"
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32217 $as_echo "$gcc_cv_no_pie" >&6; }
32218 if test "$gcc_cv_no_pie" = "yes"; then
32219 NO_PIE_FLAG
="-no-pie"
32223 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32224 # Check whether --enable-cet was given.
32225 if test "${enable_cet+set}" = set; then :
32226 enableval
=$enable_cet;
32227 case "$enableval" in
32229 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32238 $as_echo_n "checking for CET support... " >&6; }
32241 i
[34567]86-*-linux* | x86_64-
*-linux*)
32243 cet_save_CFLAGS
="$CFLAGS"
32244 CFLAGS
="$CFLAGS -fcf-protection"
32245 case "$enable_cet" in
32247 # Check if target supports multi-byte NOPs
32248 # and if compiler and assembler support CET.
32249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32250 /* end confdefs.h. */
32256 #if !defined(__SSE2__)
32257 #error target does not support multi-byte NOPs
32266 if ac_fn_cxx_try_compile
"$LINENO"; then :
32271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32274 # Check if compiler and assembler support CET.
32275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32276 /* end confdefs.h. */
32286 if ac_fn_cxx_try_compile
"$LINENO"; then :
32291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32292 if test $support_cet = "no"; then
32293 if test x
$enable_bootstrap != xno \
32294 && test -z "${with_build_subdir}" \
32295 && (test ! -f ..
/stage_current \
32296 ||
test `cat ../stage_current` != "stage1"); then
32297 # Require CET support only for the final GCC build.
32298 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32300 # Don't enable CET without CET support for non-bootstrap
32301 # build, in stage1 nor for build support.
32307 CFLAGS
="$cet_save_CFLAGS"
32315 cet_save_CFLAGS
="$CFLAGS"
32316 CFLAGS
="$CFLAGS -fcf-protection=none"
32317 cet_save_LDFLAGS
="$LDFLAGS"
32318 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32319 if test x
$may_have_cet = xyes
; then
32320 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32322 /* end confdefs.h. */
32332 if ac_fn_cxx_try_link
"$LINENO"; then :
32337 rm -f core conftest.err conftest.
$ac_objext \
32338 conftest
$ac_exeext conftest.
$ac_ext
32341 if test x
$may_have_cet = xyes
; then
32342 if test x
$cross_compiling = xno
; then
32343 if test "$cross_compiling" = yes; then :
32344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32346 as_fn_error $?
"cannot run test program while cross compiling
32347 See \`config.log' for more details" "$LINENO" 5; }
32349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32350 /* end confdefs.h. */
32360 if ac_fn_cxx_try_run
"$LINENO"; then :
32361 have_multi_byte_nop
=yes
32363 have_multi_byte_nop
=no
32365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32370 if test x
$have_multi_byte_nop = xyes
; then
32371 if test "$cross_compiling" = yes; then :
32372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32374 as_fn_error $?
"cannot run test program while cross compiling
32375 See \`config.log' for more details" "$LINENO" 5; }
32377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32378 /* end confdefs.h. */
32386 __attribute__ ((noinline, noclone))
32387 xxx (void (*f) (void))
32393 __attribute__ ((noinline, noclone))
32407 if ac_fn_cxx_try_run
"$LINENO"; then :
32412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32417 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32418 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32422 # Enable CET in cross compiler if possible so that it will run on both
32423 # CET and non-CET hosts.
32426 if test x
$enable_cet = xyes
; then
32427 CET_HOST_FLAGS
="-fcf-protection"
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 $as_echo "yes" >&6; }
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32432 $as_echo "no" >&6; }
32434 CFLAGS
="$cet_save_CFLAGS"
32435 LDFLAGS
="$cet_save_LDFLAGS"
32437 case x
$enable_languages in
32446 # Check linker supports '-z bndplt'
32447 ld_bndplt_support
=no
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32449 $as_echo_n "checking linker -z bndplt option... " >&6; }
32450 if test x
"$ld_is_gold" = xno
; then
32451 if test $in_tree_ld = yes ; then
32452 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
32453 ld_bndplt_support
=yes
32455 elif test x
$gcc_cv_ld != x
; then
32456 # Check if linker supports -a bndplt option
32457 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32458 ld_bndplt_support
=yes
32462 if test x
"$ld_bndplt_support" = xyes
; then
32464 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32468 $as_echo "$ld_bndplt_support" >&6; }
32470 # Check linker supports '--push-state'/'--pop-state'
32471 ld_pushpopstate_support
=no
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32473 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32474 if test x
"$ld_is_gold" = xno
; then
32475 if test $in_tree_ld = yes ; then
32476 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
32477 ld_pushpopstate_support
=yes
32479 elif test x
$gcc_cv_ld != x
; then
32480 # Check if linker supports --push-state/--pop-state options
32481 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32482 ld_pushpopstate_support
=yes
32486 if test x
"$ld_pushpopstate_support" = xyes
; then
32488 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32492 $as_echo "$ld_pushpopstate_support" >&6; }
32494 # On s390, float_t has historically been statically defined as double for no
32495 # good reason. To comply with the C standard in the light of this definition,
32496 # gcc has evaluated float expressions in double precision when in
32497 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32498 # a smooth transition towards the new model used by most architectures, where
32499 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32500 # float_t from that, this behavior can be configured with
32501 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32502 # the old model. When omitted, native builds and cross compiles that have target
32503 # libc headers will detect whether libc clamps float_t to double and in that
32504 # case maintain the old model. Otherwise, they will default to the new model.
32505 # Check whether --enable-s390-excess-float-precision was given.
32506 if test "${enable_s390_excess_float_precision+set}" = set; then :
32507 enableval
=$enable_s390_excess_float_precision;
32509 enable_s390_excess_float_precision
=auto
32515 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32516 # Can we autodetect the behavior of the target libc?
32517 if test "$target" = "$host" -a "$host" = "$build"; then
32518 enable_s390_excess_float_precision
=autodetect
32519 elif test "x$with_headers" != xno
; then
32520 # cross build. are target headers available?
32521 # carefully coerce the build-system compiler to use target headers
32522 saved_CXXFLAGS
="$CXXFLAGS"
32523 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32524 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32525 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32527 /* end confdefs.h. */
32532 if ac_fn_cxx_try_compile
"$LINENO"; then :
32533 enable_s390_excess_float_precision
=autodetect
32535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32536 CXXFLAGS
="$saved_CXXFLAGS"
32539 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32540 saved_CXXFLAGS
="$CXXFLAGS"
32541 if ! test "$target" = "$host" -a "$host" = "$build"; then
32542 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32543 unset CROSS_TEST_CXXFLAGS
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32546 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32547 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32548 $as_echo_n "(cached) " >&6
32551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32552 /* end confdefs.h. */
32554 #define __FLT_EVAL_METHOD__ 0
32556 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32559 if ac_fn_cxx_try_compile
"$LINENO"; then :
32560 gcc_cv_float_t_clamped_to_double
=yes
32562 gcc_cv_float_t_clamped_to_double
=no
32564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32567 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32568 CXXFLAGS
="$saved_CXXFLAGS"
32569 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32571 # no way to detect behavior of target libc, default to new model
32572 enable_s390_excess_float_precision
=no
32577 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32579 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32585 # Configure the subdirectories
32586 # AC_CONFIG_SUBDIRS($subdirs)
32588 # Create the Makefile
32589 # and configure language subdirectories
32590 ac_config_files
="$ac_config_files $all_outputs"
32593 ac_config_commands
="$ac_config_commands default"
32595 cat >confcache
<<\_ACEOF
32596 # This file is a shell script that caches the results of configure
32597 # tests run on this system so they can be shared between configure
32598 # scripts and configure runs, see configure's option --config-cache.
32599 # It is not useful on other systems. If it contains results you don't
32600 # want to keep, you may remove or edit it.
32602 # config.status only pays attention to the cache file if you give it
32603 # the --recheck option to rerun configure.
32605 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32606 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32607 # following values.
32611 # The following way of writing the cache mishandles newlines in values,
32612 # but we know of no workaround that is simple, portable, and efficient.
32613 # So, we kill variables containing newlines.
32614 # Ultrix sh set writes to stderr and can't be redirected directly,
32615 # and sets the high bit in the cache file unless we assign to the vars.
32617 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32618 eval ac_val
=\$
$ac_var
32622 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32626 _ | IFS | as_nl
) ;; #(
32627 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32628 *) { eval $ac_var=; unset $ac_var;} ;;
32634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32635 *${as_nl}ac_space
=\
*)
32636 # `set' does not quote correctly, so add quotes: double-quote
32637 # substitution turns \\\\ into \\, and sed turns \\ into \.
32640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32643 # `set' quotes correctly as required by POSIX, so do not add quotes.
32644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32657 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32658 if test -w "$cache_file"; then
32659 if test "x$cache_file" != "x/dev/null"; then
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32661 $as_echo "$as_me: updating cache $cache_file" >&6;}
32662 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32663 cat confcache
>"$cache_file"
32665 case $cache_file in #(
32667 mv -f confcache
"$cache_file"$$
&&
32668 mv -f "$cache_file"$$
"$cache_file" ;; #(
32670 mv -f confcache
"$cache_file" ;;
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32681 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32682 # Let make expand exec_prefix.
32683 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32685 DEFS
=-DHAVE_CONFIG_H
32690 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32691 # 1. Remove the extension, and $U if already installed.
32692 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32693 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32695 # will be set to the directory where LIBOBJS objects are built.
32696 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32697 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32699 LIBOBJS
=$ac_libobjs
32701 LTLIBOBJS
=$ac_ltlibobjs
32706 : "${CONFIG_STATUS=./config.status}"
32708 ac_clean_files_save
=$ac_clean_files
32709 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32713 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32715 # Generated by $as_me.
32716 # Run this file to recreate the current configuration.
32717 # Compiler output produced by configure, useful for debugging
32718 # configure, is in config.log if it exists.
32721 ac_cs_recheck=false
32724 SHELL=\${CONFIG_SHELL-$SHELL}
32727 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32728 ## -------------------- ##
32729 ## M4sh Initialization. ##
32730 ## -------------------- ##
32732 # Be more Bourne compatible
32733 DUALCASE
=1; export DUALCASE
# for MKS sh
32734 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32738 # is contrary to our usage. Disable this feature.
32739 alias -g '${1+"$@"}'='"$@"'
32740 setopt NO_GLOB_SUBST
32742 case `(set -o) 2>/dev/null` in #(
32754 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32755 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32758 # Prefer a ksh shell builtin over an external printf program on Solaris,
32759 # but without wasting forks for bash or zsh.
32760 if test -z "$BASH_VERSION$ZSH_VERSION" \
32761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32762 as_echo='print
-r --'
32763 as_echo_n='print
-rn --'
32764 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32765 as_echo='printf %s
\n'
32766 as_echo_n='printf %s
'
32768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32769 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32770 as_echo_n='/usr
/ucb
/echo -n'
32772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32773 as_echo_n_body='eval
32777 expr "X$arg" : "X\\(.*\\)$as_nl";
32778 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32780 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32782 export as_echo_n_body
32783 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32785 export as_echo_body
32786 as_echo='sh
-c $as_echo_body as_echo
'
32789 # The user is always right.
32790 if test "${PATH_SEPARATOR+set}" != set; then
32792 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32793 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32800 # We need space, tab and new line, in precisely that order. Quoting is
32801 # there to prevent editors from complaining about space-tab.
32802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32803 # splitting by setting IFS to empty value.)
32806 # Find who we are. Look in the path if we contain no directory separator.
32809 *[\\/]* ) as_myself=$0 ;;
32810 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32811 for as_dir in $PATH
32814 test -z "$as_dir" && as_dir=.
32815 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32821 # We did not find ourselves, most probably we were run as `sh COMMAND'
32822 # in which case we are not to be found in the path.
32823 if test "x$as_myself" = x
; then
32826 if test ! -f "$as_myself"; then
32827 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32831 # Unset variables that we do not need and which cause bugs (e.g. in
32832 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32833 # suppresses any "Segmentation fault" message there. '((' could
32834 # trigger a bug in pdksh 5.2.14.
32835 for as_var
in BASH_ENV ENV MAIL MAILPATH
32836 do eval test x\
${$as_var+set} = xset \
32837 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32850 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32853 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32854 # ----------------------------------------
32855 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32856 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32857 # script with STATUS, using 1 if that was 0.
32860 as_status
=$1; test $as_status -eq 0 && as_status
=1
32862 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32863 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32865 $as_echo "$as_me: error: $2" >&2
32866 as_fn_exit
$as_status
32870 # as_fn_set_status STATUS
32871 # -----------------------
32872 # Set $? to STATUS, without forking.
32873 as_fn_set_status
()
32876 } # as_fn_set_status
32878 # as_fn_exit STATUS
32879 # -----------------
32880 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32884 as_fn_set_status
$1
32890 # Portably unset VAR.
32893 { eval $1=; unset $1;}
32895 as_unset
=as_fn_unset
32896 # as_fn_append VAR VALUE
32897 # ----------------------
32898 # Append the text in VALUE to the end of the definition contained in VAR. Take
32899 # advantage of any shell optimizations that allow amortized linear growth over
32900 # repeated appends, instead of the typical quadratic growth present in naive
32902 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32903 eval 'as_fn_append ()
32914 # as_fn_arith ARG...
32915 # ------------------
32916 # Perform arithmetic evaluation on the ARGs, and store the result in the
32917 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32918 # must be portable across $(()) and expr.
32919 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32920 eval 'as_fn_arith ()
32927 as_val
=`expr "$@" || test $? -eq 1`
32932 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32933 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32939 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32940 as_basename
=basename
32945 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32951 as_me
=`$as_basename -- "$0" ||
32952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32953 X"$0" : 'X\(//\)$' \| \
32954 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32956 sed '/^.*\/\([^/][^/]*\)\/*$/{
32970 # Avoid depending upon Character Ranges.
32971 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32972 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32973 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32974 as_cr_digits
='0123456789'
32975 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32977 ECHO_C
= ECHO_N
= ECHO_T
=
32978 case `echo -n x` in #(((((
32980 case `echo 'xy\c'` in
32981 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32983 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32990 rm -f conf$$ conf$$.exe conf$$.
file
32991 if test -d conf$$.dir
; then
32992 rm -f conf$$.dir
/conf$$.
file
32995 mkdir conf$$.dir
2>/dev
/null
32997 if (echo >conf$$.
file) 2>/dev
/null
; then
32998 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33000 # ... but there are two gotchas:
33001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33003 # In both cases, we have to default to `cp -pR'.
33004 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33006 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33014 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33015 rmdir conf$$.dir
2>/dev
/null
33020 # Create "$as_dir" as a directory, including parents if necessary.
33025 -*) as_dir
=.
/$as_dir;;
33027 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33031 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33032 *) as_qdir
=$as_dir;;
33034 as_dirs
="'$as_qdir' $as_dirs"
33035 as_dir
=`$as_dirname -- "$as_dir" ||
33036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33037 X"$as_dir" : 'X\(//\)[^/]' \| \
33038 X"$as_dir" : 'X\(//\)$' \| \
33039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33040 $as_echo X"$as_dir" |
33041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33045 /^X\(\/\/\)[^/].*/{
33058 test -d "$as_dir" && break
33060 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33061 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33065 if mkdir
-p .
2>/dev
/null
; then
33066 as_mkdir_p
='mkdir -p "$as_dir"'
33068 test -d .
/-p && rmdir .
/-p
33073 # as_fn_executable_p FILE
33074 # -----------------------
33075 # Test if FILE is an executable regular file.
33076 as_fn_executable_p
()
33078 test -f "$1" && test -x "$1"
33079 } # as_fn_executable_p
33080 as_test_x
='test -x'
33081 as_executable_p
=as_fn_executable_p
33083 # Sed expression to map a string onto a valid CPP name.
33084 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33086 # Sed expression to map a string onto a valid variable name.
33087 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33091 ## ----------------------------------- ##
33092 ## Main body of $CONFIG_STATUS script. ##
33093 ## ----------------------------------- ##
33095 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33098 # Save the log message, to keep $0 and so on meaningful, and to
33099 # report actual input values of CONFIG_FILES etc. instead of their
33100 # values after options handling.
33102 This file was extended by $as_me, which was
33103 generated by GNU Autoconf 2.69. Invocation command line was
33105 CONFIG_FILES = $CONFIG_FILES
33106 CONFIG_HEADERS = $CONFIG_HEADERS
33107 CONFIG_LINKS = $CONFIG_LINKS
33108 CONFIG_COMMANDS = $CONFIG_COMMANDS
33111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33116 case $ac_config_files in *"
33117 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33120 case $ac_config_headers in *"
33121 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33126 # Files that config.status was made for.
33127 config_files="$ac_config_files"
33128 config_headers="$ac_config_headers"
33129 config_links="$ac_config_links"
33130 config_commands="$ac_config_commands"
33134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33136 \`$as_me' instantiates files and other configuration actions
33137 from templates according to the current configuration. Unless the files
33138 and actions are specified as TAGs, all are instantiated by default.
33140 Usage: $0 [OPTION]... [TAG]...
33142 -h, --help print this help, then exit
33143 -V, --version print version number and configuration settings, then exit
33144 --config print configuration, then exit
33145 -q, --quiet, --silent
33146 do not print progress messages
33147 -d, --debug don't remove temporary files
33148 --recheck update $as_me by reconfiguring in the same conditions
33149 --file=FILE[:TEMPLATE]
33150 instantiate the configuration file FILE
33151 --header=FILE[:TEMPLATE]
33152 instantiate the configuration header FILE
33154 Configuration files:
33157 Configuration headers:
33160 Configuration links:
33163 Configuration commands:
33166 Report bugs to the package provider."
33169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33170 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33173 configured by $0, generated by GNU Autoconf 2.69,
33174 with options \\"\$ac_cs_config\\"
33176 Copyright (C) 2012 Free Software Foundation, Inc.
33177 This config.status script is free software; the Free Software Foundation
33178 gives unlimited permission to copy, distribute and modify it."
33183 test -n "\$AWK" || AWK=awk
33186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33187 # The default lists apply if the user does not specify any file.
33193 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33194 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33198 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33210 # Handling of the options.
33211 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33213 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33214 $as_echo "$ac_cs_version"; exit ;;
33215 --config |
--confi |
--conf |
--con |
--co |
--c )
33216 $as_echo "$ac_cs_config"; exit ;;
33217 --debug |
--debu |
--deb |
--de |
--d |
-d )
33219 --file |
--fil |
--fi |
--f )
33222 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33223 '') as_fn_error $?
"missing file argument" ;;
33225 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33226 ac_need_defaults
=false
;;
33227 --header |
--heade |
--head |
--hea )
33230 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33232 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33233 ac_need_defaults
=false
;;
33235 # Conflict between --help and --header
33236 as_fn_error $?
"ambiguous option: \`$1'
33237 Try \`$0 --help' for more information.";;
33238 --help |
--hel |
-h )
33239 $as_echo "$ac_cs_usage"; exit ;;
33240 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33241 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33244 # This is an error.
33245 -*) as_fn_error $?
"unrecognized option: \`$1'
33246 Try \`$0 --help' for more information." ;;
33248 *) as_fn_append ac_config_targets
" $1"
33249 ac_need_defaults
=false
;;
33255 ac_configure_extra_args
=
33257 if $ac_cs_silent; then
33259 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33264 if \$ac_cs_recheck; then
33265 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33268 CONFIG_SHELL='$SHELL'
33269 export CONFIG_SHELL
33274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33279 ## Running $as_me. ##
33285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33289 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33290 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33297 # Handling of arguments.
33298 for ac_config_target
in $ac_config_targets
33300 case $ac_config_target in
33301 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33302 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33303 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33304 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33305 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33306 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33307 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33308 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33309 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33310 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33312 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33317 # If the user did not use the arguments to specify the items to instantiate,
33318 # then the envvar interface is used. Set only those that are not.
33319 # We use the long form for the default assignment because of an extremely
33320 # bizarre bug on SunOS 4.1.3.
33321 if $ac_need_defaults; then
33322 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33323 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33324 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33328 # Have a temporary directory for convenience. Make it in the build tree
33329 # simply because there is no reason against having it here, and in addition,
33330 # creating and moving files from /tmp can sometimes cause problems.
33331 # Hook for its removal unless debugging.
33332 # Note that there is a small window in which the directory will not be cleaned:
33333 # after its creation but before its name has been assigned to `$tmp'.
33337 trap 'exit_status=$?
33338 : "${ac_tmp:=$tmp}"
33339 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33341 trap 'as_fn_exit 1' 1 2 13 15
33343 # Create a (secure) tmp directory for tmp files.
33346 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33350 tmp
=.
/conf$$
-$RANDOM
33351 (umask 077 && mkdir
"$tmp")
33352 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33355 # Set up the scripts for CONFIG_FILES section.
33356 # No need to generate them if there are no CONFIG_FILES.
33357 # This happens for instance with `./config.status config.h'.
33358 if test -n "$CONFIG_FILES"; then
33360 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33361 ac_cs_awk_getline
=:
33362 ac_cs_awk_pipe_init
=
33363 ac_cs_awk_read_file
='
33364 while ((getline aline < (F[key])) > 0)
33367 ac_cs_awk_pipe_fini
=
33369 ac_cs_awk_getline
=false
33370 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33371 ac_cs_awk_read_file
='
33373 print "cat " F[key] " &&"
33374 '$ac_cs_awk_pipe_init
33375 # The final `:' finishes the AND list.
33376 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33378 ac_cr
=`echo X | tr X '\015'`
33379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33380 # But we know of no other shell where ac_cr would be empty at this
33381 # point, so we can use a bashism as a fallback.
33382 if test "x$ac_cr" = x
; then
33383 eval ac_cr
=\$
\'\\r
\'
33385 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33389 ac_cs_awk_cr
=$ac_cr
33392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33395 # Create commands to substitute file output variables.
33397 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33398 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33399 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33402 } >conf$
$files.sh
&&
33403 . .
/conf$
$files.sh ||
33404 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33405 rm -f conf$
$files.sh
33408 echo "cat >conf$$subs.awk <<_ACEOF" &&
33409 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33411 } >conf$$subs.sh ||
33412 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33413 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33415 for ac_last_try in false false false false false :; do
33416 . ./conf$$subs.sh ||
33417 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33419 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33420 if test $ac_delim_n = $ac_delim_num; then
33422 elif $ac_last_try; then
33423 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33425 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33428 rm -f conf$$subs.sh
33430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33431 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33435 s/^/S["/; s
/!.
*/"]=/
33445 s/\(.\{148\}\)..*/\1/
33447 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33452 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33459 s/\(.\{148\}\)..*/\1/
33461 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33465 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33470 ' <conf$$subs.awk | sed '
33475 ' >>$CONFIG_STATUS || ac_write_fail=1
33476 rm -f conf$$subs.awk
33477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33479 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33480 for (key in S) S_is_set[key] = 1
33482 \$ac_cs_awk_pipe_init
33486 nfields = split(line, field, "@
")
33488 len = length(field[1])
33489 for (i = 2; i < nfields; i++) {
33491 keylen = length(key)
33492 if (S_is_set[key]) {
33494 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33495 len += length(value) + length(field[++i])
33500 if (nfields == 3 && !substed) {
33502 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33503 \$ac_cs_awk_read_file
33509 \$ac_cs_awk_pipe_fini
33512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33513 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33514 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33517 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33518 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33521 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33522 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33523 # trailing colons and then remove the whole line if VPATH becomes empty
33524 # (actually we leave an empty line to preserve line numbers).
33525 if test "x
$srcdir" = x.; then
33526 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33545 fi # test -n "$CONFIG_FILES"
33547 # Set up the scripts for CONFIG_HEADERS section.
33548 # No need to generate them if there are no CONFIG_HEADERS.
33549 # This happens for instance with `./config.status Makefile'.
33550 if test -n "$CONFIG_HEADERS"; then
33551 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33555 # Transform confdefs.h into an awk script `defines.awk', embedded as
33556 # here-document in config.status, that substitutes the proper values into
33557 # config.h.in to produce config.h.
33559 # Create a delimiter string that does not exist in confdefs.h, to ease
33560 # handling of long lines.
33562 for ac_last_try in false false :; do
33563 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33564 if test -z "$ac_tt"; then
33566 elif $ac_last_try; then
33567 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33569 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33573 # For the awk script, D is an array of macro values keyed by name,
33574 # likewise P contains macro parameters if any. Preserve backslash
33575 # newline sequences.
33577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33579 s/.\{148\}/&'"$ac_delim"'/g
33582 s/^[ ]*#[ ]*define[ ][ ]*/ /
33589 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33591 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33596 D["\
1"]=" \
3\\\\\\n
"\\/p
33598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33603 s/.\{148\}/&'"$ac_delim"'/g
33608 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33611 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33613 ' <confdefs.h | sed '
33614 s/'"$ac_delim"'/"\\\
33615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33618 for (key in D) D_is_set[key] = 1
33621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33623 split(line, arg, " ")
33624 if (arg[1] == "#") {
33628 defundef
= substr
(arg
[1], 2)
33631 split(mac1
, mac2
, "(") #)
33633 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33634 if (D_is_set
[macro
]) {
33635 # Preserve the white space surrounding the "#".
33636 print prefix
"define", macro P
[macro
] D
[macro
]
33639 # Replace #undef with comments. This is necessary, for example,
33640 # in the case of _POSIX_SOURCE, which is predefined and required
33641 # on some systems where configure will not decide to define it.
33642 if (defundef
== "undef") {
33643 print
"/*", prefix defundef
, macro
, "*/"
33651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33652 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33653 fi # test -n "$CONFIG_HEADERS"
33656 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33661 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33663 case $ac_mode$ac_tag in
33665 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33666 :[FH
]-) ac_tag
=-:-;;
33667 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33684 -) ac_f
="$ac_tmp/stdin";;
33685 *) # Look for the file first in the build tree, then in the source tree
33686 # (if the path is not absolute). The absolute path cannot be DOS-style,
33687 # because $ac_f cannot contain `:'.
33691 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33693 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33695 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33696 as_fn_append ac_file_inputs
" '$ac_f'"
33699 # Let's still pretend it is `configure' which instantiates (i.e., don't
33700 # use $as_me), people would be surprised to read:
33701 # /* config.h. Generated by config.status. */
33702 configure_input
='Generated from '`
33703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33705 if test x
"$ac_file" != x-
; then
33706 configure_input
="$ac_file. $configure_input"
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33708 $as_echo "$as_me: creating $ac_file" >&6;}
33710 # Neutralize special characters interpreted by sed in replacement strings.
33711 case $configure_input in #(
33712 *\
&* |
*\|
* |
*\\* )
33713 ac_sed_conf_input
=`$as_echo "$configure_input" |
33714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33715 *) ac_sed_conf_input
=$configure_input;;
33719 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33720 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33725 ac_dir
=`$as_dirname -- "$ac_file" ||
33726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33727 X"$ac_file" : 'X\(//\)[^/]' \| \
33728 X"$ac_file" : 'X\(//\)$' \| \
33729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33730 $as_echo X"$ac_file" |
33731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33735 /^X\(\/\/\)[^/].*/{
33748 as_dir
="$ac_dir"; as_fn_mkdir_p
33752 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33754 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33755 # A ".." for each directory in $ac_dir_suffix.
33756 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33757 case $ac_top_builddir_sub in
33758 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33759 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33762 ac_abs_top_builddir
=$ac_pwd
33763 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33764 # for backward compatibility:
33765 ac_top_builddir
=$ac_top_build_prefix
33768 .
) # We are building in place.
33770 ac_top_srcdir
=$ac_top_builddir_sub
33771 ac_abs_top_srcdir
=$ac_pwd ;;
33772 [\\/]* | ?
:[\\/]* ) # Absolute name.
33773 ac_srcdir
=$srcdir$ac_dir_suffix;
33774 ac_top_srcdir
=$srcdir
33775 ac_abs_top_srcdir
=$srcdir ;;
33776 *) # Relative name.
33777 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33778 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33779 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33781 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33793 # If the template does not know about datarootdir, expand it.
33794 # FIXME: This hack should be removed a few years after 2.60.
33795 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33807 *datarootdir
*) ac_datarootdir_seen
=yes;;
33808 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33813 ac_datarootdir_hack='
33814 s&@datadir@&$datadir&g
33815 s&@docdir@&$docdir&g
33816 s&@infodir@&$infodir&g
33817 s&@localedir@&$localedir&g
33818 s&@mandir@&$mandir&g
33819 s&\\\${datarootdir}&$datarootdir&g' ;;
33823 # Neutralize VPATH when `$srcdir' = `.'.
33824 # Shell code in configure.ac might set extrasub.
33825 # FIXME: do we really want to maintain this feature?
33826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33827 ac_sed_extra="$ac_vpsub
33830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33832 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33833 s|@configure_input@|
$ac_sed_conf_input|
;t t
33834 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33835 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33836 s
&@srcdir@
&$ac_srcdir&;t t
33837 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33838 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33839 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33840 s
&@builddir@
&$ac_builddir&;t t
33841 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33842 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33843 $ac_datarootdir_hack
33845 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33846 if $ac_cs_awk_getline; then
33847 $AWK -f "$ac_tmp/subs.
awk"
33849 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33851 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33853 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33854 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33855 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33856 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33858 which seems to be undefined. Please make sure it is defined" >&5
33859 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33860 which seems to be undefined. Please make sure it is defined" >&2;}
33862 rm -f "$ac_tmp/stdin"
33864 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33865 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33873 if test x"$ac_file" != x-; then
33875 $as_echo "/* $configure_input */" \
33876 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33877 } >"$ac_tmp/config.h" \
33878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33879 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33880 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33881 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33884 mv "$ac_tmp/config.h" "$ac_file" \
33885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33888 $as_echo "/* $configure_input */" \
33889 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33890 || as_fn_error $? "could not create -" "$LINENO" 5
33898 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33901 # Prefer the file from the source tree if names are identical.
33902 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33903 ac_source=$srcdir/$ac_source
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33907 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33909 if test ! -r "$ac_source"; then
33910 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33914 # Try a relative symlink, then a hard link, then a copy.
33916 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33917 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33919 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33920 ln "$ac_source" "$ac_file" 2>/dev/null ||
33921 cp -p "$ac_source" "$ac_file" ||
33922 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33926 $as_echo "$as_me: executing $ac_file commands" >&6;}
33931 case $ac_file$ac_mode in
33932 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33934 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33935 for lang in $subdirs c-family common analyzer rtl-ssa
33937 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33939 "as":F) chmod +x as ;;
33940 "collect-ld":F) chmod +x collect-ld ;;
33941 "nm":F) chmod +x nm ;;
33942 "dsymutil":F) chmod +x dsymutil ;;
33944 case ${CONFIG_HEADERS} in
33945 *auto-host.h:config.in*)
33948 # Make sure all the subdirs exist.
33949 for d in $subdirs doc build common c-family
33951 test -d $d || mkdir $d
33961 ac_clean_files=$ac_clean_files_save
33963 test $ac_write_fail = 0 ||
33964 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33967 # configure is writing to config.log, and then calls config.status.
33968 # config.status does its own redirection, appending to config.log.
33969 # Unfortunately, on DOS this fails, as config.log is still kept open
33970 # by configure, so config.status won't be able to
write to it
; its
33971 # output is simply discarded. So we exec the FD to /dev/null,
33972 # effectively closing config.log, so it can be properly (re)opened and
33973 # appended to by config.status. When coming back to configure, we
33974 # need to make the FD available again.
33975 if test "$no_create" != yes; then
33977 ac_config_status_args
=
33978 test "$silent" = yes &&
33979 ac_config_status_args
="$ac_config_status_args --quiet"
33981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33984 # would make configure fail if this is the last instruction.
33985 $ac_cs_success || as_fn_exit
1
33987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33989 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}