2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
662 common_out_object_file
678 gcc_gxx_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
724 ld_version_script_option
729 ORIGINAL_NM_FOR_TARGET
731 ORIGINAL_LD_GOLD_FOR_TARGET
732 ORIGINAL_LD_BFD_FOR_TARGET
733 ORIGINAL_LD_FOR_TARGET
734 ORIGINAL_PLUGIN_LD_FOR_TARGET
736 ORIGINAL_AS_FOR_TARGET
754 NO_PIE_FLAG_FOR_BUILD
755 NO_PIE_CFLAGS_FOR_BUILD
765 BUILD_SYSTEM_HEADER_DIR
785 NATIVE_SYSTEM_HEADER_DIR
823 omp_device_property_deps
824 omp_device_properties
826 real_target_noncanonical
827 enable_as_accelerator
843 valgrind_path_defines
873 CROSS_SYSTEM_HEADER_DIR
874 TARGET_SYSTEM_ROOT_DEFINE
876 SYSROOT_CFLAGS_FOR_TARGET
922 program_transform_name
933 ac_subst_files
='option_includes
936 enable_option_checking
939 with_native_system_header_dir
943 with_gxx_libcxx_include_dir
945 enable_generated_files_in_srcdir
952 enable_build_format_warnings
956 enable_gather_detailed_mem_stats
957 enable_valgrind_annotations
961 with_stack_clash_protection_guard_size
976 with_documentation_root_url
977 with_changes_root_url
980 with_multilib_generator
987 enable_sjlj_exceptions
988 with_gcc_major_version_only
990 enable_mingw_wildcard
991 enable_large_address_aware
992 enable_leading_mingw64_underscores
995 enable_win32_registry
1003 enable_gnu_indirect_function
1004 enable_initfini_array
1006 enable_newlib_nano_formatted_io
1007 enable_standard_branch_protection
1008 enable_fix_cortex_a53_835769
1009 enable_fix_cortex_a53_843419
1011 enable_gnu_unique_object
1012 enable_linker_build_id
1015 with_long_double_128
1016 with_long_double_format
1019 enable_maintainer_mode
1021 enable_link_serialization
1022 enable_version_specific_runtime_libs
1025 enable_libquadmath_support
1026 with_linker_hash_style
1027 with_diagnostics_color
1028 with_diagnostics_urls
1031 enable_s390_excess_float_precision
1033 ac_precious_vars
='build_alias
1052 # Initialize some variables set by options.
1054 ac_init_version
=false
1055 ac_unrecognized_opts
=
1056 ac_unrecognized_sep
=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file
=/dev
/null
1066 program_transform_name
=s
,x
,x
,
1074 # Installation directory options.
1075 # These are left unexpanded so users can "make install exec_prefix=/foo"
1076 # and all the variables that are supposed to be based on exec_prefix
1077 # by default will actually change.
1078 # Use braces instead of parens because sh, perl, etc. also accept them.
1079 # (The list follows the same order as the GNU Coding Standards.)
1080 bindir
='${exec_prefix}/bin'
1081 sbindir
='${exec_prefix}/sbin'
1082 libexecdir
='${exec_prefix}/libexec'
1083 datarootdir
='${prefix}/share'
1084 datadir
='${datarootdir}'
1085 sysconfdir
='${prefix}/etc'
1086 sharedstatedir
='${prefix}/com'
1087 localstatedir
='${prefix}/var'
1088 includedir
='${prefix}/include'
1089 oldincludedir
='/usr/include'
1090 docdir
='${datarootdir}/doc/${PACKAGE}'
1091 infodir
='${datarootdir}/info'
1096 libdir
='${exec_prefix}/lib'
1097 localedir
='${datarootdir}/locale'
1098 mandir
='${datarootdir}/man'
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\
$ac_option
1112 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1117 # Accept the important Cygnus configure options, so we can diagnose typos.
1119 case $ac_dashdash$ac_option in
1123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1126 bindir
=$ac_optarg ;;
1128 -build |
--build |
--buil |
--bui |
--bu)
1129 ac_prev
=build_alias
;;
1130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1131 build_alias
=$ac_optarg ;;
1133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1135 ac_prev
=cache_file
;;
1136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1138 cache_file
=$ac_optarg ;;
1140 --config-cache |
-C)
1141 cache_file
=config.cache
;;
1143 -datadir |
--datadir |
--datadi |
--datad)
1145 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1146 datadir
=$ac_optarg ;;
1148 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1149 |
--dataroo |
--dataro |
--datar)
1150 ac_prev
=datarootdir
;;
1151 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1152 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1153 datarootdir
=$ac_optarg ;;
1155 -disable-* |
--disable-*)
1156 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1159 as_fn_error $?
"invalid feature name: $ac_useropt"
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "enable_
$ac_useropt"
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval enable_
$ac_useropt=no
;;
1171 -docdir |
--docdir |
--docdi |
--doc |
--do)
1173 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1174 docdir
=$ac_optarg ;;
1176 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1178 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1179 dvidir
=$ac_optarg ;;
1181 -enable-* |
--enable-*)
1182 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 as_fn_error $?
"invalid feature name: $ac_useropt"
1186 ac_useropt_orig
=$ac_useropt
1187 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "enable_
$ac_useropt"
1192 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1193 ac_unrecognized_sep
=', ';;
1195 eval enable_
$ac_useropt=\
$ac_optarg ;;
1197 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1198 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1199 |
--exec |
--exe |
--ex)
1200 ac_prev
=exec_prefix
;;
1201 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1202 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1203 |
--exec=* |
--exe=* |
--ex=*)
1204 exec_prefix
=$ac_optarg ;;
1206 -gas |
--gas |
--ga |
--g)
1207 # Obsolete; use --with-gas.
1210 -help |
--help |
--hel |
--he |
-h)
1211 ac_init_help
=long
;;
1212 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1213 ac_init_help
=recursive
;;
1214 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1215 ac_init_help
=short
;;
1217 -host |
--host |
--hos |
--ho)
1218 ac_prev
=host_alias
;;
1219 -host=* |
--host=* |
--hos=* |
--ho=*)
1220 host_alias
=$ac_optarg ;;
1222 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1224 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1226 htmldir
=$ac_optarg ;;
1228 -includedir |
--includedir |
--includedi |
--included |
--include \
1229 |
--includ |
--inclu |
--incl |
--inc)
1230 ac_prev
=includedir
;;
1231 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1232 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1233 includedir
=$ac_optarg ;;
1235 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1237 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1238 infodir
=$ac_optarg ;;
1240 -libdir |
--libdir |
--libdi |
--libd)
1242 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1243 libdir
=$ac_optarg ;;
1245 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1246 |
--libexe |
--libex |
--libe)
1247 ac_prev
=libexecdir
;;
1248 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1249 |
--libexe=* |
--libex=* |
--libe=*)
1250 libexecdir
=$ac_optarg ;;
1252 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1253 ac_prev
=localedir
;;
1254 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1255 localedir
=$ac_optarg ;;
1257 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1258 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1259 ac_prev
=localstatedir
;;
1260 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1261 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1262 localstatedir
=$ac_optarg ;;
1264 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1266 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1267 mandir
=$ac_optarg ;;
1269 -nfp |
--nfp |
--nf)
1270 # Obsolete; use --without-fp.
1273 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1274 |
--no-cr |
--no-c |
-n)
1277 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1278 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1281 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1282 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1283 |
--oldin |
--oldi |
--old |
--ol |
--o)
1284 ac_prev
=oldincludedir
;;
1285 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1286 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1287 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1288 oldincludedir
=$ac_optarg ;;
1290 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1292 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1293 prefix
=$ac_optarg ;;
1295 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1296 |
--program-pre |
--program-pr |
--program-p)
1297 ac_prev
=program_prefix
;;
1298 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1299 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1300 program_prefix
=$ac_optarg ;;
1302 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1303 |
--program-suf |
--program-su |
--program-s)
1304 ac_prev
=program_suffix
;;
1305 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1306 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1307 program_suffix
=$ac_optarg ;;
1309 -program-transform-name |
--program-transform-name \
1310 |
--program-transform-nam |
--program-transform-na \
1311 |
--program-transform-n |
--program-transform- \
1312 |
--program-transform |
--program-transfor \
1313 |
--program-transfo |
--program-transf \
1314 |
--program-trans |
--program-tran \
1315 |
--progr-tra |
--program-tr |
--program-t)
1316 ac_prev
=program_transform_name
;;
1317 -program-transform-name=* |
--program-transform-name=* \
1318 |
--program-transform-nam=* |
--program-transform-na=* \
1319 |
--program-transform-n=* |
--program-transform-=* \
1320 |
--program-transform=* |
--program-transfor=* \
1321 |
--program-transfo=* |
--program-transf=* \
1322 |
--program-trans=* |
--program-tran=* \
1323 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1324 program_transform_name
=$ac_optarg ;;
1326 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1328 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1329 pdfdir
=$ac_optarg ;;
1331 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1333 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1337 |
-silent |
--silent |
--silen |
--sile |
--sil)
1340 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1342 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1344 sbindir
=$ac_optarg ;;
1346 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1347 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1348 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1350 ac_prev
=sharedstatedir
;;
1351 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1352 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1353 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1355 sharedstatedir
=$ac_optarg ;;
1357 -site |
--site |
--sit)
1359 -site=* |
--site=* |
--sit=*)
1362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1365 srcdir
=$ac_optarg ;;
1367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1369 ac_prev
=sysconfdir
;;
1370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1372 sysconfdir
=$ac_optarg ;;
1374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1375 ac_prev
=target_alias
;;
1376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1377 target_alias
=$ac_optarg ;;
1379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1382 -version |
--version |
--versio |
--versi |
--vers |
-V)
1383 ac_init_version
=: ;;
1386 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1389 as_fn_error $?
"invalid package name: $ac_useropt"
1390 ac_useropt_orig
=$ac_useropt
1391 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1396 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1397 ac_unrecognized_sep
=', ';;
1399 eval with_
$ac_useropt=\
$ac_optarg ;;
1401 -without-* |
--without-*)
1402 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1405 as_fn_error $?
"invalid package name: $ac_useropt"
1406 ac_useropt_orig
=$ac_useropt
1407 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408 case $ac_user_opts in
1412 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1413 ac_unrecognized_sep
=', ';;
1415 eval with_
$ac_useropt=no
;;
1418 # Obsolete; use --with-x.
1421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1423 ac_prev
=x_includes
;;
1424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1426 x_includes
=$ac_optarg ;;
1428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1430 ac_prev
=x_libraries
;;
1431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1433 x_libraries
=$ac_optarg ;;
1435 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1436 Try \`$0 --help' for more information"
1440 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 case $ac_envvar in #(
1443 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1444 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1446 eval $ac_envvar=\
$ac_optarg
1447 export $ac_envvar ;;
1450 # FIXME: should be removed in autoconf 3.0.
1451 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1452 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1453 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1454 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 if test -n "$ac_prev"; then
1461 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1462 as_fn_error $?
"missing argument to $ac_option"
1465 if test -n "$ac_unrecognized_opts"; then
1466 case $enable_option_checking in
1468 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1469 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 # Check all directory arguments for consistency.
1474 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1475 datadir sysconfdir sharedstatedir localstatedir includedir \
1476 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1477 libdir localedir mandir
1479 eval ac_val
=\$
$ac_var
1480 # Remove trailing slashes.
1483 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1484 eval $ac_var=\
$ac_val;;
1486 # Be sure to have absolute directory names.
1488 [\\/$
]* | ?
:[\\/]* ) continue;;
1489 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1491 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1494 # There might be people who depend on the old broken behavior: `$host'
1495 # used to hold the argument of --host etc.
1496 # FIXME: To remove some day.
1499 target
=$target_alias
1501 # FIXME: To remove some day.
1502 if test "x$host_alias" != x
; then
1503 if test "x$build_alias" = x
; then
1504 cross_compiling
=maybe
1505 elif test "x$build_alias" != "x$host_alias"; then
1511 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1513 test "$silent" = yes && exec 6>/dev
/null
1516 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1517 ac_ls_di
=`ls -di .` &&
1518 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1519 as_fn_error $?
"working directory cannot be determined"
1520 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521 as_fn_error $?
"pwd does not report name of working directory"
1524 # Find the source files, if location was not specified.
1525 if test -z "$srcdir"; then
1526 ac_srcdir_defaulted
=yes
1527 # Try the directory containing this script, then the parent directory.
1528 ac_confdir
=`$as_dirname -- "$as_myself" ||
1529 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1530 X"$as_myself" : 'X\(//\)[^/]' \| \
1531 X"$as_myself" : 'X\(//\)$' \| \
1532 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1533 $as_echo X"$as_myself" |
1534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1552 if test ! -r "$srcdir/$ac_unique_file"; then
1556 ac_srcdir_defaulted
=no
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1559 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1560 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1562 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1564 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1566 # When building in place, set srcdir=.
1567 if test "$ac_abs_confdir" = "$ac_pwd"; then
1570 # Remove unnecessary trailing slashes from srcdir.
1571 # Double slashes in file names in object file debugging info
1572 # mess up M-x gdb in Emacs.
1574 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1576 for ac_var
in $ac_precious_vars; do
1577 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1578 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1579 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1580 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1584 # Report the --help message.
1586 if test "$ac_init_help" = "long"; then
1587 # Omit some internal or obsolete options to make the list less imposing.
1588 # This message is too long to be a string in the A/UX 3.1 sh.
1590 \`configure' configures this package to adapt to many kinds of systems.
1592 Usage: $0 [OPTION]... [VAR=VALUE]...
1594 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1595 VAR=VALUE. See below for descriptions of some of the useful variables.
1597 Defaults for the options are specified in brackets.
1600 -h, --help display this help and exit
1601 --help=short display options specific to this package
1602 --help=recursive display the short help of all the included packages
1603 -V, --version display version information and exit
1604 -q, --quiet, --silent do not print \`checking ...' messages
1605 --cache-file=FILE cache test results in FILE [disabled]
1606 -C, --config-cache alias for \`--cache-file=config.cache'
1607 -n, --no-create do not create output files
1608 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1610 Installation directories:
1611 --prefix=PREFIX install architecture-independent files in PREFIX
1612 [$ac_default_prefix]
1613 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1616 By default, \`make install' will install all the files in
1617 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1618 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1619 for instance \`--prefix=\$HOME'.
1621 For better control, use the options below.
1623 Fine tuning of the installation directories:
1624 --bindir=DIR user executables [EPREFIX/bin]
1625 --sbindir=DIR system admin executables [EPREFIX/sbin]
1626 --libexecdir=DIR program executables [EPREFIX/libexec]
1627 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1628 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1629 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1630 --libdir=DIR object code libraries [EPREFIX/lib]
1631 --includedir=DIR C header files [PREFIX/include]
1632 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1633 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1634 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1635 --infodir=DIR info documentation [DATAROOTDIR/info]
1636 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1637 --mandir=DIR man documentation [DATAROOTDIR/man]
1638 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1639 --htmldir=DIR html documentation [DOCDIR]
1640 --dvidir=DIR dvi documentation [DOCDIR]
1641 --pdfdir=DIR pdf documentation [DOCDIR]
1642 --psdir=DIR ps documentation [DOCDIR]
1648 --program-prefix=PREFIX prepend PREFIX to installed program names
1649 --program-suffix=SUFFIX append SUFFIX to installed program names
1650 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1653 --build=BUILD configure
for building on BUILD
[guessed
]
1654 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1655 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1659 if test -n "$ac_init_help"; then
1664 --disable-option-checking ignore unrecognized
--enable/--with options
1665 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1666 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1667 --enable-generated-files-in-srcdir
1668 put copies of generated files
in source dir intended
1669 for creating
source tarballs
for users without
1670 texinfo bison or flex
1671 --disable-largefile omit support
for large files
1672 --disable-build-format-warnings
1673 don
't use -Wformat while building GCC
1674 --enable-werror-always enable -Werror despite compiler version
1675 --enable-checking[=LIST]
1676 enable expensive run-time checks. With LIST, enable
1677 only specific categories of checks. Categories are:
1678 yes,no,all,none,release. Flags are:
1679 assert,df,extra,fold,gc,gcac,gimple,misc,
1680 rtlflag,rtl,runtime,tree,valgrind,types
1681 --enable-coverage[=LEVEL]
1682 enable compiler's code coverage collection. Use to
1683 measure compiler performance and
locate unused parts
1684 of the compiler. With LEVEL
, specify optimization.
1685 Values are opt
, noopt
, default is noopt
1686 --enable-gather-detailed-mem-stats
1687 enable detailed memory allocation stats gathering
1688 --enable-valgrind-annotations
1689 enable valgrind runtime interaction
1690 --enable-multilib enable library support
for multiple ABIs
1691 --enable-multiarch enable support
for multiarch paths
1692 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1693 --enable-decimal-float={no
,yes,bid
,dpd
}
1694 enable decimal float extension to C. Selecting
'bid'
1695 or
'dpd' choses
which decimal floating point format
1697 --enable-fixed-point enable fixed-point arithmetic extension to C
1698 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1700 --enable-tls enable or disable generation of tls code overriding
1701 the assembler check
for tls support
1702 --enable-vtable-verify enable vtable verification feature
1703 --disable-analyzer disable
-fanalyzer static analyzer
1704 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1705 GNU Objective-C runtime
1706 --disable-shared don't provide a shared libgcc
1707 --disable-gcov don
't provide libgcov and related host tools
1708 --enable-languages=LIST specify which front-ends to build
1709 --disable-rpath do not hardcode runtime library paths
1710 --enable-sjlj-exceptions
1711 arrange to use setjmp/longjmp exception handling
1712 --enable-secureplt enable -msecure-plt by default for PowerPC
1713 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1714 Default to platform configuration
1715 --enable-large-address-aware
1716 Link mingw executables with --large-address-aware
1717 --enable-leading-mingw64-underscores
1718 enable leading underscores on 64 bit mingw targets
1719 --enable-cld enable -mcld by default for 32bit x86
1720 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1721 --disable-win32-registry
1722 disable lookup of installation paths in the Registry
1724 --enable-win32-registry enable registry lookup (default)
1725 --enable-win32-registry=KEY
1726 use KEY instead of GCC version as the last portion
1728 --enable-shared[=PKGS] build shared libraries [default=yes]
1729 --enable-static[=PKGS] build static libraries [default=yes]
1730 --enable-fast-install[=PKGS]
1731 optimize for fast installation [default=yes]
1732 --disable-libtool-lock avoid locking (might break parallel builds)
1733 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1734 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1735 --enable-gnu-indirect-function
1736 enable the use of the @gnu_indirect_function to
1738 --enable-initfini-array use .init_array/.fini_array sections
1739 --enable-comdat enable COMDAT group support
1740 --enable-newlib-nano-formatted-io
1741 Use nano version formatted IO
1743 --enable-standard-branch-protection
1744 enable Branch Target Identification Mechanism and
1745 Return Address Signing by default for AArch64
1746 --disable-standard-branch-protection
1747 disable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1751 --enable-fix-cortex-a53-835769
1752 enable workaround for AArch64 Cortex-A53 erratum
1754 --disable-fix-cortex-a53-835769
1755 disable workaround for AArch64 Cortex-A53 erratum
1759 --enable-fix-cortex-a53-843419
1760 enable workaround for AArch64 Cortex-A53 erratum
1762 --disable-fix-cortex-a53-843419
1763 disable workaround for AArch64 Cortex-A53 erratum
1766 --enable-gnu-unique-object
1767 enable the use of the @gnu_unique_object ELF
1768 extension on glibc systems
1769 --enable-linker-build-id
1770 compiler will always pass --build-id to linker
1771 --enable-libssp enable linking against libssp
1772 --enable-default-ssp enable Stack Smashing Protection as default
1773 --enable-maintainer-mode
1774 enable make rules and dependencies not useful (and
1775 sometimes confusing) to the casual installer
1776 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1777 thrashing on the build machine
1778 --enable-link-serialization
1779 avoid linking multiple GCC front-ends at once using
1780 make dependencies to avoid thrashing on the build
1782 --enable-version-specific-runtime-libs
1783 specify that runtime libraries should be installed
1784 in a compiler-specific directory
1785 --enable-plugin enable plugin support
1786 --enable-host-shared build host code as shared libraries
1787 --disable-libquadmath-support
1788 disable libquadmath support for Fortran
1789 --enable-default-pie enable Position Independent Executable as default
1790 --enable-cet enable Intel CET in host libraries [default=auto]
1791 --enable-s390-excess-float-precision
1792 on s390 targets, evaluate float with double
1793 precision when in standards-conforming mode
1796 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1797 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1798 --with-build-libsubdir=DIR Directory where to find libraries for build system
1799 --with-local-prefix=DIR specifies directory to put local include
1800 --with-native-system-header-dir=dir
1801 use dir as the directory to look for standard
1802 system header files in. Defaults to /usr/include.
1803 --with-build-sysroot=sysroot
1804 use sysroot as the system root during the build
1805 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1806 --with-gxx-include-dir=DIR
1807 specifies directory to put g++ header files
1808 --with-gxx-libcxx-include-dir=DIR
1809 specifies directory to find libc++ header files
1810 --with-cpp-install-dir=DIR
1811 install the user visible C preprocessor in DIR
1812 (relative to PREFIX) as well as PREFIX/bin
1813 --with-gnu-ld arrange to work with GNU ld
1814 --with-ld arrange to use the specified ld (full pathname)
1815 --with-demangler-in-ld try to use demangler in GNU ld
1816 --with-gnu-as arrange to work with GNU as
1817 --with-as arrange to use the specified as (full pathname)
1818 --with-stabs arrange to use stabs instead of host debug format
1819 --with-stack-clash-protection-guard-size=size
1820 Set the default stack clash protection guard size
1821 for specific targets as a power of two in bytes.
1822 --with-dwarf2 force the default debug format to be DWARF 2
1823 --with-specs=SPECS add SPECS to driver command-line processing
1824 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1825 --with-bugurl=URL Direct users to URL to report a bug
1826 --with-documentation-root-url=URL
1827 Root for documentation URLs
1828 --with-changes-root-url=URL
1829 Root for GCC changes URLs
1830 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1831 --with-multilib-generator
1832 Multi-libs configuration string (RISC-V only)
1833 --with-zstd=PATH specify prefix directory for installed zstd library.
1834 Equivalent to --with-zstd-include=PATH/include plus
1835 --with-zstd-lib=PATH/lib
1836 --with-zstd-include=PATH
1837 specify directory for installed zstd include files
1838 --with-zstd-lib=PATH specify directory for the installed zstd library
1839 --with-gnu-ld assume the C compiler uses GNU ld default=no
1840 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1841 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1842 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1843 --with-gcc-major-version-only
1844 use only GCC major number
in filesystem paths
1845 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1847 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1848 --with-plugin-ld=[ARG
] specify the plugin linker
1849 --with-glibc-version=M.N
1850 assume GCC used with glibc version M.N or later
1851 --with-long-double-128 use
128-bit long double by default
1852 --with-long-double-format={ieee
,ibm
}
1853 Specify whether PowerPC long double uses IEEE or IBM format
1855 --with-gc={page
,zone
} this option is not supported anymore. It used to
1856 choose the garbage collection mechanism to use with
1858 --with-system-zlib use installed libz
1859 --with-linker-hash-style={sysv
,gnu
,both
}
1860 specify the linker
hash style
1861 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1862 specify the default of
-fdiagnostics-color option
1863 auto-if-env stands
for -fdiagnostics-color=auto
if
1864 GCC_COLOR environment variable is present and
1865 -fdiagnostics-color=never otherwise
1866 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1867 specify the default of
-fdiagnostics-urls option
1868 auto-if-env stands
for -fdiagnostics-urls=auto
if
1869 GCC_URLS or TERM_URLS environment variable is
1870 present and
-fdiagnostics-urls=never otherwise
1872 Some influential environment variables
:
1873 CC C compiler
command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1876 nonstandard directory
<lib dir
>
1877 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1878 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1879 you have headers
in a nonstandard directory
<include dir
>
1880 CXX C
++ compiler
command
1881 CXXFLAGS C
++ compiler flags
1882 CXXCPP C
++ preprocessor
1884 GMPLIBS How to link GMP
1885 GMPINC How to
find GMP include files
1886 ISLLIBS How to link isl
1887 ISLINC How to
find isl include files
1889 Use these variables to override the choices made by
`configure' or to help
1890 it to find libraries and programs with nonstandard names/locations.
1892 Report bugs to the package provider.
1897 if test "$ac_init_help" = "recursive"; then
1898 # If there are subdirs, report their specific --help.
1899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900 test -d "$ac_dir" ||
1901 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1909 # A ".." for each directory in $ac_dir_suffix.
1910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1911 case $ac_top_builddir_sub in
1912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1916 ac_abs_top_builddir=$ac_pwd
1917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918 # for backward compatibility:
1919 ac_top_builddir=$ac_top_build_prefix
1922 .) # We are building in place.
1924 ac_top_srcdir=$ac_top_builddir_sub
1925 ac_abs_top_srcdir=$ac_pwd ;;
1926 [\\/]* | ?:[\\/]* ) # Absolute name.
1927 ac_srcdir=$srcdir$ac_dir_suffix;
1928 ac_top_srcdir=$srcdir
1929 ac_abs_top_srcdir=$srcdir ;;
1931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932 ac_top_srcdir=$ac_top_build_prefix$srcdir
1933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1937 cd "$ac_dir" || { ac_status=$?; continue; }
1938 # Check for guested configure.
1939 if test -f "$ac_srcdir/configure.gnu"; then
1941 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942 elif test -f "$ac_srcdir/configure"; then
1944 $SHELL "$ac_srcdir/configure" --help=recursive
1946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1948 cd "$ac_pwd" || { ac_status=$?; break; }
1952 test -n "$ac_init_help" && exit $ac_status
1953 if $ac_init_version; then
1956 generated by GNU Autoconf 2.69
1958 Copyright (C) 2012 Free Software Foundation, Inc.
1959 This configure script is free software; the Free Software Foundation
1960 gives unlimited permission to copy, distribute and modify it.
1965 ## ------------------------ ##
1966 ## Autoconf initialization. ##
1967 ## ------------------------ ##
1969 # ac_fn_c_try_compile LINENO
1970 # --------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1979 *) ac_try_echo
=$ac_try;;
1981 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1985 if test -s conftest.err
; then
1986 grep -v '^ *+' conftest.err
>conftest.er1
1987 cat conftest.er1
>&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.
$ac_objext; then :
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.
$ac_ext >&5
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status
$ac_retval
2005 } # ac_fn_c_try_compile
2007 # ac_fn_cxx_try_compile LINENO
2008 # ----------------------------
2009 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_cxx_try_compile
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 rm -f conftest.
$ac_objext
2014 if { { ac_try
="$ac_compile"
2016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_compile") 2>conftest.err
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest.$ac_objext; then :
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2043 } # ac_fn_cxx_try_compile
2045 # ac_fn_cxx_try_cpp LINENO
2046 # ------------------------
2047 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_cpp ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_cpp conftest.$ac_ext"
2053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2054 *) ac_try_echo
=$ac_try;;
2056 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060 if test -s conftest.err
; then
2061 grep -v '^ *+' conftest.err
>conftest.er1
2062 cat conftest.er1
>&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } > conftest.i
&& {
2067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.
$ac_ext >&5
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status
$ac_retval
2080 } # ac_fn_cxx_try_cpp
2082 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2087 ac_fn_cxx_check_header_mongrel
()
2089 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2090 if eval \
${$3+:} false
; then :
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \
${$3+:} false
; then :
2094 $as_echo_n "(cached) " >&6
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2100 # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2108 if ac_fn_cxx_try_compile
"$LINENO"; then :
2109 ac_header_compiler
=yes
2111 ac_header_compiler
=no
2113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2125 ac_header_preproc
=yes
2127 ac_header_preproc
=no
2129 rm -f conftest.err conftest.i conftest.
$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2133 # So? What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \
${$3+:} false
; then :
2157 $as_echo_n "(cached) " >&6
2159 eval "$3=\$ac_header_compiler"
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_cxx_check_header_mongrel
2169 # ac_fn_cxx_try_run LINENO
2170 # ------------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2173 ac_fn_cxx_try_run
()
2175 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2176 if { { ac_try
="$ac_link"
2178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>&5
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187 { { case "(($ac_try" in
2188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2189 *) ac_try_echo
=$ac_try;;
2191 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_try") 2>&5
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }; }; then :
2199 $as_echo "$as_me: program exited with status $ac_status" >&5
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.
$ac_ext >&5
2203 ac_retval
=$ac_status
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status
$ac_retval
2209 } # ac_fn_cxx_try_run
2211 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2212 # ---------------------------------------------------------
2213 # Tests whether HEADER exists and can be compiled using the include files in
2214 # INCLUDES, setting the cache variable VAR accordingly.
2215 ac_fn_cxx_check_header_compile
()
2217 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \
${$3+:} false
; then :
2221 $as_echo_n "(cached) " >&6
2223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2228 if ac_fn_cxx_try_compile
"$LINENO"; then :
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 } # ac_fn_cxx_check_header_compile
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2247 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2248 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } > conftest.i && {
2264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265 test ! -s conftest.err
2269 $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2279 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280 # ----------------------------------------------
2281 # Tries to find the compile-time value of EXPR in a program that includes
2282 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2284 ac_fn_cxx_compute_int ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if test "$cross_compiling" = yes; then
2288 # Depending upon the size, compute the lo and hi bounds.
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2295 static int test_array [1 - 2 * !(($2) >= 0)];
2297 return test_array [0];
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 return test_array [0];
2320 if ac_fn_cxx_try_compile "$LINENO"; then :
2321 ac_hi=$ac_mid; break
2323 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324 if test $ac_lo -le $ac_mid; then
2328 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2339 static int test_array [1 - 2 * !(($2) < 0)];
2341 return test_array [0];
2347 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2356 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2358 return test_array [0];
2364 if ac_fn_cxx_try_compile "$LINENO"; then :
2365 ac_lo=$ac_mid; break
2367 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368 if test $ac_mid -le $ac_hi; then
2372 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 # Binary search between lo and hi bounds.
2383 while test "x$ac_lo" != "x$ac_hi"; do
2384 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2393 return test_array [0];
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2402 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2414 static long int longval () { return $2; }
2415 static unsigned long int ulongval () { return $2; }
2422 FILE *f = fopen ("conftest.val", "w");
2427 long int i = longval ();
2430 fprintf (f, "%ld", i);
2434 unsigned long int i = ulongval ();
2437 fprintf (f, "%lu", i);
2439 /* Do not output a trailing newline, as this causes \r\n confusion
2440 on some platforms. */
2441 return ferror (f) || fclose (f) != 0;
2447 if ac_fn_cxx_try_run "$LINENO"; then :
2448 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453 conftest.$ac_objext conftest.beam conftest.$ac_ext
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2460 } # ac_fn_cxx_compute_int
2462 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2463 # ---------------------------------------------
2464 # Tests whether TYPE exists after having included INCLUDES, setting cache
2465 # variable VAR accordingly.
2466 ac_fn_cxx_check_type ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if eval \${$3+:} false; then :
2472 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2487 if ac_fn_cxx_try_compile "$LINENO"; then :
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2500 if ac_fn_cxx_try_compile "$LINENO"; then :
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511 $as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514 } # ac_fn_cxx_check_type
2516 # ac_fn_c_find_intX_t LINENO BITS VAR
2517 # -----------------------------------
2518 # Finds a signed integer type with width BITS, setting cache variable VAR
2520 ac_fn_c_find_intX_t ()
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2524 $as_echo_n "checking for int$2_t... " >&6; }
2525 if eval \${$3+:} false; then :
2526 $as_echo_n "(cached) " >&6
2529 # Order is important - never check a type that is potentially smaller
2530 # than half of the expected target width.
2531 for ac_type in int$2_t 'int' 'long int' \
2532 'long long int' 'short int' 'signed char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2540 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2542 return test_array [0];
2548 if ac_fn_cxx_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $ac_includes_default
2552 enum { N = $2 / 2 - 1 };
2556 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2557 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2559 return test_array [0];
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2572 eval "$3=\$ac_type" ;;
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 if eval test \"x\$"$3"\" = x"no"; then :
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 } # ac_fn_c_find_intX_t
2592 # ac_fn_cxx_try_link LINENO
2593 # -------------------------
2594 # Try to link conftest.$ac_ext, and return whether this succeeded.
2595 ac_fn_cxx_try_link ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 rm -f conftest.$ac_objext conftest$ac_exeext
2599 if { { ac_try="$ac_link"
2601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2602 *) ac_try_echo
=$ac_try;;
2604 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605 $as_echo "$ac_try_echo"; } >&5
2606 (eval "$ac_link") 2>conftest.err
2608 if test -s conftest.err
; then
2609 grep -v '^ *+' conftest.err
>conftest.er1
2610 cat conftest.er1
>&5
2611 mv -f conftest.er1 conftest.err
2613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614 test $ac_status = 0; } && {
2615 test -z "$ac_cxx_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest
$ac_exeext && {
2618 test "$cross_compiling" = yes ||
2619 test -x conftest
$ac_exeext
2623 $as_echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.
$ac_ext >&5
2628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2630 # interfere with the next link command; also delete a directory that is
2631 # left behind by Apple's compiler. We do this before executing the actions.
2632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 as_fn_set_status
$ac_retval
2636 } # ac_fn_cxx_try_link
2638 # ac_fn_c_find_uintX_t LINENO BITS VAR
2639 # ------------------------------------
2640 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2642 ac_fn_c_find_uintX_t
()
2644 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2646 $as_echo_n "checking for uint$2_t... " >&6; }
2647 if eval \
${$3+:} false
; then :
2648 $as_echo_n "(cached) " >&6
2651 # Order is important - never check a type that is potentially smaller
2652 # than half of the expected target width.
2653 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2654 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657 $ac_includes_default
2661 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2663 return test_array [0];
2669 if ac_fn_cxx_try_compile
"$LINENO"; then :
2674 eval "$3=\$ac_type" ;;
2677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 if eval test \"x\$
"$3"\" = x
"no"; then :
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_find_uintX_t
2692 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2693 # ------------------------------------------------
2694 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2695 ac_fn_cxx_check_header_preproc
()
2697 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2699 $as_echo_n "checking for $2... " >&6; }
2700 if eval \
${$3+:} false
; then :
2701 $as_echo_n "(cached) " >&6
2703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2707 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2712 rm -f conftest.err conftest.i conftest.
$ac_ext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 } # ac_fn_cxx_check_header_preproc
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func
()
2726 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \
${$3+:} false
; then :
2730 $as_echo_n "(cached) " >&6
2732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2736 #define $2 innocuous_$2
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $2 (); below.
2740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741 <limits.h> exists even on freestanding compilers. */
2744 # include <limits.h>
2746 # include <assert.h>
2751 /* Override any GCC internal prototype to avoid an error.
2752 Use char because int might match the return type of a GCC
2753 builtin and then its argument prototype would still apply. */
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined __stub_$2 || defined __stub___$2
2773 if ac_fn_cxx_try_link
"$LINENO"; then :
2778 rm -f core conftest.err conftest.
$ac_objext \
2779 conftest
$ac_exeext conftest.
$ac_ext
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786 } # ac_fn_cxx_check_func
2788 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2789 # -----------------------------------------------
2790 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2792 ac_fn_cxx_check_decl
()
2794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2795 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2796 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2798 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2799 if eval \
${$3+:} false
; then :
2800 $as_echo_n "(cached) " >&6
2802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2808 #ifndef $as_decl_name
2810 (void) $as_decl_use;
2812 (void) $as_decl_name;
2820 if ac_fn_cxx_try_compile
"$LINENO"; then :
2825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832 } # ac_fn_cxx_check_decl
2834 # ac_fn_c_try_link LINENO
2835 # -----------------------
2836 # Try to link conftest.$ac_ext, and return whether this succeeded.
2839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2840 rm -f conftest.
$ac_objext conftest
$ac_exeext
2841 if { { ac_try
="$ac_link"
2843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>conftest.err
2850 if test -s conftest.err; then
2851 grep -v '^ *+' conftest.err >conftest.er1
2852 cat conftest.er1 >&5
2853 mv -f conftest.er1 conftest.err
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest$ac_exeext && {
2860 test "$cross_compiling" = yes ||
2861 test -x conftest$ac_exeext
2865 $as_echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2872 # interfere with the next link command; also delete a directory that is
2873 # left behind by Apple's compiler. We do this before executing the actions.
2874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876 as_fn_set_status $ac_retval
2878 } # ac_fn_c_try_link
2880 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2881 # ----------------------------------------------
2882 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2883 ac_fn_c_check_header_preproc ()
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2887 $as_echo_n "checking for $2... " >&6; }
2888 if eval \${$3+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2895 if ac_fn_c_try_cpp "$LINENO"; then :
2900 rm -f conftest.err conftest.i conftest.$ac_ext
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2907 } # ac_fn_c_check_header_preproc
2909 # ac_fn_c_check_func LINENO FUNC VAR
2910 # ----------------------------------
2911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2912 ac_fn_c_check_func ()
2914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2916 $as_echo_n "checking for $2... " >&6; }
2917 if eval \${$3+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2924 #define $2 innocuous_$2
2926 /* System header to define __stub macros and hopefully few prototypes,
2927 which can conflict with char $2 (); below.
2928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 <limits.h> exists even on freestanding compilers. */
2932 # include <limits.h>
2934 # include <assert.h>
2939 /* Override any GCC internal prototype to avoid an error.
2940 Use char because int might match the return type of a GCC
2941 builtin and then its argument prototype would still apply. */
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined __stub_$2 || defined __stub___$2
2961 if ac_fn_c_try_link "$LINENO"; then :
2966 rm -f core conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971 $as_echo "$ac_res" >&6; }
2972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2974 } # ac_fn_c_check_func
2975 cat >config.log <<_ACEOF
2976 This file contains any messages produced by compilers while
2977 running configure, to aid debugging if configure makes a mistake.
2979 It was created by $as_me, which was
2980 generated by GNU Autoconf 2.69. Invocation command line was
2992 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2993 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2994 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2995 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2996 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2998 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2999 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3001 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3002 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3003 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3004 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3005 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3006 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3007 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 $as_echo "PATH: $as_dir"
3032 # Keep a trace of the command line.
3033 # Strip out --no-create and --no-recursion so they do not pile up.
3034 # Strip out --silent because we don't want to record it for future runs.
3035 # Also quote any args containing shell meta-characters.
3036 # Make two passes to allow for proper duplicate-argument suppression.
3040 ac_must_keep_next=false
3046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3048 | -silent | --silent | --silen | --sile | --sil)
3051 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3056 as_fn_append ac_configure_args1 " '$ac_arg'"
3057 if test $ac_must_keep_next = true; then
3058 ac_must_keep_next=false # Got value, back to normal.
3061 *=* | --config-cache | -C | -disable-* | --disable-* \
3062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3064 | -with-* | --with-* | -without-* | --without-* | --x)
3065 case "$ac_configure_args0 " in
3066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3069 -* ) ac_must_keep_next=true ;;
3072 as_fn_append ac_configure_args " '$ac_arg'"
3077 { ac_configure_args0=; unset ac_configure_args0;}
3078 { ac_configure_args1=; unset ac_configure_args1;}
3080 # When interrupted or exit'd, cleanup temporary files, and complete
3081 # config.log. We remove comments because anyway the quotes in there
3082 # would cause problems or look ugly.
3083 # WARNING: Use '\'' to represent an apostrophe within the trap.
3084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3085 trap 'exit_status=$?
3086 # Save into config.log some information that might help in debugging.
3090 $as_echo "## ---------------- ##
3091 ## Cache variables. ##
3092 ## ---------------- ##"
3094 # The following way of writing the cache mishandles newlines in values,
3096 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3097 eval ac_val=\$$ac_var
3101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3105 _ | IFS | as_nl) ;; #(
3106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3107 *) { eval $ac_var=; unset $ac_var;} ;;
3112 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3113 *${as_nl}ac_space=\ *)
3115 "s/'\''/'\''\\\\'\'''\''/g;
3116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 $as_echo "## ----------------- ##
3127 ## Output variables. ##
3128 ## ----------------- ##"
3130 for ac_var in $ac_subst_vars
3132 eval ac_val=\$$ac_var
3134 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3136 $as_echo "$ac_var='\''$ac_val'\''"
3140 if test -n "$ac_subst_files"; then
3141 $as_echo "## ------------------- ##
3142 ## File substitutions. ##
3143 ## ------------------- ##"
3145 for ac_var in $ac_subst_files
3147 eval ac_val=\$$ac_var
3149 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3151 $as_echo "$ac_var='\''$ac_val'\''"
3156 if test -s confdefs.h; then
3157 $as_echo "## ----------- ##
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3172 for ac_signal in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3213 if test -n "$CONFIG_SITE"; then
3214 # We do not want a PATH search for config.site.
3215 case $CONFIG_SITE in #((
3216 -*) ac_site_file1=./$CONFIG_SITE;;
3217 */*) ac_site_file1=$CONFIG_SITE;;
3218 *) ac_site_file1=./$CONFIG_SITE;;
3220 elif test "x$prefix" != xNONE; then
3221 ac_site_file1=$prefix/share/config.site
3222 ac_site_file2=$prefix/etc/config.site
3224 ac_site_file1=$ac_default_prefix/share/config.site
3225 ac_site_file2=$ac_default_prefix/etc/config.site
3227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3229 test "x$ac_site_file" = xNONE && continue
3230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "failed to load site
script $ac_site_file
3238 See \
`config.log' for more details" "$LINENO" 5; }
3242 if test -r "$cache_file"; then
3243 # Some versions of bash will fail to source /dev/null (special files
3244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3247 $as_echo "$as_me: loading cache $cache_file" >&6;}
3249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3250 *) . "./$cache_file";;
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3255 $as_echo "$as_me: creating cache $cache_file" >&6;}
3259 # Check that the precious variables saved in the cache have kept the same
3261 ac_cache_corrupted=false
3262 for ac_var in $ac_precious_vars; do
3263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3264 eval ac_new_set=\$ac_env_${ac_var}_set
3265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3266 eval ac_new_val=\$ac_env_${ac_var}_value
3267 case $ac_old_set,$ac_new_set in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3270 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3271 ac_cache_corrupted=: ;;
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3274 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3275 ac_cache_corrupted=: ;;
3278 if test "x$ac_old_val" != "x$ac_new_val"; then
3279 # differences in whitespace do not lead to failure.
3280 ac_old_val_w=`echo x
$ac_old_val`
3281 ac_new_val_w=`echo x
$ac_new_val`
3282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3285 ac_cache_corrupted=:
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3289 eval $ac_var=\$ac_old_val
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3292 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3297 # Pass precious variables to config.status.
3298 if test "$ac_new_set" = set; then
3300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3301 *) ac_arg=$ac_var=$ac_new_val ;;
3303 case " $ac_configure_args " in
3304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3309 if $ac_cache_corrupted; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3314 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3316 ## -------------------- ##
3317 ## Main body of script. ##
3318 ## -------------------- ##
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3334 gcc_version=`cat $srcdir/BASE-VER
`
3336 # Determine the host, build, and target systems
3338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3339 if test -f "$ac_dir/install-sh"; then
3341 ac_install_sh="$ac_aux_dir/install-sh -c"
3343 elif test -f "$ac_dir/install.sh"; then
3345 ac_install_sh="$ac_aux_dir/install.sh -c"
3347 elif test -f "$ac_dir/shtool"; then
3349 ac_install_sh="$ac_aux_dir/shtool install -c"
3353 if test -z "$ac_aux_dir"; then
3354 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3357 # These three variables are undocumented and unsupported,
3358 # and are intended to be withdrawn in a future Autoconf release.
3359 # They can cause serious problems if a builder's source tree is in a directory
3360 # whose full name contains unusual characters.
3361 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3362 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3363 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3366 # Make sure we can run config.sub.
3367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371 $as_echo_n "checking build system type... " >&6; }
3372 if ${ac_cv_build+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 ac_build_alias=$build_alias
3376 test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378 test "x$ac_build_alias" = x &&
3379 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385 $as_echo "$ac_cv_build" >&6; }
3386 case $ac_cv_build in
3388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3391 ac_save_IFS=$IFS; IFS='-'
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3401 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405 $as_echo_n "checking host system type... " >&6; }
3406 if ${ac_cv_host+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418 $as_echo "$ac_cv_host" >&6; }
3421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3424 ac_save_IFS=$IFS; IFS='-'
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3434 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3438 $as_echo_n "checking target system type... " >&6; }
3439 if ${ac_cv_target+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 if test "x$target_alias" = x; then
3443 ac_cv_target=$ac_cv_host
3445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3451 $as_echo "$ac_cv_target" >&6; }
3452 case $ac_cv_target in
3454 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3456 target=$ac_cv_target
3457 ac_save_IFS=$IFS; IFS='-'
3463 # Remember, the first character of IFS is used to create $*,
3464 # except with old shells:
3467 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3470 # The aliases save the names the user supplied, while $host etc.
3471 # will get canonicalized.
3472 test -n "$target_alias" &&
3473 test "$program_prefix$program_suffix$program_transform_name" = \
3475 program_prefix=${target_alias}-
3477 # Determine the noncanonical host name, for Ada.
3478 case ${build_alias} in
3479 "") build_noncanonical=${build} ;;
3480 *) build_noncanonical=${build_alias} ;;
3483 case ${host_alias} in
3484 "") host_noncanonical=${build_noncanonical} ;;
3485 *) host_noncanonical=${host_alias} ;;
3491 # Determine the noncanonical target name, for directory use.
3492 case ${target_alias} in
3493 "") target_noncanonical=${host_noncanonical} ;;
3494 *) target_noncanonical=${target_alias} ;;
3500 # Used for constructing correct paths for offload compilers.
3501 real_target_noncanonical=${target_noncanonical}
3504 # Determine the target- and build-specific subdirectories
3506 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3507 # have matching libraries, they should use host libraries: Makefile.tpl
3508 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3509 # However, they still use the build modules, because the corresponding
3510 # host modules (e.g. bison) are only built for the host when bootstrap
3512 # - build_subdir is where we find build modules, and never changes.
3513 # - build_libsubdir is where we find build libraries, and can be overridden.
3515 # Prefix 'build-' so this never conflicts with target_subdir.
3516 build_subdir="build-${build_noncanonical}"
3518 # Check whether --with-build-libsubdir was given.
3519 if test "${with_build_libsubdir+set}" = set; then :
3520 withval=$with_build_libsubdir; build_libsubdir="$withval"
3522 build_libsubdir="$build_subdir"
3525 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3526 if ( test $srcdir = . && test -d gcc ) \
3527 || test -d $srcdir/../host-${host_noncanonical}; then
3528 host_subdir="host-${host_noncanonical}"
3533 target_subdir=${target_noncanonical}
3536 # Set program_transform_name
3537 test "$program_prefix" != NONE &&
3538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3539 # Use a double $ so make ignores it.
3540 test "$program_suffix" != NONE &&
3541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3542 # Double any \ or $.
3543 # By default was `s
,x
,x
', remove it if useless.
3544 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3548 # Check for bogus environment variables.
3549 # Test if LIBRARY_PATH contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # LIBRARY_PATH contains the current directory if one of the following
3553 # - one of the terminals (":" and ";") is the first or last sign
3554 # - two terminals occur directly after each other
3555 # - the path contains an element with a dot in it
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3557 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3558 case ${LIBRARY_PATH} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 library_path_setting="contains current directory"
3563 library_path_setting="ok"
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3567 $as_echo "$library_path_setting" >&6; }
3568 if test "$library_path_setting" != "ok"; then
3570 *** LIBRARY_PATH shouldn't contain the current directory when
3571 *** building gcc. Please change the environment variable
3572 *** and run configure again.
" "$LINENO" 5
3575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3576 # since this would lead to problems installing/building glibc.
3577 # GCC_EXEC_PREFIX contains the current directory if one of the following
3579 # - one of the terminals (":" and ";") is the first or last sign
3580 # - two terminals occur directly after each other
3581 # - the path contains an element with a dot in it
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3583 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3584 case ${GCC_EXEC_PREFIX} in
3585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3586 gcc_exec_prefix_setting="contains current directory
"
3589 gcc_exec_prefix_setting="ok
"
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3593 $as_echo "$gcc_exec_prefix_setting" >&6; }
3594 if test "$gcc_exec_prefix_setting" != "ok
"; then
3596 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3597 *** building gcc. Please change the environment variable
3598 *** and run configure again." "$LINENO" 5
3605 # Specify the local prefix
3608 # Check whether --with-local-prefix was given.
3609 if test "${with_local_prefix+set}" = set; then :
3610 withval=$with_local_prefix; case "${withval}" in
3611 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3613 *) local_prefix=$with_local_prefix ;;
3618 # Default local prefix if it is empty
3619 if test x$local_prefix = x; then
3620 local_prefix=/usr/local
3624 # Check whether --with-native-system-header-dir was given.
3625 if test "${with_native_system_header_dir+set}" = set; then :
3626 withval=$with_native_system_header_dir;
3627 case ${with_native_system_header_dir} in
3628 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3629 /* | [A-Za-z]:[\\/]*) ;;
3630 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3632 configured_native_system_header_dir="${withval}"
3635 configured_native_system_header_dir=
3640 # Check whether --with-build-sysroot was given.
3641 if test "${with_build_sysroot+set}" = set; then :
3642 withval=$with_build_sysroot; if test x"$withval" != x ; then
3643 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3646 SYSROOT_CFLAGS_FOR_TARGET=
3651 if test "x$prefix" = xNONE; then
3652 test_prefix=/usr/local
3656 if test "x$exec_prefix" = xNONE; then
3657 test_exec_prefix=$test_prefix
3659 test_exec_prefix=$exec_prefix
3663 # Check whether --with-sysroot was given.
3664 if test "${with_sysroot+set}" = set; then :
3665 withval=$with_sysroot;
3666 case ${with_sysroot} in
3668 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3670 case ${with_sysroot} in
3671 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3672 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3675 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3676 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3678 case ${TARGET_SYSTEM_ROOT} in
3679 "${test_prefix}"|"${test_prefix}/"*|\
3680 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3681 '${prefix}'|'${prefix}/'*|\
3682 '${exec_prefix}'|'${exec_prefix}/'*)
3683 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3684 TARGET_SYSTEM_ROOT_DEFINE="$t"
3691 TARGET_SYSTEM_ROOT_DEFINE=
3692 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3700 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3701 # passed in by the toplevel make and thus we'd get different behavior
3702 # depending on where we built the sources.
3703 gcc_gxx_include_dir
=
3704 # Specify the g++ header file directory
3706 # Check whether --with-gxx-include-dir was given.
3707 if test "${with_gxx_include_dir+set}" = set; then :
3708 withval
=$with_gxx_include_dir; case "${withval}" in
3709 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3711 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3716 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3717 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3718 # relative to the sysroot.
3719 gcc_gxx_include_dir_add_sysroot
=0
3721 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3722 if test x
${gcc_gxx_include_dir} = x
; then
3723 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3724 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3726 libstdcxx_incdir
='include/c++/$(version)'
3727 if test x
$host != x
$target; then
3728 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3730 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3732 elif test "${with_sysroot+set}" = set; then
3733 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3734 if test "${gcc_gxx_without_sysroot}"; then
3735 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3736 gcc_gxx_include_dir_add_sysroot
=1
3740 # Configuration for an alternate set of C++ headers.
3741 gcc_gxx_libcxx_include_dir
=
3742 # Specify the alternate g++ header file directory
3744 # Check whether --with-gxx-libcxx-include-dir was given.
3745 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3746 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3747 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3749 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3754 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3755 # check to see if the latter starts with the former and, upon success, compute
3756 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3757 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3759 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3761 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3764 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3767 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3768 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3769 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3770 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3772 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3773 if test x
$host != x
$target; then
3774 libcxx_incdir
="$target_alias/$libcxx_incdir"
3776 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3778 elif test "${with_sysroot+set}" = set; then
3779 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3780 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3781 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3782 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3787 # Check whether --with-cpp_install_dir was given.
3788 if test "${with_cpp_install_dir+set}" = set; then :
3789 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3790 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3791 elif test x
$withval != xno
; then
3792 cpp_install_dir
=$withval
3797 # We would like to our source tree to be readonly. However when releases or
3798 # pre-releases are generated, the flex/bison generated files as well as the
3799 # various formats of manuals need to be included along with the rest of the
3800 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3804 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3805 # Check whether --enable-generated-files-in-srcdir was given.
3806 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3807 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3809 generated_files_in_srcdir
=no
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3814 $as_echo "$generated_files_in_srcdir" >&6; }
3816 if test "$generated_files_in_srcdir" = "yes"; then
3823 # -------------------
3824 # Find default linker
3825 # -------------------
3829 # Check whether --with-gnu-ld was given.
3830 if test "${with_gnu_ld+set}" = set; then :
3831 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3838 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3842 # With pre-defined ld
3844 # Check whether --with-ld was given.
3845 if test "${with_ld+set}" = set; then :
3846 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3849 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3850 if test ! -x "$DEFAULT_LINKER"; then
3851 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3852 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3854 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3858 cat >>confdefs.h
<<_ACEOF
3859 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3865 $as_echo_n "checking whether a default linker was specified... " >&6; }
3866 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3867 if test x
"$gnu_ld_flag" = x
"no"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3869 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3872 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3879 # With demangler in GNU ld
3881 # Check whether --with-demangler-in-ld was given.
3882 if test "${with_demangler_in_ld+set}" = set; then :
3883 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3889 # ----------------------
3890 # Find default assembler
3891 # ----------------------
3895 # Check whether --with-gnu-as was given.
3896 if test "${with_gnu_as+set}" = set; then :
3897 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3904 # Check whether --with-as was given.
3905 if test "${with_as+set}" = set; then :
3906 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3909 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3910 if test ! -x "$DEFAULT_ASSEMBLER"; then
3911 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3912 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3916 cat >>confdefs.h
<<_ACEOF
3917 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3923 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3924 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3925 if test x
"$gas_flag" = x
"no"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3927 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3930 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3941 # If a non-executable a.out is present (e.g. created by GNU as above even if
3942 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3943 # file, even when creating an executable, so an execution test fails.
3944 # Remove possible default executable files to avoid this.
3946 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3947 # Autoconf includes it.
3948 rm -f a.out a.exe b.out
3950 # Find the native compiler
3952 ac_cpp
='$CPP $CPPFLAGS'
3953 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3958 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_CC+:} false
; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -n "$CC"; then
3965 ac_cv_prog_CC
="$CC" # Let the user override the test.
3967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir
=.
3972 for ac_exec_ext
in '' $ac_executable_extensions; do
3973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 if test -n "$CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987 $as_echo "$CC" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3995 if test -z "$ac_cv_prog_CC"; then
3997 # Extract the first word of "gcc", so it can be a program name with args.
3998 set dummy gcc
; ac_word
=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -n "$ac_ct_CC"; then
4005 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir
=.
4012 for ac_exec_ext
in '' $ac_executable_extensions; do
4013 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_ac_ct_CC
="gcc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4025 if test -n "$ac_ct_CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027 $as_echo "$ac_ct_CC" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4033 if test "x$ac_ct_CC" = x
; then
4036 case $cross_compiling:$ac_tool_warned in
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040 ac_tool_warned
=yes ;;
4048 if test -z "$CC"; then
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4051 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if ${ac_cv_prog_CC+:} false
; then :
4055 $as_echo_n "(cached) " >&6
4057 if test -n "$CC"; then
4058 ac_cv_prog_CC
="$CC" # Let the user override the test.
4060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4064 test -z "$as_dir" && as_dir
=.
4065 for ac_exec_ext
in '' $ac_executable_extensions; do
4066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 if test -n "$CC"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 $as_echo "$CC" >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4089 if test -z "$CC"; then
4090 # Extract the first word of "cc", so it can be a program name with args.
4091 set dummy cc
; ac_word
=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_CC+:} false
; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC
="$CC" # Let the user override the test.
4101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir
=.
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4109 ac_prog_rejected
=yes
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 if test $ac_prog_rejected = yes; then
4121 # We found a bogon in the path, so make sure we never use it.
4122 set dummy
$ac_cv_prog_CC
4124 if test $# != 0; then
4125 # We chose a different compiler from the bogus one.
4126 # However, it has the same basename, so the bogon will be chosen
4127 # first if we set CC to just the basename; use the full file name.
4129 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4135 if test -n "$CC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137 $as_echo "$CC" >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4145 if test -z "$CC"; then
4146 if test -n "$ac_tool_prefix"; then
4147 for ac_prog
in cl.exe
4149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_CC+:} false
; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -n "$CC"; then
4157 ac_cv_prog_CC
="$CC" # Let the user override the test.
4159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir
=.
4164 for ac_exec_ext
in '' $ac_executable_extensions; do
4165 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 if test -n "$CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179 $as_echo "$CC" >&6; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4186 test -n "$CC" && break
4189 if test -z "$CC"; then
4191 for ac_prog
in cl.exe
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy
$ac_prog; ac_word
=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4198 $as_echo_n "(cached) " >&6
4200 if test -n "$ac_ct_CC"; then
4201 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir
=.
4208 for ac_exec_ext
in '' $ac_executable_extensions; do
4209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_CC
="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4221 if test -n "$ac_ct_CC"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4223 $as_echo "$ac_ct_CC" >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4230 test -n "$ac_ct_CC" && break
4233 if test "x$ac_ct_CC" = x
; then
4236 case $cross_compiling:$ac_tool_warned in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned
=yes ;;
4249 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251 as_fn_error $?
"no acceptable C compiler found in \$PATH
4252 See \`config.log' for more details" "$LINENO" 5; }
4254 # Provide some information about the compiler.
4255 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4258 for ac_option
in --version -v -V -qversion; do
4259 { { ac_try
="$ac_compiler $ac_option >&5"
4261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 $as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4268 if test -s conftest.err; then
4270 ... rest of stderr output deleted ...
4271 10q' conftest.err >conftest.er1
4272 cat conftest.er1 >&5
4274 rm -f conftest.er1 conftest.err
4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276 test $ac_status = 0; }
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 ac_clean_files_save=$ac_clean_files
4291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4292 # Try to create an executable without -o first, disregard a.out.
4293 # It will help us diagnose broken compilers, and finding out an intuition
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4296 $as_echo_n "checking whether the C compiler works... " >&6; }
4297 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4299 # The possible output files:
4300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4303 for ac_file in $ac_files
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4312 if { { ac_try="$ac_link_default"
4314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4315 *) ac_try_echo
=$ac_try;;
4317 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_link_default") 2>&5
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; then :
4323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4325 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4326 # so that the user can short-circuit this test for compilers unknown to
4328 for ac_file
in $ac_files ''
4330 test -f "$ac_file" ||
continue
4332 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4335 # We found the default executable, but exeext='' is most
4339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4341 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4343 # We set ac_cv_exeext here because the later test for it is not
4344 # safe: cross compilers may not add the suffix if given an `-o'
4345 # argument, so we may need to know it at that point already.
4346 # Even if this section looks crufty: it has the advantage of
4353 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4358 if test -z "$ac_file"; then :
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 $as_echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.
$ac_ext >&5
4364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366 as_fn_error
77 "C compiler cannot create executables
4367 See \`config.log' for more details" "$LINENO" 5; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4373 $as_echo_n "checking for C compiler default output file name... " >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4375 $as_echo "$ac_file" >&6; }
4376 ac_exeext
=$ac_cv_exeext
4378 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4379 ac_clean_files
=$ac_clean_files_save
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4381 $as_echo_n "checking for suffix of executables... " >&6; }
4382 if { { ac_try
="$ac_link"
4384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_link") 2>&5
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then :
4393 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4394 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4395 # work properly (i.e., refer to `conftest.exe'), while it won't with
4397 for ac_file
in conftest.exe conftest conftest.
*; do
4398 test -f "$ac_file" ||
continue
4400 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4401 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4410 See \`config.log' for more details" "$LINENO" 5; }
4412 rm -f conftest conftest
$ac_cv_exeext
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4414 $as_echo "$ac_cv_exeext" >&6; }
4416 rm -f conftest.
$ac_ext
4417 EXEEXT
=$ac_cv_exeext
4419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4425 FILE *f = fopen ("conftest.out", "w");
4426 return ferror (f) || fclose (f) != 0;
4432 ac_clean_files
="$ac_clean_files conftest.out"
4433 # Check that the compiler produces executables we can run. If not, either
4434 # the compiler is broken, or we cross compile.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4436 $as_echo_n "checking whether we are cross compiling... " >&6; }
4437 if test "$cross_compiling" != yes; then
4438 { { ac_try
="$ac_link"
4440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }
4449 if { ac_try='./conftest$ac_cv_exeext'
4450 { { case "(($ac_try" in
4451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4452 *) ac_try_echo
=$ac_try;;
4454 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_try") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; }; then
4462 if test "$cross_compiling" = maybe
; then
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error $?
"cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details" "$LINENO" 5; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4474 $as_echo "$cross_compiling" >&6; }
4476 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4477 ac_clean_files
=$ac_clean_files_save
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4479 $as_echo_n "checking for suffix of object files... " >&6; }
4480 if ${ac_cv_objext+:} false
; then :
4481 $as_echo_n "(cached) " >&6
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4494 rm -f conftest.o conftest.obj
4495 if { { ac_try
="$ac_compile"
4497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_compile") 2>&5
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 for ac_file in conftest.o conftest.obj conftest.*; do
4507 test -f "$ac_file" || continue;
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4515 $as_echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4521 See \
`config.log' for more details" "$LINENO" 5; }
4523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4526 $as_echo "$ac_cv_objext" >&6; }
4527 OBJEXT=$ac_cv_objext
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4531 if ${ac_cv_c_compiler_gnu+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4548 if ac_fn_c_try_compile "$LINENO"; then :
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4559 if test $ac_compiler_gnu = yes; then
4564 ac_test_CFLAGS=${CFLAGS+set}
4565 ac_save_CFLAGS=$CFLAGS
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4568 if ${ac_cv_prog_cc_g+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 ac_save_c_werror_flag=$ac_c_werror_flag
4572 ac_c_werror_flag=yes
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4586 if ac_fn_c_try_compile "$LINENO"; then :
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4601 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_c_werror_flag=$ac_save_c_werror_flag
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4617 if ac_fn_c_try_compile "$LINENO"; then :
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4628 $as_echo "$ac_cv_prog_cc_g" >&6; }
4629 if test "$ac_test_CFLAGS" = set; then
4630 CFLAGS=$ac_save_CFLAGS
4631 elif test $ac_cv_prog_cc_g = yes; then
4632 if test "$GCC" = yes; then
4638 if test "$GCC" = yes; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4646 if ${ac_cv_prog_cc_c89+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 ac_cv_prog_cc_c89=no
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4657 struct buf { int x; };
4658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4659 static char *e (p, i)
4665 static char *f (char * (*g) (char **, int), char **p, ...)
4670 s = g (p, va_arg (v,int));
4675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4676 function prototypes and stuff, but not '\xHH' hex character constants.
4677 These don't provoke an error unfortunately, instead are silently treated
4678 as 'x'. The following induces an error, until -std is added to get
4679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4680 array size at least. It's necessary to write '\x00'==0 to get something
4681 that's true only with -std. */
4682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4685 inside strings and character constants. */
4687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4689 int test (int i, double x);
4690 struct s1 {int (*f) (int a);};
4691 struct s2 {int (*f) (double a);};
4692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4706 CC="$ac_save_CC $ac_arg"
4707 if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_c89=$ac_arg
4710 rm -f core conftest.err conftest.$ac_objext
4711 test "x$ac_cv_prog_cc_c89" != "xno" && break
4713 rm -f conftest.$ac_ext
4718 case "x$ac_cv_prog_cc_c89" in
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4721 $as_echo "none needed" >&6; } ;;
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724 $as_echo "unsupported" >&6; } ;;
4726 CC="$CC $ac_cv_prog_cc_c89"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4730 if test "x$ac_cv_prog_cc_c89" != xno; then :
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 ac_cpp='$CXXCPP $CPPFLAGS'
4742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745 if test -z "$CXX"; then
4746 if test -n "$CCC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CXX+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$CXX"; then
4760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 if test -n "$CXX"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4782 $as_echo "$CXX" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$CXX" && break
4792 if test -z "$CXX"; then
4794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -n "$ac_ct_CXX"; then
4804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_ac_ct_CXX="$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4824 if test -n "$ac_ct_CXX"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4826 $as_echo "$ac_ct_CXX" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4833 test -n "$ac_ct_CXX" && break
4836 if test "x$ac_ct_CXX" = x; then
4839 case $cross_compiling:$ac_tool_warned in
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4851 # Provide some information about the compiler.
4852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4855 for ac_option in --version -v -V -qversion; do
4856 { { ac_try="$ac_compiler $ac_option >&5"
4858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4859 *) ac_try_echo
=$ac_try;;
4861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862 $as_echo "$ac_try_echo"; } >&5
4863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4865 if test -s conftest.err
; then
4867 ... rest of stderr output deleted ...
4868 10q' conftest.err
>conftest.er1
4869 cat conftest.er1
>&5
4871 rm -f conftest.er1 conftest.err
4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873 test $ac_status = 0; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4877 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4878 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4879 $as_echo_n "(cached) " >&6
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4895 if ac_fn_cxx_try_compile
"$LINENO"; then :
4900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4901 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4905 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4906 if test $ac_compiler_gnu = yes; then
4911 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4912 ac_save_CXXFLAGS
=$CXXFLAGS
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4914 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4915 if ${ac_cv_prog_cxx_g+:} false
; then :
4916 $as_echo_n "(cached) " >&6
4918 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4919 ac_cxx_werror_flag
=yes
4922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4933 if ac_fn_cxx_try_compile
"$LINENO"; then :
4934 ac_cv_prog_cxx_g
=yes
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4948 if ac_fn_cxx_try_compile
"$LINENO"; then :
4951 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4964 if ac_fn_cxx_try_compile
"$LINENO"; then :
4965 ac_cv_prog_cxx_g
=yes
4967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4972 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4975 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4976 if test "$ac_test_CXXFLAGS" = set; then
4977 CXXFLAGS
=$ac_save_CXXFLAGS
4978 elif test $ac_cv_prog_cxx_g = yes; then
4979 if test "$GXX" = yes; then
4985 if test "$GXX" = yes; then
4992 ac_cpp
='$CPP $CPPFLAGS'
4993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5002 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_GNATBIND+:} false
; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$GNATBIND"; then
5009 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 GNATBIND
=$ac_cv_prog_GNATBIND
5029 if test -n "$GNATBIND"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5031 $as_echo "$GNATBIND" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5039 if test -z "$ac_cv_prog_GNATBIND"; then
5040 ac_ct_GNATBIND
=$GNATBIND
5041 # Extract the first word of "gnatbind", so it can be a program name with args.
5042 set dummy gnatbind
; ac_word
=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$ac_ct_GNATBIND"; then
5049 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5069 if test -n "$ac_ct_GNATBIND"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5071 $as_echo "$ac_ct_GNATBIND" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5077 if test "x$ac_ct_GNATBIND" = x
; then
5080 case $cross_compiling:$ac_tool_warned in
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5084 ac_tool_warned
=yes ;;
5086 GNATBIND
=$ac_ct_GNATBIND
5089 GNATBIND
="$ac_cv_prog_GNATBIND"
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5094 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$GNATMAKE"; then
5101 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 GNATMAKE
=$ac_cv_prog_GNATMAKE
5121 if test -n "$GNATMAKE"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5123 $as_echo "$GNATMAKE" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5131 if test -z "$ac_cv_prog_GNATMAKE"; then
5132 ac_ct_GNATMAKE
=$GNATMAKE
5133 # Extract the first word of "gnatmake", so it can be a program name with args.
5134 set dummy gnatmake
; ac_word
=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_GNATMAKE"; then
5141 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir
=.
5148 for ac_exec_ext
in '' $ac_executable_extensions; do
5149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5161 if test -n "$ac_ct_GNATMAKE"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5163 $as_echo "$ac_ct_GNATMAKE" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5169 if test "x$ac_ct_GNATMAKE" = x
; then
5172 case $cross_compiling:$ac_tool_warned in
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned
=yes ;;
5178 GNATMAKE
=$ac_ct_GNATMAKE
5181 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5185 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5186 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5187 $as_echo_n "(cached) " >&6
5189 cat >conftest.adb
<<EOF
5190 procedure conftest is begin null; end conftest;
5192 acx_cv_cc_gcc_supports_ada
=no
5193 # There is a bug in old released versions of GCC which causes the
5194 # driver to exit successfully when the appropriate language module
5195 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5196 # Therefore we must check for the error message as well as an
5197 # unsuccessful exit.
5198 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5199 # given a .adb file, but produce no object file. So we must check
5200 # if an object file was really produced to guard against this.
5201 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5202 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5203 acx_cv_cc_gcc_supports_ada
=yes
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5208 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5210 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5217 # Do configure tests with the C++ compiler, since that's what we build with.
5219 ac_cpp
='$CXXCPP $CPPFLAGS'
5220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5225 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5226 # optimizations to be activated explicitly by the toplevel.
5228 */prev-gcc
/xgcc
*) ;;
5229 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5230 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5235 # Determine PICFLAG for target gnatlib.
5241 # PIC is the default on some targets or must not be used.
5243 # For darwin, common symbols are not allowed in MH_DYLIB files
5245 # If we are using a compiler supporting mdynamic-no-pic
5246 # and the option has been tested as safe to add, then cancel
5247 # it here, since the code generated is incompatible with shared
5249 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5250 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5254 # PIC is the default.
5257 # PIC is the default for 64-bit PA HP-UX.
5259 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5261 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5263 i
[34567]86-*-interix[3-9]*)
5264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5265 # Instead, we relocate shared libraries at runtime.
5267 i
[34567]86-*-nto-qnx*)
5268 # QNX uses GNU C++, but need to define -shared option too, otherwise
5270 PICFLAG_FOR_TARGET
='-fPIC -shared'
5272 i
[34567]86-pc-msdosdjgpp*)
5273 # DJGPP does not support shared libraries at all.
5276 # On IA64 HP-UX, PIC is the default but the pic flag
5277 # sets the default TLS model and affects inlining.
5278 PICFLAG_FOR_TARGET
=-fPIC
5281 # PIC is the default.
5283 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5284 # All AIX code is PIC.
5287 # Some targets support both -fPIC and -fpic, but prefer the latter.
5289 i
[34567]86-*-* | x86_64-
*-*)
5290 PICFLAG_FOR_TARGET
=-fpic
5292 # FIXME: Override -fPIC default in libgcc only?
5293 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5294 PICFLAG_FOR_TARGET
=-fpic
5296 # FIXME: Simplify to sh*-*-netbsd*?
5297 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5298 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5299 PICFLAG_FOR_TARGET
=-fpic
5301 # Default to -fPIC unless specified otherwise.
5303 PICFLAG_FOR_TARGET
=-fPIC
5307 # If the user explicitly uses -fpic/-fPIC, keep that.
5308 case "${CFLAGS_FOR_TARGET}" in
5310 PICFLAG_FOR_TARGET
=-fpic
5313 PICFLAG_FOR_TARGET
=-fPIC
5319 # -------------------------
5320 # Check C compiler features
5321 # -------------------------
5325 ac_cpp
='$CXXCPP $CPPFLAGS'
5326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5330 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5331 if test -z "$CXXCPP"; then
5332 if ${ac_cv_prog_CXXCPP+:} false
; then :
5333 $as_echo_n "(cached) " >&6
5335 # Double quotes because CXXCPP needs to be expanded
5336 for CXXCPP
in "$CXX -E" "/lib/cpp"
5339 for ac_cxx_preproc_warn_flag
in '' yes
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5350 # include <limits.h>
5352 # include <assert.h>
5356 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5359 # Broken: fails on valid input.
5362 rm -f conftest.err conftest.i conftest.
$ac_ext
5364 # OK, works on sane cases. Now check whether nonexistent headers
5365 # can be detected and how.
5366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5370 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5371 # Broken: success on invalid input.
5374 # Passes both tests.
5378 rm -f conftest.err conftest.i conftest.
$ac_ext
5381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382 rm -f conftest.i conftest.err conftest.
$ac_ext
5383 if $ac_preproc_ok; then :
5388 ac_cv_prog_CXXCPP
=$CXXCPP
5391 CXXCPP
=$ac_cv_prog_CXXCPP
5393 ac_cv_prog_CXXCPP
=$CXXCPP
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5396 $as_echo "$CXXCPP" >&6; }
5398 for ac_cxx_preproc_warn_flag
in '' yes
5400 # Use a header file that comes with gcc, so configuring glibc
5401 # with a fresh cross-compiler works.
5402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5403 # <limits.h> exists even on freestanding compilers.
5404 # On the NeXT, cc -E runs the code through the compiler's parser,
5405 # not just through cpp. "Syntax error" is here to catch this case.
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5409 # include <limits.h>
5411 # include <assert.h>
5415 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5418 # Broken: fails on valid input.
5421 rm -f conftest.err conftest.i conftest.
$ac_ext
5423 # OK, works on sane cases. Now check whether nonexistent headers
5424 # can be detected and how.
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5429 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5430 # Broken: success on invalid input.
5433 # Passes both tests.
5437 rm -f conftest.err conftest.i conftest.
$ac_ext
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.i conftest.err conftest.
$ac_ext
5442 if $ac_preproc_ok; then :
5445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5447 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5448 See \`config.log' for more details" "$LINENO" 5; }
5452 ac_cpp
='$CXXCPP $CPPFLAGS'
5453 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5460 if ${ac_cv_path_GREP+:} false
; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -z "$GREP"; then
5464 ac_path_GREP_found
=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_prog
in grep ggrep
; do
5472 for ac_exec_ext
in '' $ac_executable_extensions; do
5473 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p
"$ac_path_GREP" ||
continue
5475 # Check for GNU ac_path_GREP and select it if it is found.
5476 # Check for GNU $ac_path_GREP
5477 case `"$ac_path_GREP" --version 2>&1` in
5479 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5482 $as_echo_n 0123456789 >"conftest.in"
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'GREP' >> "conftest.nl"
5489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5491 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_GREP
="$ac_path_GREP"
5495 ac_path_GREP_max
=$ac_count
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5503 $ac_path_GREP_found && break 3
5508 if test -z "$ac_cv_path_GREP"; then
5509 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 ac_cv_path_GREP
=$GREP
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5517 $as_echo "$ac_cv_path_GREP" >&6; }
5518 GREP
="$ac_cv_path_GREP"
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5522 $as_echo_n "checking for egrep... " >&6; }
5523 if ${ac_cv_path_EGREP+:} false
; then :
5524 $as_echo_n "(cached) " >&6
5526 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5527 then ac_cv_path_EGREP
="$GREP -E"
5529 if test -z "$EGREP"; then
5530 ac_path_EGREP_found
=false
5531 # Loop through the user's path and test for each of PROGNAME-LIST
5532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5533 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5536 test -z "$as_dir" && as_dir
=.
5537 for ac_prog
in egrep; do
5538 for ac_exec_ext
in '' $ac_executable_extensions; do
5539 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5540 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5541 # Check for GNU ac_path_EGREP and select it if it is found.
5542 # Check for GNU $ac_path_EGREP
5543 case `"$ac_path_EGREP" --version 2>&1` in
5545 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5548 $as_echo_n 0123456789 >"conftest.in"
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 $as_echo 'EGREP' >> "conftest.nl"
5555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5556 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5557 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_EGREP
="$ac_path_EGREP"
5561 ac_path_EGREP_max
=$ac_count
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5566 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5569 $ac_path_EGREP_found && break 3
5574 if test -z "$ac_cv_path_EGREP"; then
5575 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5578 ac_cv_path_EGREP
=$EGREP
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5584 $as_echo "$ac_cv_path_EGREP" >&6; }
5585 EGREP
="$ac_cv_path_EGREP"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5589 $as_echo_n "checking for ANSI C header files... " >&6; }
5590 if ${ac_cv_header_stdc+:} false
; then :
5591 $as_echo_n "(cached) " >&6
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5608 if ac_fn_cxx_try_compile
"$LINENO"; then :
5609 ac_cv_header_stdc
=yes
5611 ac_cv_header_stdc
=no
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 if test $ac_cv_header_stdc = yes; then
5616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev
/null
2>&1; then :
5626 ac_cv_header_stdc
=no
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "free" >/dev
/null
2>&1; then :
5643 ac_cv_header_stdc
=no
5649 if test $ac_cv_header_stdc = yes; then
5650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5651 if test "$cross_compiling" = yes; then :
5654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 #if ((' ' & 0x0FF) == 0x020)
5659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5662 # define ISLOWER(c) \
5663 (('a' <= (c) && (c) <= 'i') \
5664 || ('j' <= (c) && (c) <= 'r') \
5665 || ('s' <= (c) && (c) <= 'z'))
5666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5674 for (i = 0; i < 256; i++)
5675 if (XOR (islower (i), ISLOWER (i))
5676 || toupper (i) != TOUPPER (i))
5681 if ac_fn_cxx_try_run
"$LINENO"; then :
5684 ac_cv_header_stdc
=no
5686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5693 $as_echo "$ac_cv_header_stdc" >&6; }
5694 if test $ac_cv_header_stdc = yes; then
5696 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5701 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5702 inttypes.h stdint.h unistd.h
5704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5707 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5708 cat >>confdefs.h
<<_ACEOF
5709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5719 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5726 if test "$MINIX" = yes; then
5728 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5731 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5734 $as_echo "#define _MINIX 1" >>confdefs.h
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5740 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5741 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5742 $as_echo_n "(cached) " >&6
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5747 # define __EXTENSIONS__ 1
5748 $ac_includes_default
5757 if ac_fn_cxx_try_compile
"$LINENO"; then :
5758 ac_cv_safe_to_define___extensions__
=yes
5760 ac_cv_safe_to_define___extensions__
=no
5762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5765 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5766 test $ac_cv_safe_to_define___extensions__ = yes &&
5767 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5769 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5771 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5773 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5775 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5780 ac_cpp
='$CPP $CPPFLAGS'
5781 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5786 # On Suns, sometimes $CPP names a directory.
5787 if test -n "$CPP" && test -d "$CPP"; then
5790 if test -z "$CPP"; then
5791 if ${ac_cv_prog_CPP+:} false
; then :
5792 $as_echo_n "(cached) " >&6
5794 # Double quotes because CPP needs to be expanded
5795 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5798 for ac_c_preproc_warn_flag
in '' yes
5800 # Use a header file that comes with gcc, so configuring glibc
5801 # with a fresh cross-compiler works.
5802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803 # <limits.h> exists even on freestanding compilers.
5804 # On the NeXT, cc -E runs the code through the compiler's parser,
5805 # not just through cpp. "Syntax error" is here to catch this case.
5806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5809 # include <limits.h>
5811 # include <assert.h>
5815 if ac_fn_c_try_cpp
"$LINENO"; then :
5818 # Broken: fails on valid input.
5821 rm -f conftest.err conftest.i conftest.
$ac_ext
5823 # OK, works on sane cases. Now check whether nonexistent headers
5824 # can be detected and how.
5825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <ac_nonexistent.h>
5829 if ac_fn_c_try_cpp
"$LINENO"; then :
5830 # Broken: success on invalid input.
5833 # Passes both tests.
5837 rm -f conftest.err conftest.i conftest.
$ac_ext
5840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841 rm -f conftest.i conftest.err conftest.
$ac_ext
5842 if $ac_preproc_ok; then :
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5855 $as_echo "$CPP" >&6; }
5857 for ac_c_preproc_warn_flag
in '' yes
5859 # Use a header file that comes with gcc, so configuring glibc
5860 # with a fresh cross-compiler works.
5861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5862 # <limits.h> exists even on freestanding compilers.
5863 # On the NeXT, cc -E runs the code through the compiler's parser,
5864 # not just through cpp. "Syntax error" is here to catch this case.
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 # include <limits.h>
5870 # include <assert.h>
5874 if ac_fn_c_try_cpp
"$LINENO"; then :
5877 # Broken: fails on valid input.
5880 rm -f conftest.err conftest.i conftest.
$ac_ext
5882 # OK, works on sane cases. Now check whether nonexistent headers
5883 # can be detected and how.
5884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <ac_nonexistent.h>
5888 if ac_fn_c_try_cpp
"$LINENO"; then :
5889 # Broken: success on invalid input.
5892 # Passes both tests.
5896 rm -f conftest.err conftest.i conftest.
$ac_ext
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.i conftest.err conftest.
$ac_ext
5901 if $ac_preproc_ok; then :
5904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5907 See \`config.log' for more details" "$LINENO" 5; }
5911 ac_cpp
='$CXXCPP $CPPFLAGS'
5912 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5917 $as_echo_n "checking for inline... " >&6; }
5918 if ${ac_cv_c_inline+:} false
; then :
5919 $as_echo_n "(cached) " >&6
5922 for ac_kw
in inline __inline__ __inline
; do
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5927 static $ac_kw foo_t static_foo () {return 0; }
5928 $ac_kw foo_t foo () {return 0; }
5932 if ac_fn_cxx_try_compile
"$LINENO"; then :
5933 ac_cv_c_inline
=$ac_kw
5935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 test "$ac_cv_c_inline" != no
&& break
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5941 $as_echo "$ac_cv_c_inline" >&6; }
5943 case $ac_cv_c_inline in
5946 case $ac_cv_c_inline in
5948 *) ac_val
=$ac_cv_c_inline;;
5950 cat >>confdefs.h
<<_ACEOF
5952 #define inline $ac_val
5959 # Check whether --enable-largefile was given.
5960 if test "${enable_largefile+set}" = set; then :
5961 enableval
=$enable_largefile;
5964 if test "$enable_largefile" != no
; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5967 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5968 if ${ac_cv_sys_largefile_CC+:} false
; then :
5969 $as_echo_n "(cached) " >&6
5971 ac_cv_sys_largefile_CC
=no
5972 if test "$GCC" != yes; then
5975 # IRIX 6.2 and later do not support large files by default,
5976 # so use the C compiler's -n32 option if that helps.
5977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #include <sys/types.h>
5980 /* Check that off_t can represent 2**63 - 1 correctly.
5981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5982 since some C++ compilers masquerading as C compilers
5983 incorrectly reject 9223372036854775807. */
5984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5986 && LARGE_OFF_T % 2147483647 == 1)
5996 if ac_fn_cxx_try_compile
"$LINENO"; then :
5999 rm -f core conftest.err conftest.
$ac_objext
6001 if ac_fn_cxx_try_compile
"$LINENO"; then :
6002 ac_cv_sys_largefile_CC
=' -n32'; break
6004 rm -f core conftest.err conftest.
$ac_objext
6008 rm -f conftest.
$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6012 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6013 if test "$ac_cv_sys_largefile_CC" != no
; then
6014 CC
=$CC$ac_cv_sys_largefile_CC
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6018 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6019 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6020 $as_echo_n "(cached) " >&6
6023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <sys/types.h>
6026 /* Check that off_t can represent 2**63 - 1 correctly.
6027 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6028 since some C++ compilers masquerading as C compilers
6029 incorrectly reject 9223372036854775807. */
6030 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6031 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6032 && LARGE_OFF_T % 2147483647 == 1)
6042 if ac_fn_cxx_try_compile
"$LINENO"; then :
6043 ac_cv_sys_file_offset_bits
=no
; break
6045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #define _FILE_OFFSET_BITS 64
6049 #include <sys/types.h>
6050 /* Check that off_t can represent 2**63 - 1 correctly.
6051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6052 since some C++ compilers masquerading as C compilers
6053 incorrectly reject 9223372036854775807. */
6054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6056 && LARGE_OFF_T % 2147483647 == 1)
6066 if ac_fn_cxx_try_compile
"$LINENO"; then :
6067 ac_cv_sys_file_offset_bits
=64; break
6069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6070 ac_cv_sys_file_offset_bits
=unknown
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6075 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6076 case $ac_cv_sys_file_offset_bits in #(
6079 cat >>confdefs.h
<<_ACEOF
6080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6085 if test $ac_cv_sys_file_offset_bits = unknown
; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6087 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6088 if ${ac_cv_sys_large_files+:} false
; then :
6089 $as_echo_n "(cached) " >&6
6092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <sys/types.h>
6095 /* Check that off_t can represent 2**63 - 1 correctly.
6096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6097 since some C++ compilers masquerading as C compilers
6098 incorrectly reject 9223372036854775807. */
6099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6101 && LARGE_OFF_T % 2147483647 == 1)
6111 if ac_fn_cxx_try_compile
"$LINENO"; then :
6112 ac_cv_sys_large_files
=no
; break
6114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #define _LARGE_FILES 1
6118 #include <sys/types.h>
6119 /* Check that off_t can represent 2**63 - 1 correctly.
6120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6121 since some C++ compilers masquerading as C compilers
6122 incorrectly reject 9223372036854775807. */
6123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6125 && LARGE_OFF_T % 2147483647 == 1)
6135 if ac_fn_cxx_try_compile
"$LINENO"; then :
6136 ac_cv_sys_large_files
=1; break
6138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6139 ac_cv_sys_large_files
=unknown
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6144 $as_echo "$ac_cv_sys_large_files" >&6; }
6145 case $ac_cv_sys_large_files in #(
6148 cat >>confdefs.h
<<_ACEOF
6149 #define _LARGE_FILES $ac_cv_sys_large_files
6160 # sizeof(char) is 1 by definition.
6161 # The cast to long int works around a bug in the HP C Compiler
6162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6164 # This bug is HP SR number 8606223364.
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6166 $as_echo_n "checking size of void *... " >&6; }
6167 if ${ac_cv_sizeof_void_p+:} false
; then :
6168 $as_echo_n "(cached) " >&6
6170 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6176 as_fn_error
77 "cannot compute sizeof (void *)
6177 See \`config.log' for more details" "$LINENO" 5; }
6179 ac_cv_sizeof_void_p
=0
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6185 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6189 cat >>confdefs.h
<<_ACEOF
6190 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6194 # The cast to long int works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6199 $as_echo_n "checking size of short... " >&6; }
6200 if ${ac_cv_sizeof_short+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6206 if test "$ac_cv_type_short" = yes; then
6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error
77 "cannot compute sizeof (short)
6210 See \`config.log' for more details" "$LINENO" 5; }
6212 ac_cv_sizeof_short
=0
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6218 $as_echo "$ac_cv_sizeof_short" >&6; }
6222 cat >>confdefs.h
<<_ACEOF
6223 #define SIZEOF_SHORT $ac_cv_sizeof_short
6227 # The cast to long int works around a bug in the HP C Compiler
6228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6230 # This bug is HP SR number 8606223364.
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6232 $as_echo_n "checking size of int... " >&6; }
6233 if ${ac_cv_sizeof_int+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6239 if test "$ac_cv_type_int" = yes; then
6240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242 as_fn_error
77 "cannot compute sizeof (int)
6243 See \`config.log' for more details" "$LINENO" 5; }
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6251 $as_echo "$ac_cv_sizeof_int" >&6; }
6255 cat >>confdefs.h
<<_ACEOF
6256 #define SIZEOF_INT $ac_cv_sizeof_int
6260 # The cast to long int works around a bug in the HP C Compiler
6261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6263 # This bug is HP SR number 8606223364.
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6265 $as_echo_n "checking size of long... " >&6; }
6266 if ${ac_cv_sizeof_long+:} false
; then :
6267 $as_echo_n "(cached) " >&6
6269 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6272 if test "$ac_cv_type_long" = yes; then
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6275 as_fn_error
77 "cannot compute sizeof (long)
6276 See \`config.log' for more details" "$LINENO" 5; }
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6284 $as_echo "$ac_cv_sizeof_long" >&6; }
6288 cat >>confdefs.h
<<_ACEOF
6289 #define SIZEOF_LONG $ac_cv_sizeof_long
6293 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6294 if test "x$ac_cv_type_long_long" = xyes
; then :
6296 cat >>confdefs.h
<<_ACEOF
6297 #define HAVE_LONG_LONG 1
6300 # The cast to long int works around a bug in the HP C Compiler
6301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6303 # This bug is HP SR number 8606223364.
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6305 $as_echo_n "checking size of long long... " >&6; }
6306 if ${ac_cv_sizeof_long_long+:} false
; then :
6307 $as_echo_n "(cached) " >&6
6309 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6312 if test "$ac_cv_type_long_long" = yes; then
6313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315 as_fn_error
77 "cannot compute sizeof (long long)
6316 See \`config.log' for more details" "$LINENO" 5; }
6318 ac_cv_sizeof_long_long
=0
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6324 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6328 cat >>confdefs.h
<<_ACEOF
6329 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6335 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6336 case $ac_cv_c_int8_t in #(
6340 cat >>confdefs.h
<<_ACEOF
6341 #define int8_t $ac_cv_c_int8_t
6346 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6347 case $ac_cv_c_int16_t in #(
6351 cat >>confdefs.h
<<_ACEOF
6352 #define int16_t $ac_cv_c_int16_t
6357 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6358 case $ac_cv_c_int32_t in #(
6362 cat >>confdefs.h
<<_ACEOF
6363 #define int32_t $ac_cv_c_int32_t
6368 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6369 case $ac_cv_c_int64_t in #(
6373 cat >>confdefs.h
<<_ACEOF
6374 #define int64_t $ac_cv_c_int64_t
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6381 $as_echo_n "checking for unsigned long long int... " >&6; }
6382 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6383 $as_echo_n "(cached) " >&6
6385 ac_cv_type_unsigned_long_long_int
=yes
6386 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6390 /* For now, do not test the preprocessor; as of 2007 there are too many
6391 implementations with broken preprocessors. Perhaps this can
6392 be revisited in 2012. In the meantime, code should not expect
6393 #if to work with literals wider than 32 bits. */
6394 /* Test literals. */
6395 long long int ll = 9223372036854775807ll;
6396 long long int nll = -9223372036854775807LL;
6397 unsigned long long int ull = 18446744073709551615ULL;
6398 /* Test constant expressions. */
6399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6407 /* Test availability of runtime routines for shift and division. */
6408 long long int llmax = 9223372036854775807ll;
6409 unsigned long long int ullmax = 18446744073709551615ull;
6410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6411 | (llmax / ll) | (llmax % ll)
6412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6413 | (ullmax / ull) | (ullmax % ull));
6419 if ac_fn_cxx_try_link
"$LINENO"; then :
6422 ac_cv_type_unsigned_long_long_int
=no
6424 rm -f core conftest.err conftest.
$ac_objext \
6425 conftest
$ac_exeext conftest.
$ac_ext
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6429 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6430 if test $ac_cv_type_unsigned_long_long_int = yes; then
6432 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6439 $as_echo_n "checking for long long int... " >&6; }
6440 if ${ac_cv_type_long_long_int+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6443 ac_cv_type_long_long_int
=yes
6444 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6445 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6446 if test $ac_cv_type_long_long_int = yes; then
6447 if test "$cross_compiling" = yes; then :
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6455 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6456 # define LLONG_MAX (HALF - 1 + HALF)
6461 long long int n = 1;
6465 long long int m = n << i;
6468 if (LLONG_MAX / 2 < m)
6476 if ac_fn_cxx_try_run
"$LINENO"; then :
6479 ac_cv_type_long_long_int
=no
6481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6489 $as_echo "$ac_cv_type_long_long_int" >&6; }
6490 if test $ac_cv_type_long_long_int = yes; then
6492 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6498 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6499 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6501 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6504 test $ac_cv_type_long_long_int = yes \
6505 && ac_type
='long long int' \
6506 || ac_type
='long int'
6508 cat >>confdefs.h
<<_ACEOF
6509 #define intmax_t $ac_type
6516 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6517 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6519 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6522 for ac_type
in 'int' 'long int' 'long long int'; do
6523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 $ac_includes_default
6529 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6531 return test_array [0];
6537 if ac_fn_cxx_try_compile
"$LINENO"; then :
6539 cat >>confdefs.h
<<_ACEOF
6540 #define intptr_t $ac_type
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 test -z "$ac_type" && break
6551 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6552 case $ac_cv_c_uint8_t in #(
6556 $as_echo "#define _UINT8_T 1" >>confdefs.h
6559 cat >>confdefs.h
<<_ACEOF
6560 #define uint8_t $ac_cv_c_uint8_t
6565 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6566 case $ac_cv_c_uint16_t in #(
6571 cat >>confdefs.h
<<_ACEOF
6572 #define uint16_t $ac_cv_c_uint16_t
6577 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6578 case $ac_cv_c_uint32_t in #(
6582 $as_echo "#define _UINT32_T 1" >>confdefs.h
6585 cat >>confdefs.h
<<_ACEOF
6586 #define uint32_t $ac_cv_c_uint32_t
6591 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6592 case $ac_cv_c_uint64_t in #(
6596 $as_echo "#define _UINT64_T 1" >>confdefs.h
6599 cat >>confdefs.h
<<_ACEOF
6600 #define uint64_t $ac_cv_c_uint64_t
6607 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6608 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6610 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6613 test $ac_cv_type_unsigned_long_long_int = yes \
6614 && ac_type
='unsigned long long int' \
6615 || ac_type
='unsigned long int'
6617 cat >>confdefs.h
<<_ACEOF
6618 #define uintmax_t $ac_type
6625 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6626 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6628 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6631 for ac_type
in 'unsigned int' 'unsigned long int' \
6632 'unsigned long long int'; do
6633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 $ac_includes_default
6639 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6641 return test_array [0];
6647 if ac_fn_cxx_try_compile
"$LINENO"; then :
6649 cat >>confdefs.h
<<_ACEOF
6650 #define uintptr_t $ac_type
6655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 test -z "$ac_type" && break
6673 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6674 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6677 # check what underlying integer type int64_t uses
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6679 $as_echo_n "checking for int64_t underlying type... " >&6; }
6680 if ${ac_cv_int64_t_type+:} false
; then :
6681 $as_echo_n "(cached) " >&6
6684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6687 #ifdef HAVE_STDINT_H
6690 template <typename T> struct X { };
6692 struct X<long> { typedef long t; };
6702 if ac_fn_cxx_try_compile
"$LINENO"; then :
6703 ac_cv_int64_t_type
=long
6705 ac_cv_int64_t_type
="long long"
6707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6710 $as_echo "$ac_cv_int64_t_type" >&6; }
6711 if test "$ac_cv_int64_t_type" = "long"; then
6713 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6719 #ifdef HAVE_STDINT_H
6722 template <typename T> struct X { };
6724 struct X<long long> { typedef long long t; };
6734 if ac_fn_cxx_try_compile
"$LINENO"; then :
6737 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6743 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6744 if ${ac_cv_std_swap_in_utility+:} false
; then :
6745 $as_echo_n "(cached) " >&6
6748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6756 int a, b; std::swap(a,b);
6761 if ac_fn_cxx_try_compile
"$LINENO"; then :
6762 ac_cv_std_swap_in_utility
=yes
6764 ac_cv_std_swap_in_utility
=no
6766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6769 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6770 if test $ac_cv_std_swap_in_utility = yes; then
6772 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6776 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6777 # If the host compiler is affected by the bug, and we build with optimization
6778 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6779 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6780 # Since there is no reliable feature check for the presence of this bug,
6781 # we simply use a GCC version number check. (This should never trigger for
6782 # stages 2 or 3 of a native bootstrap.)
6784 if test "$GCC" = yes; then
6785 saved_CXXFLAGS
="$CXXFLAGS"
6787 # The following test compilation will succeed if and only if $CXX accepts
6788 # -fno-strict-aliasing *and* is older than GCC 4.3.
6789 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6791 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6795 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6796 #error compiler not affected by placement new aliasing bug
6800 if ac_fn_cxx_try_compile
"$LINENO"; then :
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6802 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6809 CXXFLAGS
="$saved_CXXFLAGS"
6815 # ---------------------
6816 # Warnings and checking
6817 # ---------------------
6819 # Check $CC warning features (if it's GCC).
6820 # We want to use -pedantic, but we don't want warnings about
6823 # * overlong strings
6824 # * C++11 narrowing conversions in { }
6825 # So, we only use -pedantic if we can disable those warnings.
6827 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6828 # Check whether --enable-build-format-warnings was given.
6829 if test "${enable_build_format_warnings+set}" = set; then :
6830 enableval
=$enable_build_format_warnings;
6832 enable_build_format_warnings
=yes
6835 if test $enable_build_format_warnings = no
; then :
6841 ac_cpp
='$CXXCPP $CPPFLAGS'
6842 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6847 save_CXXFLAGS
="$CXXFLAGS"
6848 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6849 # Do the check with the no- prefix removed since gcc silently
6850 # accepts any -Wno-* option on purpose
6851 case $real_option in
6852 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6853 *) option
=$real_option ;;
6855 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6858 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6859 if eval \
${$as_acx_Woption+:} false
; then :
6860 $as_echo_n "(cached) " >&6
6863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6874 if ac_fn_cxx_try_compile
"$LINENO"; then :
6875 eval "$as_acx_Woption=yes"
6877 eval "$as_acx_Woption=no"
6879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6882 eval ac_res
=\$
$as_acx_Woption
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884 $as_echo "$ac_res" >&6; }
6885 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6886 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6889 CXXFLAGS
="$save_CXXFLAGS"
6891 ac_cpp
='$CXXCPP $CPPFLAGS'
6892 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6899 ac_cpp
='$CPP $CPPFLAGS'
6900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6905 save_CFLAGS
="$CFLAGS"
6906 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6907 # Do the check with the no- prefix removed since gcc silently
6908 # accepts any -Wno-* option on purpose
6909 case $real_option in
6910 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6911 *) option
=$real_option ;;
6913 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6916 $as_echo_n "checking whether $CC supports $option... " >&6; }
6917 if eval \
${$as_acx_Woption+:} false
; then :
6918 $as_echo_n "(cached) " >&6
6921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6932 if ac_fn_c_try_compile
"$LINENO"; then :
6933 eval "$as_acx_Woption=yes"
6935 eval "$as_acx_Woption=no"
6937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 eval ac_res
=\$
$as_acx_Woption
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6942 $as_echo "$ac_res" >&6; }
6943 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6944 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6947 CFLAGS
="$save_CFLAGS"
6949 ac_cpp
='$CXXCPP $CPPFLAGS'
6950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6956 ac_cpp
='$CXXCPP $CPPFLAGS'
6957 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6962 save_CXXFLAGS
="$CXXFLAGS"
6963 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6964 # Do the check with the no- prefix removed since gcc silently
6965 # accepts any -Wno-* option on purpose
6966 case $real_option in
6967 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6968 *) option
=$real_option ;;
6970 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6973 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6974 if eval \
${$as_acx_Woption+:} false
; then :
6975 $as_echo_n "(cached) " >&6
6978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6989 if ac_fn_cxx_try_compile
"$LINENO"; then :
6990 eval "$as_acx_Woption=yes"
6992 eval "$as_acx_Woption=no"
6994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6997 eval ac_res
=\$
$as_acx_Woption
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999 $as_echo "$ac_res" >&6; }
7000 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7001 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7004 CXXFLAGS
="$save_CXXFLAGS"
7006 ac_cpp
='$CXXCPP $CPPFLAGS'
7007 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7013 ac_cpp
='$CPP $CPPFLAGS'
7014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7019 save_CFLAGS
="$CFLAGS"
7020 for real_option
in -Wold-style-definition -Wc++-compat; do
7021 # Do the check with the no- prefix removed since gcc silently
7022 # accepts any -Wno-* option on purpose
7023 case $real_option in
7024 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7025 *) option
=$real_option ;;
7027 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7030 $as_echo_n "checking whether $CC supports $option... " >&6; }
7031 if eval \
${$as_acx_Woption+:} false
; then :
7032 $as_echo_n "(cached) " >&6
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7046 if ac_fn_c_try_compile
"$LINENO"; then :
7047 eval "$as_acx_Woption=yes"
7049 eval "$as_acx_Woption=no"
7051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7054 eval ac_res
=\$
$as_acx_Woption
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7056 $as_echo "$ac_res" >&6; }
7057 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7058 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7061 CFLAGS
="$save_CFLAGS"
7063 ac_cpp
='$CXXCPP $CPPFLAGS'
7064 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7070 ac_cpp
='$CXXCPP $CPPFLAGS'
7071 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7075 # Do the check with the no- prefix removed from the warning options
7076 # since gcc silently accepts any -Wno-* option on purpose
7077 if test "$GXX" = yes; then :
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7079 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7080 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7081 $as_echo_n "(cached) " >&6
7083 save_CXXFLAGS
="$CXXFLAGS"
7084 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7096 if ac_fn_cxx_try_compile
"$LINENO"; then :
7097 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7099 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 CXXFLAGS
="$save_CXXFLAGS"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7105 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7106 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7107 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7112 ac_cpp
='$CXXCPP $CPPFLAGS'
7113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7119 ac_cpp
='$CXXCPP $CPPFLAGS'
7120 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7124 # Check whether --enable-werror-always was given.
7125 if test "${enable_werror_always+set}" = set; then :
7126 enableval
=$enable_werror_always;
7128 enable_werror_always
=no
7131 if test $enable_werror_always = yes; then :
7132 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7136 ac_cpp
='$CXXCPP $CPPFLAGS'
7137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7143 # The above macros do nothing if the compiler is not GCC. However, the
7144 # Makefile has more goo to add other flags, so these variables are used
7145 # to enable warnings only for GCC.
7148 if test "x$GCC" = "xyes"; then
7149 warn_cflags
='$(GCC_WARN_CFLAGS)'
7150 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7155 # Disable exceptions and RTTI if building with g++
7157 ac_cpp
='$CPP $CPPFLAGS'
7158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7163 save_CFLAGS
="$CFLAGS"
7164 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7165 # Do the check with the no- prefix removed since gcc silently
7166 # accepts any -Wno-* option on purpose
7167 case $real_option in
7168 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7169 *) option
=$real_option ;;
7171 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7174 $as_echo_n "checking whether $CC supports $option... " >&6; }
7175 if eval \
${$as_acx_Woption+:} false
; then :
7176 $as_echo_n "(cached) " >&6
7179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7190 if ac_fn_c_try_compile
"$LINENO"; then :
7191 eval "$as_acx_Woption=yes"
7193 eval "$as_acx_Woption=no"
7195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7198 eval ac_res
=\$
$as_acx_Woption
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7202 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7205 CFLAGS
="$save_CFLAGS"
7207 ac_cpp
='$CXXCPP $CPPFLAGS'
7208 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7214 # Enable expensive internal checks
7216 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7220 # Check whether --enable-checking was given.
7221 if test "${enable_checking+set}" = set; then :
7222 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7225 # Determine the default checks.
7226 if test x
$is_release = x
; then
7227 ac_checking_flags
=yes,extra
7229 ac_checking_flags
=release
7233 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7234 for check
in release
$ac_checking_flags
7237 # these set all the flags to specific states
7238 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7239 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7240 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7241 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7242 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7243 ac_types_checking
=1 ;;
7244 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7245 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7246 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7247 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7248 ac_tree_checking
= ; ac_valgrind_checking
= ;
7249 ac_types_checking
= ;;
7250 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7251 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7252 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7253 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7254 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7255 ac_types_checking
=1 ;;
7256 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7257 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7258 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7259 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7260 ac_tree_checking
= ; ac_valgrind_checking
= ;
7261 ac_types_checking
= ;;
7262 # these enable particular checks
7263 assert
) ac_assert_checking
=1 ;;
7264 df
) ac_df_checking
=1 ;;
7265 extra
) ac_extra_checking
=1 ;;
7266 fold) ac_fold_checking
=1 ;;
7267 gc
) ac_gc_checking
=1 ;;
7268 gcac
) ac_gc_always_collect
=1 ;;
7269 gimple
) ac_gimple_checking
=1 ;;
7270 misc
) ac_checking
=1 ;;
7271 rtl
) ac_rtl_checking
=1 ;;
7272 rtlflag
) ac_rtlflag_checking
=1 ;;
7273 runtime
) ac_runtime_checking
=1 ;;
7274 tree
) ac_tree_checking
=1 ;;
7275 types
) ac_types_checking
=1 ;;
7276 valgrind
) ac_valgrind_checking
=1 ;;
7277 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7283 if test x
$ac_checking != x
; then
7285 $as_echo "#define CHECKING_P 1" >>confdefs.h
7287 nocommon_flag
=-fno-common
7289 $as_echo "#define CHECKING_P 0" >>confdefs.h
7293 if test x
$ac_extra_checking != x
; then
7295 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7298 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7301 if test x
$ac_df_checking != x
; then
7303 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7306 if test x
$ac_assert_checking != x
; then
7308 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7311 if test x
$ac_gimple_checking != x
; then
7313 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7317 if test x
$ac_runtime_checking != x
; then
7319 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7322 if test x
$ac_tree_checking != x
; then
7324 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7328 if test x
$ac_types_checking != x
; then
7330 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7334 if test x
$ac_rtl_checking != x
; then
7336 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7339 if test x
$ac_rtlflag_checking != x
; then
7341 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7344 if test x
$ac_gc_checking != x
; then
7346 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7349 if test x
$ac_gc_always_collect != x
; then
7351 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7354 if test x
$ac_fold_checking != x
; then
7356 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7359 valgrind_path_defines
=
7362 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7363 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7371 # It is certainly possible that there's valgrind but no valgrind.h.
7372 # GCC relies on making annotations so we must have both.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7374 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <valgrind/memcheck.h>
7378 #ifndef VALGRIND_DISCARD
7379 #error VALGRIND_DISCARD not defined
7382 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7383 gcc_cv_header_valgrind_memcheck_h
=yes
7385 gcc_cv_header_valgrind_memcheck_h
=no
7387 rm -f conftest.err conftest.i conftest.
$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7389 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7391 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <memcheck.h>
7395 #ifndef VALGRIND_DISCARD
7396 #error VALGRIND_DISCARD not defined
7399 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7400 gcc_cv_header_memcheck_h
=yes
7402 gcc_cv_header_memcheck_h
=no
7404 rm -f conftest.err conftest.i conftest.
$ac_ext
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7406 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7407 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7409 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7412 if test $gcc_cv_header_memcheck_h = yes; then
7414 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7418 if test x
$ac_valgrind_checking != x
; then
7420 # Prepare PATH_SEPARATOR.
7421 # The user is always right.
7422 if test "${PATH_SEPARATOR+set}" != set; then
7423 echo "#! /bin/sh" >conf$$.sh
7424 echo "exit 0" >>conf$$.sh
7426 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7434 # Find out how to test for executable files. Don't use a zero-byte file,
7435 # as systems may use methods other than mode bits to determine executability.
7436 cat >conf$$.
file <<_ASEOF
7440 chmod +x conf$$.
file
7441 if test -x conf$$.
file >/dev
/null
2>&1; then
7442 ac_executable_p
="test -x"
7444 ac_executable_p
="test -f"
7448 # Extract the first word of "valgrind", so it can be a program name with args.
7449 set dummy valgrind
; ac_word
=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_path_valgrind_path+:} false
; then :
7453 $as_echo_n "(cached) " >&6
7455 case "$valgrind_path" in
7457 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7460 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7461 for ac_dir
in $PATH; do
7463 test -z "$ac_dir" && ac_dir
=.
7464 for ac_exec_ext
in '' $ac_executable_extensions; do
7465 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7466 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7467 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7477 valgrind_path
="$ac_cv_path_valgrind_path"
7478 if test -n "$valgrind_path"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7480 $as_echo "$valgrind_path" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7486 if test "x$valgrind_path" = "x" \
7487 ||
(test $have_valgrind_h = no \
7488 && test $gcc_cv_header_memcheck_h = no \
7489 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7490 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7492 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7493 valgrind_command
="$valgrind_path -q"
7495 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7501 # Enable code coverage collection
7502 # Check whether --enable-coverage was given.
7503 if test "${enable_coverage+set}" = set; then :
7504 enableval
=$enable_coverage; case "${enableval}" in
7506 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7509 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7512 # a.k.a. --disable-coverage
7516 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7525 # Check whether --enable-gather-detailed-mem-stats was given.
7526 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7527 enableval
=$enable_gather_detailed_mem_stats;
7529 enable_gather_detailed_mem_stats
=no
7532 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7534 cat >>confdefs.h
<<_ACEOF
7535 #define GATHER_STATISTICS $gather_stats
7539 # Check whether --enable-valgrind-annotations was given.
7540 if test "${enable_valgrind_annotations+set}" = set; then :
7541 enableval
=$enable_valgrind_annotations;
7543 enable_valgrind_annotations
=no
7546 if test x
$enable_valgrind_annotations != xno \
7547 ||
test x
$ac_valgrind_checking != x
; then
7548 if (test $have_valgrind_h = no \
7549 && test $gcc_cv_header_memcheck_h = no \
7550 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7551 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7554 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7558 # -------------------------------
7559 # Miscenalleous configure options
7560 # -------------------------------
7564 # Check whether --with-stabs was given.
7565 if test "${with_stabs+set}" = set; then :
7566 withval
=$with_stabs; stabs
="$with_stabs"
7572 # Determine whether or not multilibs are enabled.
7573 # Check whether --enable-multilib was given.
7574 if test "${enable_multilib+set}" = set; then :
7575 enableval
=$enable_multilib;
7582 # Determine whether or not multiarch is enabled.
7583 # Check whether --enable-multiarch was given.
7584 if test "${enable_multiarch+set}" = set; then :
7585 enableval
=$enable_multiarch; case "${enableval}" in
7586 yes|no|auto
) enable_multiarch
=$enableval;;
7587 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7590 enable_multiarch
=auto
7593 if test x
${enable_multiarch} = xauto
; then
7594 if test x
${with_native_system_header_dir} != x
; then
7595 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7598 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7599 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7604 $as_echo_n "checking for multiarch configuration... " >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7607 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7609 # needed for setting the multiarch name for soft-float/hard-float ABIs
7613 # default stack clash protection guard size as power of twos in bytes.
7614 # Please keep these in sync with params.def.
7618 # Keep the default value when the option is not used to 0, this allows us to
7619 # distinguish between the cases where the user specifially set a value via
7620 # configure and when the normal default value is used.
7622 # Check whether --with-stack-clash-protection-guard-size was given.
7623 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7624 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7626 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7629 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7630 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7631 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7632 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
7636 cat >>confdefs.h
<<_ACEOF
7637 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7641 # Enable __cxa_atexit for C++.
7642 # Check whether --enable-__cxa_atexit was given.
7643 if test "${enable___cxa_atexit+set}" = set; then :
7644 enableval
=$enable___cxa_atexit;
7648 # Enable C extension for decimal float if target supports it.
7650 # Check whether --enable-decimal-float was given.
7651 if test "${enable_decimal_float+set}" = set; then :
7652 enableval
=$enable_decimal_float;
7653 case $enable_decimal_float in
7654 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7655 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7656 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7662 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7663 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7664 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7665 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7666 enable_decimal_float
=yes
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7670 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7671 enable_decimal_float
=no
7678 # x86's use BID format instead of DPD
7679 case x
$enable_decimal_float in
7682 i?
86*-*-* | x86_64
*-*-*)
7683 enable_decimal_float
=bid
7686 enable_decimal_float
=dpd
7689 default_decimal_float
=$enable_decimal_float
7692 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7693 # dependency on libdecnumber.
7694 default_decimal_float
=dpd
7701 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7703 cat >>confdefs.h
<<_ACEOF
7704 #define ENABLE_DECIMAL_FLOAT $dfp
7708 # Use default_decimal_float for dependency.
7709 enable_decimal_float
=$default_decimal_float
7711 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7713 cat >>confdefs.h
<<_ACEOF
7714 #define ENABLE_DECIMAL_BID_FORMAT $bid
7718 # Enable C extension for fixed-point arithmetic.
7719 # Check whether --enable-fixed-point was given.
7720 if test "${enable_fixed_point+set}" = set; then :
7721 enableval
=$enable_fixed_point;
7726 enable_fixed_point
=yes
7730 enable_fixed_point
=yes
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7734 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7735 enable_fixed_point
=no
7743 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7745 cat >>confdefs.h
<<_ACEOF
7746 #define ENABLE_FIXED_POINT $fixedpoint
7751 # Pass with no value to take the default
7752 # Pass with a value to specify a thread package
7753 # Check whether --enable-threads was given.
7754 if test "${enable_threads+set}" = set; then :
7755 enableval
=$enable_threads;
7761 # Check whether --enable-tls was given.
7762 if test "${enable_tls+set}" = set; then :
7763 enableval
=$enable_tls;
7766 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7767 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7775 # Check whether --enable-vtable-verify was given.
7776 if test "${enable_vtable_verify+set}" = set; then :
7777 enableval
=$enable_vtable_verify;
7779 enable_vtable_verify
=no
7782 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7784 cat >>confdefs.h
<<_ACEOF
7785 #define ENABLE_VTABLE_VERIFY $vtable_verify
7789 # Check whether --enable-analyzer was given.
7790 if test "${enable_analyzer+set}" = set; then :
7791 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7801 cat >>confdefs.h
<<_ACEOF
7802 #define ENABLE_ANALYZER $analyzer
7806 # Check whether --enable-objc-gc was given.
7807 if test "${enable_objc_gc+set}" = set; then :
7808 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7819 # Check whether --with-dwarf2 was given.
7820 if test "${with_dwarf2+set}" = set; then :
7821 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7827 # Check whether --enable-shared was given.
7828 if test "${enable_shared+set}" = set; then :
7829 enableval
=$enable_shared;
7830 case $enable_shared in
7834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7835 for pkg
in $enableval; do
7836 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7850 # Check whether --enable-gcov was given.
7851 if test "${enable_gcov+set}" = set; then :
7852 enableval
=$enable_gcov;
7860 # Check whether --with-specs was given.
7861 if test "${with_specs+set}" = set; then :
7862 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7872 # Check whether --with-pkgversion was given.
7873 if test "${with_pkgversion+set}" = set; then :
7874 withval
=$with_pkgversion; case "$withval" in
7875 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7877 *) PKGVERSION
="($withval) " ;;
7888 # Check whether --with-bugurl was given.
7889 if test "${with_bugurl+set}" = set; then :
7890 withval
=$with_bugurl; case "$withval" in
7891 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7894 *) BUGURL
="$withval"
7898 BUGURL
="https://gcc.gnu.org/bugs/"
7908 REPORT_BUGS_TO
="<$BUGURL>"
7909 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7916 # Allow overriding the default URL for documentation
7918 # Check whether --with-documentation-root-url was given.
7919 if test "${with_documentation_root_url+set}" = set; then :
7920 withval
=$with_documentation_root_url; case "$withval" in
7921 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7922 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7923 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
7924 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
7927 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
7932 cat >>confdefs.h
<<_ACEOF
7933 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7937 # Allow overriding the default URL for GCC changes
7939 # Check whether --with-changes-root-url was given.
7940 if test "${with_changes_root_url+set}" = set; then :
7941 withval
=$with_changes_root_url; case "$withval" in
7942 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7943 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7944 */) CHANGES_ROOT_URL
="$withval" ;;
7945 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
7948 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
7953 cat >>confdefs.h
<<_ACEOF
7954 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7958 # Sanity check enable_languages in case someone does not run the toplevel
7959 # configure # script.
7960 # Check whether --enable-languages was given.
7961 if test "${enable_languages+set}" = set; then :
7962 enableval
=$enable_languages; case ,${enable_languages}, in
7964 # go safe -- we cannot be much sure without the toplevel
7966 # analysis of which target libs are present and usable
7970 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7975 enable_languages
=c
,${enable_languages}
7983 # If top-level libada has been disabled, then wire in install-gnatlib
7984 # invocation with `make install', so that one can build and install
7985 # the library manually with `make -C gcc all gnatlib gnattools install'.
7986 if test x
"$enable_libada" = xno
; then
7987 gnat_install_lib
=gnat-install-lib
7993 if test x
"$enable_as_accelerator_for" != x
; then
7995 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7997 enable_as_accelerator
=yes
8000 # In this case we expect offload compiler to be built as native, so we
8001 # need to rename the driver to avoid clashes with host's drivers.
8002 program_transform_name
="s&^&${target}-&" ;;
8004 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8005 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8006 accel_dir_suffix
=/accel
/${target_noncanonical}
8007 real_target_noncanonical
=${enable_as_accelerator_for}
8013 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8014 tgt
=`echo $tgt | sed 's/=.*//'`
8018 *-intelmic-* |
*-intelmicemul-*)
8019 omp_device_property
=omp-device-properties-i386
8020 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8023 omp_device_property
=omp-device-properties-gcn
8024 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8027 omp_device_property
=omp-device-properties-nvptx
8028 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8031 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8034 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8035 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8037 if test x
"$offload_targets" = x
; then
8038 offload_targets
=$tgt
8040 offload_targets
="$offload_targets,$tgt"
8047 cat >>confdefs.h
<<_ACEOF
8048 #define OFFLOAD_TARGETS "$offload_targets"
8051 if test x
"$enable_offloading" != x
; then
8053 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8057 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8061 if test "x$enable_offload_defaulted" = xyes
; then
8063 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8068 # Check whether --with-multilib-list was given.
8069 if test "${with_multilib_list+set}" = set; then :
8070 withval
=$with_multilib_list; :
8072 with_multilib_list
=default
8077 # Check whether --with-multilib-generator was given.
8078 if test "${with_multilib_generator+set}" = set; then :
8079 withval
=$with_multilib_generator; :
8081 with_multilib_generator
=default
8085 # -------------------------
8086 # Checks for other programs
8087 # -------------------------
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8092 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8093 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8094 $as_echo_n "(cached) " >&6
8096 cat >conftest.
make <<\_ACEOF
8099 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8104 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8106 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8110 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 SET_MAKE
="MAKE=${MAKE-make}"
8121 # Find some useful tools
8122 for ac_prog
in gawk mawk nawk
awk
8124 # Extract the first word of "$ac_prog", so it can be a program name with args.
8125 set dummy
$ac_prog; ac_word
=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_AWK+:} false
; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$AWK"; then
8132 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir
=.
8139 for ac_exec_ext
in '' $ac_executable_extensions; do
8140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_AWK
="$ac_prog"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 if test -n "$AWK"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8154 $as_echo "$AWK" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8161 test -n "$AWK" && break
8164 # We need awk to create options.c and options.h.
8165 # Bail out if it's missing.
8167 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8171 $as_echo_n "checking whether ln -s works... " >&6; }
8172 if ${gcc_cv_prog_LN_S+:} false
; then :
8173 $as_echo_n "(cached) " >&6
8175 rm -f conftestdata_t
8176 echo >conftestdata_f
8177 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8179 gcc_cv_prog_LN_S
="ln -s"
8181 if ln conftestdata_f conftestdata_t
2>/dev
/null
8185 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8187 gcc_cv_prog_LN_S
="cp -p"
8193 rm -f conftestdata_f conftestdata_t
8196 LN_S
="$gcc_cv_prog_LN_S"
8197 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8199 $as_echo "yes" >&6; }
8201 if test "$gcc_cv_prog_LN_S" = "ln"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8203 $as_echo "no, using ln" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8206 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8211 $as_echo_n "checking whether ln works... " >&6; }
8212 if ${acx_cv_prog_LN+:} false
; then :
8213 $as_echo_n "(cached) " >&6
8215 rm -f conftestdata_t
8216 echo >conftestdata_f
8217 if ln conftestdata_f conftestdata_t
2>/dev
/null
8223 rm -f conftestdata_f conftestdata_t
8226 if test $acx_cv_prog_LN = no
; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8229 $as_echo "no, using $LN" >&6; }
8231 LN
="$acx_cv_prog_LN"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_RANLIB+:} false
; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$RANLIB"; then
8245 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir
=.
8252 for ac_exec_ext
in '' $ac_executable_extensions; do
8253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 RANLIB
=$ac_cv_prog_RANLIB
8265 if test -n "$RANLIB"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267 $as_echo "$RANLIB" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8275 if test -z "$ac_cv_prog_RANLIB"; then
8276 ac_ct_RANLIB
=$RANLIB
8277 # Extract the first word of "ranlib", so it can be a program name with args.
8278 set dummy ranlib
; ac_word
=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$ac_ct_RANLIB"; then
8285 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir
=.
8292 for ac_exec_ext
in '' $ac_executable_extensions; do
8293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8305 if test -n "$ac_ct_RANLIB"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307 $as_echo "$ac_ct_RANLIB" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 if test "x$ac_ct_RANLIB" = x
; then
8316 case $cross_compiling:$ac_tool_warned in
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned
=yes ;;
8322 RANLIB
=$ac_ct_RANLIB
8325 RANLIB
="$ac_cv_prog_RANLIB"
8331 # Find a good install program. We prefer a C program (faster),
8332 # so one script is as good as another. But avoid the broken or
8333 # incompatible versions:
8334 # SysV /etc/install, /usr/sbin/install
8335 # SunOS /usr/etc/install
8336 # IRIX /sbin/install
8338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8340 # ./install, which can be erroneously created by make from ./install.sh.
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8342 $as_echo_n "checking for a BSD compatible install... " >&6; }
8343 if test -z "$INSTALL"; then
8344 if ${ac_cv_path_install+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8348 for ac_dir
in $PATH; do
8349 # Account for people who put trailing slashes in PATH elements.
8351 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8353 # OSF1 and SCO ODT 3.0 have their own names for install.
8354 for ac_prog
in ginstall scoinst
install; do
8355 if test -f $ac_dir/$ac_prog; then
8356 if test $ac_prog = install &&
8357 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8358 # AIX install. It has an incompatible calling convention.
8359 # OSF/1 installbsd also uses dspmsg, but is usable.
8362 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8373 if test "${ac_cv_path_install+set}" = set; then
8374 INSTALL
="$ac_cv_path_install"
8376 # As a last resort, use the slow shell script. We don't cache a
8377 # path for INSTALL within a source directory, because that will
8378 # break other packages using the cache if that directory is
8379 # removed, or if the path is relative.
8380 INSTALL
="$ac_install_sh"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8384 $as_echo "$INSTALL" >&6; }
8386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8387 # It thinks the first close brace ends the variable substitution.
8388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8390 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8393 # See if cmp has --ignore-initial.
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8395 $as_echo_n "checking for cmp's capabilities... " >&6; }
8396 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8397 $as_echo_n "(cached) " >&6
8401 gcc_cv_prog_cmp_skip
=slowcompare
8402 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8403 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8406 gcc_cv_prog_cmp_skip
=gnucompare
8409 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8410 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8411 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8414 gcc_cv_prog_cmp_skip
=fastcompare
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8422 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8423 make_compare_target
=$gcc_cv_prog_cmp_skip
8427 # See if we have the mktemp command.
8428 # Extract the first word of "mktemp", so it can be a program name with args.
8429 set dummy mktemp
; ac_word
=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8433 $as_echo_n "(cached) " >&6
8435 if test -n "$have_mktemp_command"; then
8436 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir
=.
8443 for ac_exec_ext
in '' $ac_executable_extensions; do
8444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_have_mktemp_command
="yes"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8456 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8457 if test -n "$have_mktemp_command"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8459 $as_echo "$have_mktemp_command" >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8467 # See if makeinfo has been installed and is modern enough
8468 # that we can use it.
8470 # Extract the first word of "makeinfo", so it can be a program name with args.
8471 set dummy makeinfo
; ac_word
=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8475 $as_echo_n "(cached) " >&6
8477 if test -n "$MAKEINFO"; then
8478 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir
=.
8485 for ac_exec_ext
in '' $ac_executable_extensions; do
8486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_MAKEINFO
="makeinfo"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 MAKEINFO
=$ac_cv_prog_MAKEINFO
8498 if test -n "$MAKEINFO"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8500 $as_echo "$MAKEINFO" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8507 if test -n "$MAKEINFO"; then
8508 # Found it, now check the version.
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8510 $as_echo_n "checking for modern makeinfo... " >&6; }
8511 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8514 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8515 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8517 case $ac_prog_version in
8518 '') gcc_cv_prog_makeinfo_modern
=no
;;
8519 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8520 *) gcc_cv_prog_makeinfo_modern
=no
;;
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8525 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8527 gcc_cv_prog_makeinfo_modern
=no
8529 if test $gcc_cv_prog_makeinfo_modern = no
; then
8530 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8533 if test $gcc_cv_prog_makeinfo_modern = no
; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8535 *** Makeinfo is missing or too old.
8536 *** Info documentation will not be built." >&5
8537 $as_echo "$as_me: WARNING:
8538 *** Makeinfo is missing or too old.
8539 *** Info documentation will not be built." >&2;}
8546 # Is pod2man recent enough to regenerate manpages?
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8548 $as_echo_n "checking for recent Pod::Man... " >&6; }
8549 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8551 $as_echo "yes" >&6; }
8552 GENERATED_MANPAGES
=generated-manpages
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8560 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8565 # Extract the first word of "$ac_prog", so it can be a program name with args.
8566 set dummy
$ac_prog; ac_word
=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_prog_FLEX+:} false
; then :
8570 $as_echo_n "(cached) " >&6
8572 if test -n "$FLEX"; then
8573 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8579 test -z "$as_dir" && as_dir
=.
8580 for ac_exec_ext
in '' $ac_executable_extensions; do
8581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_FLEX
="$ac_prog"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 FLEX
=$ac_cv_prog_FLEX
8593 if test -n "$FLEX"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8595 $as_echo "$FLEX" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8602 test -n "$FLEX" && break
8604 test -n "$FLEX" || FLEX
="$MISSING flex"
8608 for ac_prog
in bison
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy
$ac_prog; ac_word
=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_BISON+:} false
; then :
8615 $as_echo_n "(cached) " >&6
8617 if test -n "$BISON"; then
8618 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir
=.
8625 for ac_exec_ext
in '' $ac_executable_extensions; do
8626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_BISON
="$ac_prog"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 BISON
=$ac_cv_prog_BISON
8638 if test -n "$BISON"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8640 $as_echo "$BISON" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8647 test -n "$BISON" && break
8649 test -n "$BISON" || BISON
="$MISSING bison"
8652 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8653 # check for build == host before using them.
8656 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8657 && test -d ..
/binutils
; then
8658 NM
='${objdir}/../binutils/nm-new'
8660 # Extract the first word of "nm", so it can be a program name with args.
8661 set dummy nm
; ac_word
=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_NM+:} false
; then :
8665 $as_echo_n "(cached) " >&6
8667 if test -n "$NM"; then
8668 ac_cv_prog_NM
="$NM" # Let the user override the test.
8670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8674 test -z "$as_dir" && as_dir
=.
8675 for ac_exec_ext
in '' $ac_executable_extensions; do
8676 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8689 if test -n "$NM"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691 $as_echo "$NM" >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8701 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8702 && test -d ..
/binutils
; then
8703 AR
='${objdir}/../binutils/ar'
8705 # Extract the first word of "ar", so it can be a program name with args.
8706 set dummy
ar; ac_word
=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_AR+:} false
; then :
8710 $as_echo_n "(cached) " >&6
8712 if test -n "$AR"; then
8713 ac_cv_prog_AR
="$AR" # Let the user override the test.
8715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8719 test -z "$as_dir" && as_dir
=.
8720 for ac_exec_ext
in '' $ac_executable_extensions; do
8721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8734 if test -n "$AR"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8736 $as_echo "$AR" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8745 # The jit documentation looks better if built with sphinx, but can be
8746 # built with texinfo if sphinx is not available.
8747 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8748 # Extract the first word of "sphinx-build", so it can be a program name with args.
8749 set dummy sphinx-build
; ac_word
=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$doc_build_sys"; then
8756 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir
=.
8763 for ac_exec_ext
in '' $ac_executable_extensions; do
8764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_doc_build_sys
="sphinx"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8776 doc_build_sys
=$ac_cv_prog_doc_build_sys
8777 if test -n "$doc_build_sys"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8779 $as_echo "$doc_build_sys" >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8787 # --------------------
8788 # Checks for C headers
8789 # --------------------
8791 # Need to reject headers which give warnings, so that the -Werror bootstrap
8792 # works later. *sigh* This needs to come before all header checks.
8794 ac_c_preproc_warn_flag
=yes
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8797 $as_echo_n "checking for ANSI C header files... " >&6; }
8798 if ${ac_cv_header_stdc+:} false
; then :
8799 $as_echo_n "(cached) " >&6
8801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8816 if ac_fn_cxx_try_compile
"$LINENO"; then :
8817 ac_cv_header_stdc
=yes
8819 ac_cv_header_stdc
=no
8821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8823 if test $ac_cv_header_stdc = yes; then
8824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8831 $EGREP "memchr" >/dev
/null
2>&1; then :
8834 ac_cv_header_stdc
=no
8840 if test $ac_cv_header_stdc = yes; then
8841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8848 $EGREP "free" >/dev
/null
2>&1; then :
8851 ac_cv_header_stdc
=no
8857 if test $ac_cv_header_stdc = yes; then
8858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8859 if test "$cross_compiling" = yes; then :
8862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8866 #if ((' ' & 0x0FF) == 0x020)
8867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8870 # define ISLOWER(c) \
8871 (('a' <= (c) && (c) <= 'i') \
8872 || ('j' <= (c) && (c) <= 'r') \
8873 || ('s' <= (c) && (c) <= 'z'))
8874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8882 for (i = 0; i < 256; i++)
8883 if (XOR (islower (i), ISLOWER (i))
8884 || toupper (i) != TOUPPER (i))
8889 if ac_fn_cxx_try_run
"$LINENO"; then :
8892 ac_cv_header_stdc
=no
8894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8901 $as_echo "$ac_cv_header_stdc" >&6; }
8902 if test $ac_cv_header_stdc = yes; then
8904 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8909 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8910 if ${ac_cv_header_time+:} false
; then :
8911 $as_echo_n "(cached) " >&6
8913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <sys/types.h>
8916 #include <sys/time.h>
8922 if ((struct tm *) 0)
8928 if ac_fn_cxx_try_compile
"$LINENO"; then :
8929 ac_cv_header_time
=yes
8931 ac_cv_header_time
=no
8933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8936 $as_echo "$ac_cv_header_time" >&6; }
8937 if test $ac_cv_header_time = yes; then
8939 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8944 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8945 if ${gcc_cv_header_string+:} false
; then :
8946 $as_echo_n "(cached) " >&6
8948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8951 #include <strings.h>
8960 if ac_fn_cxx_try_compile
"$LINENO"; then :
8961 gcc_cv_header_string
=yes
8963 gcc_cv_header_string
=no
8965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8968 $as_echo "$gcc_cv_header_string" >&6; }
8969 if test $gcc_cv_header_string = yes; then
8971 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8976 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8977 if ${ac_cv_header_sys_wait_h+:} false
; then :
8978 $as_echo_n "(cached) " >&6
8980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/wait.h>
8985 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8988 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8996 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9001 if ac_fn_cxx_try_compile
"$LINENO"; then :
9002 ac_cv_header_sys_wait_h
=yes
9004 ac_cv_header_sys_wait_h
=no
9006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9009 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9010 if test $ac_cv_header_sys_wait_h = yes; then
9012 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9017 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9018 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9019 $as_echo_n "(cached) " >&6
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <sys/types.h>
9024 #include <termios.h>
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "yes" >/dev
/null
2>&1; then :
9032 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9034 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9040 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9042 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9044 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9045 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9046 $as_echo_n "(cached) " >&6
9048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #include <sys/types.h>
9051 #include <sys/ioctl.h>
9057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9058 $EGREP "yes" >/dev
/null
2>&1; then :
9059 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9061 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9067 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9069 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9071 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9076 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9077 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9078 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9079 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9081 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9083 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9084 cat >>confdefs.h
<<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092 # Check for thread headers.
9093 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9094 if test "x$ac_cv_header_thread_h" = xyes
; then :
9100 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9101 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9108 # These tests can't be done till we know if we have limits.h.
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9110 $as_echo_n "checking for CHAR_BIT... " >&6; }
9111 if ${gcc_cv_decl_char_bit+:} false
; then :
9112 $as_echo_n "(cached) " >&6
9114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 #ifdef HAVE_LIMITS_H
9123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9124 $EGREP "found" >/dev
/null
2>&1; then :
9125 gcc_cv_decl_char_bit
=yes
9127 gcc_cv_decl_char_bit
=no
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9134 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9135 if test $gcc_cv_decl_char_bit = no
; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9137 $as_echo_n "checking number of bits in a byte... " >&6; }
9138 if ${gcc_cv_c_nbby+:} false
; then :
9139 $as_echo_n "(cached) " >&6
9143 while test $i -lt 65; do
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9151 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9152 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9158 if ac_fn_cxx_try_compile
"$LINENO"; then :
9159 gcc_cv_c_nbby
=$i; break
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9164 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9168 $as_echo "$gcc_cv_c_nbby" >&6; }
9169 if test $gcc_cv_c_nbby = failed
; then
9170 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9173 cat >>confdefs.h
<<_ACEOF
9174 #define CHAR_BIT $gcc_cv_c_nbby
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9180 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9181 if ${ac_cv_c_bigendian+:} false
; then :
9182 $as_echo_n "(cached) " >&6
9184 ac_cv_c_bigendian
=unknown
9185 # See if we're dealing with a universal compiler.
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifndef __APPLE_CC__
9189 not a universal capable compiler
9194 if ac_fn_cxx_try_compile
"$LINENO"; then :
9196 # Check for potential -arch flags. It is not universal unless
9197 # there are at least two -arch flags with different values.
9200 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9201 if test -n "$ac_prev"; then
9203 i?
86 | x86_64 | ppc | ppc64
)
9204 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9207 ac_cv_c_bigendian
=universal
9213 elif test "x$ac_word" = "x-arch"; then
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9219 if test $ac_cv_c_bigendian = unknown
; then
9220 # See if sys/param.h defines the BYTE_ORDER macro.
9221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 #include <sys/types.h>
9224 #include <sys/param.h>
9229 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9230 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9239 if ac_fn_cxx_try_compile
"$LINENO"; then :
9240 # It does; now see whether it defined to BIG_ENDIAN or not.
9241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 #include <sys/types.h>
9244 #include <sys/param.h>
9249 #if BYTE_ORDER != BIG_ENDIAN
9257 if ac_fn_cxx_try_compile
"$LINENO"; then :
9258 ac_cv_c_bigendian
=yes
9260 ac_cv_c_bigendian
=no
9262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9266 if test $ac_cv_c_bigendian = unknown
; then
9267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9275 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9283 if ac_fn_cxx_try_compile
"$LINENO"; then :
9284 # It does; now see whether it defined to _BIG_ENDIAN or not.
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9300 if ac_fn_cxx_try_compile
"$LINENO"; then :
9301 ac_cv_c_bigendian
=yes
9303 ac_cv_c_bigendian
=no
9305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9309 if test $ac_cv_c_bigendian = unknown
; then
9310 # Compile a test program.
9311 if test "$cross_compiling" = yes; then :
9312 # Try to guess by grepping values from an object file.
9313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 short int ascii_mm[] =
9316 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9317 short int ascii_ii[] =
9318 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9319 int use_ascii (int i) {
9320 return ascii_mm[i] + ascii_ii[i];
9322 short int ebcdic_ii[] =
9323 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9324 short int ebcdic_mm[] =
9325 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9326 int use_ebcdic (int i) {
9327 return ebcdic_mm[i] + ebcdic_ii[i];
9334 return use_ascii (foo) == use_ebcdic (foo);
9339 if ac_fn_cxx_try_compile
"$LINENO"; then :
9340 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9341 ac_cv_c_bigendian
=yes
9343 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9344 if test "$ac_cv_c_bigendian" = unknown
; then
9345 ac_cv_c_bigendian
=no
9347 # finding both strings is unlikely to happen, but who knows?
9348 ac_cv_c_bigendian
=unknown
9352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 $ac_includes_default
9361 /* Are we little or big endian? From Harbison&Steele. */
9365 char c[sizeof (long int)];
9368 return u.c[sizeof (long int) - 1] == 1;
9374 if ac_fn_cxx_try_run
"$LINENO"; then :
9375 ac_cv_c_bigendian
=no
9377 ac_cv_c_bigendian
=yes
9379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9386 $as_echo "$ac_cv_c_bigendian" >&6; }
9387 case $ac_cv_c_bigendian in #(
9389 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9395 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9399 as_fn_error $?
"unknown endianness
9400 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9404 # ----------------------
9405 # Checks for C++ headers
9406 # ----------------------
9409 ac_cpp
='$CXXCPP $CPPFLAGS'
9410 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9411 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9412 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9414 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9415 if test -z "$CXXCPP"; then
9416 if ${ac_cv_prog_CXXCPP+:} false
; then :
9417 $as_echo_n "(cached) " >&6
9419 # Double quotes because CXXCPP needs to be expanded
9420 for CXXCPP
in "$CXX -E" "/lib/cpp"
9423 for ac_cxx_preproc_warn_flag
in '' yes
9425 # Use a header file that comes with gcc, so configuring glibc
9426 # with a fresh cross-compiler works.
9427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9428 # <limits.h> exists even on freestanding compilers.
9429 # On the NeXT, cc -E runs the code through the compiler's parser,
9430 # not just through cpp. "Syntax error" is here to catch this case.
9431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 # include <limits.h>
9436 # include <assert.h>
9440 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9443 # Broken: fails on valid input.
9446 rm -f conftest.err conftest.i conftest.
$ac_ext
9448 # OK, works on sane cases. Now check whether nonexistent headers
9449 # can be detected and how.
9450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <ac_nonexistent.h>
9454 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9455 # Broken: success on invalid input.
9458 # Passes both tests.
9462 rm -f conftest.err conftest.i conftest.
$ac_ext
9465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9466 rm -f conftest.i conftest.err conftest.
$ac_ext
9467 if $ac_preproc_ok; then :
9472 ac_cv_prog_CXXCPP
=$CXXCPP
9475 CXXCPP
=$ac_cv_prog_CXXCPP
9477 ac_cv_prog_CXXCPP
=$CXXCPP
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9480 $as_echo "$CXXCPP" >&6; }
9482 for ac_cxx_preproc_warn_flag
in '' yes
9484 # Use a header file that comes with gcc, so configuring glibc
9485 # with a fresh cross-compiler works.
9486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 # <limits.h> exists even on freestanding compilers.
9488 # On the NeXT, cc -E runs the code through the compiler's parser,
9489 # not just through cpp. "Syntax error" is here to catch this case.
9490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9493 # include <limits.h>
9495 # include <assert.h>
9499 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9502 # Broken: fails on valid input.
9505 rm -f conftest.err conftest.i conftest.
$ac_ext
9507 # OK, works on sane cases. Now check whether nonexistent headers
9508 # can be detected and how.
9509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <ac_nonexistent.h>
9513 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9514 # Broken: success on invalid input.
9517 # Passes both tests.
9521 rm -f conftest.err conftest.i conftest.
$ac_ext
9524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9525 rm -f conftest.i conftest.err conftest.
$ac_ext
9526 if $ac_preproc_ok; then :
9529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9532 See \`config.log' for more details" >&5
9533 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9534 See \`config.log' for more details" >&2;}; }
9538 ac_cpp
='$CXXCPP $CPPFLAGS'
9539 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9544 for ac_header
in unordered_map
9546 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9547 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9548 cat >>confdefs.h
<<_ACEOF
9549 #define HAVE_UNORDERED_MAP 1
9555 for ac_header
in tr1/unordered_map
9557 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9558 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9559 cat >>confdefs.h
<<_ACEOF
9560 #define HAVE_TR1_UNORDERED_MAP 1
9566 for ac_header
in ext
/hash_map
9568 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9569 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9570 cat >>confdefs.h
<<_ACEOF
9571 #define HAVE_EXT_HASH_MAP 1
9579 # Dependency checking.
9582 rm -rf .tst
2>/dev
/null
9583 mkdir .tst
2>/dev
/null
9584 if test -d .tst
; then
9589 rmdir .tst
2>/dev
/null
9591 DEPDIR
="${am__leading_dot}deps"
9593 ac_config_commands
="$ac_config_commands depdir"
9596 ac_config_commands
="$ac_config_commands gccdepdir"
9599 depcc
="$CXX" am_compiler_list
=
9601 am_depcomp
=$ac_aux_dir/depcomp
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9603 $as_echo_n "checking dependency style of $depcc... " >&6; }
9604 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9605 $as_echo_n "(cached) " >&6
9607 if test -f "$am_depcomp"; then
9608 # We make a subdir and do the tests there. Otherwise we can end up
9609 # making bogus files that we don't know about and never remove. For
9610 # instance it was reported that on HP-UX the gcc test will end up
9611 # making a dummy file named `D' -- because `-MD' means `put the output
9614 # Copy depcomp to subdir because otherwise we won't find it if we're
9615 # using a relative directory.
9616 cp "$am_depcomp" conftest.dir
9618 # We will build objects and dependencies in a subdirectory because
9619 # it helps to detect inapplicable dependency modes. For instance
9620 # both Tru64's cc and ICC support -MD to output dependencies as a
9621 # side effect of compilation, but ICC will put the dependencies in
9622 # the current directory while Tru64 will put them in the object
9626 am_cv_CXX_dependencies_compiler_type
=none
9627 if test "$am_compiler_list" = ""; then
9628 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9630 for depmode
in $am_compiler_list; do
9631 if test $depmode = none
; then break; fi
9633 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9634 # Setup a source with many dependencies, because some compilers
9635 # like to wrap large dependency lists on column 80 (with \), and
9636 # we should not choose a depcomp mode which is confused by this.
9638 # We need to recreate these files for each test, as the compiler may
9639 # overwrite some of them when testing with obscure command lines.
9640 # This happens at least with the AIX C compiler.
9642 for i
in 1 2 3 4 5 6; do
9643 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9645 # Solaris 8's {/usr,}/bin/sh.
9646 touch sub
/conftst
$i.h
9648 echo "include sub/conftest.Po" > confmf
9650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9651 # mode. It turns out that the SunPro C++ compiler does not properly
9652 # handle `-M -o', and we need to detect this.
9653 depcmd
="depmode=$depmode \
9654 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9656 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9657 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9658 if env
$depcmd > conftest.err
2>&1 &&
9659 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9660 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9661 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9662 # icc doesn't choke on unknown options, it will just issue warnings
9663 # or remarks (even with -Werror). So we grep stderr for any message
9664 # that says an option was ignored or not supported.
9665 # When given -MP, icc 7.0 and 7.1 complain thusly:
9666 # icc: Command line warning: ignoring option '-M'; no argument required
9667 # The diagnosis changed in icc 8.0:
9668 # icc: Command line remark: option '-MP' not supported
9669 if (grep 'ignoring option' conftest.err ||
9670 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9671 am_cv_CXX_dependencies_compiler_type
=$depmode
9672 $as_echo "$as_me:$LINENO: success" >&5
9676 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9677 sed -e 's/^/| /' < conftest.err
>&5
9683 am_cv_CXX_dependencies_compiler_type
=none
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9688 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9689 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9690 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9691 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9701 # These libraries may be used by collect2.
9702 # We may need a special search path to get them linked.
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9704 $as_echo_n "checking for collect2 libraries... " >&6; }
9705 if ${gcc_cv_collect2_libs+:} false
; then :
9706 $as_echo_n "(cached) " >&6
9709 for libs
in '' -lld -lmld \
9710 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9711 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9732 if ac_fn_cxx_try_link
"$LINENO"; then :
9733 gcc_cv_collect2_libs
="$libs"; break
9735 rm -f core conftest.err conftest.
$ac_objext \
9736 conftest
$ac_exeext conftest.
$ac_ext
9739 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9742 $as_echo "$gcc_cv_collect2_libs" >&6; }
9743 case $gcc_cv_collect2_libs in
9745 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9749 # When building Ada code on Alpha, we need exc_resume which is usually in
9750 # -lexc. So test for it.
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9754 $as_echo_n "checking for library containing exc_resume... " >&6; }
9755 if ${ac_cv_search_exc_resume+:} false
; then :
9756 $as_echo_n "(cached) " >&6
9758 ac_func_search_save_LIBS
=$LIBS
9759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9772 return exc_resume ();
9777 for ac_lib
in '' exc
; do
9778 if test -z "$ac_lib"; then
9779 ac_res
="none required"
9782 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9784 if ac_fn_cxx_try_link
"$LINENO"; then :
9785 ac_cv_search_exc_resume
=$ac_res
9787 rm -f core conftest.err conftest.
$ac_objext \
9789 if ${ac_cv_search_exc_resume+:} false
; then :
9793 if ${ac_cv_search_exc_resume+:} false
; then :
9796 ac_cv_search_exc_resume
=no
9799 LIBS
=$ac_func_search_save_LIBS
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9802 $as_echo "$ac_cv_search_exc_resume" >&6; }
9803 ac_res
=$ac_cv_search_exc_resume
9804 if test "$ac_res" != no
; then :
9805 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9813 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9817 $as_echo_n "checking for library containing kstat_open... " >&6; }
9818 if ${ac_cv_search_kstat_open+:} false
; then :
9819 $as_echo_n "(cached) " >&6
9821 ac_func_search_save_LIBS
=$LIBS
9822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9835 return kstat_open ();
9840 for ac_lib
in '' kstat
; do
9841 if test -z "$ac_lib"; then
9842 ac_res
="none required"
9845 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9847 if ac_fn_cxx_try_link
"$LINENO"; then :
9848 ac_cv_search_kstat_open
=$ac_res
9850 rm -f core conftest.err conftest.
$ac_objext \
9852 if ${ac_cv_search_kstat_open+:} false
; then :
9856 if ${ac_cv_search_kstat_open+:} false
; then :
9859 ac_cv_search_kstat_open
=no
9862 LIBS
=$ac_func_search_save_LIBS
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9865 $as_echo "$ac_cv_search_kstat_open" >&6; }
9866 ac_res
=$ac_cv_search_kstat_open
9867 if test "$ac_res" != no
; then :
9868 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9872 EXTRA_GCC_LIBS
="$LIBS"
9876 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9877 # C++ needs those for libcody.
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9882 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9883 if ${ac_cv_search_gethostbyname+:} false
; then :
9884 $as_echo_n "(cached) " >&6
9886 ac_func_search_save_LIBS
=$LIBS
9887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9890 /* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9896 char gethostbyname ();
9900 return gethostbyname ();
9905 for ac_lib
in '' nsl
; do
9906 if test -z "$ac_lib"; then
9907 ac_res
="none required"
9910 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9912 if ac_fn_cxx_try_link
"$LINENO"; then :
9913 ac_cv_search_gethostbyname
=$ac_res
9915 rm -f core conftest.err conftest.
$ac_objext \
9917 if ${ac_cv_search_gethostbyname+:} false
; then :
9921 if ${ac_cv_search_gethostbyname+:} false
; then :
9924 ac_cv_search_gethostbyname
=no
9927 LIBS
=$ac_func_search_save_LIBS
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9930 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9931 ac_res
=$ac_cv_search_gethostbyname
9932 if test "$ac_res" != no
; then :
9933 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9938 $as_echo_n "checking for library containing socket... " >&6; }
9939 if ${ac_cv_search_socket+:} false
; then :
9940 $as_echo_n "(cached) " >&6
9942 ac_func_search_save_LIBS
=$LIBS
9943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9961 for ac_lib
in '' socket
; do
9962 if test -z "$ac_lib"; then
9963 ac_res
="none required"
9966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9968 if ac_fn_cxx_try_link
"$LINENO"; then :
9969 ac_cv_search_socket
=$ac_res
9971 rm -f core conftest.err conftest.
$ac_objext \
9973 if ${ac_cv_search_socket+:} false
; then :
9977 if ${ac_cv_search_socket+:} false
; then :
9980 ac_cv_search_socket
=no
9983 LIBS
=$ac_func_search_save_LIBS
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9986 $as_echo "$ac_cv_search_socket" >&6; }
9987 ac_res
=$ac_cv_search_socket
9988 if test "$ac_res" != no
; then :
9989 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9994 $as_echo_n "checking for socket in -lsocket... " >&6; }
9995 if ${ac_cv_lib_socket_socket+:} false
; then :
9996 $as_echo_n "(cached) " >&6
9998 ac_check_lib_save_LIBS
=$LIBS
9999 LIBS
="-lsocket -lnsl $LIBS"
10000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10018 if ac_fn_cxx_try_link
"$LINENO"; then :
10019 ac_cv_lib_socket_socket
=yes
10021 ac_cv_lib_socket_socket
=no
10023 rm -f core conftest.err conftest.
$ac_objext \
10024 conftest
$ac_exeext conftest.
$ac_ext
10025 LIBS
=$ac_check_lib_save_LIBS
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10028 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10029 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10030 LIBS
="-lsocket -lnsl $LIBS"
10040 # Some systems put ldexp and frexp in libm instead of libc; assume
10041 # they're both in the same place. jcf-dump needs them.
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10045 $as_echo_n "checking for library containing ldexp... " >&6; }
10046 if ${ac_cv_search_ldexp+:} false
; then :
10047 $as_echo_n "(cached) " >&6
10049 ac_func_search_save_LIBS
=$LIBS
10050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10053 /* Override any GCC internal prototype to avoid an error.
10054 Use char because int might match the return type of a GCC
10055 builtin and then its argument prototype would still apply. */
10068 for ac_lib
in '' m
; do
10069 if test -z "$ac_lib"; then
10070 ac_res
="none required"
10073 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10075 if ac_fn_cxx_try_link
"$LINENO"; then :
10076 ac_cv_search_ldexp
=$ac_res
10078 rm -f core conftest.err conftest.
$ac_objext \
10080 if ${ac_cv_search_ldexp+:} false
; then :
10084 if ${ac_cv_search_ldexp+:} false
; then :
10087 ac_cv_search_ldexp
=no
10089 rm conftest.
$ac_ext
10090 LIBS
=$ac_func_search_save_LIBS
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10093 $as_echo "$ac_cv_search_ldexp" >&6; }
10094 ac_res
=$ac_cv_search_ldexp
10095 if test "$ac_res" != no
; then :
10096 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10104 # Some systems need dlopen
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10108 $as_echo_n "checking for library containing dlopen... " >&6; }
10109 if ${ac_cv_search_dlopen+:} false
; then :
10110 $as_echo_n "(cached) " >&6
10112 ac_func_search_save_LIBS
=$LIBS
10113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10131 for ac_lib
in '' dl
; do
10132 if test -z "$ac_lib"; then
10133 ac_res
="none required"
10136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10138 if ac_fn_cxx_try_link
"$LINENO"; then :
10139 ac_cv_search_dlopen
=$ac_res
10141 rm -f core conftest.err conftest.
$ac_objext \
10143 if ${ac_cv_search_dlopen+:} false
; then :
10147 if ${ac_cv_search_dlopen+:} false
; then :
10150 ac_cv_search_dlopen
=no
10152 rm conftest.
$ac_ext
10153 LIBS
=$ac_func_search_save_LIBS
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10156 $as_echo "$ac_cv_search_dlopen" >&6; }
10157 ac_res
=$ac_cv_search_dlopen
10158 if test "$ac_res" != no
; then :
10159 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10167 # Use <inttypes.h> only if it exists,
10168 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10171 $as_echo_n "checking for inttypes.h... " >&6; }
10172 if ${gcc_cv_header_inttypes_h+:} false
; then :
10173 $as_echo_n "(cached) " >&6
10175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 #define __STDC_FORMAT_MACROS
10178 #include <sys/types.h>
10179 #include <inttypes.h>
10191 if ac_fn_cxx_try_compile
"$LINENO"; then :
10192 gcc_cv_header_inttypes_h
=yes
10194 gcc_cv_header_inttypes_h
=no
10196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10200 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10201 if test $gcc_cv_header_inttypes_h = yes; then
10203 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10207 # Look for the ZSTD package.
10217 # Check whether --with-zstd was given.
10218 if test "${with_zstd+set}" = set; then :
10219 withval
=$with_zstd;
10223 # Check whether --with-zstd-include was given.
10224 if test "${with_zstd_include+set}" = set; then :
10225 withval
=$with_zstd_include;
10229 # Check whether --with-zstd-lib was given.
10230 if test "${with_zstd_lib+set}" = set; then :
10231 withval
=$with_zstd_lib;
10234 case "x$with_zstd" in
10240 *) ZSTD_INCLUDE
=$with_zstd/include
10241 ZSTD_LIB
=$with_zstd/lib
10245 if test "x$with_zstd" != xno
; then
10246 if test "x$with_zstd_include" != x
; then
10247 ZSTD_INCLUDE
=$with_zstd_include
10249 if test "x$with_zstd_lib" != x
; then
10250 ZSTD_LIB
=$with_zstd_lib
10252 if test "x$ZSTD_INCLUDE" != x \
10253 && test "x$ZSTD_INCLUDE" != xno
; then
10254 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10256 if test "x$ZSTD_LIB" != x \
10257 && test "x$ZSTD_LIB" != xno
; then
10258 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10261 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10262 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10265 $as_echo_n "checking for zstd.h... " >&6; }
10266 if ${gcc_cv_header_zstd_h+:} false
; then :
10267 $as_echo_n "(cached) " >&6
10269 # We require version 1.3.0 or later. This is the first version that has
10270 # ZSTD_getFrameContentSize.
10271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10274 #if ZSTD_VERSION_NUMBER < 10300
10275 #error "need zstd 1.3.0 or better"
10285 if ac_fn_cxx_try_compile
"$LINENO"; then :
10286 gcc_cv_header_zstd_h
=yes
10288 gcc_cv_header_zstd_h
=no
10290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10294 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10295 if test $gcc_cv_header_zstd_h = yes; then
10297 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10299 elif test "x$with_zstd" != x
; then
10300 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10303 # LTO can use zstd compression algorithm
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10307 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10308 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10309 $as_echo_n "(cached) " >&6
10311 ac_func_search_save_LIBS
=$LIBS
10312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10321 char ZSTD_compress ();
10325 return ZSTD_compress ();
10330 for ac_lib
in '' zstd
; do
10331 if test -z "$ac_lib"; then
10332 ac_res
="none required"
10335 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10337 if ac_fn_cxx_try_link
"$LINENO"; then :
10338 ac_cv_search_ZSTD_compress
=$ac_res
10340 rm -f core conftest.err conftest.
$ac_objext \
10342 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10346 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10349 ac_cv_search_ZSTD_compress
=no
10351 rm conftest.
$ac_ext
10352 LIBS
=$ac_func_search_save_LIBS
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10355 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10356 ac_res
=$ac_cv_search_ZSTD_compress
10357 if test "$ac_res" != no
; then :
10358 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10369 for ac_func
in times clock kill getrlimit setrlimit atoq \
10370 popen sysconf strsignal getrusage nl_langinfo \
10371 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10372 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
10374 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10376 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10377 cat >>confdefs.h
<<_ACEOF
10378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385 if test x
$ac_cv_func_mbstowcs = xyes
; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10387 $as_echo_n "checking whether mbstowcs works... " >&6; }
10388 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10389 $as_echo_n "(cached) " >&6
10391 if test "$cross_compiling" = yes; then :
10392 gcc_cv_func_mbstowcs_works
=yes
10394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <stdlib.h>
10399 mbstowcs(0, "", 0);
10403 if ac_fn_cxx_try_run
"$LINENO"; then :
10404 gcc_cv_func_mbstowcs_works
=yes
10406 gcc_cv_func_mbstowcs_works
=no
10408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10414 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10415 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10417 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10422 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10423 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10427 cat >>confdefs.h
<<_ACEOF
10428 #define ssize_t int
10433 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10434 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10438 cat >>confdefs.h
<<_ACEOF
10439 #define caddr_t char *
10444 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10446 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10448 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10454 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10455 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10456 gcc_header_sys_mman_h
=yes
10458 gcc_header_sys_mman_h
=no
10461 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10462 if test "x$ac_cv_func_mmap" = xyes
; then :
10468 if test "$gcc_header_sys_mman_h" != yes \
10469 ||
test "$gcc_func_mmap" != yes; then
10470 gcc_cv_func_mmap_file
=no
10471 gcc_cv_func_mmap_dev_zero
=no
10472 gcc_cv_func_mmap_anon
=no
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10475 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10476 if ${gcc_cv_func_mmap_file+:} false
; then :
10477 $as_echo_n "(cached) " >&6
10479 # Add a system to this blacklist if
10480 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10481 # memory area containing the same data that you'd get if you applied
10482 # read() to the same fd. The only system known to have a problem here
10483 # is VMS, where text files have record structure.
10486 gcc_cv_func_mmap_file
=no
;;
10488 gcc_cv_func_mmap_file
=yes;;
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10492 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10494 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10495 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10496 $as_echo_n "(cached) " >&6
10498 # Add a system to this blacklist if it has mmap() but /dev/zero
10499 # does not exist, or if mmapping /dev/zero does not give anonymous
10500 # zeroed pages with both the following properties:
10501 # 1. If you map N consecutive pages in with one call, and then
10502 # unmap any subset of those pages, the pages that were not
10503 # explicitly unmapped remain accessible.
10504 # 2. If you map two adjacent blocks of memory and then unmap them
10505 # both at once, they must both go away.
10506 # Systems known to be in this category are Windows (all variants),
10509 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10510 gcc_cv_func_mmap_dev_zero
=no
;;
10512 gcc_cv_func_mmap_dev_zero
=yes;;
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10516 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10518 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10520 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10521 if ${gcc_cv_decl_map_anon+:} false
; then :
10522 $as_echo_n "(cached) " >&6
10524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 #include <sys/types.h>
10527 #include <sys/mman.h>
10528 #include <unistd.h>
10530 #ifndef MAP_ANONYMOUS
10531 #define MAP_ANONYMOUS MAP_ANON
10537 int n = MAP_ANONYMOUS;
10542 if ac_fn_cxx_try_compile
"$LINENO"; then :
10543 gcc_cv_decl_map_anon
=yes
10545 gcc_cv_decl_map_anon
=no
10547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10550 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10552 if test $gcc_cv_decl_map_anon = no
; then
10553 gcc_cv_func_mmap_anon
=no
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10556 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10557 if ${gcc_cv_func_mmap_anon+:} false
; then :
10558 $as_echo_n "(cached) " >&6
10560 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10561 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10562 # doesn't give anonymous zeroed pages with the same properties listed
10563 # above for use of /dev/zero.
10564 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10566 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10567 gcc_cv_func_mmap_anon
=no
;;
10569 gcc_cv_func_mmap_anon
=yes;;
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10573 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10577 if test $gcc_cv_func_mmap_file = yes; then
10579 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10582 if test $gcc_cv_func_mmap_dev_zero = yes; then
10584 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10587 if test $gcc_cv_func_mmap_anon = yes; then
10589 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10596 # Under VMS, vfork works very differently than on Unix. The standard test
10597 # won't work, and it isn't easily adaptable. It makes more sense to
10599 ac_cv_func_vfork_works
=yes
10602 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10603 if test "x$ac_cv_type_pid_t" = xyes
; then :
10607 cat >>confdefs.h
<<_ACEOF
10613 for ac_header
in vfork.h
10615 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10616 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10617 cat >>confdefs.h
<<_ACEOF
10618 #define HAVE_VFORK_H 1
10624 for ac_func
in fork vfork
10626 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10627 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10628 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10629 cat >>confdefs.h
<<_ACEOF
10630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10636 if test "x$ac_cv_func_fork" = xyes
; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10638 $as_echo_n "checking for working fork... " >&6; }
10639 if ${ac_cv_func_fork_works+:} false
; then :
10640 $as_echo_n "(cached) " >&6
10642 if test "$cross_compiling" = yes; then :
10643 ac_cv_func_fork_works
=cross
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 $ac_includes_default
10652 /* By Ruediger Kuhlmann. */
10653 return fork () < 0;
10659 if ac_fn_cxx_try_run
"$LINENO"; then :
10660 ac_cv_func_fork_works
=yes
10662 ac_cv_func_fork_works
=no
10664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10670 $as_echo "$ac_cv_func_fork_works" >&6; }
10673 ac_cv_func_fork_works
=$ac_cv_func_fork
10675 if test "x$ac_cv_func_fork_works" = xcross
; then
10677 *-*-amigaos* |
*-*-msdosdjgpp*)
10678 # Override, as these systems have only a dummy fork() stub
10679 ac_cv_func_fork_works
=no
10682 ac_cv_func_fork_works
=yes
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10686 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10688 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10689 if test "x$ac_cv_func_vfork" = xyes
; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10691 $as_echo_n "checking for working vfork... " >&6; }
10692 if ${ac_cv_func_vfork_works+:} false
; then :
10693 $as_echo_n "(cached) " >&6
10695 if test "$cross_compiling" = yes; then :
10696 ac_cv_func_vfork_works
=cross
10698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 /* Thanks to Paul Eggert for this test. */
10701 $ac_includes_default
10702 #include <sys/wait.h>
10703 #ifdef HAVE_VFORK_H
10704 # include <vfork.h>
10706 /* On some sparc systems, changes by the child to local and incoming
10707 argument registers are propagated back to the parent. The compiler
10708 is told about this with #include <vfork.h>, but some compilers
10709 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10710 static variable whose address is put into a register that is
10711 clobbered by the vfork. */
10714 sparc_address_test (int arg)
10716 sparc_address_test (arg) int arg;
10719 static pid_t child;
10737 pid_t parent = getpid ();
10740 sparc_address_test (0);
10745 /* Here is another test for sparc vfork register problems. This
10746 test uses lots of local variables, at least as many local
10747 variables as main has allocated so far including compiler
10748 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10749 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10750 reuse the register of parent for one of the local variables,
10751 since it will think that parent can't possibly be used any more
10752 in this routine. Assigning to the local variable will thus
10753 munge parent in the parent process. */
10755 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10756 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10757 /* Convince the compiler that p..p7 are live; otherwise, it might
10758 use the same hardware register for all 8 local variables. */
10759 if (p != p1 || p != p2 || p != p3 || p != p4
10760 || p != p5 || p != p6 || p != p7)
10763 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10764 from child file descriptors. If the child closes a descriptor
10765 before it execs or exits, this munges the parent's descriptor
10766 as well. Test for this by closing stdout in the child. */
10767 _exit(close(fileno(stdout)) != 0);
10772 while (wait(&status) != child)
10775 /* Was there some problem with vforking? */
10778 /* Did the child fail? (This shouldn't happen.) */
10781 /* Did the vfork/compiler bug occur? */
10782 || parent != getpid()
10784 /* Did the file descriptor bug occur? */
10785 || fstat(fileno(stdout), &st) != 0
10790 if ac_fn_cxx_try_run
"$LINENO"; then :
10791 ac_cv_func_vfork_works
=yes
10793 ac_cv_func_vfork_works
=no
10795 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10796 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10801 $as_echo "$ac_cv_func_vfork_works" >&6; }
10804 if test "x$ac_cv_func_fork_works" = xcross
; then
10805 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10807 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10810 if test "x$ac_cv_func_vfork_works" = xyes
; then
10812 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10816 $as_echo "#define vfork fork" >>confdefs.h
10819 if test "x$ac_cv_func_fork_works" = xyes
; then
10821 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10827 if test "X$prefix" = "XNONE"; then
10828 acl_final_prefix
="$ac_default_prefix"
10830 acl_final_prefix
="$prefix"
10832 if test "X$exec_prefix" = "XNONE"; then
10833 acl_final_exec_prefix
='${prefix}'
10835 acl_final_exec_prefix
="$exec_prefix"
10837 acl_save_prefix
="$prefix"
10838 prefix
="$acl_final_prefix"
10839 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10840 prefix
="$acl_save_prefix"
10843 # Check whether --with-gnu-ld was given.
10844 if test "${with_gnu_ld+set}" = set; then :
10845 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10850 # Prepare PATH_SEPARATOR.
10851 # The user is always right.
10852 if test "${PATH_SEPARATOR+set}" != set; then
10853 echo "#! /bin/sh" >conf$$.sh
10854 echo "exit 0" >>conf$$.sh
10856 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10864 if test "$GCC" = yes; then
10865 # Check if gcc -print-prog-name=ld gives a path.
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10867 $as_echo_n "checking for ld used by GCC... " >&6; }
10870 # gcc leaves a trailing carriage return which upsets mingw
10871 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10873 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10876 # Accept absolute paths.
10877 [\\/]* |
[A-Za-z
]:[\\/]*)
10878 re_direlt
='/[^/][^/]*/\.\./'
10879 # Canonicalize the path of ld
10880 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10881 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10882 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10884 test -z "$LD" && LD
="$ac_prog"
10887 # If it fails, then pretend we aren't using GCC.
10891 # If it is relative, then search for the first ld in PATH.
10892 with_gnu_ld
=unknown
10895 elif test "$with_gnu_ld" = yes; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10897 $as_echo_n "checking for GNU ld... " >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10900 $as_echo_n "checking for non-GNU ld... " >&6; }
10902 if ${acl_cv_path_LD+:} false
; then :
10903 $as_echo_n "(cached) " >&6
10905 if test -z "$LD"; then
10906 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10907 for ac_dir
in $PATH; do
10908 test -z "$ac_dir" && ac_dir
=.
10909 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10910 acl_cv_path_LD
="$ac_dir/$ac_prog"
10911 # Check to see if the program is GNU ld. I'd rather use --version,
10912 # but apparently some GNU ld's only accept -v.
10913 # Break only if it was the GNU/non-GNU ld that we prefer.
10914 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10915 test "$with_gnu_ld" != no
&& break
10917 test "$with_gnu_ld" != yes && break
10923 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10927 LD
="$acl_cv_path_LD"
10928 if test -n "$LD"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10930 $as_echo "$LD" >&6; }
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10935 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10938 if ${acl_cv_prog_gnu_ld+:} false
; then :
10939 $as_echo_n "(cached) " >&6
10941 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10942 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10943 acl_cv_prog_gnu_ld
=yes
10945 acl_cv_prog_gnu_ld
=no
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10949 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10950 with_gnu_ld
=$acl_cv_prog_gnu_ld
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10955 $as_echo_n "checking for shared library run path origin... " >&6; }
10956 if ${acl_cv_rpath+:} false
; then :
10957 $as_echo_n "(cached) " >&6
10960 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10961 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10963 rm -f .
/conftest.sh
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10968 $as_echo "$acl_cv_rpath" >&6; }
10970 libext
="$acl_cv_libext"
10971 shlibext
="$acl_cv_shlibext"
10972 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10973 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10974 hardcode_direct
="$acl_cv_hardcode_direct"
10975 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10976 # Check whether --enable-rpath was given.
10977 if test "${enable_rpath+set}" = set; then :
10978 enableval
=$enable_rpath; :
10992 acl_save_prefix
="$prefix"
10993 prefix
="$acl_final_prefix"
10994 acl_save_exec_prefix
="$exec_prefix"
10995 exec_prefix
="$acl_final_exec_prefix"
10997 eval additional_includedir
=\"$includedir\"
10998 eval additional_libdir
=\"$libdir\"
11000 exec_prefix
="$acl_save_exec_prefix"
11001 prefix
="$acl_save_prefix"
11004 # Check whether --with-libiconv-prefix was given.
11005 if test "${with_libiconv_prefix+set}" = set; then :
11006 withval
=$with_libiconv_prefix;
11007 if test "X$withval" = "Xno"; then
11010 if test "X$withval" = "X"; then
11012 acl_save_prefix
="$prefix"
11013 prefix
="$acl_final_prefix"
11014 acl_save_exec_prefix
="$exec_prefix"
11015 exec_prefix
="$acl_final_exec_prefix"
11017 eval additional_includedir
=\"$includedir\"
11018 eval additional_libdir
=\"$libdir\"
11020 exec_prefix
="$acl_save_exec_prefix"
11021 prefix
="$acl_save_prefix"
11024 additional_includedir
="$withval/include"
11025 additional_libdir
="$withval/lib"
11032 # Check whether --with-libiconv-type was given.
11033 if test "${with_libiconv_type+set}" = set; then :
11034 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11036 with_libiconv_type
=auto
11039 lib_type
=`eval echo \$with_libiconv_type`
11046 names_already_handled
=
11047 names_next_round
='iconv '
11048 while test -n "$names_next_round"; do
11049 names_this_round
="$names_next_round"
11051 for name
in $names_this_round; do
11053 for n
in $names_already_handled; do
11054 if test "$n" = "$name"; then
11055 already_handled
=yes
11059 if test -z "$already_handled"; then
11060 names_already_handled
="$names_already_handled $name"
11061 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11062 eval value
=\"\
$HAVE_LIB$uppername\"
11063 if test -n "$value"; then
11064 if test "$value" = yes; then
11065 eval value
=\"\
$LIB$uppername\"
11066 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11067 eval value
=\"\
$LTLIB$uppername\"
11068 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11077 if test $use_additional = yes; then
11078 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11079 found_dir
="$additional_libdir"
11080 found_so
="$additional_libdir/lib$name.$shlibext"
11081 if test -f "$additional_libdir/lib$name.la"; then
11082 found_la
="$additional_libdir/lib$name.la"
11084 elif test x
$lib_type != xshared
; then
11085 if test -f "$additional_libdir/lib$name.$libext"; then
11086 found_dir
="$additional_libdir"
11087 found_a
="$additional_libdir/lib$name.$libext"
11088 if test -f "$additional_libdir/lib$name.la"; then
11089 found_la
="$additional_libdir/lib$name.la"
11094 if test "X$found_dir" = "X"; then
11095 for x
in $LDFLAGS $LTLIBICONV; do
11097 acl_save_prefix
="$prefix"
11098 prefix
="$acl_final_prefix"
11099 acl_save_exec_prefix
="$exec_prefix"
11100 exec_prefix
="$acl_final_exec_prefix"
11102 exec_prefix
="$acl_save_exec_prefix"
11103 prefix
="$acl_save_prefix"
11107 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11108 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11110 found_so
="$dir/lib$name.$shlibext"
11111 if test -f "$dir/lib$name.la"; then
11112 found_la
="$dir/lib$name.la"
11114 elif test x
$lib_type != xshared
; then
11115 if test -f "$dir/lib$name.$libext"; then
11117 found_a
="$dir/lib$name.$libext"
11118 if test -f "$dir/lib$name.la"; then
11119 found_la
="$dir/lib$name.la"
11125 if test "X$found_dir" != "X"; then
11130 if test "X$found_dir" != "X"; then
11131 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11132 if test "X$found_so" != "X"; then
11133 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11134 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11137 for x
in $ltrpathdirs; do
11138 if test "X$x" = "X$found_dir"; then
11143 if test -z "$haveit"; then
11144 ltrpathdirs
="$ltrpathdirs $found_dir"
11146 if test "$hardcode_direct" = yes; then
11147 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11149 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11150 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11152 for x
in $rpathdirs; do
11153 if test "X$x" = "X$found_dir"; then
11158 if test -z "$haveit"; then
11159 rpathdirs
="$rpathdirs $found_dir"
11163 for x
in $LDFLAGS $LIBICONV; do
11165 acl_save_prefix
="$prefix"
11166 prefix
="$acl_final_prefix"
11167 acl_save_exec_prefix
="$exec_prefix"
11168 exec_prefix
="$acl_final_exec_prefix"
11170 exec_prefix
="$acl_save_exec_prefix"
11171 prefix
="$acl_save_prefix"
11173 if test "X$x" = "X-L$found_dir"; then
11178 if test -z "$haveit"; then
11179 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11181 if test "$hardcode_minus_L" != no
; then
11182 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11184 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11190 if test "X$found_a" != "X"; then
11191 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11193 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11196 additional_includedir
=
11197 case "$found_dir" in
11199 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11200 additional_includedir
="$basedir/include"
11203 if test "X$additional_includedir" != "X"; then
11204 if test "X$additional_includedir" != "X/usr/include"; then
11206 if test "X$additional_includedir" = "X/usr/local/include"; then
11207 if test -n "$GCC"; then
11209 linux
*) haveit
=yes;;
11213 if test -z "$haveit"; then
11214 for x
in $CPPFLAGS $INCICONV; do
11216 acl_save_prefix
="$prefix"
11217 prefix
="$acl_final_prefix"
11218 acl_save_exec_prefix
="$exec_prefix"
11219 exec_prefix
="$acl_final_exec_prefix"
11221 exec_prefix
="$acl_save_exec_prefix"
11222 prefix
="$acl_save_prefix"
11224 if test "X$x" = "X-I$additional_includedir"; then
11229 if test -z "$haveit"; then
11230 if test -d "$additional_includedir"; then
11231 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11237 if test -n "$found_la"; then
11238 save_libdir
="$libdir"
11239 case "$found_la" in
11240 */* |
*\\*) .
"$found_la" ;;
11241 *) .
"./$found_la" ;;
11243 libdir
="$save_libdir"
11244 for dep
in $dependency_libs; do
11247 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11248 if test "X$additional_libdir" != "X/usr/lib"; then
11250 if test "X$additional_libdir" = "X/usr/local/lib"; then
11251 if test -n "$GCC"; then
11253 linux
*) haveit
=yes;;
11257 if test -z "$haveit"; then
11259 for x
in $LDFLAGS $LIBICONV; do
11261 acl_save_prefix
="$prefix"
11262 prefix
="$acl_final_prefix"
11263 acl_save_exec_prefix
="$exec_prefix"
11264 exec_prefix
="$acl_final_exec_prefix"
11266 exec_prefix
="$acl_save_exec_prefix"
11267 prefix
="$acl_save_prefix"
11269 if test "X$x" = "X-L$additional_libdir"; then
11274 if test -z "$haveit"; then
11275 if test -d "$additional_libdir"; then
11276 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11280 for x
in $LDFLAGS $LTLIBICONV; do
11282 acl_save_prefix
="$prefix"
11283 prefix
="$acl_final_prefix"
11284 acl_save_exec_prefix
="$exec_prefix"
11285 exec_prefix
="$acl_final_exec_prefix"
11287 exec_prefix
="$acl_save_exec_prefix"
11288 prefix
="$acl_save_prefix"
11290 if test "X$x" = "X-L$additional_libdir"; then
11295 if test -z "$haveit"; then
11296 if test -d "$additional_libdir"; then
11297 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11304 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11305 if test "$enable_rpath" != no
; then
11307 for x
in $rpathdirs; do
11308 if test "X$x" = "X$dir"; then
11313 if test -z "$haveit"; then
11314 rpathdirs
="$rpathdirs $dir"
11317 for x
in $ltrpathdirs; do
11318 if test "X$x" = "X$dir"; then
11323 if test -z "$haveit"; then
11324 ltrpathdirs
="$ltrpathdirs $dir"
11329 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11332 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11335 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11336 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11342 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11343 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11344 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11346 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11347 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11354 if test "X$rpathdirs" != "X"; then
11355 if test -n "$hardcode_libdir_separator"; then
11357 for found_dir
in $rpathdirs; do
11358 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11360 acl_save_libdir
="$libdir"
11362 eval flag
=\"$hardcode_libdir_flag_spec\"
11363 libdir
="$acl_save_libdir"
11364 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11366 for found_dir
in $rpathdirs; do
11367 acl_save_libdir
="$libdir"
11368 libdir
="$found_dir"
11369 eval flag
=\"$hardcode_libdir_flag_spec\"
11370 libdir
="$acl_save_libdir"
11371 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11375 if test "X$ltrpathdirs" != "X"; then
11376 for found_dir
in $ltrpathdirs; do
11377 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11388 $as_echo_n "checking for iconv... " >&6; }
11389 if ${am_cv_func_iconv+:} false
; then :
11390 $as_echo_n "(cached) " >&6
11393 am_cv_func_iconv
="no, consider installing GNU libiconv"
11395 am_save_CPPFLAGS
="$CPPFLAGS"
11396 CPPFLAGS
="$CPPFLAGS $INCICONV"
11397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <stdlib.h>
11404 iconv_t cd = iconv_open("","");
11405 iconv(cd,NULL,NULL,NULL,NULL);
11411 if ac_fn_cxx_try_link
"$LINENO"; then :
11412 am_cv_func_iconv
=yes
11414 rm -f core conftest.err conftest.
$ac_objext \
11415 conftest
$ac_exeext conftest.
$ac_ext
11416 CPPFLAGS
="$am_save_CPPFLAGS"
11418 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11419 for _libs
in .libs _libs
; do
11420 am_save_CPPFLAGS
="$CPPFLAGS"
11421 am_save_LIBS
="$LIBS"
11422 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11423 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 #include <stdlib.h>
11431 iconv_t cd = iconv_open("","");
11432 iconv(cd,NULL,NULL,NULL,NULL);
11438 if ac_fn_cxx_try_link
"$LINENO"; then :
11439 INCICONV
="-I../libiconv/include"
11440 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11441 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11442 am_cv_lib_iconv
=yes
11443 am_cv_func_iconv
=yes
11445 rm -f core conftest.err conftest.
$ac_objext \
11446 conftest
$ac_exeext conftest.
$ac_ext
11447 CPPFLAGS
="$am_save_CPPFLAGS"
11448 LIBS
="$am_save_LIBS"
11449 if test "$am_cv_func_iconv" = "yes"; then
11455 if test "$am_cv_func_iconv" != yes; then
11456 am_save_CPPFLAGS
="$CPPFLAGS"
11457 am_save_LIBS
="$LIBS"
11458 CPPFLAGS
="$CPPFLAGS $INCICONV"
11459 LIBS
="$LIBS $LIBICONV"
11460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #include <stdlib.h>
11467 iconv_t cd = iconv_open("","");
11468 iconv(cd,NULL,NULL,NULL,NULL);
11474 if ac_fn_cxx_try_link
"$LINENO"; then :
11475 am_cv_lib_iconv
=yes
11476 am_cv_func_iconv
=yes
11478 rm -f core conftest.err conftest.
$ac_objext \
11479 conftest
$ac_exeext conftest.
$ac_ext
11480 CPPFLAGS
="$am_save_CPPFLAGS"
11481 LIBS
="$am_save_LIBS"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11486 $as_echo "$am_cv_func_iconv" >&6; }
11487 if test "$am_cv_func_iconv" = yes; then
11489 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11492 if test "$am_cv_lib_iconv" = yes; then
11494 for element
in $INCICONV; do
11496 for x
in $CPPFLAGS; do
11498 acl_save_prefix
="$prefix"
11499 prefix
="$acl_final_prefix"
11500 acl_save_exec_prefix
="$exec_prefix"
11501 exec_prefix
="$acl_final_exec_prefix"
11503 exec_prefix
="$acl_save_exec_prefix"
11504 prefix
="$acl_save_prefix"
11506 if test "X$x" = "X$element"; then
11511 if test -z "$haveit"; then
11512 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11517 $as_echo_n "checking how to link with libiconv... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11519 $as_echo "$LIBICONV" >&6; }
11527 if test "$am_cv_func_iconv" = yes; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11529 $as_echo_n "checking for iconv declaration... " >&6; }
11530 if ${am_cv_proto_iconv+:} false
; then :
11531 $as_echo_n "(cached) " >&6
11534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11537 #include <stdlib.h>
11543 #if defined(__STDC__) || defined(__cplusplus)
11544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11557 if ac_fn_cxx_try_compile
"$LINENO"; then :
11558 am_cv_proto_iconv_arg1
=""
11560 am_cv_proto_iconv_arg1
="const"
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11563 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);"
11566 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11568 }$am_cv_proto_iconv" >&5
11570 }$am_cv_proto_iconv" >&6; }
11572 cat >>confdefs.h
<<_ACEOF
11573 #define ICONV_CONST $am_cv_proto_iconv_arg1
11579 # Until we have in-tree GNU iconv:
11581 if test -f "$LTLIBICONV"; then
11582 LIBICONV_DEP
=$LTLIBICONV
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11588 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11589 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11590 $as_echo_n "(cached) " >&6
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include <locale.h>
11603 if ac_fn_cxx_try_link
"$LINENO"; then :
11604 am_cv_val_LC_MESSAGES
=yes
11606 am_cv_val_LC_MESSAGES
=no
11608 rm -f core conftest.err conftest.
$ac_objext \
11609 conftest
$ac_exeext conftest.
$ac_ext
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11612 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11613 if test $am_cv_val_LC_MESSAGES = yes; then
11615 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11622 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11623 if ${am_cv_langinfo_codeset+:} false
; then :
11624 $as_echo_n "(cached) " >&6
11626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #include <langinfo.h>
11632 char* cs = nl_langinfo(CODESET);
11637 if ac_fn_cxx_try_link
"$LINENO"; then :
11638 am_cv_langinfo_codeset
=yes
11640 am_cv_langinfo_codeset
=no
11642 rm -f core conftest.err conftest.
$ac_objext \
11643 conftest
$ac_exeext conftest.
$ac_ext
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11647 $as_echo "$am_cv_langinfo_codeset" >&6; }
11648 if test $am_cv_langinfo_codeset = yes; then
11650 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11655 # We will need to find libiberty.h and ansidecl.h
11656 saved_CFLAGS
="$CFLAGS"
11657 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11658 saved_CXXFLAGS
="$CXXFLAGS"
11659 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11661 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11662 # normal autoconf function for these. But force definition of
11663 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11664 # basename handling in libiberty.h.
11665 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11666 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11667 #undef HAVE_DECL_BASENAME
11668 #define HAVE_DECL_BASENAME 1
11669 #include \"ansidecl.h\"
11670 #include \"system.h\"
11672 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11678 cat >>confdefs.h
<<_ACEOF
11679 #define HAVE_DECL_BASENAME $ac_have_decl
11681 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11682 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11683 #undef HAVE_DECL_BASENAME
11684 #define HAVE_DECL_BASENAME 1
11685 #include \"ansidecl.h\"
11686 #include \"system.h\"
11688 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11694 cat >>confdefs.h
<<_ACEOF
11695 #define HAVE_DECL_STRSTR $ac_have_decl
11699 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11700 madvise stpcpy strnlen strsignal strverscmp \
11701 strtol strtoul strtoll strtoull setenv unsetenv \
11702 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11703 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
11705 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11707 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11708 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11709 $as_echo_n "(cached) " >&6
11711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 #define $ac_tr_decl 1
11716 #include "ansidecl.h"
11717 #include "system.h"
11723 char *(*pfn) = (char *(*)) $ac_func ;
11729 if ac_fn_cxx_try_compile
"$LINENO"; then :
11730 eval "gcc_cv_have_decl_$ac_func=yes"
11732 eval "gcc_cv_have_decl_$ac_func=no"
11734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11740 #define $ac_tr_decl 1
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11746 #define $ac_tr_decl 0
11754 for ac_func
in getrlimit setrlimit getrusage
11756 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11758 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11759 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11765 #define $ac_tr_decl 1
11767 #include "ansidecl.h"
11768 #include "system.h"
11769 #ifdef HAVE_SYS_RESOURCE_H
11770 #include <sys/resource.h>
11778 char *(*pfn) = (char *(*)) $ac_func ;
11784 if ac_fn_cxx_try_compile
"$LINENO"; then :
11785 eval "gcc_cv_have_decl_$ac_func=yes"
11787 eval "gcc_cv_have_decl_$ac_func=no"
11789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11792 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11795 #define $ac_tr_decl 1
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11801 #define $ac_tr_decl 0
11809 for ac_func
in mallinfo mallinfo2
11811 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11813 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11814 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11820 #define $ac_tr_decl 1
11822 #include "ansidecl.h"
11823 #include "system.h"
11824 #ifdef HAVE_MALLOC_H
11825 #include <malloc.h>
11833 char *(*pfn) = (char *(*)) $ac_func ;
11839 if ac_fn_cxx_try_compile
"$LINENO"; then :
11840 eval "gcc_cv_have_decl_$ac_func=yes"
11842 eval "gcc_cv_have_decl_$ac_func=no"
11844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11847 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11850 #define $ac_tr_decl 1
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11856 #define $ac_tr_decl 0
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 #include "ansidecl.h"
11868 #include "system.h"
11869 #ifdef HAVE_SYS_RESOURCE_H
11870 #include <sys/resource.h>
11881 if ac_fn_cxx_try_compile
"$LINENO"; then :
11885 $as_echo "#define rlim_t long" >>confdefs.h
11888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11890 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11891 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11892 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11893 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11894 for ac_func
in ldgetname
11896 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11898 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11899 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11900 $as_echo_n "(cached) " >&6
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 #define $ac_tr_decl 1
11907 #include "ansidecl.h"
11908 #include "system.h"
11909 #ifdef HAVE_LDFCN_H
11920 char *(*pfn) = (char *(*)) $ac_func ;
11926 if ac_fn_cxx_try_compile
"$LINENO"; then :
11927 eval "gcc_cv_have_decl_$ac_func=yes"
11929 eval "gcc_cv_have_decl_$ac_func=no"
11931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11934 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11937 #define $ac_tr_decl 1
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11943 #define $ac_tr_decl 0
11951 for ac_func
in times
11953 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11955 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11956 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11962 #define $ac_tr_decl 1
11964 #include "ansidecl.h"
11965 #include "system.h"
11966 #ifdef HAVE_SYS_TIMES_H
11967 #include <sys/times.h>
11975 char *(*pfn) = (char *(*)) $ac_func ;
11981 if ac_fn_cxx_try_compile
"$LINENO"; then :
11982 eval "gcc_cv_have_decl_$ac_func=yes"
11984 eval "gcc_cv_have_decl_$ac_func=no"
11986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11989 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11992 #define $ac_tr_decl 1
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11998 #define $ac_tr_decl 0
12006 for ac_func
in sigaltstack
12008 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12010 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12011 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12017 #define $ac_tr_decl 1
12019 #include "ansidecl.h"
12020 #include "system.h"
12021 #include <signal.h>
12028 char *(*pfn) = (char *(*)) $ac_func ;
12034 if ac_fn_cxx_try_compile
"$LINENO"; then :
12035 eval "gcc_cv_have_decl_$ac_func=yes"
12037 eval "gcc_cv_have_decl_$ac_func=no"
12039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12042 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12045 #define $ac_tr_decl 1
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12051 #define $ac_tr_decl 0
12059 # More time-related stuff.
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12061 $as_echo_n "checking for struct tms... " >&6; }
12062 if ${ac_cv_struct_tms+:} false
; then :
12063 $as_echo_n "(cached) " >&6
12066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12069 #include "ansidecl.h"
12070 #include "system.h"
12071 #ifdef HAVE_SYS_TIMES_H
12072 #include <sys/times.h>
12083 if ac_fn_cxx_try_compile
"$LINENO"; then :
12084 ac_cv_struct_tms
=yes
12086 ac_cv_struct_tms
=no
12088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12091 $as_echo "$ac_cv_struct_tms" >&6; }
12092 if test $ac_cv_struct_tms = yes; then
12094 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12098 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12099 # revisit after autoconf 2.50.
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12101 $as_echo_n "checking for clock_t... " >&6; }
12102 if ${gcc_cv_type_clock_t+:} false
; then :
12103 $as_echo_n "(cached) " >&6
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 #include "ansidecl.h"
12110 #include "system.h"
12120 if ac_fn_cxx_try_compile
"$LINENO"; then :
12121 gcc_cv_type_clock_t
=yes
12123 gcc_cv_type_clock_t
=no
12125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12128 $as_echo "$gcc_cv_type_clock_t" >&6; }
12129 if test $gcc_cv_type_clock_t = yes; then
12131 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12135 # Check if F_SETLKW is supported by fcntl.
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12137 $as_echo_n "checking for F_SETLKW... " >&6; }
12138 if ${ac_cv_f_setlkw+:} false
; then :
12139 $as_echo_n "(cached) " >&6
12142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12155 return fcntl (1, F_SETLKW, &fl);
12160 if ac_fn_cxx_try_compile
"$LINENO"; then :
12165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12168 $as_echo "$ac_cv_f_setlkw" >&6; }
12169 if test $ac_cv_f_setlkw = yes; then
12171 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12175 # Check if O_CLOEXEC is defined by fcntl
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12177 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12178 if ${ac_cv_o_cloexec+:} false
; then :
12179 $as_echo_n "(cached) " >&6
12182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12190 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12195 if ac_fn_cxx_try_compile
"$LINENO"; then :
12196 ac_cv_o_cloexec
=yes
12200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12203 $as_echo "$ac_cv_o_cloexec" >&6; }
12204 if test $ac_cv_o_cloexec = yes; then
12206 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12210 # C++ Modules would like some networking features to provide the mapping
12211 # server. You can still use modules without them though.
12212 # The following network-related checks could probably do with some
12213 # Windows and other non-linux defenses and checking.
12215 # Local socket connectivity wants AF_UNIX networking
12216 # Check for AF_UNIX networking
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12218 $as_echo_n "checking for AF_UNIX... " >&6; }
12219 if ${ac_cv_af_unix+:} false
; then :
12220 $as_echo_n "(cached) " >&6
12223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12226 #include <sys/types.h>
12227 #include <sys/socket.h>
12228 #include <sys/un.h>
12229 #include <netinet/in.h>
12235 un.sun_family = AF_UNSPEC;
12236 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12237 connect (fd, (sockaddr *)&un, sizeof (un));
12242 if ac_fn_cxx_try_compile
"$LINENO"; then :
12247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12250 $as_echo "$ac_cv_af_unix" >&6; }
12251 if test $ac_cv_af_unix = yes; then
12253 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12257 # Remote socket connectivity wants AF_INET6 networking
12258 # Check for AF_INET6 networking
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12260 $as_echo_n "checking for AF_INET6... " >&6; }
12261 if ${ac_cv_af_inet6+:} false
; then :
12262 $as_echo_n "(cached) " >&6
12265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 #include <sys/types.h>
12269 #include <sys/socket.h>
12270 #include <netinet/in.h>
12277 in6.sin6_family = AF_UNSPEC;
12278 struct addrinfo *addrs = 0;
12279 struct addrinfo hints;
12280 hints.ai_flags = 0;
12281 hints.ai_family = AF_INET6;
12282 hints.ai_socktype = SOCK_STREAM;
12283 hints.ai_protocol = 0;
12284 hints.ai_canonname = 0;
12287 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12288 const char *str = gai_strerror (e);
12289 freeaddrinfo (addrs);
12290 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12291 connect (fd, (sockaddr *)&in6, sizeof (in6));
12296 if ac_fn_cxx_try_compile
"$LINENO"; then :
12301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12304 $as_echo "$ac_cv_af_inet6" >&6; }
12305 if test $ac_cv_af_inet6 = yes; then
12307 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12311 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12312 CFLAGS
="$saved_CFLAGS"
12313 CXXFLAGS
="$saved_CXXFLAGS"
12315 # mkdir takes a single argument on some systems.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12317 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12318 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12319 $as_echo_n "(cached) " >&6
12321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12324 #include <sys/types.h>
12325 #ifdef HAVE_SYS_STAT_H
12326 # include <sys/stat.h>
12328 #ifdef HAVE_UNISTD_H
12329 # include <unistd.h>
12331 #ifdef HAVE_DIRECT_H
12332 # include <direct.h>
12342 if ac_fn_cxx_try_compile
"$LINENO"; then :
12343 gcc_cv_mkdir_takes_one_arg
=no
12345 gcc_cv_mkdir_takes_one_arg
=yes
12347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12350 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12351 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12353 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12364 # With Setjmp/Longjmp based exception handling.
12365 # Check whether --enable-sjlj-exceptions was given.
12366 if test "${enable_sjlj_exceptions+set}" = set; then :
12367 enableval
=$enable_sjlj_exceptions; case $target in
12369 if test $enableval != yes; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12371 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12376 force_sjlj_exceptions
=yes
12380 force_sjlj_exceptions
=yes
12384 force_sjlj_exceptions
=yes
12388 force_sjlj_exceptions
=no
12393 if test $force_sjlj_exceptions = yes; then
12394 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12396 cat >>confdefs.h
<<_ACEOF
12397 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12402 # --------------------------------------------------------
12403 # Build, host, and target specific configuration fragments
12404 # --------------------------------------------------------
12406 # Collect build-machine-specific information.
12407 .
${srcdir}/config.build ||
exit 1
12409 # Collect host-machine-specific information.
12410 .
${srcdir}/config.
host ||
exit 1
12414 # Collect target-machine-specific information.
12415 .
${srcdir}/config.gcc ||
exit 1
12417 extra_objs
="${host_extra_objs} ${extra_objs}"
12418 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12420 # Default the target-machine variables that were not explicitly set.
12421 if test x
"$tm_file" = x
12422 then tm_file
=$cpu_type/$cpu_type.h
; fi
12424 if test x
"$extra_headers" = x
12425 then extra_headers
=; fi
12427 if test x
$md_file = x
12428 then md_file
=$cpu_type/$cpu_type.md
; fi
12430 if test x
$out_file = x
12431 then out_file
=$cpu_type/$cpu_type.c
; fi
12433 if test x
"$tmake_file" = x
12434 then tmake_file
=$cpu_type/t-
$cpu_type
12437 # Support --enable-initfini-array.
12438 if test x
$enable_initfini_array != xno
; then
12439 tm_file
="${tm_file} initfini-array.h"
12442 if test x
"$dwarf2" = xyes
12443 then tm_file
="$tm_file tm-dwarf2.h"
12446 # Say what files are being used for the output code and MD file.
12447 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12448 echo "Using \`$srcdir/config/$md_file' as machine description file."
12450 # If any of the xm_file variables contain nonexistent files, warn
12451 # about them and drop them.
12454 for x
in $build_xm_file; do
12455 if test -f $srcdir/config
/$x
12457 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12458 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12461 build_xm_file
="$bx"
12464 for x
in $host_xm_file; do
12465 if test -f $srcdir/config
/$x
12467 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12468 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12474 for x
in $xm_file; do
12475 if test -f $srcdir/config
/$x
12477 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12478 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12484 for f
in $tm_file; do
12487 if test $count = ax
; then
12488 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12490 echo "Using the following target machine macro files:"
12491 for f
in $tm_file; do
12492 echo " $srcdir/config/$f"
12496 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12498 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12502 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12504 cat >>confdefs.h
<<_ACEOF
12505 #define HAVE_GNU_LD $gnu_ld_bool
12509 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12511 cat >>confdefs.h
<<_ACEOF
12512 #define HAVE_GNU_AS $gnu_as_bool
12517 for f
in $host_xm_file; do
12520 if test $count = a
; then
12522 elif test $count = ax
; then
12523 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12525 echo "Using the following host machine macro files:"
12526 for f
in $host_xm_file; do
12527 echo " $srcdir/config/$f"
12530 echo "Using ${out_host_hook_obj} for host machine hooks."
12532 if test "$host_xm_file" != "$build_xm_file"; then
12534 for f
in $build_xm_file; do
12537 if test $count = a
; then
12539 elif test $count = ax
; then
12540 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12542 echo "Using the following build machine macro files:"
12543 for f
in $build_xm_file; do
12544 echo " $srcdir/config/$f"
12549 if test -n "$configured_native_system_header_dir"; then
12550 native_system_header_dir
=$configured_native_system_header_dir
12552 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12556 powerpc
*-*-darwin*)
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12558 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12559 if ${gcc_cv_mcontext_underscores+:} false
; then :
12560 $as_echo_n "(cached) " >&6
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12565 #include <sys/cdefs.h>
12566 #include <sys/signal.h>
12567 #include <ucontext.h>
12568 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12571 if ac_fn_cxx_try_compile
"$LINENO"; then :
12572 gcc_cv_mcontext_underscores
=no
12574 gcc_cv_mcontext_underscores
=yes
12576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12579 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12580 if test $gcc_cv_mcontext_underscores = yes; then
12582 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12592 # Check if a valid thread package
12593 case ${enable_threads} in
12596 target_thread_file
='single'
12600 target_thread_file
='single'
12602 aix | dce | lynx | mipssde | posix | rtems | \
12603 single | tpf | vxworks | win32
)
12604 target_thread_file
=${enable_threads}
12607 echo "${enable_threads} is an unknown thread package" 1>&2
12612 if test x
${thread_file} = x
; then
12613 # No thread file set by target-specific clauses in config.gcc,
12614 # so use file chosen by default logic above
12615 thread_file
=${target_thread_file}
12623 if test x
$enable___cxa_atexit = xyes || \
12624 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12625 if test x
$host = x
$target; then
12627 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12628 # keyed to flag_use_cxa_atexit
12636 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12637 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12640 echo "__cxa_atexit can't be enabled on this target"
12646 # We can't check for __cxa_atexit when building a cross, so assume
12650 if test x
$use_cxa_atexit = xyes
; then
12652 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12657 # Look for a file containing extra machine modes.
12658 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12659 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12662 cat >>confdefs.h
<<_ACEOF
12663 #define EXTRA_MODES_FILE "config/$extra_modes"
12668 # Convert extra_options into a form suitable for Makefile use.
12671 for f
in $extra_options; do
12672 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12673 all_opt_files
="$all_opt_files $srcdir/config/$f"
12677 # auto-host.h is the file containing items generated by autoconf and is
12678 # the first file included by config.h.
12679 # If host=build, it is correct to have bconfig include auto-host.h
12680 # as well. If host!=build, we are in error and need to do more
12681 # work to find out the build config parameters.
12682 if test x
$host = x
$build
12684 build_auto
=auto-host.h
12685 HAVE_AUTO_BUILD
='# '
12687 # We create a subdir, then run autoconf in the subdir.
12688 # To prevent recursion we set host and build for the new
12689 # invocation of configure to the build for this invocation
12696 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12697 *) realsrcdir
=..
/${srcdir};;
12699 # Clearing GMPINC is necessary to prevent host headers being
12700 # used by the build compiler. Defining GENERATOR_FILE stops
12701 # system.h from including gmp.h.
12702 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12703 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12704 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12705 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12706 ${realsrcdir}/configure \
12707 --enable-languages=${enable_languages-all} \
12708 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12709 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12710 --target=$target_alias --host=$build_alias \
12711 --build=$build_alias ||
exit # retaining $tempdir
12713 # We just finished tests for the build machine, so rename
12714 # the file auto-build.h in the gcc directory.
12715 mv auto-host.h ..
/auto-build.h
12718 build_auto
=auto-build.h
12724 tm_file
="${tm_file} defaults.h"
12725 tm_p_file
="${tm_p_file} tm-preds.h"
12726 tm_d_file
="${tm_d_file} defaults.h"
12727 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12728 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12729 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12730 # put this back in temporarily.
12731 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12737 # Compile in configure arguments.
12738 if test -f configargs.h
; then
12739 # Being re-configured.
12740 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12741 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12742 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12743 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12746 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12749 # Double all backslashes and backslash all quotes to turn
12750 # gcc_config_arguments into a C string.
12751 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12752 $gcc_config_arguments
12754 gcc_config_arguments_str
=`cat conftest.out`
12757 cat > configargs.h
<<EOF
12758 /* Generated automatically. */
12759 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12760 static const char thread_model[] = "$thread_file";
12762 static const struct {
12763 const char *name, *value;
12764 } configure_default_options[] = $configure_default_options;
12767 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12768 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12769 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12770 if test -f $srcdir/REVISION
; then
12771 gcc_REVISION
=`cat $srcdir/REVISION`
12775 cat > plugin-version.h
<<EOF
12776 #include "configargs.h"
12778 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12779 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12780 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12781 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12783 static char basever[] = "$gcc_BASEVER";
12784 static char datestamp[] = "$gcc_DATESTAMP";
12785 static char devphase[] = "$gcc_DEVPHASE";
12786 static char revision[] = "$gcc_REVISION";
12788 /* FIXME plugins: We should make the version information more precise.
12789 One way to do is to add a checksum. */
12791 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12792 devphase, revision,
12793 configuration_arguments};
12796 # Determine what GCC version number to use in filesystem paths.
12798 get_gcc_base_ver
="cat"
12800 # Check whether --with-gcc-major-version-only was given.
12801 if test "${with_gcc_major_version_only+set}" = set; then :
12802 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12803 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12811 # Internationalization
12812 # If we haven't got the data from the intl directory,
12813 # assume NLS is disabled.
12822 if test -f ..
/intl
/config.intl
; then
12823 . ..
/intl
/config.intl
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12826 $as_echo_n "checking whether NLS is requested... " >&6; }
12827 if test x
"$USE_NLS" != xyes
; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12832 $as_echo "yes" >&6; }
12834 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12838 $as_echo_n "checking for catalogs to be installed... " >&6; }
12839 # Look for .po and .gmo files in the source directory.
12842 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12843 # If there aren't any .gmo files the shell will give us the
12844 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12846 case "$cat" in *\
**)
12849 # The quadruple backslash is collapsed to a double backslash
12850 # by the backticks, then collapsed again by the double quotes,
12851 # leaving us with one backslash in the sed expression (right
12852 # before the dot that mustn't act as a wildcard).
12853 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12854 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12855 # The user is allowed to set LINGUAS to a list of languages to
12856 # install catalogs for. If it's empty that means "all of them."
12857 if test "x$LINGUAS" = x
; then
12858 CATALOGS
="$CATALOGS $cat"
12859 XLINGUAS
="$XLINGUAS $lang"
12861 case "$LINGUAS" in *$lang*)
12862 CATALOGS
="$CATALOGS $cat"
12863 XLINGUAS
="$XLINGUAS $lang"
12868 LINGUAS
="$XLINGUAS"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12870 $as_echo "$LINGUAS" >&6; }
12883 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12884 # -liconv on the link line twice.
12885 case "$LIBINTL" in *$LIBICONV*)
12889 # Check whether --enable-secureplt was given.
12890 if test "${enable_secureplt+set}" = set; then :
12891 enableval
=$enable_secureplt;
12895 # Check whether --enable-mingw-wildcard was given.
12896 if test "${enable_mingw_wildcard+set}" = set; then :
12897 enableval
=$enable_mingw_wildcard;
12899 enable_mingw_wildcard
=platform
12902 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12904 cat >>confdefs.h
<<_ACEOF
12905 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12910 # Check whether --enable-large-address-aware was given.
12911 if test "${enable_large_address_aware+set}" = set; then :
12912 enableval
=$enable_large_address_aware;
12915 if test x
"$enable_large_address_aware" = xyes
; then :
12917 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12921 # Check whether --enable-leading-mingw64-underscores was given.
12922 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12923 enableval
=$enable_leading_mingw64_underscores;
12926 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12928 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12932 # Check whether --enable-cld was given.
12933 if test "${enable_cld+set}" = set; then :
12934 enableval
=$enable_cld;
12940 # Check whether --enable-frame-pointer was given.
12941 if test "${enable_frame_pointer+set}" = set; then :
12942 enableval
=$enable_frame_pointer;
12946 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12947 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12948 enable_frame_pointer
=no
12951 enable_frame_pointer
=yes
12959 i
[34567]86-*-* | x86_64-
*-*)
12960 if test "x$enable_cld" = xyes
; then
12961 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12963 if test "x$enable_frame_pointer" = xyes
; then
12964 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12969 # Windows32 Registry support for specifying GCC installation paths.
12970 # Check whether --enable-win32-registry was given.
12971 if test "${enable_win32_registry+set}" = set; then :
12972 enableval
=$enable_win32_registry;
12977 win32 | pe | cygwin
* | mingw32
*)
12978 if test "x$enable_win32_registry" != xno
; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12980 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12981 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12982 $as_echo_n "(cached) " >&6
12984 ac_func_search_save_LIBS
=$LIBS
12985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12994 char RegOpenKeyExA ();
12998 return RegOpenKeyExA ();
13003 for ac_lib
in '' advapi32
; do
13004 if test -z "$ac_lib"; then
13005 ac_res
="none required"
13008 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13010 if ac_fn_cxx_try_link
"$LINENO"; then :
13011 ac_cv_search_RegOpenKeyExA
=$ac_res
13013 rm -f core conftest.err conftest.
$ac_objext \
13015 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13019 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13022 ac_cv_search_RegOpenKeyExA
=no
13024 rm conftest.
$ac_ext
13025 LIBS
=$ac_func_search_save_LIBS
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13028 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13029 ac_res
=$ac_cv_search_RegOpenKeyExA
13030 if test "$ac_res" != no
; then :
13031 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13034 enable_win32_registry
=no
13039 if test "x$enable_win32_registry" != xno
; then
13041 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13044 if test "x$enable_win32_registry" != xyes \
13045 && test "x$enable_win32_registry" != x
; then
13047 cat >>confdefs.h
<<_ACEOF
13048 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13056 # Get an absolute path to the GCC top-level source directory
13057 holddir
=`${PWDCMD-pwd}`
13059 topdir
=`${PWDCMD-pwd}`
13062 # Conditionalize the makefile for this host machine.
13064 for f
in ${host_xmake_file}
13066 if test -f ${srcdir}/config
/$f
13068 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13072 # Conditionalize the makefile for this target machine.
13074 for f
in ${tmake_file}
13076 if test -f ${srcdir}/config
/$f
13078 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13081 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13083 out_object_file
=`basename $out_file .c`.o
13084 common_out_object_file
=`basename $common_out_file .c`.o
13086 tm_file_list
="options.h"
13087 tm_include_list
="options.h insn-constants.h"
13088 for f
in $tm_file; do
13091 f
=`echo $f | sed 's/^..//'`
13092 tm_file_list
="${tm_file_list} $f"
13093 tm_include_list
="${tm_include_list} $f"
13096 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13097 tm_include_list
="${tm_include_list} $f"
13100 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13101 tm_include_list
="${tm_include_list} config/$f"
13108 for f
in $tm_p_file; do
13111 tm_p_file_list
="${tm_p_file_list} $f"
13112 tm_p_include_list
="${tm_p_include_list} $f"
13115 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13116 tm_p_include_list
="${tm_p_include_list} config/$f"
13121 tm_d_include_list
="options.h insn-constants.h"
13122 for f
in $tm_d_file; do
13125 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13126 tm_d_include_list
="${tm_d_include_list} $f"
13129 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13130 tm_d_include_list
="${tm_d_include_list} config/$f"
13137 for f
in $xm_file; do
13140 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13141 xm_include_list
="${xm_include_list} $f"
13144 xm_file_list
="${xm_file_list} $f"
13145 xm_include_list
="${xm_include_list} $f"
13148 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13149 xm_include_list
="${xm_include_list} config/$f"
13155 host_xm_include_list
=
13156 for f
in $host_xm_file; do
13159 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13160 host_xm_include_list
="${host_xm_include_list} $f"
13163 host_xm_file_list
="${host_xm_file_list} $f"
13164 host_xm_include_list
="${host_xm_include_list} $f"
13167 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13168 host_xm_include_list
="${host_xm_include_list} config/$f"
13173 build_xm_file_list
=
13174 for f
in $build_xm_file; do
13177 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13178 build_xm_include_list
="${build_xm_include_list} $f"
13180 auto-build.h | auto-host.h
)
13181 build_xm_file_list
="${build_xm_file_list} $f"
13182 build_xm_include_list
="${build_xm_include_list} $f"
13185 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13186 build_xm_include_list
="${build_xm_include_list} config/$f"
13191 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13192 # cross-compiler which does not use the native headers and libraries.
13193 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13196 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13197 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13199 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13200 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13201 if test "x$with_build_sysroot" != x
; then
13202 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13204 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13207 if test x
$host != x
$target
13209 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13211 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13212 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13213 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13216 if test "x$with_build_sysroot" != "x"; then
13217 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13218 elif test "x$with_sysroot" = x
; then
13219 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13220 elif test "x$with_sysroot" = xyes
; then
13221 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13223 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13226 target_header_dir
=${native_system_header_dir}
13229 # If this is a cross-compiler that does not
13230 # have its own set of headers then define
13233 # If this is using newlib, without having the headers available now,
13234 # then define inhibit_libc in LIBGCC2_CFLAGS.
13235 # This prevents libgcc2 from containing any code which requires libc
13237 : ${inhibit_libc=false}
13238 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13239 test x
$with_newlib = xyes
; } &&
13240 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13245 # When building gcc with a cross-compiler, we need to adjust things so
13246 # that the generator programs are still built with the native compiler.
13247 # Also, we cannot run fixincludes.
13249 # These are the normal (build=host) settings:
13250 CC_FOR_BUILD
='$(CC)'
13251 CXX_FOR_BUILD
='$(CXX)'
13252 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13253 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13254 BUILD_LDFLAGS
='$(LDFLAGS)'
13255 STMP_FIXINC
=stmp-fixinc
13257 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
13258 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
13260 # And these apply if build != host, or we are generating coverage data
13261 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13263 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13264 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
13265 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13267 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13268 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13269 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
13270 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
13275 # Expand extra_headers to include complete path.
13276 # This substitutes for lots of t-* files.
13277 extra_headers_list
=
13278 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13279 for file in ${extra_headers} ; do
13280 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13283 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13284 if test x
"$use_gcc_tgmath" = xyes
13285 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13288 # Define collect2 in Makefile.
13289 case $host_can_use_collect2 in
13291 *) collect2
='collect2$(exeext)' ;;
13295 # Add a definition of USE_COLLECT2 if system wants one.
13296 case $use_collect2 in
13297 no
) use_collect2
= ;;
13300 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13301 xm_defines
="${xm_defines} USE_COLLECT2"
13302 case $host_can_use_collect2 in
13304 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13311 cat >>confdefs.h
<<_ACEOF
13312 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13316 # ---------------------------
13317 # Assembler & linker features
13318 # ---------------------------
13320 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13321 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13322 # However when ld-new is first executed from the build tree, libtool will
13323 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13324 # to the build tree. While doing this we need to use the previous-stage
13325 # linker, or we have an infinite loop. The presence of a shell script as
13326 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13327 # the gcc/collect-ld script. So we need to know how libtool works, or
13328 # exec-tool will fail.
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13334 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13339 macro_version
='2.2.7a'
13340 macro_revision
='1.3134'
13354 ltmain
="$ac_aux_dir/ltmain.sh"
13356 # Backslashify metacharacters that are still active within
13357 # double-quoted strings.
13358 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13360 # Same as above, but do not quote variable references.
13361 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13363 # Sed substitution to delay expansion of an escaped shell variable in a
13364 # double_quote_subst'ed string.
13365 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13367 # Sed substitution to delay expansion of an escaped single quote.
13368 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13370 # Sed substitution to avoid accidental globbing in evaled expressions
13371 no_glob_subst
='s/\*/\\\*/g'
13373 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13374 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13375 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13378 $as_echo_n "checking how to print strings... " >&6; }
13379 # Test print first, because it will be a builtin if present.
13380 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13381 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13383 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13386 # Use this function as a fallback that always works.
13387 func_fallback_echo ()
13389 eval 'cat <<_LTECHO_EOF
13393 ECHO='func_fallback_echo
'
13396 # func_echo_all arg...
13397 # Invoke $ECHO with all args, space-separated.
13404 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13405 $as_echo "printf" >&6; } ;;
13406 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13407 $as_echo "print -r" >&6; } ;;
13408 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13409 $as_echo "cat" >&6; } ;;
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13426 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13427 if ${ac_cv_path_SED+:} false; then :
13428 $as_echo_n "(cached) " >&6
13430 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13431 for ac_i in 1 2 3 4 5 6 7; do
13432 ac_script="$ac_script$as_nl$ac_script"
13434 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13435 { ac_script=; unset ac_script;}
13436 if test -z "$SED"; then
13437 ac_path_SED_found=false
13438 # Loop through the user's path and
test for each of PROGNAME-LIST
13439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13440 for as_dir
in $PATH
13443 test -z "$as_dir" && as_dir
=.
13444 for ac_prog
in sed gsed
; do
13445 for ac_exec_ext
in '' $ac_executable_extensions; do
13446 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13447 as_fn_executable_p
"$ac_path_SED" ||
continue
13448 # Check for GNU ac_path_SED and select it if it is found.
13449 # Check for GNU $ac_path_SED
13450 case `"$ac_path_SED" --version 2>&1` in
13452 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13455 $as_echo_n 0123456789 >"conftest.in"
13458 cat "conftest.in" "conftest.in" >"conftest.tmp"
13459 mv "conftest.tmp" "conftest.in"
13460 cp "conftest.in" "conftest.nl"
13461 $as_echo '' >> "conftest.nl"
13462 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13463 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13464 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13465 if test $ac_count -gt ${ac_path_SED_max-0}; then
13466 # Best one so far, save it but keep looking for a better one
13467 ac_cv_path_SED
="$ac_path_SED"
13468 ac_path_SED_max
=$ac_count
13470 # 10*(2^10) chars as input seems more than enough
13471 test $ac_count -gt 10 && break
13473 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13476 $ac_path_SED_found && break 3
13481 if test -z "$ac_cv_path_SED"; then
13482 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13485 ac_cv_path_SED
=$SED
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13490 $as_echo "$ac_cv_path_SED" >&6; }
13491 SED
="$ac_cv_path_SED"
13494 test -z "$SED" && SED
=sed
13495 Xsed
="$SED -e 1s/^X//"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13508 $as_echo_n "checking for fgrep... " >&6; }
13509 if ${ac_cv_path_FGREP+:} false
; then :
13510 $as_echo_n "(cached) " >&6
13512 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13513 then ac_cv_path_FGREP
="$GREP -F"
13515 if test -z "$FGREP"; then
13516 ac_path_FGREP_found
=false
13517 # Loop through the user's path and test for each of PROGNAME-LIST
13518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13519 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13522 test -z "$as_dir" && as_dir
=.
13523 for ac_prog
in fgrep
; do
13524 for ac_exec_ext
in '' $ac_executable_extensions; do
13525 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13526 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13527 # Check for GNU ac_path_FGREP and select it if it is found.
13528 # Check for GNU $ac_path_FGREP
13529 case `"$ac_path_FGREP" --version 2>&1` in
13531 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13534 $as_echo_n 0123456789 >"conftest.in"
13537 cat "conftest.in" "conftest.in" >"conftest.tmp"
13538 mv "conftest.tmp" "conftest.in"
13539 cp "conftest.in" "conftest.nl"
13540 $as_echo 'FGREP' >> "conftest.nl"
13541 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13542 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13543 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13544 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13545 # Best one so far, save it but keep looking for a better one
13546 ac_cv_path_FGREP
="$ac_path_FGREP"
13547 ac_path_FGREP_max
=$ac_count
13549 # 10*(2^10) chars as input seems more than enough
13550 test $ac_count -gt 10 && break
13552 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13555 $ac_path_FGREP_found && break 3
13560 if test -z "$ac_cv_path_FGREP"; then
13561 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13564 ac_cv_path_FGREP
=$FGREP
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13570 $as_echo "$ac_cv_path_FGREP" >&6; }
13571 FGREP
="$ac_cv_path_FGREP"
13574 test -z "$GREP" && GREP
=grep
13594 # Check whether --with-gnu-ld was given.
13595 if test "${with_gnu_ld+set}" = set; then :
13596 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13602 if test "$GCC" = yes; then
13603 # Check if gcc -print-prog-name=ld gives a path.
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13605 $as_echo_n "checking for ld used by $CC... " >&6; }
13608 # gcc leaves a trailing carriage return which upsets mingw
13609 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13611 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13614 # Accept absolute paths.
13616 re_direlt
='/[^/][^/]*/\.\./'
13617 # Canonicalize the pathname of ld
13618 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13619 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13620 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13622 test -z "$LD" && LD
="$ac_prog"
13625 # If it fails, then pretend we aren't using GCC.
13629 # If it is relative, then search for the first ld in PATH.
13630 with_gnu_ld
=unknown
13633 elif test "$with_gnu_ld" = yes; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13635 $as_echo_n "checking for GNU ld... " >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13638 $as_echo_n "checking for non-GNU ld... " >&6; }
13640 if ${lt_cv_path_LD+:} false
; then :
13641 $as_echo_n "(cached) " >&6
13643 if test -z "$LD"; then
13644 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13645 for ac_dir
in $PATH; do
13647 test -z "$ac_dir" && ac_dir
=.
13648 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13649 lt_cv_path_LD
="$ac_dir/$ac_prog"
13650 # Check to see if the program is GNU ld. I'd rather use --version,
13651 # but apparently some variants of GNU ld only accept -v.
13652 # Break only if it was the GNU/non-GNU ld that we prefer.
13653 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13654 *GNU
* |
*'with BFD'*)
13655 test "$with_gnu_ld" != no
&& break
13658 test "$with_gnu_ld" != yes && break
13665 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13669 LD
="$lt_cv_path_LD"
13670 if test -n "$LD"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13672 $as_echo "$LD" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13677 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13680 if ${lt_cv_prog_gnu_ld+:} false
; then :
13681 $as_echo_n "(cached) " >&6
13683 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13684 case `$LD -v 2>&1 </dev/null` in
13685 *GNU
* |
*'with BFD'*)
13686 lt_cv_prog_gnu_ld
=yes
13689 lt_cv_prog_gnu_ld
=no
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13694 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13695 with_gnu_ld
=$lt_cv_prog_gnu_ld
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13706 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13707 if ${lt_cv_path_NM+:} false
; then :
13708 $as_echo_n "(cached) " >&6
13710 if test -n "$NM"; then
13711 # Let the user override the test.
13712 lt_cv_path_NM
="$NM"
13714 lt_nm_to_check
="${ac_tool_prefix}nm"
13715 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13716 lt_nm_to_check
="$lt_nm_to_check nm"
13718 for lt_tmp_nm
in $lt_nm_to_check; do
13719 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13720 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13722 test -z "$ac_dir" && ac_dir
=.
13723 tmp_nm
="$ac_dir/$lt_tmp_nm"
13724 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13725 # Check to see if the nm accepts a BSD-compat flag.
13726 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13727 # nm: unknown option "B" ignored
13728 # Tru64's nm complains that /dev/null is an invalid object file
13729 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13730 */dev
/null
* |
*'Invalid file or object type'*)
13731 lt_cv_path_NM
="$tmp_nm -B"
13735 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13737 lt_cv_path_NM
="$tmp_nm -p"
13741 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13742 continue # so that we can try to find one that supports BSD flags
13751 : ${lt_cv_path_NM=no}
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13755 $as_echo "$lt_cv_path_NM" >&6; }
13756 if test "$lt_cv_path_NM" != "no"; then
13757 NM
="$lt_cv_path_NM"
13759 # Didn't find any BSD compatible name lister, look for dumpbin.
13760 if test -n "$DUMPBIN"; then :
13761 # Let the user override the test.
13763 if test -n "$ac_tool_prefix"; then
13764 for ac_prog
in dumpbin
"link -dump"
13766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13767 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13771 $as_echo_n "(cached) " >&6
13773 if test -n "$DUMPBIN"; then
13774 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13777 for as_dir
in $PATH
13780 test -z "$as_dir" && as_dir
=.
13781 for ac_exec_ext
in '' $ac_executable_extensions; do
13782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 DUMPBIN
=$ac_cv_prog_DUMPBIN
13794 if test -n "$DUMPBIN"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13796 $as_echo "$DUMPBIN" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13803 test -n "$DUMPBIN" && break
13806 if test -z "$DUMPBIN"; then
13807 ac_ct_DUMPBIN
=$DUMPBIN
13808 for ac_prog
in dumpbin
"link -dump"
13810 # Extract the first word of "$ac_prog", so it can be a program name with args.
13811 set dummy
$ac_prog; ac_word
=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13815 $as_echo_n "(cached) " >&6
13817 if test -n "$ac_ct_DUMPBIN"; then
13818 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13821 for as_dir
in $PATH
13824 test -z "$as_dir" && as_dir
=.
13825 for ac_exec_ext
in '' $ac_executable_extensions; do
13826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13838 if test -n "$ac_ct_DUMPBIN"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13840 $as_echo "$ac_ct_DUMPBIN" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13847 test -n "$ac_ct_DUMPBIN" && break
13850 if test "x$ac_ct_DUMPBIN" = x
; then
13853 case $cross_compiling:$ac_tool_warned in
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned
=yes ;;
13859 DUMPBIN
=$ac_ct_DUMPBIN
13863 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13865 DUMPBIN
="$DUMPBIN -symbols"
13873 if test "$DUMPBIN" != ":"; then
13877 test -z "$NM" && NM
=nm
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13885 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13886 if ${lt_cv_nm_interface+:} false
; then :
13887 $as_echo_n "(cached) " >&6
13889 lt_cv_nm_interface
="BSD nm"
13890 echo "int some_variable = 0;" > conftest.
$ac_ext
13891 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13892 (eval "$ac_compile" 2>conftest.err
)
13893 cat conftest.err
>&5
13894 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13895 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13896 cat conftest.err
>&5
13897 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13898 cat conftest.out
>&5
13899 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13900 lt_cv_nm_interface
="MS dumpbin"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13905 $as_echo "$lt_cv_nm_interface" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13908 $as_echo_n "checking whether ln -s works... " >&6; }
13910 if test "$LN_S" = "ln -s"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13912 $as_echo "yes" >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13915 $as_echo "no, using $LN_S" >&6; }
13918 # find the maximum length of command line arguments
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13920 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13921 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13922 $as_echo_n "(cached) " >&6
13929 # On DJGPP, this test can blow up pretty badly due to problems in libc
13930 # (any single argument exceeding 2000 bytes causes a buffer overrun
13931 # during glob expansion). Even if it were fixed, the result of this
13932 # check would be larger than it should be.
13933 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13937 # Under GNU Hurd, this test is not required because there is
13938 # no limit to the length of command line arguments.
13939 # Libtool will interpret -1 as no limit whatsoever
13940 lt_cv_sys_max_cmd_len
=-1;
13943 cygwin
* | mingw
* | cegcc
*)
13944 # On Win9x/ME, this test blows up -- it succeeds, but takes
13945 # about 5 minutes as the teststring grows exponentially.
13946 # Worse, since 9x/ME are not pre-emptively multitasking,
13947 # you end up with a "frozen" computer, even though with patience
13948 # the test eventually succeeds (with a max line length of 256k).
13949 # Instead, let's just punt: use the minimum linelength reported by
13950 # all of the supported platforms: 8192 (on NT/2K/XP).
13951 lt_cv_sys_max_cmd_len
=8192;
13955 # On MiNT this can take a long time and run out of memory.
13956 lt_cv_sys_max_cmd_len
=8192;
13960 # On AmigaOS with pdksh, this test takes hours, literally.
13961 # So we just punt and use a minimum line length of 8192.
13962 lt_cv_sys_max_cmd_len
=8192;
13965 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13966 # This has been around since 386BSD, at least. Likely further.
13967 if test -x /sbin
/sysctl
; then
13968 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13969 elif test -x /usr
/sbin
/sysctl
; then
13970 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13972 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13974 # And add a safety zone
13975 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13976 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13980 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13981 lt_cv_sys_max_cmd_len
=196608
13985 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13986 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13987 # nice to cause kernel panics so lets avoid the loop below.
13988 # First set a reasonable default.
13989 lt_cv_sys_max_cmd_len
=16384
13991 if test -x /sbin
/sysconfig
; then
13992 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13993 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13998 lt_cv_sys_max_cmd_len
=102400
14000 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14001 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14002 if test -n "$kargmax"; then
14003 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14005 lt_cv_sys_max_cmd_len
=32768
14009 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14010 if test -n "$lt_cv_sys_max_cmd_len"; then
14011 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14012 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14014 # Make teststring a little bigger before we do anything with it.
14015 # a 1K string should be a reasonable start.
14016 for i
in 1 2 3 4 5 6 7 8 ; do
14017 teststring
=$teststring$teststring
14019 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14020 # If test is not a shell built-in, we'll probably end up computing a
14021 # maximum length that is only half of the actual maximum length, but
14023 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14024 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14025 test $i != 17 # 1/2 MB should be enough
14028 teststring
=$teststring$teststring
14030 # Only check the string length outside the loop.
14031 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14033 # Add a significant safety factor because C++ compilers can tack on
14034 # massive amounts of additional arguments before passing them to the
14035 # linker. It appears as though 1/2 is a usable value.
14036 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14043 if test -n $lt_cv_sys_max_cmd_len ; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14045 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14048 $as_echo "none" >&6; }
14050 max_cmd_len
=$lt_cv_sys_max_cmd_len
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14062 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14063 # Try some XSI features
14065 ( _lt_dummy
="a/b/c"
14066 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14068 && eval 'test $(( 1 + 1 )) -eq 2 \
14069 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14072 $as_echo "$xsi_shell" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14076 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14078 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14080 && lt_shell_append=yes
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14082 $as_echo "$lt_shell_append" >&6; }
14085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14095 # test EBCDIC or ASCII
14096 case `echo X|tr X '\101'` in
14097 A) # ASCII based system
14098 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14099 lt_SP2NL='tr \040 \012'
14100 lt_NL2SP='tr \015\012 \040\040'
14102 *) # EBCDIC based system
14103 lt_SP2NL='tr \100 \n'
14104 lt_NL2SP='tr \r\n \100\100'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14117 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14118 if ${lt_cv_ld_reload_flag+:} false; then :
14119 $as_echo_n "(cached
) " >&6
14121 lt_cv_ld_reload_flag='-r'
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14124 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14125 reload_flag=$lt_cv_ld_reload_flag
14126 case $reload_flag in
14128 *) reload_flag=" $reload_flag" ;;
14130 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14133 if test "$GCC" = yes; then
14134 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14136 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14153 $as_echo_n "checking
for $ac_word...
" >&6; }
14154 if ${ac_cv_prog_OBJDUMP+:} false; then :
14155 $as_echo_n "(cached
) " >&6
14157 if test -n "$OBJDUMP"; then
14158 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14167 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14177 OBJDUMP=$ac_cv_prog_OBJDUMP
14178 if test -n "$OBJDUMP"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14180 $as_echo "$OBJDUMP" >&6; }
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14183 $as_echo "no
" >&6; }
14188 if test -z "$ac_cv_prog_OBJDUMP"; then
14189 ac_ct_OBJDUMP=$OBJDUMP
14190 # Extract the first word of "objdump
", so it can be a program name with args.
14191 set dummy objdump; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14193 $as_echo_n "checking
for $ac_word...
" >&6; }
14194 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14195 $as_echo_n "(cached
) " >&6
14197 if test -n "$ac_ct_OBJDUMP"; then
14198 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14207 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14217 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14218 if test -n "$ac_ct_OBJDUMP"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14220 $as_echo "$ac_ct_OBJDUMP" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14223 $as_echo "no
" >&6; }
14226 if test "x
$ac_ct_OBJDUMP" = x; then
14229 case $cross_compiling:$ac_tool_warned in
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14232 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14233 ac_tool_warned=yes ;;
14235 OBJDUMP=$ac_ct_OBJDUMP
14238 OBJDUMP="$ac_cv_prog_OBJDUMP"
14241 test -z "$OBJDUMP" && OBJDUMP=objdump
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14252 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14253 if ${lt_cv_deplibs_check_method+:} false; then :
14254 $as_echo_n "(cached
) " >&6
14256 lt_cv_file_magic_cmd='$MAGIC_CMD'
14257 lt_cv_file_magic_test_file=
14258 lt_cv_deplibs_check_method='unknown'
14259 # Need to set the preceding variable on all platforms that support
14260 # interlibrary dependencies.
14261 # 'none' -- dependencies not supported.
14262 # `unknown' -- same as none, but documents that we really don't know.
14263 # 'pass_all' -- all dependencies passed with no checks.
14264 # 'test_compile' -- check by making test program.
14265 # 'file_magic [[regex]]' -- check by looking for files in library path
14266 # which responds to the $file_magic_cmd with a given extended regex.
14267 # If you have `file' or equivalent on your system and you're not sure
14268 # whether `pass_all' will *always* work, you probably want this one.
14272 lt_cv_deplibs_check_method=pass_all
14276 lt_cv_deplibs_check_method=pass_all
14280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14281 lt_cv_file_magic_cmd='/usr/bin/file -L'
14282 lt_cv_file_magic_test_file=/shlib/libc.so
14286 # func_win32_libid is a shell function defined in ltmain.sh
14287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14288 lt_cv_file_magic_cmd='func_win32_libid'
14292 # Base MSYS/MinGW do not provide the 'file' command needed by
14293 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14294 # unless we find 'file', for example because we are cross-compiling.
14295 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14296 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14298 lt_cv_file_magic_cmd='func_win32_libid'
14300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14301 lt_cv_file_magic_cmd='$OBJDUMP -f'
14306 # use the weaker test based on 'objdump'. See mingw*.
14307 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14308 lt_cv_file_magic_cmd='$OBJDUMP -f'
14311 darwin* | rhapsody*)
14312 lt_cv_deplibs_check_method=pass_all
14315 freebsd* | dragonfly*)
14316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14319 # Not sure whether the presence of OpenBSD here was a mistake.
14320 # Let's accept both of them until this is cleared up.
14321 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14322 lt_cv_file_magic_cmd=/usr/bin/file
14323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14327 lt_cv_deplibs_check_method=pass_all
14332 lt_cv_deplibs_check_method=pass_all
14336 lt_cv_deplibs_check_method=pass_all
14339 hpux10.20* | hpux11*)
14340 lt_cv_file_magic_cmd=/usr/bin/file
14343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14347 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]'
14348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14362 irix5* | irix6* | nonstopux*)
14364 *-32|*"-32 ") libmagic=32-bit;;
14365 *-n32|*"-n32 ") libmagic=N32;;
14366 *-64|*"-64 ") libmagic=64-bit;;
14367 *) libmagic=never-match;;
14369 lt_cv_deplibs_check_method=pass_all
14372 # This must be Linux ELF.
14373 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14374 lt_cv_deplibs_check_method=pass_all
14378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14387 lt_cv_file_magic_cmd=/usr/bin/file
14388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14392 lt_cv_deplibs_check_method=pass_all
14396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14403 osf3* | osf4* | osf5*)
14404 lt_cv_deplibs_check_method=pass_all
14408 lt_cv_deplibs_check_method=pass_all
14412 lt_cv_deplibs_check_method=pass_all
14415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14416 lt_cv_deplibs_check_method=pass_all
14420 case $host_vendor in
14422 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]'
14423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14426 lt_cv_deplibs_check_method=pass_all
14429 lt_cv_file_magic_cmd='/bin/file'
14430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14433 lt_cv_file_magic_cmd='/bin/file'
14434 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14435 lt_cv_file_magic_test_file=/lib/libc.so
14438 lt_cv_deplibs_check_method=pass_all
14441 lt_cv_deplibs_check_method=pass_all
14447 lt_cv_deplibs_check_method=pass_all
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14454 file_magic_cmd=$lt_cv_file_magic_cmd
14455 deplibs_check_method=$lt_cv_deplibs_check_method
14456 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14469 if test -n "$ac_tool_prefix"; then
14470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14471 set dummy ${ac_tool_prefix}ar; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if ${ac_cv_prog_AR+:} false; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$AR"; then
14478 ac_cv_prog_AR="$AR" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_AR="${ac_tool_prefix}ar"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14498 if test -n "$AR"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14500 $as_echo "$AR" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14508 if test -z "$ac_cv_prog_AR"; then
14510 # Extract the first word of "ar", so it can be a program name with args.
14511 set dummy ar; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14513 $as_echo_n "checking
for $ac_word...
" >&6; }
14514 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14515 $as_echo_n "(cached
) " >&6
14517 if test -n "$ac_ct_AR"; then
14518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527 ac_cv_prog_ac_ct_AR="ar"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14538 if test -n "$ac_ct_AR"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14540 $as_echo "$ac_ct_AR" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14543 $as_echo "no
" >&6; }
14546 if test "x
$ac_ct_AR" = x; then
14549 case $cross_compiling:$ac_tool_warned in
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14553 ac_tool_warned=yes ;;
14558 AR="$ac_cv_prog_AR"
14561 test -z "$AR" && AR=ar
14562 test -z "$AR_FLAGS" && AR_FLAGS=cru
14574 if test -n "$ac_tool_prefix"; then
14575 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14576 set dummy ${ac_tool_prefix}strip; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14578 $as_echo_n "checking
for $ac_word...
" >&6; }
14579 if ${ac_cv_prog_STRIP+:} false; then :
14580 $as_echo_n "(cached
) " >&6
14582 if test -n "$STRIP"; then
14583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14602 STRIP=$ac_cv_prog_STRIP
14603 if test -n "$STRIP"; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14605 $as_echo "$STRIP" >&6; }
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14608 $as_echo "no
" >&6; }
14613 if test -z "$ac_cv_prog_STRIP"; then
14615 # Extract the first word of "strip
", so it can be a program name with args.
14616 set dummy strip; ac_word=$2
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14618 $as_echo_n "checking
for $ac_word...
" >&6; }
14619 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14620 $as_echo_n "(cached
) " >&6
14622 if test -n "$ac_ct_STRIP"; then
14623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14632 ac_cv_prog_ac_ct_STRIP="strip
"
14633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643 if test -n "$ac_ct_STRIP"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14645 $as_echo "$ac_ct_STRIP" >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14648 $as_echo "no
" >&6; }
14651 if test "x
$ac_ct_STRIP" = x; then
14654 case $cross_compiling:$ac_tool_warned in
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14657 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14658 ac_tool_warned=yes ;;
14663 STRIP="$ac_cv_prog_STRIP"
14666 test -z "$STRIP" && STRIP=:
14673 if test -n "$ac_tool_prefix"; then
14674 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14677 $as_echo_n "checking
for $ac_word...
" >&6; }
14678 if ${ac_cv_prog_RANLIB+:} false; then :
14679 $as_echo_n "(cached
) " >&6
14681 if test -n "$RANLIB"; then
14682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14685 for as_dir in $PATH
14688 test -z "$as_dir" && as_dir=.
14689 for ac_exec_ext in '' $ac_executable_extensions; do
14690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14701 RANLIB=$ac_cv_prog_RANLIB
14702 if test -n "$RANLIB"; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14704 $as_echo "$RANLIB" >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14707 $as_echo "no
" >&6; }
14712 if test -z "$ac_cv_prog_RANLIB"; then
14713 ac_ct_RANLIB=$RANLIB
14714 # Extract the first word of "ranlib
", so it can be a program name with args.
14715 set dummy ranlib; ac_word=$2
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14717 $as_echo_n "checking
for $ac_word...
" >&6; }
14718 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14719 $as_echo_n "(cached
) " >&6
14721 if test -n "$ac_ct_RANLIB"; then
14722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14742 if test -n "$ac_ct_RANLIB"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14744 $as_echo "$ac_ct_RANLIB" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14747 $as_echo "no
" >&6; }
14750 if test "x
$ac_ct_RANLIB" = x; then
14753 case $cross_compiling:$ac_tool_warned in
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14756 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14757 ac_tool_warned=yes ;;
14759 RANLIB=$ac_ct_RANLIB
14762 RANLIB="$ac_cv_prog_RANLIB"
14765 test -z "$RANLIB" && RANLIB=:
14772 # Determine commands to create old-style static archives.
14773 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14774 old_postinstall_cmds='chmod 644 $oldlib'
14775 old_postuninstall_cmds=
14777 if test -n "$RANLIB"; then
14780 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14783 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14786 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14791 lock_old_archive_extraction=yes ;;
14793 lock_old_archive_extraction=no ;;
14834 # If no C compiler was specified, use CC.
14837 # If no C compiler flags were specified, use CFLAGS.
14838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14840 # Allow CC to be a program name with arguments.
14844 # Check for command to grab the raw symbol name followed by C symbol from nm.
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14846 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14847 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14848 $as_echo_n "(cached
) " >&6
14851 # These are sane defaults that work on at least a few old systems.
14852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14854 # Character class describing NM global symbol codes.
14855 symcode='[BCDEGRST]'
14857 # Regexp to match symbols that can be accessed directly from C.
14858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14860 # Define system-specific variables.
14865 cygwin* | mingw* | pw32* | cegcc*)
14866 symcode='[ABCDGISTW]'
14869 if test "$host_cpu" = ia64; then
14870 symcode='[ABCDEGRST]'
14873 irix* | nonstopux*)
14874 symcode='[BCDEGRST]'
14877 symcode='[BCDEGQRST]'
14888 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14896 # If we're using GNU nm, then use its standard symbol codes.
14897 case `$NM -V 2>&1` in
14898 *GNU* | *'with BFD'*)
14899 symcode='[ABCDGIRSTW]' ;;
14902 # Transform an extracted symbol line into a proper C declaration.
14903 # Some systems (esp. on ia64) link data and code symbols differently,
14904 # so use this general approach.
14905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14907 # Transform an extracted symbol line into symbol name and symbol address
14908 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14909 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'"
14911 # Handle CRLF in mingw tool chain
14915 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14919 # Try without a prefix underscore, then with it.
14920 for ac_symprfx in "" "_
"; do
14922 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14923 symxfrm="\\1 $ac_symprfx\\2 \\2"
14925 # Write the raw and C identifiers.
14926 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14927 # Fake it for dumpbin and say T for any non-static function
14928 # and D for any global variable.
14929 # Also find C++ and __fastcall symbols from MSVC++,
14930 # which start with @ or ?.
14931 lt_cv_sys_global_symbol_pipe="$AWK '"\
14932 " {last_section=section; section=\$ 3};"\
14933 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14934 " \$ 0!~/External *\|/{next};"\
14935 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14936 " {if(hide[section]) next};"\
14937 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14938 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14939 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14940 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14941 " ' prfx
=^
$ac_symprfx"
14943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14946 # Check to see that the pipe works correctly.
14950 cat > conftest.$ac_ext <<_LT_EOF
14955 void nm_test_func(void);
14956 void nm_test_func(void){}
14960 int main(){nm_test_var='a';nm_test_func();return(0);}
14963 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14964 (eval $ac_compile) 2>&5
14966 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14967 test $ac_status = 0; }; then
14968 # Now try to grab the symbols.
14970 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14971 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14973 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14974 test $ac_status = 0; } && test -s "$nlist"; then
14975 # Try sorting and uniquifying the output.
14976 if sort "$nlist" | uniq > "$nlist"T; then
14977 mv -f "$nlist"T "$nlist"
14982 # Make sure that we snagged all the symbols we need.
14983 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14984 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14985 cat <<_LT_EOF > conftest.$ac_ext
14991 # Now generate the symbol file.
14992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14994 cat <<_LT_EOF >> conftest.$ac_ext
14996 /* The mapping between symbol names and symbols. */
15001 lt__PROGRAM__LTX_preloaded_symbols[] =
15003 { "@PROGRAM@
", (void *) 0 },
15005 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15006 cat <<\_LT_EOF >> conftest.$ac_ext
15010 /* This works around a problem in FreeBSD linker */
15011 #ifdef FREEBSD_WORKAROUND
15012 static const void *lt_preloaded_setup() {
15013 return lt__PROGRAM__LTX_preloaded_symbols;
15021 # Now try linking the two files.
15022 mv conftest.$ac_objext conftstm.$ac_objext
15023 lt_save_LIBS="$LIBS"
15024 lt_save_CFLAGS="$CFLAGS"
15025 LIBS="conftstm.
$ac_objext"
15026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15027 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15028 (eval $ac_link) 2>&5
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15031 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15034 LIBS="$lt_save_LIBS"
15035 CFLAGS="$lt_save_CFLAGS"
15037 echo "cannot
find nm_test_func
in $nlist" >&5
15040 echo "cannot
find nm_test_var
in $nlist" >&5
15043 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15046 echo "$progname: failed program was
:" >&5
15047 cat conftest.$ac_ext >&5
15049 rm -rf conftest* conftst*
15051 # Do not use the global_symbol_pipe unless it works.
15052 if test "$pipe_works" = yes; then
15055 lt_cv_sys_global_symbol_pipe=
15061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15062 lt_cv_sys_global_symbol_to_cdecl=
15064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15066 $as_echo "failed
" >&6; }
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15069 $as_echo "ok
" >&6; }
15093 # Check whether --enable-libtool-lock was given.
15094 if test "${enable_libtool_lock+set}" = set; then :
15095 enableval=$enable_libtool_lock;
15098 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15100 # Some flags need to be propagated to the compiler or linker for good
15104 # Find out which ABI we are using.
15105 echo 'int i;' > conftest.$ac_ext
15106 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15107 (eval $ac_compile) 2>&5
15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15110 test $ac_status = 0; }; then
15111 case `/usr/bin/file conftest.$ac_objext` in
15113 HPUX_IA64_MODE="32"
15116 HPUX_IA64_MODE="64"
15123 # Find out which ABI we are using.
15124 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15125 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15126 (eval $ac_compile) 2>&5
15128 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15129 test $ac_status = 0; }; then
15130 if test "$lt_cv_prog_gnu_ld" = yes; then
15131 case `/usr/bin/file conftest.$ac_objext` in
15133 LD="${LD-ld} -melf32bsmip"
15136 LD="${LD-ld} -melf32bmipn32"
15139 LD="${LD-ld} -melf64bmip"
15143 case `/usr/bin/file conftest.$ac_objext` in
15159 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15160 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15161 # Find out which ABI we are using.
15162 echo 'int i;' > conftest.$ac_ext
15163 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15164 (eval $ac_compile) 2>&5
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15167 test $ac_status = 0; }; then
15168 case `/usr/bin/file conftest.o` in
15171 x86_64-*kfreebsd*-gnu)
15172 LD="${LD-ld} -m elf_i386_fbsd
"
15175 case `/usr/bin/file conftest.o` in
15177 LD="${LD-ld} -m elf32_x86_64
"
15180 LD="${LD-ld} -m elf_i386
"
15184 powerpc64le-*linux*)
15185 LD="${LD-ld} -m elf32lppclinux
"
15188 LD="${LD-ld} -m elf32ppclinux
"
15191 LD="${LD-ld} -m elf_s390
"
15194 LD="${LD-ld} -m elf32_sparc
"
15200 x86_64-*kfreebsd*-gnu)
15201 LD="${LD-ld} -m elf_x86_64_fbsd
"
15204 LD="${LD-ld} -m elf_x86_64
"
15207 LD="${LD-ld} -m elf64lppc
"
15210 LD="${LD-ld} -m elf64ppc
"
15212 s390*-*linux*|s390*-*tpf*)
15213 LD="${LD-ld} -m elf64_s390
"
15216 LD="${LD-ld} -m elf64_sparc
"
15226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15227 SAVE_CFLAGS="$CFLAGS"
15228 CFLAGS="$CFLAGS -belf"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15230 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15231 if ${lt_cv_cc_needs_belf+:} false; then :
15232 $as_echo_n "(cached
) " >&6
15235 ac_cpp='$CPP $CPPFLAGS'
15236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15251 if ac_fn_c_try_link "$LINENO"; then :
15252 lt_cv_cc_needs_belf=yes
15254 lt_cv_cc_needs_belf=no
15256 rm -f core conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_cpp='$CPP $CPPFLAGS'
15260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15266 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15267 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15268 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15269 CFLAGS="$SAVE_CFLAGS"
15273 # Find out which ABI we are using.
15274 echo 'int i;' > conftest.$ac_ext
15275 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15276 (eval $ac_compile) 2>&5
15278 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15279 test $ac_status = 0; }; then
15280 case `/usr/bin/file conftest.o` in
15282 case $lt_cv_prog_gnu_ld in
15283 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15297 need_locks="$enable_libtool_lock"
15301 rhapsody* | darwin*)
15302 if test -n "$ac_tool_prefix"; then
15303 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15304 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15306 $as_echo_n "checking
for $ac_word...
" >&6; }
15307 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15308 $as_echo_n "(cached
) " >&6
15310 if test -n "$DSYMUTIL"; then
15311 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15314 for as_dir in $PATH
15317 test -z "$as_dir" && as_dir=.
15318 for ac_exec_ext in '' $ac_executable_extensions; do
15319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15320 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15321 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15330 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15331 if test -n "$DSYMUTIL"; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15333 $as_echo "$DSYMUTIL" >&6; }
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15336 $as_echo "no
" >&6; }
15341 if test -z "$ac_cv_prog_DSYMUTIL"; then
15342 ac_ct_DSYMUTIL=$DSYMUTIL
15343 # Extract the first word of "dsymutil
", so it can be a program name with args.
15344 set dummy dsymutil; ac_word=$2
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15346 $as_echo_n "checking
for $ac_word...
" >&6; }
15347 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15348 $as_echo_n "(cached
) " >&6
15350 if test -n "$ac_ct_DSYMUTIL"; then
15351 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15357 test -z "$as_dir" && as_dir=.
15358 for ac_exec_ext in '' $ac_executable_extensions; do
15359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15360 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15370 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15371 if test -n "$ac_ct_DSYMUTIL"; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15373 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15376 $as_echo "no
" >&6; }
15379 if test "x
$ac_ct_DSYMUTIL" = x; then
15382 case $cross_compiling:$ac_tool_warned in
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15385 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15386 ac_tool_warned=yes ;;
15388 DSYMUTIL=$ac_ct_DSYMUTIL
15391 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15394 if test -n "$ac_tool_prefix"; then
15395 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15396 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15398 $as_echo_n "checking
for $ac_word...
" >&6; }
15399 if ${ac_cv_prog_NMEDIT+:} false; then :
15400 $as_echo_n "(cached
) " >&6
15402 if test -n "$NMEDIT"; then
15403 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15406 for as_dir in $PATH
15409 test -z "$as_dir" && as_dir=.
15410 for ac_exec_ext in '' $ac_executable_extensions; do
15411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15412 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15422 NMEDIT=$ac_cv_prog_NMEDIT
15423 if test -n "$NMEDIT"; then
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15425 $as_echo "$NMEDIT" >&6; }
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15428 $as_echo "no
" >&6; }
15433 if test -z "$ac_cv_prog_NMEDIT"; then
15434 ac_ct_NMEDIT=$NMEDIT
15435 # Extract the first word of "nmedit
", so it can be a program name with args.
15436 set dummy nmedit; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15438 $as_echo_n "checking
for $ac_word...
" >&6; }
15439 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15440 $as_echo_n "(cached
) " >&6
15442 if test -n "$ac_ct_NMEDIT"; then
15443 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15446 for as_dir in $PATH
15449 test -z "$as_dir" && as_dir=.
15450 for ac_exec_ext in '' $ac_executable_extensions; do
15451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15452 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15462 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15463 if test -n "$ac_ct_NMEDIT"; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15465 $as_echo "$ac_ct_NMEDIT" >&6; }
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15468 $as_echo "no
" >&6; }
15471 if test "x
$ac_ct_NMEDIT" = x; then
15474 case $cross_compiling:$ac_tool_warned in
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15477 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15478 ac_tool_warned=yes ;;
15480 NMEDIT=$ac_ct_NMEDIT
15483 NMEDIT="$ac_cv_prog_NMEDIT"
15486 if test -n "$ac_tool_prefix"; then
15487 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15488 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15490 $as_echo_n "checking
for $ac_word...
" >&6; }
15491 if ${ac_cv_prog_LIPO+:} false; then :
15492 $as_echo_n "(cached
) " >&6
15494 if test -n "$LIPO"; then
15495 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15514 LIPO=$ac_cv_prog_LIPO
15515 if test -n "$LIPO"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15517 $as_echo "$LIPO" >&6; }
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15520 $as_echo "no
" >&6; }
15525 if test -z "$ac_cv_prog_LIPO"; then
15527 # Extract the first word of "lipo
", so it can be a program name with args.
15528 set dummy lipo; ac_word=$2
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15530 $as_echo_n "checking
for $ac_word...
" >&6; }
15531 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15532 $as_echo_n "(cached
) " >&6
15534 if test -n "$ac_ct_LIPO"; then
15535 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_ac_ct_LIPO="lipo
"
15545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15554 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15555 if test -n "$ac_ct_LIPO"; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15557 $as_echo "$ac_ct_LIPO" >&6; }
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15560 $as_echo "no
" >&6; }
15563 if test "x
$ac_ct_LIPO" = x; then
15566 case $cross_compiling:$ac_tool_warned in
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15569 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15570 ac_tool_warned=yes ;;
15575 LIPO="$ac_cv_prog_LIPO"
15578 if test -n "$ac_tool_prefix"; then
15579 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15580 set dummy ${ac_tool_prefix}otool; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15582 $as_echo_n "checking
for $ac_word...
" >&6; }
15583 if ${ac_cv_prog_OTOOL+:} false; then :
15584 $as_echo_n "(cached
) " >&6
15586 if test -n "$OTOOL"; then
15587 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15593 test -z "$as_dir" && as_dir=.
15594 for ac_exec_ext in '' $ac_executable_extensions; do
15595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15596 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15606 OTOOL=$ac_cv_prog_OTOOL
15607 if test -n "$OTOOL"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15609 $as_echo "$OTOOL" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15612 $as_echo "no
" >&6; }
15617 if test -z "$ac_cv_prog_OTOOL"; then
15619 # Extract the first word of "otool
", so it can be a program name with args.
15620 set dummy otool; ac_word=$2
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15622 $as_echo_n "checking
for $ac_word...
" >&6; }
15623 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15624 $as_echo_n "(cached
) " >&6
15626 if test -n "$ac_ct_OTOOL"; then
15627 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_ac_ct_OTOOL="otool
"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15646 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15647 if test -n "$ac_ct_OTOOL"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15649 $as_echo "$ac_ct_OTOOL" >&6; }
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15652 $as_echo "no
" >&6; }
15655 if test "x
$ac_ct_OTOOL" = x; then
15658 case $cross_compiling:$ac_tool_warned in
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15661 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15662 ac_tool_warned=yes ;;
15667 OTOOL="$ac_cv_prog_OTOOL"
15670 if test -n "$ac_tool_prefix"; then
15671 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15672 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15674 $as_echo_n "checking
for $ac_word...
" >&6; }
15675 if ${ac_cv_prog_OTOOL64+:} false; then :
15676 $as_echo_n "(cached
) " >&6
15678 if test -n "$OTOOL64"; then
15679 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682 for as_dir in $PATH
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
15687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15688 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15689 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15698 OTOOL64=$ac_cv_prog_OTOOL64
15699 if test -n "$OTOOL64"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15701 $as_echo "$OTOOL64" >&6; }
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15704 $as_echo "no
" >&6; }
15709 if test -z "$ac_cv_prog_OTOOL64"; then
15710 ac_ct_OTOOL64=$OTOOL64
15711 # Extract the first word of "otool64
", so it can be a program name with args.
15712 set dummy otool64; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15714 $as_echo_n "checking
for $ac_word...
" >&6; }
15715 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15716 $as_echo_n "(cached
) " >&6
15718 if test -n "$ac_ct_OTOOL64"; then
15719 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722 for as_dir in $PATH
15725 test -z "$as_dir" && as_dir=.
15726 for ac_exec_ext in '' $ac_executable_extensions; do
15727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15738 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15739 if test -n "$ac_ct_OTOOL64"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15741 $as_echo "$ac_ct_OTOOL64" >&6; }
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15744 $as_echo "no
" >&6; }
15747 if test "x
$ac_ct_OTOOL64" = x; then
15750 case $cross_compiling:$ac_tool_warned in
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15753 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15754 ac_tool_warned=yes ;;
15756 OTOOL64=$ac_ct_OTOOL64
15759 OTOOL64="$ac_cv_prog_OTOOL64"
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15789 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15790 if ${lt_cv_apple_cc_single_mod+:} false; then :
15791 $as_echo_n "(cached
) " >&6
15793 lt_cv_apple_cc_single_mod=no
15794 if test -z "${LT_MULTI_MODULE}"; then
15795 # By default we will add the -single_module flag. You can override
15796 # by either setting the environment variable LT_MULTI_MODULE
15797 # non-empty at configure time, or by adding -multi_module to the
15799 rm -rf libconftest.dylib*
15800 echo "int foo
(void
){return 1;}" > conftest.c
15801 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15802 -dynamiclib -Wl,-single_module conftest.c
" >&5
15803 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15804 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15806 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15807 lt_cv_apple_cc_single_mod=yes
15809 cat conftest.err >&5
15811 rm -rf libconftest.dylib*
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15816 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15818 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15819 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15820 $as_echo_n "(cached
) " >&6
15822 lt_cv_ld_exported_symbols_list=no
15823 save_LDFLAGS=$LDFLAGS
15824 echo "_main
" > conftest.sym
15825 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 lt_cv_ld_exported_symbols_list=yes
15840 lt_cv_ld_exported_symbols_list=no
15842 rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15844 LDFLAGS="$save_LDFLAGS"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15848 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15850 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15851 if ${lt_cv_ld_force_load+:} false; then :
15852 $as_echo_n "(cached
) " >&6
15854 lt_cv_ld_force_load=no
15855 cat > conftest.c << _LT_EOF
15856 int forced_loaded() { return 2;}
15858 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15859 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15860 echo "$AR cru libconftest.a conftest.o
" >&5
15861 $AR cru libconftest.a conftest.o 2>&5
15862 cat > conftest.c << _LT_EOF
15863 int main() { return 0;}
15865 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15866 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15868 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15869 lt_cv_ld_force_load=yes
15871 cat conftest.err >&5
15873 rm -f conftest.err libconftest.a conftest conftest.c
15874 rm -rf conftest.dSYM
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15878 $as_echo "$lt_cv_ld_force_load" >&6; }
15879 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15880 # build without first building modern cctools / linker.
15881 case $host_cpu-$host_os in
15882 *-rhapsody* | *-darwin1.[012])
15883 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15887 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15888 # deployment target is forced to an earlier version.
15889 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15890 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15893 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15900 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15901 _lt_dar_single_mod='$single_module'
15903 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15904 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15908 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15909 _lt_dsymutil='~$DSYMUTIL $lib || :'
15917 for ac_header in dlfcn.h
15919 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15920 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15921 cat >>confdefs.h <<_ACEOF
15922 #define HAVE_DLFCN_H 1
15939 enable_win32_dll=no
15942 # Check whether --enable-shared was given.
15943 if test "${enable_shared+set}" = set; then :
15944 enableval=$enable_shared; p=${PACKAGE-default}
15946 yes) enable_shared=yes ;;
15947 no) enable_shared=no ;;
15950 # Look at the argument we got. We use all the common list separators.
15951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15952 for pkg in $enableval; do
15954 if test "X
$pkg" = "X
$p"; then
15973 # Check whether --enable-static was given.
15974 if test "${enable_static+set}" = set; then :
15975 enableval=$enable_static; p=${PACKAGE-default}
15977 yes) enable_static=yes ;;
15978 no) enable_static=no ;;
15981 # Look at the argument we got. We use all the common list separators.
15982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15983 for pkg in $enableval; do
15985 if test "X
$pkg" = "X
$p"; then
16005 # Check whether --with-pic was given.
16006 if test "${with_pic+set}" = set; then :
16007 withval=$with_pic; pic_mode="$withval"
16013 test -z "$pic_mode" && pic_mode=default
16021 # Check whether --enable-fast-install was given.
16022 if test "${enable_fast_install+set}" = set; then :
16023 enableval=$enable_fast_install; p=${PACKAGE-default}
16025 yes) enable_fast_install=yes ;;
16026 no) enable_fast_install=no ;;
16028 enable_fast_install=no
16029 # Look at the argument we got. We use all the common list separators.
16030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16031 for pkg in $enableval; do
16033 if test "X
$pkg" = "X
$p"; then
16034 enable_fast_install=yes
16041 enable_fast_install=yes
16054 # This can be used to rebuild libtool when needed
16055 LIBTOOL_DEPS="$ltmain"
16057 # Always use our own libtool.
16058 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16085 test -z "$LN_S" && LN_S="ln -s"
16100 if test -n "${ZSH_VERSION+set}" ; then
16101 setopt NO_GLOB_SUBST
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16105 $as_echo_n "checking
for objdir...
" >&6; }
16106 if ${lt_cv_objdir+:} false; then :
16107 $as_echo_n "(cached
) " >&6
16109 rm -f .libs 2>/dev/null
16110 mkdir .libs 2>/dev/null
16111 if test -d .libs; then
16114 # MS-DOS does not allow filenames that begin with a dot.
16117 rmdir .libs 2>/dev/null
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16120 $as_echo "$lt_cv_objdir" >&6; }
16121 objdir=$lt_cv_objdir
16127 cat >>confdefs.h <<_ACEOF
16128 #define LT_OBJDIR "$lt_cv_objdir/"
16136 # AIX sometimes has problems with the GCC collect2 program. For some
16137 # reason, if we set the COLLECT_NAMES environment variable, the problems
16138 # vanish in a puff of smoke.
16139 if test "X
${COLLECT_NAMES+set}" != Xset; then
16141 export COLLECT_NAMES
16146 # Global variables:
16148 can_build_shared=yes
16150 # All known linkers require a `.a' archive for static linking (except MSVC,
16151 # which needs '.lib').
16154 with_gnu_ld="$lt_cv_prog_gnu_ld"
16157 old_CFLAGS="$CFLAGS"
16159 # Set sane defaults for various variables
16160 test -z "$CC" && CC=cc
16161 test -z "$LTCC" && LTCC=$CC
16162 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16163 test -z "$LD" && LD=ld
16164 test -z "$ac_objext" && ac_objext=o
16166 for cc_temp in $compiler""; do
16168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16174 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16177 # Only perform the check for file, if the check method requires it
16178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16179 case $deplibs_check_method in
16181 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16183 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16185 $as_echo_n "(cached
) " >&6
16189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16192 lt_save_MAGIC_CMD="$MAGIC_CMD"
16193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16194 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16195 for ac_dir in $ac_dummy; do
16197 test -z "$ac_dir" && ac_dir=.
16198 if test -f $ac_dir/${ac_tool_prefix}file; then
16199 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16200 if test -n "$file_magic_test_file"; then
16201 case $deplibs_check_method in
16203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16206 $EGREP "$file_magic_regex" > /dev/null; then
16211 *** Warning: the command libtool uses to detect shared libraries,
16212 *** $file_magic_cmd, produces output that libtool cannot recognize.
16213 *** The result is that libtool may fail to recognize shared libraries
16214 *** as such. This will affect the creation of libtool libraries that
16215 *** depend on shared libraries, but programs linked with such libtool
16216 *** libraries will work regardless of this problem. Nevertheless, you
16217 *** may want to report the problem to your system manager and/or to
16218 *** bug-libtool@gnu.org
16228 MAGIC_CMD="$lt_save_MAGIC_CMD"
16233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16234 if test -n "$MAGIC_CMD"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16236 $as_echo "$MAGIC_CMD" >&6; }
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16239 $as_echo "no
" >&6; }
16246 if test -z "$lt_cv_path_MAGIC_CMD"; then
16247 if test -n "$ac_tool_prefix"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16249 $as_echo_n "checking
for file...
" >&6; }
16250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16251 $as_echo_n "(cached
) " >&6
16255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16258 lt_save_MAGIC_CMD="$MAGIC_CMD"
16259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16260 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16261 for ac_dir in $ac_dummy; do
16263 test -z "$ac_dir" && ac_dir=.
16264 if test -f $ac_dir/file; then
16265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16266 if test -n "$file_magic_test_file"; then
16267 case $deplibs_check_method in
16269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16272 $EGREP "$file_magic_regex" > /dev/null; then
16277 *** Warning: the command libtool uses to detect shared libraries,
16278 *** $file_magic_cmd, produces output that libtool cannot recognize.
16279 *** The result is that libtool may fail to recognize shared libraries
16280 *** as such. This will affect the creation of libtool libraries that
16281 *** depend on shared libraries, but programs linked with such libtool
16282 *** libraries will work regardless of this problem. Nevertheless, you
16283 *** may want to report the problem to your system manager and/or to
16284 *** bug-libtool@gnu.org
16294 MAGIC_CMD="$lt_save_MAGIC_CMD"
16299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16300 if test -n "$MAGIC_CMD"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16302 $as_echo "$MAGIC_CMD" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16305 $as_echo "no
" >&6; }
16318 # Use C for the default configuration in the libtool script
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328 # Source file extension for C test sources.
16331 # Object file extension for compiled C test sources.
16335 # Code to be used in simple compile tests
16336 lt_simple_compile_test_code="int some_variable
= 0;"
16338 # Code to be used in simple link tests
16339 lt_simple_link_test_code='int main(){return(0);}'
16347 # If no C compiler was specified, use CC.
16350 # If no C compiler flags were specified, use CFLAGS.
16351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16353 # Allow CC to be a program name with arguments.
16356 # Save the default compiler, since it gets overwritten when the other
16357 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16358 compiler_DEFAULT=$CC
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16367 ac_outfile=conftest.$ac_objext
16368 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16375 ## There is no encapsulation within the following macros, do not change
16376 ## the running order or otherwise move them around unless you know exactly
16377 ## what you are doing...
16378 if test -n "$compiler"; then
16380 lt_prog_compiler_no_builtin_flag=
16382 if test "$GCC" = yes; then
16383 case $cc_basename in
16385 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16387 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16391 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16392 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16393 $as_echo_n "(cached
) " >&6
16395 lt_cv_prog_compiler_rtti_exceptions=no
16396 ac_outfile=conftest.$ac_objext
16397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16398 lt_compiler_flag="-fno-rtti -fno-exceptions"
16399 # Insert the option either (1) after the last *FLAGS variable, or
16400 # (2) before a word containing "conftest.
", or (3) at the end.
16401 # Note that $ac_compile itself does not contain backslashes and begins
16402 # with a dollar sign (not a hyphen), so the echo should work correctly.
16403 # The option is referenced via a variable to avoid confusing sed.
16404 lt_compile=`echo "$ac_compile" | $SED \
16405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16407 -e 's:$: $lt_compiler_flag:'`
16408 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16409 (eval "$lt_compile" 2>conftest.err)
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16413 if (exit $ac_status) && test -s "$ac_outfile"; then
16414 # The compiler can only warn and ignore the option if not recognized
16415 # So say no if there are warnings other than the usual output.
16416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16419 lt_cv_prog_compiler_rtti_exceptions=yes
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16426 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16441 lt_prog_compiler_wl=
16442 lt_prog_compiler_pic=
16443 lt_prog_compiler_static=
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16446 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16448 if test "$GCC" = yes; then
16449 lt_prog_compiler_wl='-Wl,'
16450 lt_prog_compiler_static='-static'
16454 # All AIX code is PIC.
16455 if test "$host_cpu" = ia64; then
16456 # AIX 5 now supports IA64 processor
16457 lt_prog_compiler_static='-Bstatic'
16459 lt_prog_compiler_pic='-fPIC'
16465 # see comment about AmigaOS4 .so support
16466 lt_prog_compiler_pic='-fPIC'
16469 # FIXME: we need at least 68020 code to build shared libraries, but
16470 # adding the `-m68020' flag to GCC prevents building anything better,
16472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478 # PIC is the default for these OSes.
16481 mingw* | cygwin* | pw32* | os2* | cegcc*)
16482 # This hack is so that the source file can tell whether it is being
16483 # built for inclusion in a dll (and should export symbols for example).
16484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16485 # (--disable-auto-import) libraries
16486 lt_prog_compiler_pic='-DDLL_EXPORT'
16489 darwin* | rhapsody*)
16490 # PIC is the default on this platform
16491 # Common symbols not allowed in MH_DYLIB files
16492 lt_prog_compiler_pic='-fno-common'
16496 # PIC is the default for Haiku.
16497 # The "-static" flag exists, but is broken.
16498 lt_prog_compiler_static=
16502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16504 # sets the default TLS model and affects inlining.
16510 lt_prog_compiler_pic='-fPIC'
16516 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16517 # Instead, we relocate shared libraries at runtime.
16521 # Just because we use GCC doesn't mean we suddenly get shared libraries
16522 # on systems that don't support them.
16523 lt_prog_compiler_can_build_shared=no
16528 # QNX uses GNU C++, but need to define -shared option too, otherwise
16529 # it will coredump.
16530 lt_prog_compiler_pic='-fPIC -shared'
16534 if test -d /usr/nec; then
16535 lt_prog_compiler_pic=-Kconform_pic
16540 lt_prog_compiler_pic='-fPIC'
16544 case $cc_basename in
16545 nvcc*) # Cuda Compiler Driver 2.2
16546 lt_prog_compiler_wl='-Xlinker '
16547 lt_prog_compiler_pic='-Xcompiler -fPIC'
16551 # PORTME Check for flag to pass linker flags through the system compiler.
16554 lt_prog_compiler_wl='-Wl,'
16555 if test "$host_cpu" = ia64; then
16556 # AIX 5 now supports IA64 processor
16557 lt_prog_compiler_static='-Bstatic'
16559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16563 mingw* | cygwin* | pw32* | os2* | cegcc*)
16564 # This hack is so that the source file can tell whether it is being
16565 # built for inclusion in a dll (and should export symbols for example).
16566 lt_prog_compiler_pic='-DDLL_EXPORT'
16569 hpux9* | hpux10* | hpux11*)
16570 lt_prog_compiler_wl='-Wl,'
16571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16572 # not for PA HP-UX.
16578 lt_prog_compiler_pic='+Z'
16581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16582 lt_prog_compiler_static='${wl}-a ${wl}archive'
16585 irix5* | irix6* | nonstopux*)
16586 lt_prog_compiler_wl='-Wl,'
16587 # PIC (with -KPIC) is the default.
16588 lt_prog_compiler_static='-non_shared'
16591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16592 case $cc_basename in
16593 # old Intel for x86_64 which still supported -KPIC.
16595 lt_prog_compiler_wl='-Wl,'
16596 lt_prog_compiler_pic='-KPIC'
16597 lt_prog_compiler_static='-static'
16599 # icc used to be incompatible with GCC.
16600 # ICC 10 doesn't accept -KPIC any more.
16602 lt_prog_compiler_wl='-Wl,'
16603 lt_prog_compiler_pic='-fPIC'
16604 lt_prog_compiler_static='-static'
16606 # Lahey Fortran 8.1.
16608 lt_prog_compiler_wl='-Wl,'
16609 lt_prog_compiler_pic='--shared'
16610 lt_prog_compiler_static='--static'
16612 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16613 # Portland Group compilers (*not* the Pentium gcc compiler,
16614 # which looks to be a dead project)
16615 lt_prog_compiler_wl='-Wl,'
16616 lt_prog_compiler_pic='-fpic'
16617 lt_prog_compiler_static='-Bstatic'
16620 lt_prog_compiler_wl='-Wl,'
16621 # All Alpha code is PIC.
16622 lt_prog_compiler_static='-non_shared'
16624 xl* | bgxl* | bgf* | mpixl*)
16625 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16626 lt_prog_compiler_wl='-Wl,'
16627 lt_prog_compiler_pic='-qpic'
16628 lt_prog_compiler_static='-qstaticlink'
16631 case `$CC -V 2>&1 | sed 5q` in
16632 *Sun\ F* | *Sun*Fortran*)
16633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16634 lt_prog_compiler_pic='-KPIC'
16635 lt_prog_compiler_static='-Bstatic'
16636 lt_prog_compiler_wl=''
16640 lt_prog_compiler_pic='-KPIC'
16641 lt_prog_compiler_static='-Bstatic'
16642 lt_prog_compiler_wl='-Wl,'
16650 lt_prog_compiler_pic='-KPIC'
16651 lt_prog_compiler_static='-Bstatic'
16655 # QNX uses GNU C++, but need to define -shared option too, otherwise
16656 # it will coredump.
16657 lt_prog_compiler_pic='-fPIC -shared'
16660 osf3* | osf4* | osf5*)
16661 lt_prog_compiler_wl='-Wl,'
16662 # All OSF/1 code is PIC.
16663 lt_prog_compiler_static='-non_shared'
16667 lt_prog_compiler_static='-non_shared'
16671 lt_prog_compiler_pic='-KPIC'
16672 lt_prog_compiler_static='-Bstatic'
16673 case $cc_basename in
16674 f77* | f90* | f95*)
16675 lt_prog_compiler_wl='-Qoption ld ';;
16677 lt_prog_compiler_wl='-Wl,';;
16682 lt_prog_compiler_wl='-Qoption ld '
16683 lt_prog_compiler_pic='-PIC'
16684 lt_prog_compiler_static='-Bstatic'
16687 sysv4 | sysv4.2uw2* | sysv4.3*)
16688 lt_prog_compiler_wl='-Wl,'
16689 lt_prog_compiler_pic='-KPIC'
16690 lt_prog_compiler_static='-Bstatic'
16694 if test -d /usr/nec ;then
16695 lt_prog_compiler_pic='-Kconform_pic'
16696 lt_prog_compiler_static='-Bstatic'
16700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16701 lt_prog_compiler_wl='-Wl,'
16702 lt_prog_compiler_pic='-KPIC'
16703 lt_prog_compiler_static='-Bstatic'
16707 lt_prog_compiler_wl='-Wl,'
16708 lt_prog_compiler_can_build_shared=no
16712 lt_prog_compiler_pic='-pic'
16713 lt_prog_compiler_static='-Bstatic'
16717 lt_prog_compiler_can_build_shared=no
16723 # For platforms which do not support PIC, -DPIC is meaningless:
16725 lt_prog_compiler_pic=
16728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16732 $as_echo "$lt_prog_compiler_pic" >&6; }
16740 # Check to make sure the PIC flag actually works.
16742 if test -n "$lt_prog_compiler_pic"; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16744 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16745 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16746 $as_echo_n "(cached
) " >&6
16748 lt_cv_prog_compiler_pic_works=no
16749 ac_outfile=conftest.$ac_objext
16750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16752 # Insert the option either (1) after the last *FLAGS variable, or
16753 # (2) before a word containing "conftest.
", or (3) at the end.
16754 # Note that $ac_compile itself does not contain backslashes and begins
16755 # with a dollar sign (not a hyphen), so the echo should work correctly.
16756 # The option is referenced via a variable to avoid confusing sed.
16757 lt_compile=`echo "$ac_compile" | $SED \
16758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16760 -e 's:$: $lt_compiler_flag:'`
16761 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16762 (eval "$lt_compile" 2>conftest.err)
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16766 if (exit $ac_status) && test -s "$ac_outfile"; then
16767 # The compiler can only warn and ignore the option if not recognized
16768 # So say no if there are warnings other than the usual output.
16769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16772 lt_cv_prog_compiler_pic_works=yes
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16779 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16781 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16782 case $lt_prog_compiler_pic in
16784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16787 lt_prog_compiler_pic=
16788 lt_prog_compiler_can_build_shared=no
16799 # Check to make sure the static flag actually works.
16801 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16803 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16804 if ${lt_cv_prog_compiler_static_works+:} false; then :
16805 $as_echo_n "(cached
) " >&6
16807 lt_cv_prog_compiler_static_works=no
16808 save_LDFLAGS="$LDFLAGS"
16809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16812 # The linker can only warn and ignore the option if not recognized
16813 # So say no if there are warnings
16814 if test -s conftest.err; then
16815 # Append any errors to the config.log.
16816 cat conftest.err 1>&5
16817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16819 if diff conftest.exp conftest.er2 >/dev/null; then
16820 lt_cv_prog_compiler_static_works=yes
16823 lt_cv_prog_compiler_static_works=yes
16827 LDFLAGS="$save_LDFLAGS"
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16831 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16833 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16836 lt_prog_compiler_static=
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16846 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16847 if ${lt_cv_prog_compiler_c_o+:} false; then :
16848 $as_echo_n "(cached
) " >&6
16850 lt_cv_prog_compiler_c_o=no
16851 $RM -r conftest 2>/dev/null
16855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16857 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16858 # Insert the option either (1) after the last *FLAGS variable, or
16859 # (2) before a word containing "conftest.
", or (3) at the end.
16860 # Note that $ac_compile itself does not contain backslashes and begins
16861 # with a dollar sign (not a hyphen), so the echo should work correctly.
16862 lt_compile=`echo "$ac_compile" | $SED \
16863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16865 -e 's:$: $lt_compiler_flag:'`
16866 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16867 (eval "$lt_compile" 2>out/conftest.err)
16869 cat out/conftest.err >&5
16870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16873 # The compiler can only warn and ignore the option if not recognized
16874 # So say no if there are warnings
16875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16878 lt_cv_prog_compiler_c_o=yes
16883 # SGI C++ compiler will create directory out/ii_files/ for
16884 # template instantiation
16885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16886 $RM out/* && rmdir out
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16901 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16902 if ${lt_cv_prog_compiler_c_o+:} false; then :
16903 $as_echo_n "(cached
) " >&6
16905 lt_cv_prog_compiler_c_o=no
16906 $RM -r conftest 2>/dev/null
16910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16912 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16913 # Insert the option either (1) after the last *FLAGS variable, or
16914 # (2) before a word containing "conftest.
", or (3) at the end.
16915 # Note that $ac_compile itself does not contain backslashes and begins
16916 # with a dollar sign (not a hyphen), so the echo should work correctly.
16917 lt_compile=`echo "$ac_compile" | $SED \
16918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16920 -e 's:$: $lt_compiler_flag:'`
16921 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16922 (eval "$lt_compile" 2>out/conftest.err)
16924 cat out/conftest.err >&5
16925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16928 # The compiler can only warn and ignore the option if not recognized
16929 # So say no if there are warnings
16930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16933 lt_cv_prog_compiler_c_o=yes
16938 # SGI C++ compiler will create directory out/ii_files/ for
16939 # template instantiation
16940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16941 $RM out/* && rmdir out
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16953 hard_links="nottested
"
16954 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16955 # do not overwrite the value of need_locks provided by the user
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16957 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16962 ln conftest.a conftest.b 2>&5 || hard_links=no
16963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16965 $as_echo "$hard_links" >&6; }
16966 if test "$hard_links" = no; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16968 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16981 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16984 allow_undefined_flag=
16985 always_export_symbols=no
16987 archive_expsym_cmds=
16988 compiler_needs_object=no
16989 enable_shared_with_static_runtimes=no
16990 export_dynamic_flag_spec=
16991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16992 hardcode_automatic=no
16994 hardcode_direct_absolute=no
16995 hardcode_libdir_flag_spec=
16996 hardcode_libdir_flag_spec_ld=
16997 hardcode_libdir_separator=
16998 hardcode_minus_L=no
16999 hardcode_shlibpath_var=unsupported
17001 link_all_deplibs=unknown
17003 module_expsym_cmds=
17004 old_archive_from_new_cmds=
17005 old_archive_from_expsyms_cmds=
17006 thread_safe_flag_spec=
17007 whole_archive_flag_spec=
17008 # include_expsyms should be a list of space-separated symbols to be *always*
17009 # included in the symbol list
17011 # exclude_expsyms can be an extended regexp of symbols to exclude
17012 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17014 # as well as any symbol that contains `d'.
17015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17017 # platforms (ab)use it in PIC code, but their linkers get confused if
17018 # the symbol is explicitly referenced. Since portable code cannot
17019 # rely on this symbol name, it's probably fine to never include it in
17020 # preloaded symbol tables.
17021 # Exclude shared library initialization/finalization symbols.
17022 extract_expsyms_cmds=
17025 cygwin* | mingw* | pw32* | cegcc*)
17026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17027 # When not using gcc, we currently assume that we are using
17028 # Microsoft Visual C++.
17029 if test "$GCC" != yes; then
17034 # we just hope/assume this is gcc and not c89 (= MSVC++)
17044 # On some targets, GNU ld is compatible enough with the native linker
17045 # that we're better off using the native interface for both.
17046 lt_use_gnu_ld_interface=no
17047 if test "$with_gnu_ld" = yes; then
17050 # The AIX port of GNU ld has always aspired to compatibility
17051 # with the native linker. However, as the warning in the GNU ld
17052 # block says, versions before 2.19.5* couldn't really create working
17053 # shared libraries, regardless of the interface used.
17054 case `$LD -v 2>&1` in
17055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17057 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17059 lt_use_gnu_ld_interface=yes
17064 lt_use_gnu_ld_interface=yes
17069 if test "$lt_use_gnu_ld_interface" = yes; then
17070 # If archive_cmds runs LD, not CC, wlarc should be empty
17073 # Set some defaults for GNU ld with shared library support. These
17074 # are reset later if shared libraries are not supported. Putting them
17075 # here allows them to be overridden if necessary.
17076 runpath_var=LD_RUN_PATH
17077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17078 export_dynamic_flag_spec='${wl}--export-dynamic'
17079 # ancient GNU ld didn't support --whole-archive et. al.
17080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17083 whole_archive_flag_spec=
17085 supports_anon_versioning=no
17086 case `$LD -v 2>&1` in
17087 *GNU\ gold*) supports_anon_versioning=yes ;;
17088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17091 *\ 2.11.*) ;; # other 2.11 versions
17092 *) supports_anon_versioning=yes ;;
17095 # See if GNU ld supports shared libraries.
17098 # On AIX/PPC, the GNU linker is very broken
17099 if test "$host_cpu" != ia64; then
17103 *** Warning: the GNU linker, at least up to release 2.19, is reported
17104 *** to be unable to reliably create shared libraries on AIX.
17105 *** Therefore, libtool is disabling shared libraries support. If you
17106 *** really care for shared libraries, you may want to install binutils
17107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17108 *** You will then need to restart the configuration process.
17117 # see comment about AmigaOS4 .so support
17118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119 archive_expsym_cmds=''
17122 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)'
17123 hardcode_libdir_flag_spec
='-L$libdir'
17124 hardcode_minus_L
=yes
17130 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17131 allow_undefined_flag
=unsupported
17132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17133 # support --undefined. This deserves some investigation. FIXME
17134 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17140 cygwin
* | mingw
* | pw32
* | cegcc
*)
17141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17142 # as there is no search path for DLLs.
17143 hardcode_libdir_flag_spec
='-L$libdir'
17144 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17145 allow_undefined_flag
=unsupported
17146 always_export_symbols
=no
17147 enable_shared_with_static_runtimes
=yes
17148 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17150 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17151 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17152 # If the export-symbols file already is a .def file (1st line
17153 # is EXPORTS), use it as is; otherwise, prepend...
17154 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17155 cp $export_symbols $output_objdir/$soname.def;
17157 echo EXPORTS > $output_objdir/$soname.def;
17158 cat $export_symbols >> $output_objdir/$soname.def;
17160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17167 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17168 link_all_deplibs
=yes
17173 hardcode_shlibpath_var
=no
17174 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17175 export_dynamic_flag_spec
='${wl}-E'
17176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17177 # Instead, shared libraries are loaded at an image base (0x10000000 by
17178 # default) and relocated if they conflict, which is a slow very memory
17179 # consuming and fragmenting process. To avoid this, we pick a random,
17180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17182 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17183 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'
17186 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17188 if test "$host_os" = linux-dietlibc
; then
17189 case $cc_basename in
17190 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17193 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17194 && test "$tmp_diet" = no
17196 tmp_addflag
=' $pic_flag'
17197 tmp_sharedflag
='-shared'
17198 case $cc_basename,$host_cpu in
17199 pgcc
*) # Portland Group C compiler
17200 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'
17201 tmp_addflag
=' $pic_flag'
17203 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17204 # Portland Group f77 and f90 compilers
17205 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'
17206 tmp_addflag
=' $pic_flag -Mnomain' ;;
17207 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17208 tmp_addflag
=' -i_dynamic' ;;
17209 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17210 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17211 ifc
* | ifort
*) # Intel Fortran compiler
17212 tmp_addflag
=' -nofor_main' ;;
17213 lf95
*) # Lahey Fortran 8.1
17214 whole_archive_flag_spec
=
17215 tmp_sharedflag
='--shared' ;;
17216 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17217 tmp_sharedflag
='-qmkshrobj'
17219 nvcc
*) # Cuda Compiler Driver 2.2
17220 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'
17221 compiler_needs_object
=yes
17224 case `$CC -V 2>&1 | sed 5q` in
17225 *Sun\ C
*) # Sun C 5.9
17226 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'
17227 compiler_needs_object
=yes
17228 tmp_sharedflag
='-G' ;;
17229 *Sun\ F
*) # Sun Fortran 8.3
17230 tmp_sharedflag
='-G' ;;
17232 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17234 if test "x$supports_anon_versioning" = xyes
; then
17235 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17237 echo "local: *; };" >> $output_objdir/$libname.ver~
17238 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17241 case $cc_basename in
17242 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17244 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17245 hardcode_libdir_flag_spec
=
17246 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17247 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17248 if test "x$supports_anon_versioning" = xyes
; then
17249 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17251 echo "local: *; };" >> $output_objdir/$libname.ver~
17252 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17262 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17263 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17266 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17267 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17272 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17277 *** create shared libraries on Solaris systems. Therefore, libtool
17278 *** is disabling shared libraries support. We urge you to upgrade GNU
17279 *** binutils to release 2.9.1 or newer. Another option is to modify
17280 *** your PATH or compiler configuration so that the native linker is
17281 *** used, and then restart.
17284 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17285 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17286 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17292 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17293 case `$LD -v 2>&1` in
17294 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17299 *** reliably create shared libraries on SCO systems. Therefore, libtool
17300 *** is disabling shared libraries support. We urge you to upgrade GNU
17301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17302 *** your PATH or compiler configuration so that the native linker is
17303 *** used, and then restart.
17308 # For security reasons, it is highly recommended that you always
17309 # use absolute paths for naming shared libraries, and exclude the
17310 # DT_RUNPATH tag from executables and libraries. But doing so
17311 # requires that you compile everything twice, which is a pain.
17312 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17313 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17314 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17324 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17326 hardcode_direct
=yes
17327 hardcode_shlibpath_var
=no
17331 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17332 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17333 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17340 if test "$ld_shlibs" = no
; then
17342 hardcode_libdir_flag_spec
=
17343 export_dynamic_flag_spec
=
17344 whole_archive_flag_spec
=
17347 # PORTME fill in a description of your system's linker (not GNU ld)
17350 allow_undefined_flag
=unsupported
17351 always_export_symbols
=yes
17352 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'
17353 # Note: this linker hardcodes the directories in LIBPATH if there
17354 # are no directories specified by -L.
17355 hardcode_minus_L
=yes
17356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17357 # Neither direct hardcoding nor static linking is supported with a
17359 hardcode_direct
=unsupported
17364 if test "$host_cpu" = ia64
; then
17365 # On IA64, the linker does run time linking by default, so we don't
17366 # have to do anything special.
17367 aix_use_runtimelinking
=no
17368 exp_sym_flag
='-Bexport'
17371 # If we're using GNU nm, then we don't want the "-C" option.
17372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17373 # Also, AIX nm treats weak defined symbols like other global
17374 # defined symbols, whereas GNU nm marks them as "W".
17375 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17376 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'
17378 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'
17380 aix_use_runtimelinking
=no
17382 # Test if we are trying to use run time linking or normal
17383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17384 # need to do runtime linking.
17385 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17386 for ld_flag
in $LDFLAGS; do
17387 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17388 aix_use_runtimelinking
=yes
17395 exp_sym_flag
='-bexport'
17396 no_entry_flag
='-bnoentry'
17399 # When large executables or shared objects are built, AIX ld can
17400 # have problems creating the table of contents. If linking a library
17401 # or program results in "error TOC overflow" add -mminimal-toc to
17402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17406 hardcode_direct
=yes
17407 hardcode_direct_absolute
=yes
17408 hardcode_libdir_separator
=':'
17409 link_all_deplibs
=yes
17410 file_list_spec
='${wl}-f,'
17412 if test "$GCC" = yes; then
17413 case $host_os in aix4.
[012]|aix4.
[012].
*)
17414 # We only want to do this on AIX 4.2 and lower, the check
17415 # below for broken collect2 doesn't work under 4.3+
17416 collect2name
=`${CC} -print-prog-name=collect2`
17417 if test -f "$collect2name" &&
17418 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17420 # We have reworked collect2
17423 # We have old collect2
17424 hardcode_direct
=unsupported
17425 # It fails to find uninstalled libraries when the uninstalled
17426 # path is not listed in the libpath. Setting hardcode_minus_L
17427 # to unsupported forces relinking
17428 hardcode_minus_L
=yes
17429 hardcode_libdir_flag_spec
='-L$libdir'
17430 hardcode_libdir_separator
=
17434 shared_flag
='-shared'
17435 if test "$aix_use_runtimelinking" = yes; then
17436 shared_flag
="$shared_flag "'${wl}-G'
17440 if test "$host_cpu" = ia64
; then
17441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17442 # chokes on -Wl,-G. The following line is correct:
17445 if test "$aix_use_runtimelinking" = yes; then
17446 shared_flag
='${wl}-G'
17448 shared_flag
='${wl}-bM:SRE'
17453 export_dynamic_flag_spec
='${wl}-bexpall'
17454 # It seems that -bexpall does not export symbols beginning with
17455 # underscore (_), so it is better to generate a list of symbols to export.
17456 always_export_symbols
=yes
17457 if test "$aix_use_runtimelinking" = yes; then
17458 # Warning - without using the other runtime loading flags (-brtl),
17459 # -berok will link without error, but may produce a broken library.
17460 allow_undefined_flag
='-berok'
17461 # Determine the default libpath from the value encoded in an
17462 # empty executable.
17463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17474 if ac_fn_c_try_link
"$LINENO"; then :
17476 lt_aix_libpath_sed
='
17477 /Import File Strings/,/^$/ {
17483 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17484 # Check for a 64-bit object if we didn't find anything.
17485 if test -z "$aix_libpath"; then
17486 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17489 rm -f core conftest.err conftest.
$ac_objext \
17490 conftest
$ac_exeext conftest.
$ac_ext
17491 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17493 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17494 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"
17496 if test "$host_cpu" = ia64
; then
17497 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17498 allow_undefined_flag
="-z nodefs"
17499 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"
17501 # Determine the default libpath from the value encoded in an
17502 # empty executable.
17503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17514 if ac_fn_c_try_link
"$LINENO"; then :
17516 lt_aix_libpath_sed
='
17517 /Import File Strings/,/^$/ {
17523 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17524 # Check for a 64-bit object if we didn't find anything.
17525 if test -z "$aix_libpath"; then
17526 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17529 rm -f core conftest.err conftest.
$ac_objext \
17530 conftest
$ac_exeext conftest.
$ac_ext
17531 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17533 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17534 # Warning - without using the other run time loading flags,
17535 # -berok will link without error, but may produce a broken library.
17536 no_undefined_flag
=' ${wl}-bernotok'
17537 allow_undefined_flag
=' ${wl}-berok'
17538 if test "$with_gnu_ld" = yes; then
17539 # We only use this code for GNU lds that support --whole-archive.
17540 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17542 # Exported symbols can be pulled into shared objects from archives
17543 whole_archive_flag_spec
='$convenience'
17545 archive_cmds_need_lc
=yes
17546 # This is similar to how AIX traditionally builds its shared libraries.
17547 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'
17555 # see comment about AmigaOS4 .so support
17556 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557 archive_expsym_cmds
=''
17560 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)'
17561 hardcode_libdir_flag_spec
='-L$libdir'
17562 hardcode_minus_L
=yes
17568 export_dynamic_flag_spec
=-rdynamic
17571 cygwin
* | mingw
* | pw32
* | cegcc
*)
17572 # When not using gcc, we currently assume that we are using
17573 # Microsoft Visual C++.
17574 # hardcode_libdir_flag_spec is actually meaningless, as there is
17575 # no search path for DLLs.
17576 hardcode_libdir_flag_spec
=' '
17577 allow_undefined_flag
=unsupported
17578 # Tell ltmain to make .lib files, not .a files.
17580 # Tell ltmain to make .dll files, not .so files.
17582 # FIXME: Setting linknames here is a bad hack.
17583 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17584 # The linker will automatically build a .lib file if we build a DLL.
17585 old_archive_from_new_cmds
='true'
17586 # FIXME: Should let the user specify the lib program.
17587 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17588 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17589 enable_shared_with_static_runtimes
=yes
17592 darwin
* | rhapsody
*)
17595 archive_cmds_need_lc
=no
17597 hardcode_automatic
=yes
17598 hardcode_shlibpath_var
=unsupported
17599 if test "$lt_cv_ld_force_load" = "yes"; then
17600 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\"`'
17602 whole_archive_flag_spec
=''
17604 link_all_deplibs
=yes
17605 allow_undefined_flag
="$_lt_dar_allow_undefined"
17606 case $cc_basename in
17607 ifort
*) _lt_dar_can_shared
=yes ;;
17608 *) _lt_dar_can_shared
=$GCC ;;
17610 if test "$_lt_dar_can_shared" = "yes"; then
17611 output_verbose_link_cmd
=func_echo_all
17612 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17613 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17614 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}"
17615 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}"
17624 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625 hardcode_libdir_flag_spec
='-L$libdir'
17626 hardcode_shlibpath_var
=no
17629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17630 # support. Future versions do this automatically, but an explicit c++rt0.o
17631 # does not break anything, and helps significantly (at the cost of a little
17634 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17635 hardcode_libdir_flag_spec
='-R$libdir'
17636 hardcode_direct
=yes
17637 hardcode_shlibpath_var
=no
17640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17642 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_direct
=yes
17644 hardcode_minus_L
=yes
17645 hardcode_shlibpath_var
=no
17648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17649 freebsd
* | dragonfly
*)
17650 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17651 hardcode_libdir_flag_spec
='-R$libdir'
17652 hardcode_direct
=yes
17653 hardcode_shlibpath_var
=no
17657 if test "$GCC" = yes; then
17658 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'
17660 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'
17662 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17663 hardcode_libdir_separator
=:
17664 hardcode_direct
=yes
17666 # hardcode_minus_L: Not really in the search PATH,
17667 # but as the default location of the library.
17668 hardcode_minus_L
=yes
17669 export_dynamic_flag_spec
='${wl}-E'
17673 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17674 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17676 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17678 if test "$with_gnu_ld" = no
; then
17679 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17680 hardcode_libdir_flag_spec_ld
='+b $libdir'
17681 hardcode_libdir_separator
=:
17682 hardcode_direct
=yes
17683 hardcode_direct_absolute
=yes
17684 export_dynamic_flag_spec
='${wl}-E'
17685 # hardcode_minus_L: Not really in the search PATH,
17686 # but as the default location of the library.
17687 hardcode_minus_L
=yes
17692 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17695 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17698 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17701 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17707 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17710 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17714 # Older versions of the 11.00 compiler do not understand -b yet
17715 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17717 $as_echo_n "checking if $CC understands -b... " >&6; }
17718 if ${lt_cv_prog_compiler__b+:} false
; then :
17719 $as_echo_n "(cached) " >&6
17721 lt_cv_prog_compiler__b
=no
17722 save_LDFLAGS
="$LDFLAGS"
17723 LDFLAGS
="$LDFLAGS -b"
17724 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17725 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17726 # The linker can only warn and ignore the option if not recognized
17727 # So say no if there are warnings
17728 if test -s conftest.err
; then
17729 # Append any errors to the config.log.
17730 cat conftest.err
1>&5
17731 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17732 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17733 if diff conftest.exp conftest.er2
>/dev
/null
; then
17734 lt_cv_prog_compiler__b
=yes
17737 lt_cv_prog_compiler__b
=yes
17741 LDFLAGS
="$save_LDFLAGS"
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17745 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17747 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17748 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17756 if test "$with_gnu_ld" = no
; then
17757 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17758 hardcode_libdir_separator
=:
17763 hardcode_shlibpath_var
=no
17766 hardcode_direct
=yes
17767 hardcode_direct_absolute
=yes
17768 export_dynamic_flag_spec
='${wl}-E'
17770 # hardcode_minus_L: Not really in the search PATH,
17771 # but as the default location of the library.
17772 hardcode_minus_L
=yes
17778 irix5
* | irix6
* | nonstopux
*)
17779 if test "$GCC" = yes; then
17780 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'
17781 # Try to use the -exported_symbol ld option, if it does not
17782 # work, assume that -exports_file does not work either and
17783 # implicitly export all symbols.
17784 save_LDFLAGS
="$LDFLAGS"
17785 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17790 if ac_fn_c_try_link
"$LINENO"; then :
17791 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'
17794 rm -f core conftest.err conftest.
$ac_objext \
17795 conftest
$ac_exeext conftest.
$ac_ext
17796 LDFLAGS
="$save_LDFLAGS"
17798 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'
17799 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'
17801 archive_cmds_need_lc
='no'
17802 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17803 hardcode_libdir_separator
=:
17805 link_all_deplibs
=yes
17809 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17810 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17812 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17814 hardcode_libdir_flag_spec
='-R$libdir'
17815 hardcode_direct
=yes
17816 hardcode_shlibpath_var
=no
17820 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821 hardcode_direct
=yes
17822 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17823 hardcode_libdir_separator
=:
17824 hardcode_shlibpath_var
=no
17831 if test -f /usr
/libexec
/ld.so
; then
17832 hardcode_direct
=yes
17833 hardcode_shlibpath_var
=no
17834 hardcode_direct_absolute
=yes
17835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17836 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17837 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17838 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17839 export_dynamic_flag_spec
='${wl}-E'
17842 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17843 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_libdir_flag_spec
='-R$libdir'
17847 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17848 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17858 hardcode_libdir_flag_spec
='-L$libdir'
17859 hardcode_minus_L
=yes
17860 allow_undefined_flag
=unsupported
17861 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'
17862 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17866 if test "$GCC" = yes; then
17867 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17868 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'
17870 allow_undefined_flag
=' -expect_unresolved \*'
17871 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'
17873 archive_cmds_need_lc
='no'
17874 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17875 hardcode_libdir_separator
=:
17878 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17879 if test "$GCC" = yes; then
17880 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17881 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'
17882 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17884 allow_undefined_flag
=' -expect_unresolved \*'
17885 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'
17886 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~
17887 $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'
17889 # Both c and cxx compiler support -rpath directly
17890 hardcode_libdir_flag_spec
='-rpath $libdir'
17892 archive_cmds_need_lc
='no'
17893 hardcode_libdir_separator
=:
17897 no_undefined_flag
=' -z defs'
17898 if test "$GCC" = yes; then
17900 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17904 case `$CC -V 2>&1` in
17907 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17908 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17913 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17914 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17919 hardcode_libdir_flag_spec
='-R$libdir'
17920 hardcode_shlibpath_var
=no
17922 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17924 # The compiler driver will combine and reorder linker options,
17925 # but understands `-z linker_flag'. GCC discards it without `$wl',
17926 # but is careful enough not to reorder.
17927 # Supported since Solaris 2.6 (maybe 2.5.1?)
17928 if test "$GCC" = yes; then
17929 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17931 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17935 link_all_deplibs
=yes
17939 if test "x$host_vendor" = xsequent
; then
17940 # Use $CC to link under sequent, because it throws in some extra .o
17941 # files that make .init and .fini sections work.
17942 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17944 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17946 hardcode_libdir_flag_spec
='-L$libdir'
17947 hardcode_direct
=yes
17948 hardcode_minus_L
=yes
17949 hardcode_shlibpath_var
=no
17953 case $host_vendor in
17955 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 hardcode_direct
=yes # is this really true???
17959 ## LD is ld it makes a PLAMLIB
17960 ## CC just makes a GrossModule.
17961 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17962 reload_cmds
='$CC -r -o $output$reload_objs'
17966 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17970 runpath_var
='LD_RUN_PATH'
17971 hardcode_shlibpath_var
=no
17975 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17976 hardcode_shlibpath_var
=no
17977 export_dynamic_flag_spec
='-Bexport'
17981 if test -d /usr
/nec
; then
17982 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983 hardcode_shlibpath_var
=no
17984 runpath_var
=LD_RUN_PATH
17985 hardcode_runpath_var
=yes
17990 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17991 no_undefined_flag
='${wl}-z,text'
17992 archive_cmds_need_lc
=no
17993 hardcode_shlibpath_var
=no
17994 runpath_var
='LD_RUN_PATH'
17996 if test "$GCC" = yes; then
17997 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17998 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 sysv5
* | sco3.2v5
* | sco5v6
*)
18006 # Note: We can NOT use -z defs as we might desire, because we do not
18007 # link with -lc, and that would cause any symbols used from libc to
18008 # always be unresolved, which means just about no library would
18009 # ever link correctly. If we're not using GNU ld we use -z text
18010 # though, which does catch some bad symbols but isn't as heavy-handed
18012 no_undefined_flag
='${wl}-z,text'
18013 allow_undefined_flag
='${wl}-z,nodefs'
18014 archive_cmds_need_lc
=no
18015 hardcode_shlibpath_var
=no
18016 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18017 hardcode_libdir_separator
=':'
18018 link_all_deplibs
=yes
18019 export_dynamic_flag_spec
='${wl}-Bexport'
18020 runpath_var
='LD_RUN_PATH'
18022 if test "$GCC" = yes; then
18023 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_libdir_flag_spec
='-L$libdir'
18034 hardcode_shlibpath_var
=no
18042 if test x
$host_vendor = xsni
; then
18044 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18045 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18052 $as_echo "$ld_shlibs" >&6; }
18053 test "$ld_shlibs" = no
&& can_build_shared
=no
18055 with_gnu_ld
=$with_gnu_ld
18072 # Do we need to explicitly link libc?
18074 case "x$archive_cmds_need_lc" in
18076 # Assume -lc should be added
18077 archive_cmds_need_lc
=yes
18079 if test "$enable_shared" = yes && test "$GCC" = yes; then
18080 case $archive_cmds in
18082 # FIXME: we may have to deal with multi-command sequences.
18085 # Test whether the compiler implicitly links with -lc since on some
18086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18087 # to ld, don't add -lc before -lgcc.
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18089 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18090 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18091 $as_echo_n "(cached) " >&6
18094 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18097 (eval $ac_compile) 2>&5
18099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18100 test $ac_status = 0; } 2>conftest.err
; then
18103 libobjs
=conftest.
$ac_objext
18105 wl
=$lt_prog_compiler_wl
18106 pic_flag
=$lt_prog_compiler_pic
18112 lt_save_allow_undefined_flag
=$allow_undefined_flag
18113 allow_undefined_flag
=
18114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18115 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; }
18120 lt_cv_archive_cmds_need_lc
=no
18122 lt_cv_archive_cmds_need_lc
=yes
18124 allow_undefined_flag
=$lt_save_allow_undefined_flag
18126 cat conftest.err
1>&5
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18132 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18133 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18297 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18299 if test "$GCC" = yes; then
18301 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18302 *) lt_awk_arg
="/^libraries:/" ;;
18305 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18306 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18308 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18309 case $lt_search_path_spec in
18311 # if the path contains ";" then we assume it to be the separator
18312 # otherwise default to the standard path separator (i.e. ":") - it is
18313 # assumed that no part of a normal pathname contains ";" but that should
18314 # okay in the real world where ";" in dirpaths is itself problematic.
18315 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18318 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18321 # Ok, now we have the path, separated by spaces, we can step through it
18322 # and add multilib dir if necessary.
18323 lt_tmp_lt_search_path_spec
=
18324 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18325 for lt_sys_path
in $lt_search_path_spec; do
18326 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18327 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18329 test -d "$lt_sys_path" && \
18330 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18333 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18334 BEGIN {RS=" "; FS="/|\n";} {
18337 for (lt_i = NF; lt_i > 0; lt_i--) {
18338 if ($lt_i != "" && $lt_i != ".") {
18339 if ($lt_i == "..") {
18342 if (lt_count == 0) {
18343 lt_foo="/" $lt_i lt_foo;
18350 if (lt_foo != "") { lt_freq[lt_foo]++; }
18351 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18353 # AWK program above erroneously prepends '/' to C:/dos/paths
18356 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18357 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18359 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18361 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18363 library_names_spec
=
18364 libname_spec
='lib$name'
18368 postuninstall_cmds
=
18372 shlibpath_overrides_runpath
=unknown
18374 dynamic_linker
="$host_os ld.so"
18375 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18376 need_lib_prefix
=unknown
18377 hardcode_into_libs
=no
18379 # when you set need_version to no, make sure it does not cause -set_version
18380 # flags to be left without arguments
18381 need_version
=unknown
18386 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18387 shlibpath_var
=LIBPATH
18389 # AIX 3 has no versioning support, so we append a major version to the name.
18390 soname_spec
='${libname}${release}${shared_ext}$major'
18397 hardcode_into_libs
=yes
18398 if test "$host_cpu" = ia64
; then
18399 # AIX 5 supports IA64
18400 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18401 shlibpath_var
=LD_LIBRARY_PATH
18403 # With GCC up to 2.95.x, collect2 would create an import file
18404 # for dependence libraries. The import file would start with
18405 # the line `#! .'. This would cause the generated library to
18406 # depend on `.', always an invalid library. This was fixed in
18407 # development snapshots of GCC prior to 3.0.
18409 aix4 | aix4.
[01] | aix4.
[01].
*)
18410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18412 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18415 can_build_shared
=no
18419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18420 # soname into executable. Probably we can add versioning support to
18421 # collect2, so additional links can be useful in future.
18422 if test "$aix_use_runtimelinking" = yes; then
18423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18424 # instead of lib<name>.a to let people know that these are not
18425 # typical AIX shared libraries.
18426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428 # We preserve .a as extension for shared libraries through AIX4.2
18429 # and later when we are not doing run time linking.
18430 library_names_spec
='${libname}${release}.a $libname.a'
18431 soname_spec
='${libname}${release}${shared_ext}$major'
18433 shlibpath_var
=LIBPATH
18440 # Since July 2007 AmigaOS4 officially supports .so libraries.
18441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445 library_names_spec
='$libname.ixlibrary $libname.a'
18446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18447 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'
18453 library_names_spec
='${libname}${shared_ext}'
18454 dynamic_linker
="$host_os ld.so"
18455 shlibpath_var
=LIBRARY_PATH
18461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462 soname_spec
='${libname}${release}${shared_ext}$major'
18463 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18464 shlibpath_var
=LD_LIBRARY_PATH
18465 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18466 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18467 # the default ld.so.conf also contains /usr/contrib/lib and
18468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18469 # libtool to hard-code these into programs
18472 cygwin
* | mingw
* | pw32
* | cegcc
*)
18473 version_type
=windows
18478 case $GCC,$host_os in
18479 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18480 library_names_spec
='$libname.dll.a'
18481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18482 postinstall_cmds
='base_file=`basename \${file}`~
18483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18484 dldir=$destdir/`dirname \$dlpath`~
18485 test -d \$dldir || mkdir -p \$dldir~
18486 $install_prog $dir/$dlname \$dldir/$dlname~
18487 chmod a+x \$dldir/$dlname~
18488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18491 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18492 dlpath=$dir/\$dldll~
18494 shlibpath_overrides_runpath
=yes
18498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18499 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18501 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18504 # MinGW DLLs use traditional 'lib' prefix
18505 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18508 # pw32 DLLs use 'pw' prefix rather than 'lib'
18509 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18515 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18518 dynamic_linker
='Win32 ld.exe'
18519 # FIXME: first we should search . and the directory the executable is in
18523 darwin
* | rhapsody
*)
18524 dynamic_linker
="$host_os dyld"
18525 version_type
=darwin
18528 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18529 soname_spec
='${libname}${release}${major}$shared_ext'
18530 shlibpath_overrides_runpath
=yes
18531 shlibpath_var
=DYLD_LIBRARY_PATH
18532 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18534 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18535 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18543 soname_spec
='${libname}${release}${shared_ext}$major'
18544 shlibpath_var
=LD_LIBRARY_PATH
18547 freebsd
* | dragonfly
*)
18548 # DragonFly does not have aout. When/if they implement a new
18549 # versioning mechanism, adjust this.
18550 if test -x /usr
/bin
/objformat
; then
18551 objformat
=`/usr/bin/objformat`
18554 freebsd
[23].
*) objformat
=aout
;;
18555 *) objformat
=elf
;;
18558 version_type
=freebsd-
$objformat
18559 case $version_type in
18561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18566 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18570 shlibpath_var
=LD_LIBRARY_PATH
18573 shlibpath_overrides_runpath
=yes
18575 freebsd3.
[01]* | freebsdelf3.
[01]*)
18576 shlibpath_overrides_runpath
=yes
18577 hardcode_into_libs
=yes
18579 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18580 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18581 shlibpath_overrides_runpath
=no
18582 hardcode_into_libs
=yes
18584 *) # from 4.6 on, and DragonFly
18585 shlibpath_overrides_runpath
=yes
18586 hardcode_into_libs
=yes
18595 dynamic_linker
="$host_os runtime_loader"
18596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18597 soname_spec
='${libname}${release}${shared_ext}$major'
18598 shlibpath_var
=LIBRARY_PATH
18599 shlibpath_overrides_runpath
=yes
18600 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18601 hardcode_into_libs
=yes
18604 hpux9
* | hpux10
* | hpux11
*)
18605 # Give a soname corresponding to the major version so that dld.sl refuses to
18606 # link against other versions.
18613 hardcode_into_libs
=yes
18614 dynamic_linker
="$host_os dld.so"
18615 shlibpath_var
=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618 soname_spec
='${libname}${release}${shared_ext}$major'
18619 if test "X$HPUX_IA64_MODE" = X32
; then
18620 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18622 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18624 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18628 hardcode_into_libs
=yes
18629 dynamic_linker
="$host_os dld.sl"
18630 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18631 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec
='${libname}${release}${shared_ext}$major'
18634 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18635 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18639 dynamic_linker
="$host_os dld.sl"
18640 shlibpath_var
=SHLIB_PATH
18641 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec
='${libname}${release}${shared_ext}$major'
18646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18647 postinstall_cmds
='chmod 555 $lib'
18648 # or fails outright, so override atomically:
18649 install_override_mode
=555
18656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18657 soname_spec
='${libname}${release}${shared_ext}$major'
18658 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18659 shlibpath_var
=LD_LIBRARY_PATH
18660 shlibpath_overrides_runpath
=no
18661 hardcode_into_libs
=yes
18664 irix5
* | irix6
* | nonstopux
*)
18666 nonstopux
*) version_type
=nonstopux
;;
18668 if test "$lt_cv_prog_gnu_ld" = yes; then
18676 soname_spec
='${libname}${release}${shared_ext}$major'
18677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18679 irix5
* | nonstopux
*)
18680 libsuff
= shlibsuff
=
18683 case $LD in # libtool.m4 will add one of these switches to LD
18684 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18685 libsuff
= shlibsuff
= libmagic
=32-bit;;
18686 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18687 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18688 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18689 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18690 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18694 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18695 shlibpath_overrides_runpath
=no
18696 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18697 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18698 hardcode_into_libs
=yes
18701 # No shared lib support for Linux oldld, aout, or coff.
18702 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18706 # This must be Linux ELF.
18708 # uclinux* changes (here and below) have been submitted to the libtool
18709 # project, but have not yet been accepted: they are GCC-local changes
18710 # for the time being. (See
18711 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18712 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
18716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 soname_spec
='${libname}${release}${shared_ext}$major'
18718 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18719 shlibpath_var
=LD_LIBRARY_PATH
18720 shlibpath_overrides_runpath
=no
18722 # Some binutils ld are patched to set DT_RUNPATH
18723 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18724 $as_echo_n "(cached) " >&6
18726 lt_cv_shlibpath_overrides_runpath
=no
18727 save_LDFLAGS
=$LDFLAGS
18728 save_libdir
=$libdir
18729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18742 if ac_fn_c_try_link
"$LINENO"; then :
18743 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18744 lt_cv_shlibpath_overrides_runpath
=yes
18747 rm -f core conftest.err conftest.
$ac_objext \
18748 conftest
$ac_exeext conftest.
$ac_ext
18749 LDFLAGS
=$save_LDFLAGS
18750 libdir
=$save_libdir
18754 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18756 # This implies no fast_install, which is unacceptable.
18757 # Some rework will be needed to allow for fast_install
18758 # before this can be enabled.
18759 hardcode_into_libs
=yes
18761 # Append ld.so.conf contents to the search path
18762 if test -f /etc
/ld.so.conf
; then
18763 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' ' '`
18764 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18767 # We used to test for /lib/ld.so.1 and disable shared libraries on
18768 # powerpc, because MkLinux only supported shared libraries with the
18769 # GNU dynamic linker. Since this was broken with cross compilers,
18770 # most powerpc-linux boxes support dynamic linking these days and
18771 # people can always --disable-shared, the test was removed, and we
18772 # assume the GNU/Linux dynamic linker is in use.
18773 dynamic_linker
='GNU/Linux ld.so'
18780 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18782 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18783 dynamic_linker
='NetBSD (a.out) ld.so'
18785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786 soname_spec
='${libname}${release}${shared_ext}$major'
18787 dynamic_linker
='NetBSD ld.elf_so'
18789 shlibpath_var
=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath
=yes
18791 hardcode_into_libs
=yes
18796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18797 shlibpath_var
=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath
=yes
18805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec
='${libname}${release}${shared_ext}$major'
18807 shlibpath_var
=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath
=no
18809 hardcode_into_libs
=yes
18810 dynamic_linker
='ldqnx.so'
18815 sys_lib_dlsearch_path_spec
="/usr/lib"
18817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18819 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18820 *) need_version
=no
;;
18822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18824 shlibpath_var
=LD_LIBRARY_PATH
18825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18827 openbsd2.
[89] | openbsd2.
[89].
*)
18828 shlibpath_overrides_runpath
=no
18831 shlibpath_overrides_runpath
=yes
18835 shlibpath_overrides_runpath
=yes
18840 libname_spec
='$name'
18843 library_names_spec
='$libname${shared_ext} $libname.a'
18844 dynamic_linker
='OS/2 ld.exe'
18845 shlibpath_var
=LIBPATH
18848 osf3
* | osf4
* | osf5
*)
18852 soname_spec
='${libname}${release}${shared_ext}$major'
18853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854 shlibpath_var
=LD_LIBRARY_PATH
18855 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18856 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec
='${libname}${release}${shared_ext}$major'
18869 shlibpath_var
=LD_LIBRARY_PATH
18870 shlibpath_overrides_runpath
=yes
18871 hardcode_into_libs
=yes
18872 # ldd complains unless libraries are executable
18873 postinstall_cmds
='chmod +x $lib'
18878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18879 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18880 shlibpath_var
=LD_LIBRARY_PATH
18881 shlibpath_overrides_runpath
=yes
18882 if test "$with_gnu_ld" = yes; then
18890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 soname_spec
='${libname}${release}${shared_ext}$major'
18892 shlibpath_var
=LD_LIBRARY_PATH
18893 case $host_vendor in
18895 shlibpath_overrides_runpath
=no
18897 runpath_var
=LD_RUN_PATH
18905 shlibpath_overrides_runpath
=no
18906 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18912 if test -d /usr
/nec
;then
18914 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915 soname_spec
='$libname${shared_ext}.$major'
18916 shlibpath_var
=LD_LIBRARY_PATH
18920 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18921 version_type
=freebsd-elf
18924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925 soname_spec
='${libname}${release}${shared_ext}$major'
18926 shlibpath_var
=LD_LIBRARY_PATH
18927 shlibpath_overrides_runpath
=yes
18928 hardcode_into_libs
=yes
18929 if test "$with_gnu_ld" = yes; then
18930 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18932 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18935 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18939 sys_lib_dlsearch_path_spec
='/usr/lib'
18943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 shlibpath_var
=LD_LIBRARY_PATH
18949 shlibpath_overrides_runpath
=no
18950 hardcode_into_libs
=yes
18955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18956 soname_spec
='${libname}${release}${shared_ext}$major'
18957 shlibpath_var
=LD_LIBRARY_PATH
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18965 $as_echo "$dynamic_linker" >&6; }
18966 test "$dynamic_linker" = no
&& can_build_shared
=no
18968 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18969 if test "$GCC" = yes; then
18970 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18974 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18977 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19074 if test -n "$hardcode_libdir_flag_spec" ||
19075 test -n "$runpath_var" ||
19076 test "X$hardcode_automatic" = "Xyes" ; then
19078 # We can hardcode non-existent directories.
19079 if test "$hardcode_direct" != no
&&
19080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19081 # have to relink, otherwise we might link with an installed library
19082 # when we should be linking with a yet-to-be-installed one
19083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19084 test "$hardcode_minus_L" != no
; then
19085 # Linking always hardcodes the temporary library directory.
19086 hardcode_action
=relink
19088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19089 hardcode_action
=immediate
19092 # We cannot hardcode anything, or else we can only hardcode existing
19094 hardcode_action
=unsupported
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19097 $as_echo "$hardcode_action" >&6; }
19099 if test "$hardcode_action" = relink ||
19100 test "$inherit_rpath" = yes; then
19101 # Fast installation is not supported
19102 enable_fast_install
=no
19103 elif test "$shlibpath_overrides_runpath" = yes ||
19104 test "$enable_shared" = no
; then
19105 # Fast installation is not necessary
19106 enable_fast_install
=needless
19114 if test "x$enable_dlopen" != xyes
; then
19115 enable_dlopen
=unknown
19116 enable_dlopen_self
=unknown
19117 enable_dlopen_self_static
=unknown
19124 lt_cv_dlopen
="load_add_on"
19126 lt_cv_dlopen_self
=yes
19129 mingw
* | pw32
* | cegcc
*)
19130 lt_cv_dlopen
="LoadLibrary"
19135 lt_cv_dlopen
="dlopen"
19140 # if libdl is installed we need to link against it
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19143 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19144 $as_echo_n "(cached) " >&6
19146 ac_check_lib_save_LIBS
=$LIBS
19148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19166 if ac_fn_c_try_link
"$LINENO"; then :
19167 ac_cv_lib_dl_dlopen
=yes
19169 ac_cv_lib_dl_dlopen
=no
19171 rm -f core conftest.err conftest.
$ac_objext \
19172 conftest
$ac_exeext conftest.
$ac_ext
19173 LIBS
=$ac_check_lib_save_LIBS
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19177 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19178 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19181 lt_cv_dlopen
="dyld"
19183 lt_cv_dlopen_self
=yes
19190 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19191 if test "x$ac_cv_func_shl_load" = xyes
; then :
19192 lt_cv_dlopen
="shl_load"
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19196 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19197 $as_echo_n "(cached) " >&6
19199 ac_check_lib_save_LIBS
=$LIBS
19201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19204 /* Override any GCC internal prototype to avoid an error.
19205 Use char because int might match the return type of a GCC
19206 builtin and then its argument prototype would still apply. */
19214 return shl_load ();
19219 if ac_fn_c_try_link
"$LINENO"; then :
19220 ac_cv_lib_dld_shl_load
=yes
19222 ac_cv_lib_dld_shl_load
=no
19224 rm -f core conftest.err conftest.
$ac_objext \
19225 conftest
$ac_exeext conftest.
$ac_ext
19226 LIBS
=$ac_check_lib_save_LIBS
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19230 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19231 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19233 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19234 if test "x$ac_cv_func_dlopen" = xyes
; then :
19235 lt_cv_dlopen
="dlopen"
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19239 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19240 $as_echo_n "(cached) " >&6
19242 ac_check_lib_save_LIBS
=$LIBS
19244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19262 if ac_fn_c_try_link
"$LINENO"; then :
19263 ac_cv_lib_dl_dlopen
=yes
19265 ac_cv_lib_dl_dlopen
=no
19267 rm -f core conftest.err conftest.
$ac_objext \
19268 conftest
$ac_exeext conftest.
$ac_ext
19269 LIBS
=$ac_check_lib_save_LIBS
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19273 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19274 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19278 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19279 $as_echo_n "(cached) " >&6
19281 ac_check_lib_save_LIBS
=$LIBS
19282 LIBS
="-lsvld $LIBS"
19283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19301 if ac_fn_c_try_link
"$LINENO"; then :
19302 ac_cv_lib_svld_dlopen
=yes
19304 ac_cv_lib_svld_dlopen
=no
19306 rm -f core conftest.err conftest.
$ac_objext \
19307 conftest
$ac_exeext conftest.
$ac_ext
19308 LIBS
=$ac_check_lib_save_LIBS
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19312 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19313 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19317 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19318 $as_echo_n "(cached) " >&6
19320 ac_check_lib_save_LIBS
=$LIBS
19322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19335 return dld_link ();
19340 if ac_fn_c_try_link
"$LINENO"; then :
19341 ac_cv_lib_dld_dld_link
=yes
19343 ac_cv_lib_dld_dld_link
=no
19345 rm -f core conftest.err conftest.
$ac_objext \
19346 conftest
$ac_exeext conftest.
$ac_ext
19347 LIBS
=$ac_check_lib_save_LIBS
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19351 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19352 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19373 if test "x$lt_cv_dlopen" != xno
; then
19379 case $lt_cv_dlopen in
19381 save_CPPFLAGS
="$CPPFLAGS"
19382 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19384 save_LDFLAGS
="$LDFLAGS"
19385 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19388 LIBS
="$lt_cv_dlopen_libs $LIBS"
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19392 if ${lt_cv_dlopen_self+:} false
; then :
19393 $as_echo_n "(cached) " >&6
19395 if test "$cross_compiling" = yes; then :
19396 lt_cv_dlopen_self
=cross
19398 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19399 lt_status
=$lt_dlunknown
19400 cat > conftest.
$ac_ext <<_LT_EOF
19401 #line 19401 "configure"
19402 #include "confdefs.h"
19411 # define LT_DLGLOBAL RTLD_GLOBAL
19414 # define LT_DLGLOBAL DL_GLOBAL
19416 # define LT_DLGLOBAL 0
19420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19421 find out it does not work in some platform. */
19422 #ifndef LT_DLLAZY_OR_NOW
19424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19427 # define LT_DLLAZY_OR_NOW DL_LAZY
19430 # define LT_DLLAZY_OR_NOW RTLD_NOW
19433 # define LT_DLLAZY_OR_NOW DL_NOW
19435 # define LT_DLLAZY_OR_NOW 0
19442 /* When -fvisbility=hidden is used, assume the code has been annotated
19443 correspondingly for the symbols needed. */
19444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19445 void fnord () __attribute__((visibility("default")));
19448 void fnord () { int i=42; }
19451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19452 int status = $lt_dlunknown;
19456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19460 else puts (dlerror ());
19462 /* dlclose (self); */
19470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19471 (eval $ac_link) 2>&5
19473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19474 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19475 (.
/conftest
; exit; ) >&5 2>/dev
/null
19477 case x
$lt_status in
19478 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19479 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19480 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19483 # compilation failed
19484 lt_cv_dlopen_self
=no
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19492 $as_echo "$lt_cv_dlopen_self" >&6; }
19494 if test "x$lt_cv_dlopen_self" = xyes
; then
19495 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19498 if ${lt_cv_dlopen_self_static+:} false
; then :
19499 $as_echo_n "(cached) " >&6
19501 if test "$cross_compiling" = yes; then :
19502 lt_cv_dlopen_self_static
=cross
19504 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19505 lt_status
=$lt_dlunknown
19506 cat > conftest.
$ac_ext <<_LT_EOF
19507 #line 19507 "configure"
19508 #include "confdefs.h"
19517 # define LT_DLGLOBAL RTLD_GLOBAL
19520 # define LT_DLGLOBAL DL_GLOBAL
19522 # define LT_DLGLOBAL 0
19526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19527 find out it does not work in some platform. */
19528 #ifndef LT_DLLAZY_OR_NOW
19530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19533 # define LT_DLLAZY_OR_NOW DL_LAZY
19536 # define LT_DLLAZY_OR_NOW RTLD_NOW
19539 # define LT_DLLAZY_OR_NOW DL_NOW
19541 # define LT_DLLAZY_OR_NOW 0
19548 /* When -fvisbility=hidden is used, assume the code has been annotated
19549 correspondingly for the symbols needed. */
19550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19551 void fnord () __attribute__((visibility("default")));
19554 void fnord () { int i=42; }
19557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19558 int status = $lt_dlunknown;
19562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19566 else puts (dlerror ());
19568 /* dlclose (self); */
19576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19577 (eval $ac_link) 2>&5
19579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19580 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19581 (.
/conftest
; exit; ) >&5 2>/dev
/null
19583 case x
$lt_status in
19584 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19585 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19586 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19589 # compilation failed
19590 lt_cv_dlopen_self_static
=no
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19601 CPPFLAGS
="$save_CPPFLAGS"
19602 LDFLAGS
="$save_LDFLAGS"
19607 case $lt_cv_dlopen_self in
19608 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19609 *) enable_dlopen_self
=unknown
;;
19612 case $lt_cv_dlopen_self_static in
19613 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19614 *) enable_dlopen_self_static
=unknown
;;
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19638 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19639 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19640 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19642 $as_echo "yes" >&6; }
19644 # FIXME - insert some real tests, host_os isn't really good enough
19647 if test -n "$STRIP" ; then
19648 striplib
="$STRIP -x"
19649 old_striplib
="$STRIP -S"
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19651 $as_echo "yes" >&6; }
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19654 $as_echo "no" >&6; }
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19675 # Report which library types will actually be built
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19679 $as_echo "$can_build_shared" >&6; }
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19682 $as_echo_n "checking whether to build shared libraries... " >&6; }
19683 test "$can_build_shared" = "no" && enable_shared
=no
19685 # On AIX, shared libraries and static libraries use the same namespace, and
19686 # are all built from PIC.
19689 test "$enable_shared" = yes && enable_static
=no
19690 if test -n "$RANLIB"; then
19691 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19692 postinstall_cmds
='$RANLIB $lib'
19697 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19698 test "$enable_shared" = yes && enable_static
=no
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19703 $as_echo "$enable_shared" >&6; }
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19706 $as_echo_n "checking whether to build static libraries... " >&6; }
19707 # Make sure either enable_shared or enable_static is yes.
19708 test "$enable_shared" = yes || enable_static
=yes
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19710 $as_echo "$enable_static" >&6; }
19717 ac_cpp
='$CXXCPP $CPPFLAGS'
19718 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19726 (test "X$CXX" != "Xg++"))) ; then
19728 ac_cpp
='$CXXCPP $CPPFLAGS'
19729 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19733 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19734 if test -z "$CXXCPP"; then
19735 if ${ac_cv_prog_CXXCPP+:} false
; then :
19736 $as_echo_n "(cached) " >&6
19738 # Double quotes because CXXCPP needs to be expanded
19739 for CXXCPP
in "$CXX -E" "/lib/cpp"
19741 ac_preproc_ok
=false
19742 for ac_cxx_preproc_warn_flag
in '' yes
19744 # Use a header file that comes with gcc, so configuring glibc
19745 # with a fresh cross-compiler works.
19746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19747 # <limits.h> exists even on freestanding compilers.
19748 # On the NeXT, cc -E runs the code through the compiler's parser,
19749 # not just through cpp. "Syntax error" is here to catch this case.
19750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19753 # include <limits.h>
19755 # include <assert.h>
19759 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19762 # Broken: fails on valid input.
19765 rm -f conftest.err conftest.i conftest.
$ac_ext
19767 # OK, works on sane cases. Now check whether nonexistent headers
19768 # can be detected and how.
19769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771 #include <ac_nonexistent.h>
19773 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19774 # Broken: success on invalid input.
19777 # Passes both tests.
19781 rm -f conftest.err conftest.i conftest.
$ac_ext
19784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19785 rm -f conftest.i conftest.err conftest.
$ac_ext
19786 if $ac_preproc_ok; then :
19791 ac_cv_prog_CXXCPP
=$CXXCPP
19794 CXXCPP
=$ac_cv_prog_CXXCPP
19796 ac_cv_prog_CXXCPP
=$CXXCPP
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19799 $as_echo "$CXXCPP" >&6; }
19800 ac_preproc_ok
=false
19801 for ac_cxx_preproc_warn_flag
in '' yes
19803 # Use a header file that comes with gcc, so configuring glibc
19804 # with a fresh cross-compiler works.
19805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19806 # <limits.h> exists even on freestanding compilers.
19807 # On the NeXT, cc -E runs the code through the compiler's parser,
19808 # not just through cpp. "Syntax error" is here to catch this case.
19809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19812 # include <limits.h>
19814 # include <assert.h>
19818 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19821 # Broken: fails on valid input.
19824 rm -f conftest.err conftest.i conftest.
$ac_ext
19826 # OK, works on sane cases. Now check whether nonexistent headers
19827 # can be detected and how.
19828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <ac_nonexistent.h>
19832 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19833 # Broken: success on invalid input.
19836 # Passes both tests.
19840 rm -f conftest.err conftest.i conftest.
$ac_ext
19843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19844 rm -f conftest.i conftest.err conftest.
$ac_ext
19845 if $ac_preproc_ok; then :
19848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19850 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19851 See \`config.log' for more details" "$LINENO" 5; }
19855 ac_cpp
='$CXXCPP $CPPFLAGS'
19856 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19861 _lt_caught_CXX_error
=yes
19865 ac_cpp
='$CXXCPP $CPPFLAGS'
19866 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19870 archive_cmds_need_lc_CXX
=no
19871 allow_undefined_flag_CXX
=
19872 always_export_symbols_CXX
=no
19873 archive_expsym_cmds_CXX
=
19874 compiler_needs_object_CXX
=no
19875 export_dynamic_flag_spec_CXX
=
19876 hardcode_direct_CXX
=no
19877 hardcode_direct_absolute_CXX
=no
19878 hardcode_libdir_flag_spec_CXX
=
19879 hardcode_libdir_flag_spec_ld_CXX
=
19880 hardcode_libdir_separator_CXX
=
19881 hardcode_minus_L_CXX
=no
19882 hardcode_shlibpath_var_CXX
=unsupported
19883 hardcode_automatic_CXX
=no
19884 inherit_rpath_CXX
=no
19886 module_expsym_cmds_CXX
=
19887 link_all_deplibs_CXX
=unknown
19888 old_archive_cmds_CXX
=$old_archive_cmds
19889 reload_flag_CXX
=$reload_flag
19890 reload_cmds_CXX
=$reload_cmds
19891 no_undefined_flag_CXX
=
19892 whole_archive_flag_spec_CXX
=
19893 enable_shared_with_static_runtimes_CXX
=no
19895 # Source file extension for C++ test sources.
19898 # Object file extension for compiled C++ test sources.
19902 # No sense in running all these tests if we already determined that
19903 # the CXX compiler isn't working. Some variables (like enable_shared)
19904 # are currently assumed to apply to all compilers on this platform,
19905 # and will be corrupted by setting them based on a non-working compiler.
19906 if test "$_lt_caught_CXX_error" != yes; then
19907 # Code to be used in simple compile tests
19908 lt_simple_compile_test_code
="int some_variable = 0;"
19910 # Code to be used in simple link tests
19911 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19920 # If no C compiler was specified, use CC.
19923 # If no C compiler flags were specified, use CFLAGS.
19924 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19926 # Allow CC to be a program name with arguments.
19930 # save warnings/boilerplate of simple test code
19931 ac_outfile
=conftest.
$ac_objext
19932 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19933 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19934 _lt_compiler_boilerplate
=`cat conftest.err`
19937 ac_outfile
=conftest.
$ac_objext
19938 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19939 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19940 _lt_linker_boilerplate
=`cat conftest.err`
19944 # Allow CC to be a program name with arguments.
19949 lt_save_with_gnu_ld
=$with_gnu_ld
19950 lt_save_path_LD
=$lt_cv_path_LD
19951 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19952 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19954 $as_unset lt_cv_prog_gnu_ld
19956 if test -n "${lt_cv_path_LDCXX+set}"; then
19957 lt_cv_path_LD
=$lt_cv_path_LDCXX
19959 $as_unset lt_cv_path_LD
19961 test -z "${LDCXX+set}" || LD
=$LDCXX
19965 for cc_temp
in $compiler""; do
19967 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19968 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19973 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19976 if test -n "$compiler"; then
19977 # We don't want -fno-exception when compiling C++ code, so set the
19978 # no_builtin_flag separately
19979 if test "$GXX" = yes; then
19980 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19982 lt_prog_compiler_no_builtin_flag_CXX
=
19985 if test "$GXX" = yes; then
19986 # Set up default GNU C++ configuration
19990 # Check whether --with-gnu-ld was given.
19991 if test "${with_gnu_ld+set}" = set; then :
19992 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19998 if test "$GCC" = yes; then
19999 # Check if gcc -print-prog-name=ld gives a path.
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20001 $as_echo_n "checking for ld used by $CC... " >&6; }
20004 # gcc leaves a trailing carriage return which upsets mingw
20005 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20007 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20010 # Accept absolute paths.
20012 re_direlt
='/[^/][^/]*/\.\./'
20013 # Canonicalize the pathname of ld
20014 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20015 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20016 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20018 test -z "$LD" && LD
="$ac_prog"
20021 # If it fails, then pretend we aren't using GCC.
20025 # If it is relative, then search for the first ld in PATH.
20026 with_gnu_ld
=unknown
20029 elif test "$with_gnu_ld" = yes; then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20031 $as_echo_n "checking for GNU ld... " >&6; }
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20034 $as_echo_n "checking for non-GNU ld... " >&6; }
20036 if ${lt_cv_path_LD+:} false
; then :
20037 $as_echo_n "(cached) " >&6
20039 if test -z "$LD"; then
20040 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20041 for ac_dir
in $PATH; do
20043 test -z "$ac_dir" && ac_dir
=.
20044 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20045 lt_cv_path_LD
="$ac_dir/$ac_prog"
20046 # Check to see if the program is GNU ld. I'd rather use --version,
20047 # but apparently some variants of GNU ld only accept -v.
20048 # Break only if it was the GNU/non-GNU ld that we prefer.
20049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20050 *GNU
* |
*'with BFD'*)
20051 test "$with_gnu_ld" != no
&& break
20054 test "$with_gnu_ld" != yes && break
20061 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20065 LD
="$lt_cv_path_LD"
20066 if test -n "$LD"; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20068 $as_echo "$LD" >&6; }
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071 $as_echo "no" >&6; }
20073 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20076 if ${lt_cv_prog_gnu_ld+:} false
; then :
20077 $as_echo_n "(cached) " >&6
20079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20080 case `$LD -v 2>&1 </dev/null` in
20081 *GNU
* |
*'with BFD'*)
20082 lt_cv_prog_gnu_ld
=yes
20085 lt_cv_prog_gnu_ld
=no
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20090 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20091 with_gnu_ld
=$lt_cv_prog_gnu_ld
20099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20100 # archiving commands below assume that GNU ld is being used.
20101 if test "$with_gnu_ld" = yes; then
20102 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20103 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'
20105 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20106 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20108 # If archive_cmds runs LD, not CC, wlarc should be empty
20109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20110 # investigate it a little bit more. (MM)
20113 # ancient GNU ld didn't support --whole-archive et. al.
20114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20115 $GREP 'no-whole-archive' > /dev
/null
; then
20116 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20118 whole_archive_flag_spec_CXX
=
20124 # A generic and very simple default shared library creation
20125 # command for GNU C++ for the case where it uses the native
20126 # linker, instead of GNU ld. If possible, this setting should
20127 # overridden to take advantage of the native linker features on
20128 # the platform it is being used on.
20129 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20132 # Commands to make compiler produce verbose output that lists
20133 # what "hidden" libraries, object files and flags are used when
20134 # linking a shared library.
20135 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20143 # PORTME: fill in a description of your system's C++ link characteristics
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20149 # FIXME: insert proper C++ library support
20153 if test "$host_cpu" = ia64
; then
20154 # On IA64, the linker does run time linking by default, so we don't
20155 # have to do anything special.
20156 aix_use_runtimelinking
=no
20157 exp_sym_flag
='-Bexport'
20160 aix_use_runtimelinking
=no
20162 # Test if we are trying to use run time linking or normal
20163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20164 # need to do runtime linking.
20165 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20166 for ld_flag
in $LDFLAGS; do
20169 aix_use_runtimelinking
=yes
20177 exp_sym_flag
='-bexport'
20178 no_entry_flag
='-bnoentry'
20181 # When large executables or shared objects are built, AIX ld can
20182 # have problems creating the table of contents. If linking a library
20183 # or program results in "error TOC overflow" add -mminimal-toc to
20184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20187 archive_cmds_CXX
=''
20188 hardcode_direct_CXX
=yes
20189 hardcode_direct_absolute_CXX
=yes
20190 hardcode_libdir_separator_CXX
=':'
20191 link_all_deplibs_CXX
=yes
20192 file_list_spec_CXX
='${wl}-f,'
20194 if test "$GXX" = yes; then
20195 case $host_os in aix4.
[012]|aix4.
[012].
*)
20196 # We only want to do this on AIX 4.2 and lower, the check
20197 # below for broken collect2 doesn't work under 4.3+
20198 collect2name
=`${CC} -print-prog-name=collect2`
20199 if test -f "$collect2name" &&
20200 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20202 # We have reworked collect2
20205 # We have old collect2
20206 hardcode_direct_CXX
=unsupported
20207 # It fails to find uninstalled libraries when the uninstalled
20208 # path is not listed in the libpath. Setting hardcode_minus_L
20209 # to unsupported forces relinking
20210 hardcode_minus_L_CXX
=yes
20211 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20212 hardcode_libdir_separator_CXX
=
20215 shared_flag
='-shared'
20216 if test "$aix_use_runtimelinking" = yes; then
20217 shared_flag
="$shared_flag "'${wl}-G'
20221 if test "$host_cpu" = ia64
; then
20222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20223 # chokes on -Wl,-G. The following line is correct:
20226 if test "$aix_use_runtimelinking" = yes; then
20227 shared_flag
='${wl}-G'
20229 shared_flag
='${wl}-bM:SRE'
20234 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20235 # It seems that -bexpall does not export symbols beginning with
20236 # underscore (_), so it is better to generate a list of symbols to
20238 always_export_symbols_CXX
=yes
20239 if test "$aix_use_runtimelinking" = yes; then
20240 # Warning - without using the other runtime loading flags (-brtl),
20241 # -berok will link without error, but may produce a broken library.
20242 allow_undefined_flag_CXX
='-berok'
20243 # Determine the default libpath from the value encoded in an empty
20245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20246 /* end confdefs.h. */
20256 if ac_fn_cxx_try_link
"$LINENO"; then :
20258 lt_aix_libpath_sed
='
20259 /Import File Strings/,/^$/ {
20265 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20266 # Check for a 64-bit object if we didn't find anything.
20267 if test -z "$aix_libpath"; then
20268 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20271 rm -f core conftest.err conftest.
$ac_objext \
20272 conftest
$ac_exeext conftest.
$ac_ext
20273 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20275 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20277 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"
20279 if test "$host_cpu" = ia64
; then
20280 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20281 allow_undefined_flag_CXX
="-z nodefs"
20282 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"
20284 # Determine the default libpath from the value encoded in an
20285 # empty executable.
20286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20287 /* end confdefs.h. */
20297 if ac_fn_cxx_try_link
"$LINENO"; then :
20299 lt_aix_libpath_sed
='
20300 /Import File Strings/,/^$/ {
20306 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20307 # Check for a 64-bit object if we didn't find anything.
20308 if test -z "$aix_libpath"; then
20309 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20312 rm -f core conftest.err conftest.
$ac_objext \
20313 conftest
$ac_exeext conftest.
$ac_ext
20314 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20316 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20317 # Warning - without using the other run time loading flags,
20318 # -berok will link without error, but may produce a broken library.
20319 no_undefined_flag_CXX
=' ${wl}-bernotok'
20320 allow_undefined_flag_CXX
=' ${wl}-berok'
20321 if test "$with_gnu_ld" = yes; then
20322 # We only use this code for GNU lds that support --whole-archive.
20323 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20325 # Exported symbols can be pulled into shared objects from archives
20326 whole_archive_flag_spec_CXX
='$convenience'
20328 archive_cmds_need_lc_CXX
=yes
20329 # This is similar to how AIX traditionally builds its shared
20331 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'
20337 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20338 allow_undefined_flag_CXX
=unsupported
20339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20340 # support --undefined. This deserves some investigation. FIXME
20341 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20348 case $cc_basename in
20350 # FIXME: insert proper C++ library support
20356 cygwin
* | mingw
* | pw32
* | cegcc
*)
20357 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20358 # as there is no search path for DLLs.
20359 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20360 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20361 allow_undefined_flag_CXX
=unsupported
20362 always_export_symbols_CXX
=no
20363 enable_shared_with_static_runtimes_CXX
=yes
20365 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20366 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'
20367 # If the export-symbols file already is a .def file (1st line
20368 # is EXPORTS), use it as is; otherwise, prepend...
20369 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20370 cp $export_symbols $output_objdir/$soname.def;
20372 echo EXPORTS > $output_objdir/$soname.def;
20373 cat $export_symbols >> $output_objdir/$soname.def;
20375 $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'
20380 darwin
* | rhapsody
*)
20383 archive_cmds_need_lc_CXX
=no
20384 hardcode_direct_CXX
=no
20385 hardcode_automatic_CXX
=yes
20386 hardcode_shlibpath_var_CXX
=unsupported
20387 if test "$lt_cv_ld_force_load" = "yes"; then
20388 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\"`'
20390 whole_archive_flag_spec_CXX
=''
20392 link_all_deplibs_CXX
=yes
20393 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20394 case $cc_basename in
20395 ifort
*) _lt_dar_can_shared
=yes ;;
20396 *) _lt_dar_can_shared
=$GCC ;;
20398 if test "$_lt_dar_can_shared" = "yes"; then
20399 output_verbose_link_cmd
=func_echo_all
20400 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}"
20401 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20402 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}"
20403 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}"
20404 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20405 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}"
20406 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}"
20416 case $cc_basename in
20418 # FIXME: insert proper C++ library support
20422 # Green Hills C++ Compiler
20423 # FIXME: insert proper C++ library support
20427 # FIXME: insert proper C++ library support
20434 # C++ shared libraries reported to be fairly broken before
20440 archive_cmds_need_lc_CXX
=no
20443 freebsd
* | dragonfly
*)
20444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20453 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20454 link_all_deplibs_CXX
=yes
20458 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20459 hardcode_libdir_separator_CXX
=:
20460 export_dynamic_flag_spec_CXX
='${wl}-E'
20461 hardcode_direct_CXX
=yes
20462 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20463 # but as the default
20464 # location of the library.
20466 case $cc_basename in
20468 # FIXME: insert proper C++ library support
20472 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'
20473 # Commands to make compiler produce verbose output that lists
20474 # what "hidden" libraries, object files and flags are used when
20475 # linking a shared library.
20477 # There doesn't appear to be a way to prevent this compiler from
20478 # explicitly linking system object files so we need to strip them
20479 # from the output so that they don't get included in the library
20481 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"'
20484 if test "$GXX" = yes; then
20485 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'
20487 # FIXME: insert proper C++ library support
20495 if test $with_gnu_ld = no
; then
20496 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20497 hardcode_libdir_separator_CXX
=:
20503 export_dynamic_flag_spec_CXX
='${wl}-E'
20509 hardcode_direct_CXX
=no
20510 hardcode_shlibpath_var_CXX
=no
20513 hardcode_direct_CXX
=yes
20514 hardcode_direct_absolute_CXX
=yes
20515 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20516 # but as the default
20517 # location of the library.
20521 case $cc_basename in
20523 # FIXME: insert proper C++ library support
20529 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20532 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20535 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20538 # Commands to make compiler produce verbose output that lists
20539 # what "hidden" libraries, object files and flags are used when
20540 # linking a shared library.
20542 # There doesn't appear to be a way to prevent this compiler from
20543 # explicitly linking system object files so we need to strip them
20544 # from the output so that they don't get included in the library
20546 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"'
20549 if test "$GXX" = yes; then
20550 if test $with_gnu_ld = no
; then
20553 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20556 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20559 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'
20564 # FIXME: insert proper C++ library support
20572 hardcode_direct_CXX
=no
20573 hardcode_shlibpath_var_CXX
=no
20574 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20575 export_dynamic_flag_spec_CXX
='${wl}-E'
20576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20577 # Instead, shared libraries are loaded at an image base (0x10000000 by
20578 # default) and relocated if they conflict, which is a slow very memory
20579 # consuming and fragmenting process. To avoid this, we pick a random,
20580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20582 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'
20583 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'
20586 case $cc_basename in
20589 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'
20591 # Archives containing C++ object files must be created using
20592 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20593 # necessary to make sure instantiated templates are included
20595 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20598 if test "$GXX" = yes; then
20599 if test "$with_gnu_ld" = no
; then
20600 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'
20602 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'
20605 link_all_deplibs_CXX
=yes
20608 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20609 hardcode_libdir_separator_CXX
=:
20610 inherit_rpath_CXX
=yes
20613 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20614 case $cc_basename in
20616 # Kuck and Associates, Inc. (KAI) C++ Compiler
20618 # KCC will only create a shared library if the output file
20619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20620 # to its proper name (with version) after linking.
20621 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'
20622 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'
20623 # Commands to make compiler produce verbose output that lists
20624 # what "hidden" libraries, object files and flags are used when
20625 # linking a shared library.
20627 # There doesn't appear to be a way to prevent this compiler from
20628 # explicitly linking system object files so we need to strip them
20629 # from the output so that they don't get included in the library
20631 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"'
20633 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20634 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20636 # Archives containing C++ object files must be created using
20637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20638 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20643 # version 8.0 and above of icpc choke on multiply defined symbols
20644 # if we add $predep_objects and $postdep_objects, however 7.1 and
20645 # earlier do not add the objects themselves.
20646 case `$CC -V 2>&1` in
20648 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20649 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'
20651 *) # Version 8.0 or newer
20654 ia64
*) tmp_idyn
=' -i_dynamic';;
20656 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20657 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'
20660 archive_cmds_need_lc_CXX
=no
20661 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20662 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20663 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20666 # Portland Group C++ compiler
20668 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20669 prelink_cmds_CXX
='tpldir=Template.dir~
20671 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20672 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20673 old_archive_cmds_CXX
='tpldir=Template.dir~
20675 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20676 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20678 archive_cmds_CXX
='tpldir=Template.dir~
20680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20681 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20682 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20685 $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'
20687 *) # Version 6 and above use weak symbols
20688 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20689 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'
20693 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20694 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20695 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'
20699 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20700 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'
20702 runpath_var
=LD_RUN_PATH
20703 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20704 hardcode_libdir_separator_CXX
=:
20706 # Commands to make compiler produce verbose output that lists
20707 # what "hidden" libraries, object files and flags are used when
20708 # linking a shared library.
20710 # There doesn't appear to be a way to prevent this compiler from
20711 # explicitly linking system object files so we need to strip them
20712 # from the output so that they don't get included in the library
20714 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'
20716 xl
* | mpixl
* | bgxl
*)
20717 # IBM XL 8.0 on PPC, with GNU ld
20718 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20719 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20720 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20721 if test "x$supports_anon_versioning" = xyes
; then
20722 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20724 echo "local: *; };" >> $output_objdir/$libname.ver~
20725 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20729 case `$CC -V 2>&1 | sed 5q` in
20732 no_undefined_flag_CXX
=' -zdefs'
20733 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20734 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'
20735 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20736 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'
20737 compiler_needs_object_CXX
=yes
20739 # Not sure whether something based on
20740 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20742 output_verbose_link_cmd
='func_echo_all'
20744 # Archives containing C++ object files must be created using
20745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20746 # necessary to make sure instantiated templates are included
20748 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20756 # FIXME: insert proper C++ library support
20761 # FIXME: insert proper C++ library support
20766 case $cc_basename in
20768 # FIXME: insert proper C++ library support
20772 # FIXME: insert proper C++ library support
20779 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20780 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20782 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20783 hardcode_direct_CXX
=yes
20784 hardcode_shlibpath_var_CXX
=no
20786 # Workaround some broken pre-1.5 toolchains
20787 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20795 # C++ shared libraries are fairly broken
20800 if test -f /usr
/libexec
/ld.so
; then
20801 hardcode_direct_CXX
=yes
20802 hardcode_shlibpath_var_CXX
=no
20803 hardcode_direct_absolute_CXX
=yes
20804 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20805 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20807 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20808 export_dynamic_flag_spec_CXX
='${wl}-E'
20809 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20811 output_verbose_link_cmd
=func_echo_all
20817 osf3
* | osf4
* | osf5
*)
20818 case $cc_basename in
20820 # Kuck and Associates, Inc. (KAI) C++ Compiler
20822 # KCC will only create a shared library if the output file
20823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20824 # to its proper name (with version) after linking.
20825 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'
20827 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20828 hardcode_libdir_separator_CXX
=:
20830 # Archives containing C++ object files must be created using
20831 # the KAI C++ compiler.
20833 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20834 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20838 # Rational C++ 2.4.1
20839 # FIXME: insert proper C++ library support
20845 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20846 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'
20847 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20850 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20851 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'
20852 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20853 echo "-hidden">> $lib.exp~
20854 $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~
20856 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20860 hardcode_libdir_separator_CXX
=:
20862 # Commands to make compiler produce verbose output that lists
20863 # what "hidden" libraries, object files and flags are used when
20864 # linking a shared library.
20866 # There doesn't appear to be a way to prevent this compiler from
20867 # explicitly linking system object files so we need to strip them
20868 # from the output so that they don't get included in the library
20870 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"'
20873 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20874 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20877 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'
20880 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'
20884 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20885 hardcode_libdir_separator_CXX
=:
20887 # Commands to make compiler produce verbose output that lists
20888 # what "hidden" libraries, object files and flags are used when
20889 # linking a shared library.
20890 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20893 # FIXME: insert proper C++ library support
20901 # FIXME: insert proper C++ library support
20906 case $cc_basename in
20909 # FIXME: insert proper C++ library support
20914 # FIXME: insert proper C++ library support
20918 # FIXME: insert proper C++ library support
20925 case $cc_basename in
20927 # Sun C++ 4.2, 5.x and Centerline C++
20928 archive_cmds_need_lc_CXX
=yes
20929 no_undefined_flag_CXX
=' -zdefs'
20930 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20931 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20932 $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'
20934 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20935 hardcode_shlibpath_var_CXX
=no
20937 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20939 # The compiler driver will combine and reorder linker options,
20940 # but understands `-z linker_flag'.
20941 # Supported since Solaris 2.6 (maybe 2.5.1?)
20942 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20945 link_all_deplibs_CXX
=yes
20947 output_verbose_link_cmd
='func_echo_all'
20949 # Archives containing C++ object files must be created using
20950 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20951 # necessary to make sure instantiated templates are included
20953 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20956 # Green Hills C++ Compiler
20957 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20959 # The C++ compiler must be used to create the archive.
20960 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20963 # GNU C++ compiler with Solaris linker
20964 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20965 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20966 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20967 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20968 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20969 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20971 # Commands to make compiler produce verbose output that lists
20972 # what "hidden" libraries, object files and flags are used when
20973 # linking a shared library.
20974 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20976 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20978 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20979 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20980 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20982 # Commands to make compiler produce verbose output that lists
20983 # what "hidden" libraries, object files and flags are used when
20984 # linking a shared library.
20985 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20988 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20990 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20992 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21000 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21001 no_undefined_flag_CXX
='${wl}-z,text'
21002 archive_cmds_need_lc_CXX
=no
21003 hardcode_shlibpath_var_CXX
=no
21004 runpath_var
='LD_RUN_PATH'
21006 case $cc_basename in
21008 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21009 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21012 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21013 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21018 sysv5
* | sco3.2v5
* | sco5v6
*)
21019 # Note: We can NOT use -z defs as we might desire, because we do not
21020 # link with -lc, and that would cause any symbols used from libc to
21021 # always be unresolved, which means just about no library would
21022 # ever link correctly. If we're not using GNU ld we use -z text
21023 # though, which does catch some bad symbols but isn't as heavy-handed
21025 no_undefined_flag_CXX
='${wl}-z,text'
21026 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21027 archive_cmds_need_lc_CXX
=no
21028 hardcode_shlibpath_var_CXX
=no
21029 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21030 hardcode_libdir_separator_CXX
=':'
21031 link_all_deplibs_CXX
=yes
21032 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21033 runpath_var
='LD_RUN_PATH'
21035 case $cc_basename in
21037 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21038 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21039 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21040 '"$old_archive_cmds_CXX"
21041 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21042 '"$reload_cmds_CXX"
21045 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21046 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21052 case $cc_basename in
21054 # NonStop-UX NCC 3.20
21055 # FIXME: insert proper C++ library support
21059 # FIXME: insert proper C++ library support
21066 # FIXME: insert proper C++ library support
21071 # FIXME: insert proper C++ library support
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21077 $as_echo "$ld_shlibs_CXX" >&6; }
21078 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21084 ## There is no encapsulation within the following macros, do not change
21085 ## the running order or otherwise move them around unless you know exactly
21086 ## what you are doing...
21087 # Dependencies to place before and after the object being linked:
21088 predep_objects_CXX
=
21089 postdep_objects_CXX
=
21092 compiler_lib_search_path_CXX
=
21094 cat > conftest.
$ac_ext <<_LT_EOF
21098 Foo (void) { a = 0; }
21104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21105 (eval $ac_compile) 2>&5
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; then
21109 # Parse the compiler output and extract the necessary
21110 # objects, libraries and library flags.
21112 # Sentinel used to keep track of whether or not we are before
21113 # the conftest object file.
21114 pre_test_object_deps_done
=no
21116 for p
in `eval "$output_verbose_link_cmd"`; do
21120 # Some compilers place space between "-{L,R}" and the path.
21121 # Remove the space.
21122 if test $p = "-L" ||
21123 test $p = "-R"; then
21130 if test "$pre_test_object_deps_done" = no
; then
21133 # Internal compiler library paths should come after those
21134 # provided the user. The postdeps already come after the
21135 # user supplied libs so there is no need to process them.
21136 if test -z "$compiler_lib_search_path_CXX"; then
21137 compiler_lib_search_path_CXX
="${prev}${p}"
21139 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21142 # The "-l" case would never come before the object being
21143 # linked, so don't bother handling this case.
21146 if test -z "$postdeps_CXX"; then
21147 postdeps_CXX
="${prev}${p}"
21149 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21155 # This assumes that the test object file only shows up
21156 # once in the compiler output.
21157 if test "$p" = "conftest.$objext"; then
21158 pre_test_object_deps_done
=yes
21162 if test "$pre_test_object_deps_done" = no
; then
21163 if test -z "$predep_objects_CXX"; then
21164 predep_objects_CXX
="$p"
21166 predep_objects_CXX
="$predep_objects_CXX $p"
21169 if test -z "$postdep_objects_CXX"; then
21170 postdep_objects_CXX
="$p"
21172 postdep_objects_CXX
="$postdep_objects_CXX $p"
21177 *) ;; # Ignore the rest.
21185 echo "libtool.m4: error: problem compiling CXX test program"
21188 $RM -f confest.
$objext
21190 # PORTME: override above test on systems where it is broken
21193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21194 # hack all around it, let's just trust "g++" to DTRT.
21195 predep_objects_CXX
=
21196 postdep_objects_CXX
=
21201 case `$CC -V 2>&1 | sed 5q` in
21205 # The more standards-conforming stlport4 library is
21206 # incompatible with the Cstd library. Avoid specifying
21207 # it if it's in CXXFLAGS. Ignore libCrun as
21208 # -library=stlport4 depends on it.
21209 case " $CXX $CXXFLAGS " in
21210 *" -library=stlport4 "*)
21211 solaris_use_stlport4
=yes
21215 if test "$solaris_use_stlport4" != yes; then
21216 postdeps_CXX
='-library=Cstd -library=Crun'
21223 case $cc_basename in
21225 # The more standards-conforming stlport4 library is
21226 # incompatible with the Cstd library. Avoid specifying
21227 # it if it's in CXXFLAGS. Ignore libCrun as
21228 # -library=stlport4 depends on it.
21229 case " $CXX $CXXFLAGS " in
21230 *" -library=stlport4 "*)
21231 solaris_use_stlport4
=yes
21235 # Adding this requires a known-good setup of shared libraries for
21236 # Sun compiler versions before 5.6, else PIC objects from an old
21237 # archive will be linked into the output, leading to subtle bugs.
21238 if test "$solaris_use_stlport4" != yes; then
21239 postdeps_CXX
='-library=Cstd -library=Crun'
21247 case " $postdeps_CXX " in
21248 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21250 compiler_lib_search_dirs_CXX
=
21251 if test -n "${compiler_lib_search_path_CXX}"; then
21252 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21285 lt_prog_compiler_wl_CXX
=
21286 lt_prog_compiler_pic_CXX
=
21287 lt_prog_compiler_static_CXX
=
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21292 # C++ specific cases for pic, static, wl, etc.
21293 if test "$GXX" = yes; then
21294 lt_prog_compiler_wl_CXX
='-Wl,'
21295 lt_prog_compiler_static_CXX
='-static'
21299 # All AIX code is PIC.
21300 if test "$host_cpu" = ia64
; then
21301 # AIX 5 now supports IA64 processor
21302 lt_prog_compiler_static_CXX
='-Bstatic'
21304 lt_prog_compiler_pic_CXX
='-fPIC'
21310 # see comment about AmigaOS4 .so support
21311 lt_prog_compiler_pic_CXX
='-fPIC'
21314 # FIXME: we need at least 68020 code to build shared libraries, but
21315 # adding the `-m68020' flag to GCC prevents building anything better,
21317 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21322 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21323 # PIC is the default for these OSes.
21325 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21326 # This hack is so that the source file can tell whether it is being
21327 # built for inclusion in a dll (and should export symbols for example).
21328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21329 # (--disable-auto-import) libraries
21330 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21332 darwin
* | rhapsody
*)
21333 # PIC is the default on this platform
21334 # Common symbols not allowed in MH_DYLIB files
21335 lt_prog_compiler_pic_CXX
='-fno-common'
21338 # DJGPP does not support shared libraries at all
21339 lt_prog_compiler_pic_CXX
=
21342 # PIC is the default for Haiku.
21343 # The "-static" flag exists, but is broken.
21344 lt_prog_compiler_static_CXX
=
21347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21348 # Instead, we relocate shared libraries at runtime.
21351 if test -d /usr
/nec
; then
21352 lt_prog_compiler_pic_CXX
=-Kconform_pic
21356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21358 # sets the default TLS model and affects inlining.
21363 lt_prog_compiler_pic_CXX
='-fPIC'
21368 # QNX uses GNU C++, but need to define -shared option too, otherwise
21369 # it will coredump.
21370 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21373 lt_prog_compiler_pic_CXX
='-fPIC'
21379 # All AIX code is PIC.
21380 if test "$host_cpu" = ia64
; then
21381 # AIX 5 now supports IA64 processor
21382 lt_prog_compiler_static_CXX
='-Bstatic'
21384 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21388 case $cc_basename in
21390 # Green Hills C++ Compiler
21391 # _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"
21396 case $cc_basename in
21398 lt_prog_compiler_pic_CXX
='-KPIC'
21401 # Green Hills C++ Compiler
21402 lt_prog_compiler_pic_CXX
='-pic'
21408 freebsd
* | dragonfly
*)
21409 # FreeBSD uses GNU C++
21411 hpux9
* | hpux10
* | hpux11
*)
21412 case $cc_basename in
21414 lt_prog_compiler_wl_CXX
='-Wl,'
21415 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21416 if test "$host_cpu" != ia64
; then
21417 lt_prog_compiler_pic_CXX
='+Z'
21421 lt_prog_compiler_wl_CXX
='-Wl,'
21422 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21428 lt_prog_compiler_pic_CXX
='+Z'
21437 # This is c89, which is MS Visual C++ (no shared libs)
21438 # Anyone wants to do a port?
21440 irix5
* | irix6
* | nonstopux
*)
21441 case $cc_basename in
21443 lt_prog_compiler_wl_CXX
='-Wl,'
21444 lt_prog_compiler_static_CXX
='-non_shared'
21445 # CC pic flag -KPIC is the default.
21451 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21452 case $cc_basename in
21455 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21456 lt_prog_compiler_pic_CXX
='-fPIC'
21459 # old Intel C++ for x86_64 which still supported -KPIC.
21460 lt_prog_compiler_wl_CXX
='-Wl,'
21461 lt_prog_compiler_pic_CXX
='-KPIC'
21462 lt_prog_compiler_static_CXX
='-static'
21465 # Intel C++, used to be incompatible with GCC.
21466 # ICC 10 doesn't accept -KPIC any more.
21467 lt_prog_compiler_wl_CXX
='-Wl,'
21468 lt_prog_compiler_pic_CXX
='-fPIC'
21469 lt_prog_compiler_static_CXX
='-static'
21472 # Portland Group C++ compiler
21473 lt_prog_compiler_wl_CXX
='-Wl,'
21474 lt_prog_compiler_pic_CXX
='-fpic'
21475 lt_prog_compiler_static_CXX
='-Bstatic'
21479 # Make sure the PIC flag is empty. It appears that all Alpha
21480 # Linux and Compaq Tru64 Unix objects are PIC.
21481 lt_prog_compiler_pic_CXX
=
21482 lt_prog_compiler_static_CXX
='-non_shared'
21484 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21485 # IBM XL 8.0, 9.0 on PPC and BlueGene
21486 lt_prog_compiler_wl_CXX
='-Wl,'
21487 lt_prog_compiler_pic_CXX
='-qpic'
21488 lt_prog_compiler_static_CXX
='-qstaticlink'
21491 case `$CC -V 2>&1 | sed 5q` in
21494 lt_prog_compiler_pic_CXX
='-KPIC'
21495 lt_prog_compiler_static_CXX
='-Bstatic'
21496 lt_prog_compiler_wl_CXX
='-Qoption ld '
21507 case $cc_basename in
21509 lt_prog_compiler_pic_CXX
='-W c,exportall'
21518 # QNX uses GNU C++, but need to define -shared option too, otherwise
21519 # it will coredump.
21520 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21522 osf3
* | osf4
* | osf5
*)
21523 case $cc_basename in
21525 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21528 # Rational C++ 2.4.1
21529 lt_prog_compiler_pic_CXX
='-pic'
21532 # Digital/Compaq C++
21533 lt_prog_compiler_wl_CXX
='-Wl,'
21534 # Make sure the PIC flag is empty. It appears that all Alpha
21535 # Linux and Compaq Tru64 Unix objects are PIC.
21536 lt_prog_compiler_pic_CXX
=
21537 lt_prog_compiler_static_CXX
='-non_shared'
21546 case $cc_basename in
21548 # Sun C++ 4.2, 5.x and Centerline C++
21549 lt_prog_compiler_pic_CXX
='-KPIC'
21550 lt_prog_compiler_static_CXX
='-Bstatic'
21551 lt_prog_compiler_wl_CXX
='-Qoption ld '
21554 # Green Hills C++ Compiler
21555 lt_prog_compiler_pic_CXX
='-PIC'
21562 case $cc_basename in
21565 lt_prog_compiler_pic_CXX
='-pic'
21566 lt_prog_compiler_static_CXX
='-Bstatic'
21570 lt_prog_compiler_pic_CXX
='-pic'
21576 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21577 case $cc_basename in
21579 lt_prog_compiler_wl_CXX
='-Wl,'
21580 lt_prog_compiler_pic_CXX
='-KPIC'
21581 lt_prog_compiler_static_CXX
='-Bstatic'
21586 case $cc_basename in
21588 # NonStop-UX NCC 3.20
21589 lt_prog_compiler_pic_CXX
='-KPIC'
21598 lt_prog_compiler_can_build_shared_CXX
=no
21604 # For platforms which do not support PIC, -DPIC is meaningless:
21606 lt_prog_compiler_pic_CXX
=
21609 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21613 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21618 # Check to make sure the PIC flag actually works.
21620 if test -n "$lt_prog_compiler_pic_CXX"; then
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21622 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21623 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21624 $as_echo_n "(cached) " >&6
21626 lt_cv_prog_compiler_pic_works_CXX
=no
21627 ac_outfile
=conftest.
$ac_objext
21628 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21629 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21630 # Insert the option either (1) after the last *FLAGS variable, or
21631 # (2) before a word containing "conftest.", or (3) at the end.
21632 # Note that $ac_compile itself does not contain backslashes and begins
21633 # with a dollar sign (not a hyphen), so the echo should work correctly.
21634 # The option is referenced via a variable to avoid confusing sed.
21635 lt_compile
=`echo "$ac_compile" | $SED \
21636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21638 -e 's:$: $lt_compiler_flag:'`
21639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21640 (eval "$lt_compile" 2>conftest.err
)
21642 cat conftest.err
>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 if (exit $ac_status) && test -s "$ac_outfile"; then
21645 # The compiler can only warn and ignore the option if not recognized
21646 # So say no if there are warnings other than the usual output.
21647 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21648 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21649 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21650 lt_cv_prog_compiler_pic_works_CXX
=yes
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21657 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21659 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21660 case $lt_prog_compiler_pic_CXX in
21662 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21665 lt_prog_compiler_pic_CXX
=
21666 lt_prog_compiler_can_build_shared_CXX
=no
21674 # Check to make sure the static flag actually works.
21676 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21679 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21680 $as_echo_n "(cached) " >&6
21682 lt_cv_prog_compiler_static_works_CXX
=no
21683 save_LDFLAGS
="$LDFLAGS"
21684 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21685 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21686 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21687 # The linker can only warn and ignore the option if not recognized
21688 # So say no if there are warnings
21689 if test -s conftest.err
; then
21690 # Append any errors to the config.log.
21691 cat conftest.err
1>&5
21692 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21693 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21694 if diff conftest.exp conftest.er2
>/dev
/null
; then
21695 lt_cv_prog_compiler_static_works_CXX
=yes
21698 lt_cv_prog_compiler_static_works_CXX
=yes
21702 LDFLAGS
="$save_LDFLAGS"
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21706 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21708 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21711 lt_prog_compiler_static_CXX
=
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21719 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21720 $as_echo_n "(cached) " >&6
21722 lt_cv_prog_compiler_c_o_CXX
=no
21723 $RM -r conftest
2>/dev
/null
21727 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21729 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21730 # Insert the option either (1) after the last *FLAGS variable, or
21731 # (2) before a word containing "conftest.", or (3) at the end.
21732 # Note that $ac_compile itself does not contain backslashes and begins
21733 # with a dollar sign (not a hyphen), so the echo should work correctly.
21734 lt_compile
=`echo "$ac_compile" | $SED \
21735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21737 -e 's:$: $lt_compiler_flag:'`
21738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21739 (eval "$lt_compile" 2>out
/conftest.err
)
21741 cat out
/conftest.err
>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21745 # The compiler can only warn and ignore the option if not recognized
21746 # So say no if there are warnings
21747 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21748 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21749 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21750 lt_cv_prog_compiler_c_o_CXX
=yes
21755 # SGI C++ compiler will create directory out/ii_files/ for
21756 # template instantiation
21757 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21758 $RM out
/* && rmdir out
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21765 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21771 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21772 $as_echo_n "(cached) " >&6
21774 lt_cv_prog_compiler_c_o_CXX
=no
21775 $RM -r conftest
2>/dev
/null
21779 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21781 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21782 # Insert the option either (1) after the last *FLAGS variable, or
21783 # (2) before a word containing "conftest.", or (3) at the end.
21784 # Note that $ac_compile itself does not contain backslashes and begins
21785 # with a dollar sign (not a hyphen), so the echo should work correctly.
21786 lt_compile
=`echo "$ac_compile" | $SED \
21787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21789 -e 's:$: $lt_compiler_flag:'`
21790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21791 (eval "$lt_compile" 2>out
/conftest.err
)
21793 cat out
/conftest.err
>&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21797 # The compiler can only warn and ignore the option if not recognized
21798 # So say no if there are warnings
21799 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21800 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21801 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21802 lt_cv_prog_compiler_c_o_CXX
=yes
21807 # SGI C++ compiler will create directory out/ii_files/ for
21808 # template instantiation
21809 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21810 $RM out
/* && rmdir out
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21817 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21822 hard_links
="nottested"
21823 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21824 # do not overwrite the value of need_locks provided by the user
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21826 $as_echo_n "checking if we can lock with hard links... " >&6; }
21829 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21831 ln conftest.a conftest.b
2>&5 || hard_links
=no
21832 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21834 $as_echo "$hard_links" >&6; }
21835 if test "$hard_links" = no
; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21849 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21852 # If we're using GNU nm, then we don't want the "-C" option.
21853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21854 # Also, AIX nm treats weak defined symbols like other global defined
21855 # symbols, whereas GNU nm marks them as "W".
21856 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21857 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'
21859 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'
21863 export_symbols_cmds_CXX
="$ltdll_cmds"
21865 cygwin
* | mingw
* | cegcc
*)
21866 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'
21869 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21872 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21875 $as_echo "$ld_shlibs_CXX" >&6; }
21876 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21878 with_gnu_ld_CXX
=$with_gnu_ld
21886 # Do we need to explicitly link libc?
21888 case "x$archive_cmds_need_lc_CXX" in
21890 # Assume -lc should be added
21891 archive_cmds_need_lc_CXX
=yes
21893 if test "$enable_shared" = yes && test "$GCC" = yes; then
21894 case $archive_cmds_CXX in
21896 # FIXME: we may have to deal with multi-command sequences.
21899 # Test whether the compiler implicitly links with -lc since on some
21900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21901 # to ld, don't add -lc before -lgcc.
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21904 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21905 $as_echo_n "(cached) " >&6
21908 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21911 (eval $ac_compile) 2>&5
21913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914 test $ac_status = 0; } 2>conftest.err
; then
21917 libobjs
=conftest.
$ac_objext
21919 wl
=$lt_prog_compiler_wl_CXX
21920 pic_flag
=$lt_prog_compiler_pic_CXX
21926 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21927 allow_undefined_flag_CXX
=
21928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21929 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }
21934 lt_cv_archive_cmds_need_lc_CXX
=no
21936 lt_cv_archive_cmds_need_lc_CXX
=yes
21938 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21940 cat conftest.err
1>&5
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21946 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21947 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22020 library_names_spec
=
22021 libname_spec
='lib$name'
22025 postuninstall_cmds
=
22029 shlibpath_overrides_runpath
=unknown
22031 dynamic_linker
="$host_os ld.so"
22032 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22033 need_lib_prefix
=unknown
22034 hardcode_into_libs
=no
22036 # when you set need_version to no, make sure it does not cause -set_version
22037 # flags to be left without arguments
22038 need_version
=unknown
22043 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22044 shlibpath_var
=LIBPATH
22046 # AIX 3 has no versioning support, so we append a major version to the name.
22047 soname_spec
='${libname}${release}${shared_ext}$major'
22054 hardcode_into_libs
=yes
22055 if test "$host_cpu" = ia64
; then
22056 # AIX 5 supports IA64
22057 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22058 shlibpath_var
=LD_LIBRARY_PATH
22060 # With GCC up to 2.95.x, collect2 would create an import file
22061 # for dependence libraries. The import file would start with
22062 # the line `#! .'. This would cause the generated library to
22063 # depend on `.', always an invalid library. This was fixed in
22064 # development snapshots of GCC prior to 3.0.
22066 aix4 | aix4.
[01] | aix4.
[01].
*)
22067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22069 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22072 can_build_shared
=no
22076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22077 # soname into executable. Probably we can add versioning support to
22078 # collect2, so additional links can be useful in future.
22079 if test "$aix_use_runtimelinking" = yes; then
22080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22081 # instead of lib<name>.a to let people know that these are not
22082 # typical AIX shared libraries.
22083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22085 # We preserve .a as extension for shared libraries through AIX4.2
22086 # and later when we are not doing run time linking.
22087 library_names_spec
='${libname}${release}.a $libname.a'
22088 soname_spec
='${libname}${release}${shared_ext}$major'
22090 shlibpath_var
=LIBPATH
22097 # Since July 2007 AmigaOS4 officially supports .so libraries.
22098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22102 library_names_spec
='$libname.ixlibrary $libname.a'
22103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22104 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'
22110 library_names_spec
='${libname}${shared_ext}'
22111 dynamic_linker
="$host_os ld.so"
22112 shlibpath_var
=LIBRARY_PATH
22118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22119 soname_spec
='${libname}${release}${shared_ext}$major'
22120 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22121 shlibpath_var
=LD_LIBRARY_PATH
22122 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22123 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22124 # the default ld.so.conf also contains /usr/contrib/lib and
22125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22126 # libtool to hard-code these into programs
22129 cygwin
* | mingw
* | pw32
* | cegcc
*)
22130 version_type
=windows
22135 case $GCC,$host_os in
22136 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22137 library_names_spec
='$libname.dll.a'
22138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22139 postinstall_cmds
='base_file=`basename \${file}`~
22140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22141 dldir=$destdir/`dirname \$dlpath`~
22142 test -d \$dldir || mkdir -p \$dldir~
22143 $install_prog $dir/$dlname \$dldir/$dlname~
22144 chmod a+x \$dldir/$dlname~
22145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22148 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22149 dlpath=$dir/\$dldll~
22151 shlibpath_overrides_runpath
=yes
22155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22156 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22160 # MinGW DLLs use traditional 'lib' prefix
22161 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22164 # pw32 DLLs use 'pw' prefix rather than 'lib'
22165 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22171 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22174 dynamic_linker
='Win32 ld.exe'
22175 # FIXME: first we should search . and the directory the executable is in
22179 darwin
* | rhapsody
*)
22180 dynamic_linker
="$host_os dyld"
22181 version_type
=darwin
22184 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22185 soname_spec
='${libname}${release}${major}$shared_ext'
22186 shlibpath_overrides_runpath
=yes
22187 shlibpath_var
=DYLD_LIBRARY_PATH
22188 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22190 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22198 soname_spec
='${libname}${release}${shared_ext}$major'
22199 shlibpath_var
=LD_LIBRARY_PATH
22202 freebsd
* | dragonfly
*)
22203 # DragonFly does not have aout. When/if they implement a new
22204 # versioning mechanism, adjust this.
22205 if test -x /usr
/bin
/objformat
; then
22206 objformat
=`/usr/bin/objformat`
22209 freebsd
[23].
*) objformat
=aout
;;
22210 *) objformat
=elf
;;
22213 version_type
=freebsd-
$objformat
22214 case $version_type in
22216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22221 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22225 shlibpath_var
=LD_LIBRARY_PATH
22228 shlibpath_overrides_runpath
=yes
22230 freebsd3.
[01]* | freebsdelf3.
[01]*)
22231 shlibpath_overrides_runpath
=yes
22232 hardcode_into_libs
=yes
22234 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22235 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22236 shlibpath_overrides_runpath
=no
22237 hardcode_into_libs
=yes
22239 *) # from 4.6 on, and DragonFly
22240 shlibpath_overrides_runpath
=yes
22241 hardcode_into_libs
=yes
22250 dynamic_linker
="$host_os runtime_loader"
22251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22252 soname_spec
='${libname}${release}${shared_ext}$major'
22253 shlibpath_var
=LIBRARY_PATH
22254 shlibpath_overrides_runpath
=yes
22255 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22256 hardcode_into_libs
=yes
22259 hpux9
* | hpux10
* | hpux11
*)
22260 # Give a soname corresponding to the major version so that dld.sl refuses to
22261 # link against other versions.
22268 hardcode_into_libs
=yes
22269 dynamic_linker
="$host_os dld.so"
22270 shlibpath_var
=LD_LIBRARY_PATH
22271 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22273 soname_spec
='${libname}${release}${shared_ext}$major'
22274 if test "X$HPUX_IA64_MODE" = X32
; then
22275 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22277 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22279 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22283 hardcode_into_libs
=yes
22284 dynamic_linker
="$host_os dld.sl"
22285 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22286 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22288 soname_spec
='${libname}${release}${shared_ext}$major'
22289 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22290 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22294 dynamic_linker
="$host_os dld.sl"
22295 shlibpath_var
=SHLIB_PATH
22296 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22298 soname_spec
='${libname}${release}${shared_ext}$major'
22301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22302 postinstall_cmds
='chmod 555 $lib'
22303 # or fails outright, so override atomically:
22304 install_override_mode
=555
22311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22312 soname_spec
='${libname}${release}${shared_ext}$major'
22313 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22314 shlibpath_var
=LD_LIBRARY_PATH
22315 shlibpath_overrides_runpath
=no
22316 hardcode_into_libs
=yes
22319 irix5
* | irix6
* | nonstopux
*)
22321 nonstopux
*) version_type
=nonstopux
;;
22323 if test "$lt_cv_prog_gnu_ld" = yes; then
22331 soname_spec
='${libname}${release}${shared_ext}$major'
22332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22334 irix5
* | nonstopux
*)
22335 libsuff
= shlibsuff
=
22338 case $LD in # libtool.m4 will add one of these switches to LD
22339 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22340 libsuff
= shlibsuff
= libmagic
=32-bit;;
22341 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22342 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22343 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22344 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22345 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22349 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22350 shlibpath_overrides_runpath
=no
22351 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22352 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22353 hardcode_into_libs
=yes
22356 # No shared lib support for Linux oldld, aout, or coff.
22357 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22361 # This must be Linux ELF.
22363 # uclinux* changes (here and below) have been submitted to the libtool
22364 # project, but have not yet been accepted: they are GCC-local changes
22365 # for the time being. (See
22366 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22367 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22372 soname_spec
='${libname}${release}${shared_ext}$major'
22373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22374 shlibpath_var
=LD_LIBRARY_PATH
22375 shlibpath_overrides_runpath
=no
22377 # Some binutils ld are patched to set DT_RUNPATH
22378 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22379 $as_echo_n "(cached) " >&6
22381 lt_cv_shlibpath_overrides_runpath
=no
22382 save_LDFLAGS
=$LDFLAGS
22383 save_libdir
=$libdir
22384 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22385 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22397 if ac_fn_cxx_try_link
"$LINENO"; then :
22398 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22399 lt_cv_shlibpath_overrides_runpath
=yes
22402 rm -f core conftest.err conftest.
$ac_objext \
22403 conftest
$ac_exeext conftest.
$ac_ext
22404 LDFLAGS
=$save_LDFLAGS
22405 libdir
=$save_libdir
22409 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22411 # This implies no fast_install, which is unacceptable.
22412 # Some rework will be needed to allow for fast_install
22413 # before this can be enabled.
22414 hardcode_into_libs
=yes
22416 # Append ld.so.conf contents to the search path
22417 if test -f /etc
/ld.so.conf
; then
22418 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' ' '`
22419 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22422 # We used to test for /lib/ld.so.1 and disable shared libraries on
22423 # powerpc, because MkLinux only supported shared libraries with the
22424 # GNU dynamic linker. Since this was broken with cross compilers,
22425 # most powerpc-linux boxes support dynamic linking these days and
22426 # people can always --disable-shared, the test was removed, and we
22427 # assume the GNU/Linux dynamic linker is in use.
22428 dynamic_linker
='GNU/Linux ld.so'
22435 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22437 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22438 dynamic_linker
='NetBSD (a.out) ld.so'
22440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22441 soname_spec
='${libname}${release}${shared_ext}$major'
22442 dynamic_linker
='NetBSD ld.elf_so'
22444 shlibpath_var
=LD_LIBRARY_PATH
22445 shlibpath_overrides_runpath
=yes
22446 hardcode_into_libs
=yes
22451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452 shlibpath_var
=LD_LIBRARY_PATH
22453 shlibpath_overrides_runpath
=yes
22460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22461 soname_spec
='${libname}${release}${shared_ext}$major'
22462 shlibpath_var
=LD_LIBRARY_PATH
22463 shlibpath_overrides_runpath
=no
22464 hardcode_into_libs
=yes
22465 dynamic_linker
='ldqnx.so'
22470 sys_lib_dlsearch_path_spec
="/usr/lib"
22472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22474 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22475 *) need_version
=no
;;
22477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22478 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22479 shlibpath_var
=LD_LIBRARY_PATH
22480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22482 openbsd2.
[89] | openbsd2.
[89].
*)
22483 shlibpath_overrides_runpath
=no
22486 shlibpath_overrides_runpath
=yes
22490 shlibpath_overrides_runpath
=yes
22495 libname_spec
='$name'
22498 library_names_spec
='$libname${shared_ext} $libname.a'
22499 dynamic_linker
='OS/2 ld.exe'
22500 shlibpath_var
=LIBPATH
22503 osf3
* | osf4
* | osf5
*)
22507 soname_spec
='${libname}${release}${shared_ext}$major'
22508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22509 shlibpath_var
=LD_LIBRARY_PATH
22510 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22511 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22523 soname_spec
='${libname}${release}${shared_ext}$major'
22524 shlibpath_var
=LD_LIBRARY_PATH
22525 shlibpath_overrides_runpath
=yes
22526 hardcode_into_libs
=yes
22527 # ldd complains unless libraries are executable
22528 postinstall_cmds
='chmod +x $lib'
22533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22534 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22535 shlibpath_var
=LD_LIBRARY_PATH
22536 shlibpath_overrides_runpath
=yes
22537 if test "$with_gnu_ld" = yes; then
22545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22546 soname_spec
='${libname}${release}${shared_ext}$major'
22547 shlibpath_var
=LD_LIBRARY_PATH
22548 case $host_vendor in
22550 shlibpath_overrides_runpath
=no
22552 runpath_var
=LD_RUN_PATH
22560 shlibpath_overrides_runpath
=no
22561 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22567 if test -d /usr
/nec
;then
22569 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22570 soname_spec
='$libname${shared_ext}.$major'
22571 shlibpath_var
=LD_LIBRARY_PATH
22575 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22576 version_type
=freebsd-elf
22579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22580 soname_spec
='${libname}${release}${shared_ext}$major'
22581 shlibpath_var
=LD_LIBRARY_PATH
22582 shlibpath_overrides_runpath
=yes
22583 hardcode_into_libs
=yes
22584 if test "$with_gnu_ld" = yes; then
22585 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22587 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22590 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22594 sys_lib_dlsearch_path_spec
='/usr/lib'
22598 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 shlibpath_var
=LD_LIBRARY_PATH
22604 shlibpath_overrides_runpath
=no
22605 hardcode_into_libs
=yes
22610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 soname_spec
='${libname}${release}${shared_ext}$major'
22612 shlibpath_var
=LD_LIBRARY_PATH
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22620 $as_echo "$dynamic_linker" >&6; }
22621 test "$dynamic_linker" = no
&& can_build_shared
=no
22623 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22624 if test "$GCC" = yes; then
22625 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22628 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22629 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22631 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22632 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22673 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22674 hardcode_action_CXX
=
22675 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22676 test -n "$runpath_var_CXX" ||
22677 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22679 # We can hardcode non-existent directories.
22680 if test "$hardcode_direct_CXX" != no
&&
22681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22682 # have to relink, otherwise we might link with an installed library
22683 # when we should be linking with a yet-to-be-installed one
22684 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22685 test "$hardcode_minus_L_CXX" != no
; then
22686 # Linking always hardcodes the temporary library directory.
22687 hardcode_action_CXX
=relink
22689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22690 hardcode_action_CXX
=immediate
22693 # We cannot hardcode anything, or else we can only hardcode existing
22695 hardcode_action_CXX
=unsupported
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22698 $as_echo "$hardcode_action_CXX" >&6; }
22700 if test "$hardcode_action_CXX" = relink ||
22701 test "$inherit_rpath_CXX" = yes; then
22702 # Fast installation is not supported
22703 enable_fast_install
=no
22704 elif test "$shlibpath_overrides_runpath" = yes ||
22705 test "$enable_shared" = no
; then
22706 # Fast installation is not necessary
22707 enable_fast_install
=needless
22716 fi # test -n "$compiler"
22722 with_gnu_ld
=$lt_save_with_gnu_ld
22723 lt_cv_path_LDCXX
=$lt_cv_path_LD
22724 lt_cv_path_LD
=$lt_save_path_LD
22725 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22726 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22727 fi # test "$_lt_caught_CXX_error" != yes
22730 ac_cpp
='$CXXCPP $CPPFLAGS'
22731 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22750 # Only expand once:
22756 # Identify the assembler which will work hand-in-glove with the newly
22757 # built GCC, so that we can examine its features. This is the assembler
22758 # which will be driven by the driver program.
22760 # If build != host, and we aren't building gas in-tree, we identify a
22761 # build->target assembler and hope that it will have the same features
22762 # as the host->target assembler we'll be using.
22763 gcc_cv_gas_major_version
=
22764 gcc_cv_gas_minor_version
=
22765 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22767 if ${gcc_cv_as+:} false
; then :
22771 if test -x "$DEFAULT_ASSEMBLER"; then
22772 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22773 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22774 && test -f ..
/gas
/Makefile \
22775 && test x
$build = x
$host; then
22776 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22777 elif test -x as
$build_exeext; then
22778 # Build using assembler in the current directory.
22779 gcc_cv_as
=.
/as
$build_exeext
22780 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22781 gcc_cv_as
="$AS_FOR_TARGET"
22783 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22784 set dummy
$AS_FOR_TARGET; ac_word
=$2
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22786 $as_echo_n "checking for $ac_word... " >&6; }
22787 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22788 $as_echo_n "(cached) " >&6
22792 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22796 for as_dir
in $PATH
22799 test -z "$as_dir" && as_dir
=.
22800 for ac_exec_ext
in '' $ac_executable_extensions; do
22801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22802 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22813 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22814 if test -n "$gcc_cv_as"; then
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22816 $as_echo "$gcc_cv_as" >&6; }
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22819 $as_echo "no" >&6; }
22826 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22828 case "$ORIGINAL_AS_FOR_TARGET" in
22829 .
/as | .
/as
$build_exeext) ;;
22830 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22835 $as_echo_n "checking what assembler to use... " >&6; }
22836 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22837 # Single tree build which includes gas. We want to prefer it
22838 # over whatever linker top-level may have detected, since
22839 # we'll use what we're building after installation anyway.
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22841 $as_echo "newly built gas" >&6; }
22843 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22844 for f
in $gcc_cv_as_bfd_srcdir/configure \
22845 $gcc_cv_as_gas_srcdir/configure \
22846 $gcc_cv_as_gas_srcdir/configure.ac \
22847 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22848 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22849 if test x
$gcc_cv_gas_version != x
; then
22853 case $gcc_cv_gas_version in
22855 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22857 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22858 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22859 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22860 case $gcc_cv_gas_patch_version in
22861 "") gcc_cv_gas_patch_version
="0" ;;
22863 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22864 + $gcc_cv_gas_minor_version \) \* 1000 \
22865 + $gcc_cv_gas_patch_version`
22867 in_tree_gas_is_elf
=no
22868 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22869 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22870 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22872 in_tree_gas_is_elf
=yes
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22876 $as_echo "$gcc_cv_as" >&6; }
22881 # Check whether --enable-ld was given.
22882 if test "${enable_ld+set}" = set; then :
22883 enableval
=$enable_ld; case "${enableval}" in
22891 install_gold_as_default
=no
22892 # Check whether --enable-gold was given.
22893 if test "${enable_gold+set}" = set; then :
22894 enableval
=$enable_gold; case "${enableval}" in
22896 install_gold_as_default
=yes
22899 if test x
${default_ld} != x
; then
22900 install_gold_as_default
=yes
22906 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22912 # Identify the linker which will work hand-in-glove with the newly
22913 # built GCC, so that we can examine its features. This is the linker
22914 # which will be driven by the driver program.
22916 # If build != host, and we aren't building gas in-tree, we identify a
22917 # build->target linker and hope that it will have the same features
22918 # as the host->target linker we'll be using.
22919 gcc_cv_gld_major_version
=
22920 gcc_cv_gld_minor_version
=
22921 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22922 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22923 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22925 if ${gcc_cv_ld+:} false
; then :
22929 if test -x "$DEFAULT_LINKER"; then
22930 gcc_cv_ld
="$DEFAULT_LINKER"
22931 elif test $install_gold_as_default = yes \
22932 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22933 && test -f ..
/gold
/Makefile \
22934 && test x
$build = x
$host; then
22935 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22936 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22937 && test -f ..
/ld
/Makefile \
22938 && test x
$build = x
$host; then
22939 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22940 elif test -x collect-ld
$build_exeext; then
22941 # Build using linker in the current directory.
22942 gcc_cv_ld
=.
/collect-ld
$build_exeext
22943 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22944 gcc_cv_ld
="$LD_FOR_TARGET"
22946 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22947 set dummy
$LD_FOR_TARGET; ac_word
=$2
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22949 $as_echo_n "checking for $ac_word... " >&6; }
22950 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22951 $as_echo_n "(cached) " >&6
22955 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22959 for as_dir
in $PATH
22962 test -z "$as_dir" && as_dir
=.
22963 for ac_exec_ext
in '' $ac_executable_extensions; do
22964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22965 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22976 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22977 if test -n "$gcc_cv_ld"; then
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22979 $as_echo "$gcc_cv_ld" >&6; }
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22982 $as_echo "no" >&6; }
22989 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22990 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22991 # if the PLUGIN_LD is set ld-new, just have it as ld
22992 # as that is the installed named.
22993 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22994 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22995 PLUGIN_LD_SUFFIX
=ld
22998 # Check whether --with-plugin-ld was given.
22999 if test "${with_plugin_ld+set}" = set; then :
23000 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23001 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23002 PLUGIN_LD_SUFFIX
="$withval"
23008 cat >>confdefs.h
<<_ACEOF
23009 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23013 # Check to see if we are using gold instead of ld
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23015 $as_echo_n "checking whether we are using gold... " >&6; }
23017 if test x
$gcc_cv_ld != x
; then
23018 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23019 |
grep "GNU gold" > /dev
/null
; then
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23024 $as_echo "$ld_is_gold" >&6; }
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23027 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23028 # Check to see if default ld is not gold, but gold is
23029 # available and has support for split stack. If gcc was configured
23030 # with gold then no checking is done.
23032 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23034 # For platforms other than powerpc64*, enable as appropriate.
23036 gold_non_default
=no
23037 ld_gold
=`which ${gcc_cv_ld}.gold`
23038 # Make sure this gold has minimal split stack support
23039 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23040 ld_vers
=`$ld_gold --version | sed 1q`
23041 gold_vers
=`echo $ld_vers | sed -n \
23042 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23044 # check that the gold version contains the complete split stack support
23045 # on powerpc64 big and little endian
23047 case "$gold_vers" in
23048 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23050 *) gold_non_default
=no
23056 if test $gold_non_default = yes; then
23058 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23063 $as_echo "$gold_non_default" >&6; }
23065 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23067 case "$ORIGINAL_LD_FOR_TARGET" in
23068 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23069 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23074 $as_echo_n "checking what linker to use... " >&6; }
23075 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23076 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23077 # Single tree build which includes ld. We want to prefer it
23078 # over whatever linker top-level may have detected, since
23079 # we'll use what we're building after installation anyway.
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23081 $as_echo "newly built ld" >&6; }
23083 in_tree_ld_is_elf
=no
23084 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23085 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23086 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23087 in_tree_ld_is_elf
=yes
23088 elif test "$ld_is_gold" = yes; then
23089 in_tree_ld_is_elf
=yes
23091 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
23093 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23094 if test x
$gcc_cv_gld_version != x
; then
23098 case $gcc_cv_gld_version in
23100 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23102 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23103 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23104 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23105 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23108 $as_echo "$gcc_cv_ld" >&6; }
23110 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23111 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23112 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23118 # Figure out what nm we will be using.
23119 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23120 if ${gcc_cv_nm+:} false
; then :
23124 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23125 && test -f ..
/binutils
/Makefile \
23126 && test x
$build = x
$host; then
23127 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23128 elif test -x nm
$build_exeext; then
23129 gcc_cv_nm
=.
/nm
$build_exeext
23130 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23131 gcc_cv_nm
="$NM_FOR_TARGET"
23133 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23134 set dummy
$NM_FOR_TARGET; ac_word
=$2
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23136 $as_echo_n "checking for $ac_word... " >&6; }
23137 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23138 $as_echo_n "(cached) " >&6
23142 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23146 for as_dir
in $PATH
23149 test -z "$as_dir" && as_dir
=.
23150 for ac_exec_ext
in '' $ac_executable_extensions; do
23151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23152 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23163 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23164 if test -n "$gcc_cv_nm"; then
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23166 $as_echo "$gcc_cv_nm" >&6; }
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23177 $as_echo_n "checking what nm to use... " >&6; }
23178 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23179 # Single tree build which includes binutils.
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23181 $as_echo "newly built nm" >&6; }
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23185 $as_echo "$gcc_cv_nm" >&6; }
23189 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23191 case "$ORIGINAL_NM_FOR_TARGET" in
23192 .
/nm | .
/nm
$build_exeext) ;;
23193 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23198 # Figure out what objdump we will be using.
23199 if ${gcc_cv_objdump+:} false
; then :
23203 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23204 && test -f ..
/binutils
/Makefile \
23205 && test x
$build = x
$host; then
23206 # Single tree build which includes binutils.
23207 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23208 elif test -x objdump
$build_exeext; then
23209 gcc_cv_objdump
=.
/objdump
$build_exeext
23210 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23211 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23213 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23214 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23216 $as_echo_n "checking for $ac_word... " >&6; }
23217 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23218 $as_echo_n "(cached) " >&6
23220 case $gcc_cv_objdump in
23222 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23226 for as_dir
in $PATH
23229 test -z "$as_dir" && as_dir
=.
23230 for ac_exec_ext
in '' $ac_executable_extensions; do
23231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23232 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23243 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23244 if test -n "$gcc_cv_objdump"; then
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23246 $as_echo "$gcc_cv_objdump" >&6; }
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23249 $as_echo "no" >&6; }
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23257 $as_echo_n "checking what objdump to use... " >&6; }
23258 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23259 # Single tree build which includes binutils.
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23261 $as_echo "newly built objdump" >&6; }
23262 elif test x
$gcc_cv_objdump = x
; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23264 $as_echo "not found" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23267 $as_echo "$gcc_cv_objdump" >&6; }
23270 # Figure out what readelf we will be using.
23271 if ${gcc_cv_readelf+:} false
; then :
23275 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23276 && test -f ..
/binutils
/Makefile \
23277 && test x
$build = x
$host; then
23278 # Single tree build which includes binutils.
23279 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23280 elif test -x readelf
$build_exeext; then
23281 gcc_cv_readelf
=.
/readelf
$build_exeext
23282 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23283 gcc_cv_readelf
="$READELF_FOR_TARGET"
23285 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23286 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23288 $as_echo_n "checking for $ac_word... " >&6; }
23289 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23290 $as_echo_n "(cached) " >&6
23292 case $gcc_cv_readelf in
23294 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23298 for as_dir
in $PATH
23301 test -z "$as_dir" && as_dir
=.
23302 for ac_exec_ext
in '' $ac_executable_extensions; do
23303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23304 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23315 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23316 if test -n "$gcc_cv_readelf"; then
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23318 $as_echo "$gcc_cv_readelf" >&6; }
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23321 $as_echo "no" >&6; }
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23329 $as_echo_n "checking what readelf to use... " >&6; }
23330 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23331 # Single tree build which includes binutils.
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23333 $as_echo "newly built readelf" >&6; }
23334 elif test x
$gcc_cv_readelf = x
; then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23336 $as_echo "not found" >&6; }
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23339 $as_echo "$gcc_cv_readelf" >&6; }
23342 # Figure out what otool we will be using.
23343 if ${gcc_cv_otool+:} false
; then :
23347 if test -x otool
$build_exeext; then
23348 gcc_cv_otool
=.
/otool
$build_exeext
23349 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23350 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23352 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23353 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23355 $as_echo_n "checking for $ac_word... " >&6; }
23356 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23357 $as_echo_n "(cached) " >&6
23359 case $gcc_cv_otool in
23361 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23365 for as_dir
in $PATH
23368 test -z "$as_dir" && as_dir
=.
23369 for ac_exec_ext
in '' $ac_executable_extensions; do
23370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23371 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23382 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23383 if test -n "$gcc_cv_otool"; then
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23385 $as_echo "$gcc_cv_otool" >&6; }
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23388 $as_echo "no" >&6; }
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23396 $as_echo_n "checking what otool to use... " >&6; }
23397 if test x
$gcc_cv_otool = x
; then
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23399 $as_echo "not found" >&6; }
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23402 $as_echo "$gcc_cv_otool" >&6; }
23405 # Figure out what assembler alignment features are present.
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23407 $as_echo_n "checking assembler flags... " >&6; }
23408 if ${gcc_cv_as_flags+:} false
; then :
23409 $as_echo_n "(cached) " >&6
23412 i
[34567]86-*-linux*)
23413 gcc_cv_as_flags
=--32
23415 x86_64-
*-linux-gnux32)
23416 gcc_cv_as_flags
=--x32
23419 gcc_cv_as_flags
=--64
23421 powerpc
*-*-darwin*)
23422 gcc_cv_as_flags
="-arch ppc"
23425 gcc_cv_as_flags
=" "
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23430 $as_echo "$gcc_cv_as_flags" >&6; }
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23433 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23434 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23435 $as_echo_n "(cached) " >&6
23437 gcc_cv_as_balign_and_p2align
=no
23438 if test $in_tree_gas = yes; then
23439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23440 then gcc_cv_as_balign_and_p2align
=yes
23442 elif test x
$gcc_cv_as != x
; then
23443 $as_echo '.balign 4
23444 .p2align 2' > conftest.s
23445 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }
23452 gcc_cv_as_balign_and_p2align
=yes
23454 echo "configure: failed program was" >&5
23457 rm -f conftest.o conftest.s
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23461 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23462 if test $gcc_cv_as_balign_and_p2align = yes; then
23464 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23470 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23471 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23472 $as_echo_n "(cached) " >&6
23474 gcc_cv_as_max_skip_p2align
=no
23475 if test $in_tree_gas = yes; then
23476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23477 then gcc_cv_as_max_skip_p2align
=yes
23479 elif test x
$gcc_cv_as != x
; then
23480 $as_echo '.p2align 4,,7' > conftest.s
23481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23483 (eval $ac_try) 2>&5
23485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23486 test $ac_status = 0; }; }
23488 gcc_cv_as_max_skip_p2align
=yes
23490 echo "configure: failed program was" >&5
23493 rm -f conftest.o conftest.s
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23497 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23498 if test $gcc_cv_as_max_skip_p2align = yes; then
23500 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23506 $as_echo_n "checking assembler for .literal16... " >&6; }
23507 if ${gcc_cv_as_literal16+:} false
; then :
23508 $as_echo_n "(cached) " >&6
23510 gcc_cv_as_literal16
=no
23511 if test $in_tree_gas = yes; then
23512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23513 then gcc_cv_as_literal16
=yes
23515 elif test x
$gcc_cv_as != x
; then
23516 $as_echo '.literal16' > conftest.s
23517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519 (eval $ac_try) 2>&5
23521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522 test $ac_status = 0; }; }
23524 gcc_cv_as_literal16
=yes
23526 echo "configure: failed program was" >&5
23529 rm -f conftest.o conftest.s
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23533 $as_echo "$gcc_cv_as_literal16" >&6; }
23534 if test $gcc_cv_as_literal16 = yes; then
23536 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23542 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23543 if ${gcc_cv_as_subsection_m1+:} false
; then :
23544 $as_echo_n "(cached) " >&6
23546 gcc_cv_as_subsection_m1
=no
23547 if test $in_tree_gas = yes; then
23548 if test $in_tree_gas_is_elf = yes \
23549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23550 then gcc_cv_as_subsection_m1
=yes
23552 elif test x
$gcc_cv_as != x
; then
23553 $as_echo 'conftest_label1: .word 0
23555 conftest_label2: .word 0
23556 .previous' > conftest.s
23557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23564 if test x
$gcc_cv_nm != x
; then
23565 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23566 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23567 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23569 else gcc_cv_as_subsection_m1
=yes
23571 rm -f conftest.nm1 conftest.nm2
23574 echo "configure: failed program was" >&5
23577 rm -f conftest.o conftest.s
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23581 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23582 if test $gcc_cv_as_subsection_m1 = yes; then
23584 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23590 $as_echo_n "checking assembler for .weak... " >&6; }
23591 if ${gcc_cv_as_weak+:} false
; then :
23592 $as_echo_n "(cached) " >&6
23595 if test $in_tree_gas = yes; then
23596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23597 then gcc_cv_as_weak
=yes
23599 elif test x
$gcc_cv_as != x
; then
23600 $as_echo ' .weak foobar' > conftest.s
23601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23603 (eval $ac_try) 2>&5
23605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23606 test $ac_status = 0; }; }
23610 echo "configure: failed program was" >&5
23613 rm -f conftest.o conftest.s
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23617 $as_echo "$gcc_cv_as_weak" >&6; }
23618 if test $gcc_cv_as_weak = yes; then
23620 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23626 $as_echo_n "checking assembler for .weakref... " >&6; }
23627 if ${gcc_cv_as_weakref+:} false
; then :
23628 $as_echo_n "(cached) " >&6
23630 gcc_cv_as_weakref
=no
23631 if test $in_tree_gas = yes; then
23632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23633 then gcc_cv_as_weakref
=yes
23635 elif test x
$gcc_cv_as != x
; then
23636 $as_echo ' .weakref foobar, barfnot' > conftest.s
23637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23639 (eval $ac_try) 2>&5
23641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23642 test $ac_status = 0; }; }
23644 gcc_cv_as_weakref
=yes
23646 echo "configure: failed program was" >&5
23649 rm -f conftest.o conftest.s
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23653 $as_echo "$gcc_cv_as_weakref" >&6; }
23654 if test $gcc_cv_as_weakref = yes; then
23656 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23662 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23663 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23664 $as_echo_n "(cached) " >&6
23666 gcc_cv_as_nsubspa_comdat
=no
23667 if test $in_tree_gas = yes; then
23668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23669 then gcc_cv_as_nsubspa_comdat
=yes
23671 elif test x
$gcc_cv_as != x
; then
23672 $as_echo ' .SPACE $TEXT$
23673 .NSUBSPA $CODE$,COMDAT' > conftest.s
23674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23681 gcc_cv_as_nsubspa_comdat
=yes
23683 echo "configure: failed program was" >&5
23686 rm -f conftest.o conftest.s
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23690 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23691 if test $gcc_cv_as_nsubspa_comdat = yes; then
23693 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23698 # .hidden needs to be supported in both the assembler and the linker,
23699 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23700 # This is irritatingly difficult to feature test for; we have to check the
23701 # date string after the version number. If we've got an in-tree
23702 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23704 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23705 case "${target}" in
23707 conftest_s
=' .globl foobar,hidden'
23710 conftest_s
=' .hidden foobar
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23715 $as_echo_n "checking assembler for .hidden... " >&6; }
23716 if ${gcc_cv_as_hidden+:} false
; then :
23717 $as_echo_n "(cached) " >&6
23719 gcc_cv_as_hidden
=no
23720 if test $in_tree_gas = yes; then
23721 if test $in_tree_gas_is_elf = yes \
23722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23723 then gcc_cv_as_hidden
=yes
23725 elif test x
$gcc_cv_as != x
; then
23726 $as_echo "$conftest_s" > conftest.s
23727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23734 gcc_cv_as_hidden
=yes
23736 echo "configure: failed program was" >&5
23739 rm -f conftest.o conftest.s
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23743 $as_echo "$gcc_cv_as_hidden" >&6; }
23746 case "${target}" in
23748 # Darwin as has some visibility support, though with a different syntax.
23749 gcc_cv_as_hidden
=yes
23753 # gnu_indirect_function type is an extension proposed at
23754 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23755 # selection of function implementation
23756 # Check whether --enable-gnu-indirect-function was given.
23757 if test "${enable_gnu_indirect_function+set}" = set; then :
23758 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23760 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23761 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23764 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23768 case "${target}" in
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23771 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23772 cat > conftest.s
<<EOF
23774 .type foo_resolver, @function
23777 .size foo_resolver, .-foo_resolver
23780 .type foo, %gnu_indirect_function
23781 .set foo, foo_resolver
23784 .type bar, @function
23790 if test x
$gcc_cv_as != x \
23791 && test x
$gcc_cv_ld != x \
23792 && test x
$gcc_cv_readelf != x \
23793 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23794 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23795 && $gcc_cv_readelf --relocs --wide conftest \
23796 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
23797 enable_gnu_indirect_function
=yes
23799 rm -f conftest conftest.o conftest.s
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23801 $as_echo "$enable_gnu_indirect_function" >&6; }
23805 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23807 cat >>confdefs.h
<<_ACEOF
23808 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23813 if test $in_tree_ld != yes ; then
23814 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23815 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23816 if test x
"$ld_is_gold" = xyes
; then
23817 # GNU gold --version looks like this:
23819 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23821 # We extract the binutils version which is more familiar and specific
23822 # than the gold version.
23823 ld_vers
=`echo $ld_ver | sed -n \
23824 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23826 # GNU ld --version looks like this:
23828 # GNU ld (GNU Binutils) 2.21.51.20110225
23829 ld_vers
=`echo $ld_ver | sed -n \
23830 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23832 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'`
23833 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23834 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23835 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23837 case "${target}" in
23839 # Solaris 2 ld -V output looks like this for a regular version:
23841 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23843 # but test versions add stuff at the end:
23845 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23847 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23848 # numbers can be used in ld.so.1 feature checks even if a different
23849 # linker is configured.
23850 ld_ver
=`$gcc_cv_ld -V 2>&1`
23851 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23852 ld_vers
=`echo $ld_ver | sed -n \
23853 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23854 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23855 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23863 $as_echo_n "checking linker for .hidden support... " >&6; }
23864 if ${gcc_cv_ld_hidden+:} false
; then :
23865 $as_echo_n "(cached) " >&6
23867 if test $in_tree_ld = yes ; then
23868 gcc_cv_ld_hidden
=no
23869 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 \
23870 && test $in_tree_ld_is_elf = yes; then
23871 gcc_cv_ld_hidden
=yes
23874 gcc_cv_ld_hidden
=yes
23875 if test x
"$ld_is_gold" = xyes
; then
23877 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23878 if test 0"$ld_date" -lt 20020404; then
23879 if test -n "$ld_date"; then
23880 # If there was date string, but was earlier than 2002-04-04, fail
23881 gcc_cv_ld_hidden
=no
23882 elif test -z "$ld_vers"; then
23883 # If there was no date string nor ld version number, something is wrong
23884 gcc_cv_ld_hidden
=no
23886 test -z "$ld_vers_patch" && ld_vers_patch
=0
23887 if test "$ld_vers_major" -lt 2; then
23888 gcc_cv_ld_hidden
=no
23889 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23890 gcc_cv_ld_hidden
="no"
23891 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23892 gcc_cv_ld_hidden
=no
23897 case "${target}" in
23899 gcc_cv_ld_hidden
=yes
23902 # Darwin ld has some visibility support.
23903 gcc_cv_ld_hidden
=yes
23905 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23906 gcc_cv_ld_hidden
=yes
23909 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23910 # .symbolic was only added in Solaris 9 12/02.
23911 gcc_cv_ld_hidden
=yes
23914 gcc_cv_ld_hidden
=no
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23921 $as_echo "$gcc_cv_ld_hidden" >&6; }
23922 libgcc_visibility
=no
23925 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23926 libgcc_visibility
=yes
23928 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23933 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23934 gcc_cv_ld_ro_rw_mix
=unknown
23935 if test $in_tree_ld = yes ; then
23936 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 \
23937 && test $in_tree_ld_is_elf = yes; then
23938 gcc_cv_ld_ro_rw_mix
=read-write
23940 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23941 echo '.section myfoosect, "a"' > conftest1.s
23942 echo '.section myfoosect, "aw"' > conftest2.s
23943 echo '.byte 1' >> conftest2.s
23944 echo '.section myfoosect, "a"' > conftest3.s
23945 echo '.byte 0' >> conftest3.s
23946 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23947 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23948 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23949 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23950 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23951 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23952 | sed -e '/myfoosect/!d' -e N`
23953 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23954 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23955 gcc_cv_ld_ro_rw_mix
=read-only
23957 gcc_cv_ld_ro_rw_mix
=read-write
23961 rm -f conftest.
* conftest
[123].
*
23963 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23965 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23969 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23971 # Check whether --enable-initfini-array was given.
23972 if test "${enable_initfini_array+set}" = set; then :
23973 enableval
=$enable_initfini_array;
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23977 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23978 if ${gcc_cv_initfini_array+:} false
; then :
23979 $as_echo_n "(cached) " >&6
23981 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23982 case "${target}" in
23984 if test "$cross_compiling" = yes; then :
23985 gcc_cv_initfini_array
=no
23987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23991 #error Not an ELF OS
23993 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23994 if it can be used. */
23996 int main (void) { return x; }
23997 int foo (void) { x = 0; }
23998 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24001 if ac_fn_cxx_try_run
"$LINENO"; then :
24002 gcc_cv_initfini_array
=yes
24004 gcc_cv_initfini_array
=no
24006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24007 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24011 gcc_cv_initfini_array
=no
24012 if test $in_tree_ld = yes ; then
24013 if test "$gcc_cv_gld_major_version" -eq 2 \
24014 -a "$gcc_cv_gld_minor_version" -ge 22 \
24015 -o "$gcc_cv_gld_major_version" -gt 2 \
24016 && test $in_tree_ld_is_elf = yes; then
24017 gcc_cv_initfini_array
=yes
24019 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24020 case $target:$gas in
24023 sh_type
='%progbits'
24025 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24027 sh_type
='@progbits'
24029 sparc
*-*-solaris2*:no
)
24031 sh_type
='#progbits'
24035 case "$target:$gnu_ld" in
24037 cat > conftest.s
<<EOF
24038 .section .dtors,$sh_flags,$sh_type
24040 .byte 'A', 'A', 'A', 'A'
24041 .section .ctors,$sh_flags,$sh_type
24043 .byte 'B', 'B', 'B', 'B'
24044 .section .fini_array.65530,$sh_flags,$sh_type
24046 .byte 'C', 'C', 'C', 'C'
24047 .section .init_array.65530,$sh_flags,$sh_type
24049 .byte 'D', 'D', 'D', 'D'
24050 .section .dtors.64528,$sh_flags,$sh_type
24052 .byte 'E', 'E', 'E', 'E'
24053 .section .ctors.64528,$sh_flags,$sh_type
24055 .byte 'F', 'F', 'F', 'F'
24056 .section .fini_array.01005,$sh_flags,$sh_type
24058 .byte 'G', 'G', 'G', 'G'
24059 .section .init_array.01005,$sh_flags,$sh_type
24061 .byte 'H', 'H', 'H', 'H'
24066 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24067 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24068 && $gcc_cv_objdump -s -j .init_array conftest \
24069 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24070 && $gcc_cv_objdump -s -j .fini_array conftest \
24071 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24072 gcc_cv_initfini_array
=yes
24076 # When Solaris ld added constructor priority support, it was
24077 # decided to only handle .init_array.N/.fini_array.N since
24078 # there was no need for backwards compatibility with
24079 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24080 # sections with correct execution order resp. to
24081 # .init_array/.fini_array, while gld merges them into
24082 # .init_array/.fini_array.
24083 cat > conftest.s
<<EOF
24084 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24086 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24087 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24089 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24090 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24092 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24093 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24095 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24100 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24101 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24102 && $gcc_cv_objdump -s -j .init_array conftest \
24103 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24104 && $gcc_cv_objdump -s -j .fini_array conftest \
24105 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24106 gcc_cv_initfini_array
=yes
24110 rm -f conftest conftest.
*
24112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h. */
24116 # error Not an ELF OS
24118 #include <stdlib.h>
24119 #if defined __GLIBC_PREREQ
24120 # if __GLIBC_PREREQ (2, 4)
24122 # error GLIBC 2.4 required
24125 # if defined __sun__ && defined __svr4__
24126 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24128 # error The C library not known to support .init_array/.fini_array
24133 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24136 gcc_cv_initfini_array
=no
24138 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24141 case "${target}" in
24142 aarch64
*-linux-gnu*)
24143 # AArch64 postdates glibc support for .init_array/.fini_array,
24144 # so we don't need the preprocessor test above.
24145 gcc_cv_initfini_array
=yes
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24150 $as_echo_n "checking cross compile... guessing... " >&6; }
24151 gcc_cv_initfini_array
=no
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24157 $as_echo "$gcc_cv_initfini_array" >&6; }
24158 enable_initfini_array
=$gcc_cv_initfini_array
24163 cat >>confdefs.h
<<_ACEOF
24164 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24169 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24170 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24171 # these directives, even when they appear to accept them.
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24173 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24174 if ${gcc_cv_as_leb128+:} false
; then :
24175 $as_echo_n "(cached) " >&6
24177 gcc_cv_as_leb128
=no
24178 if test $in_tree_gas = yes; then
24179 if test $in_tree_gas_is_elf = yes \
24180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24181 then gcc_cv_as_leb128
=yes
24183 elif test x
$gcc_cv_as != x
; then
24190 .uleb128 0x8000000000000000
24192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24200 if test "x$gcc_cv_objdump" != x
; then
24201 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24202 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24203 gcc_cv_as_leb128
=yes
24205 elif test "x$gcc_cv_otool" != x
; then
24206 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24207 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24208 gcc_cv_as_leb128
=yes
24211 # play safe, assume the assembler is broken.
24216 echo "configure: failed program was" >&5
24219 rm -f conftest.o conftest.s
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24223 $as_echo "$gcc_cv_as_leb128" >&6; }
24224 if test $gcc_cv_as_leb128 = yes; then
24226 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24229 if test $gcc_cv_as_leb128 != yes; then
24231 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24235 # Determine if an .eh_frame section is read-only.
24236 gcc_fn_eh_frame_ro
() {
24237 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24238 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24239 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24242 # Check if we have assembler support for unwind directives.
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24244 $as_echo_n "checking assembler for cfi directives... " >&6; }
24245 if ${gcc_cv_as_cfi_directive+:} false
; then :
24246 $as_echo_n "(cached) " >&6
24248 gcc_cv_as_cfi_directive
=no
24249 if test x
$gcc_cv_as != x
; then
24255 .cfi_escape 1, 2, 3, 4, 5
24256 .cfi_endproc' > conftest.s
24257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24266 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24267 # read-only and read-write sections, we need to make sure that the
24268 # assembler used emits read-write .eh_frame sections.
24269 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24270 gcc_cv_as_cfi_directive
=yes
24271 elif test "x$gcc_cv_objdump" = x
; then
24272 # No objdump, err on the side of caution.
24273 gcc_cv_as_cfi_directive
=no
24275 if test x
$gas = xyes
; then
24283 sparc
*-*-solaris2.
*)
24284 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24285 if gcc_fn_eh_frame_ro
$as_32_opt \
24286 || gcc_fn_eh_frame_ro
$as_64_opt; then
24287 gcc_cv_as_cfi_directive
=no
24289 gcc_cv_as_cfi_directive
=yes
24292 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24293 # On Solaris/x86, make sure that GCC and assembler agree on using
24294 # read-only .eh_frame sections for 64-bit.
24295 if gcc_fn_eh_frame_ro
$as_32_opt; then
24296 gcc_cv_as_cfi_directive
=no
24297 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24298 gcc_cv_as_cfi_directive
=yes
24300 gcc_cv_as_cfi_directive
=no
24307 gcc_cv_as_cfi_directive
=yes
24311 echo "configure: failed program was" >&5
24314 rm -f conftest.o conftest.s
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24318 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24321 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24323 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24324 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_cfi_advance_working
=no
24328 if test x
$gcc_cv_as != x
; then
24331 .cfi_adjust_cfa_offset 64
24333 .cfi_adjust_cfa_offset 128
24334 .cfi_endproc' > conftest.s
24335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24343 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24344 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24345 gcc_cv_as_cfi_advance_working
=yes
24349 echo "configure: failed program was" >&5
24352 rm -f conftest.o conftest.s
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24356 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24360 # no objdump, err on the side of caution
24361 gcc_cv_as_cfi_advance_working
=no
24365 cat >>confdefs.h
<<_ACEOF
24366 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24367 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24373 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24374 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24375 $as_echo_n "(cached) " >&6
24377 gcc_cv_as_cfi_personality_directive
=no
24378 if test x
$gcc_cv_as != x
; then
24381 .cfi_personality 0, symbol
24382 .cfi_endproc' > conftest.s
24383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24390 gcc_cv_as_cfi_personality_directive
=yes
24392 echo "configure: failed program was" >&5
24395 rm -f conftest.o conftest.s
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24399 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24403 cat >>confdefs.h
<<_ACEOF
24404 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24409 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24410 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24411 $as_echo_n "(cached) " >&6
24413 gcc_cv_as_cfi_sections_directive
=no
24414 if test x
$gcc_cv_as != x
; then
24416 .cfi_sections .debug_frame, .eh_frame
24418 .cfi_endproc' > conftest.s
24419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; }
24427 win32 | pe | cygwin
* | mingw32
*)
24428 # Need to check that we generated the correct relocation for the
24429 # .debug_frame section. This was fixed for binutils 2.21.
24430 gcc_cv_as_cfi_sections_directive
=no
24431 if test "x$gcc_cv_objdump" != x
; then
24432 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24433 grep secrel
> /dev
/null
; then
24434 gcc_cv_as_cfi_sections_directive
=yes
24439 gcc_cv_as_cfi_sections_directive
=yes
24443 echo "configure: failed program was" >&5
24446 rm -f conftest.o conftest.s
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24450 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24455 cat >>confdefs.h
<<_ACEOF
24456 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24460 # GAS versions up to and including 2.11.0 may mis-optimize
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24463 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24464 if ${gcc_cv_as_eh_frame+:} false
; then :
24465 $as_echo_n "(cached) " >&6
24467 gcc_cv_as_eh_frame
=no
24468 if test $in_tree_gas = yes; then
24469 if test $in_tree_gas_is_elf = yes \
24470 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24471 then gcc_cv_as_eh_frame
=yes
24473 elif test x
$gcc_cv_as != x
; then
24480 .section .eh_frame,"aw",@progbits
24482 .4byte .LECIE1-.LSCIE1
24496 .4byte .LEFDE1-.LASFDE1
24498 .4byte .LASFDE1-__FRAME_BEGIN__
24505 .LEFDE1:' > conftest.s
24506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24508 (eval $ac_try) 2>&5
24510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511 test $ac_status = 0; }; }
24513 cat > conftest.lit
<<EOF
24514 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24515 0010 01000000 12000000 18000000 00000000 ................
24516 0020 08000000 04080000 0044 .........D
24518 cat > conftest.big
<<EOF
24519 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24520 0010 00000001 00000012 00000018 00000000 ................
24521 0020 00000008 04000000 0844 .........D
24523 # If the assembler didn't choke, and we can objdump,
24524 # and we got the correct data, then succeed.
24525 # The text in the here-document typically retains its unix-style line
24526 # endings, while the output of objdump will use host line endings.
24527 # Therefore, use diff -b for the comparisons.
24528 if test x
$gcc_cv_objdump != x \
24529 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24530 |
tail -3 > conftest.got \
24531 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24532 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24534 gcc_cv_as_eh_frame
=yes
24535 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537 (eval $ac_try) 2>&5
24539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540 test $ac_status = 0; }; }; then
24541 gcc_cv_as_eh_frame
=buggy
24543 # Uh oh, what do we do now?
24544 gcc_cv_as_eh_frame
=no
24547 echo "configure: failed program was" >&5
24550 rm -f conftest.o conftest.s
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24554 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24558 if test $gcc_cv_as_eh_frame = buggy
; then
24560 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24564 # Test if the assembler supports the section flag 'e' or #exclude for
24565 # specifying an excluded section.
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24567 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24568 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24569 $as_echo_n "(cached) " >&6
24571 gcc_cv_as_section_exclude_e
=no
24572 if test $in_tree_gas = yes; then
24573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24574 then gcc_cv_as_section_exclude_e
=yes
24576 elif test x
$gcc_cv_as != x
; then
24577 $as_echo '.section foo1,"e"
24578 .byte 0,0,0,0' > conftest.s
24579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24586 gcc_cv_as_section_exclude_e
=yes
24588 echo "configure: failed program was" >&5
24591 rm -f conftest.o conftest.s
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24595 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24598 if test $gcc_cv_as_section_exclude_e = no
; then
24599 case "${target}" in
24600 # Solaris as uses #exclude instead.
24602 case "${target}" in
24603 sparc
*-*-solaris2*)
24604 conftest_s
='.section "foo1", #exclude'
24606 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24607 conftest_s
='.section foo1, #exclude'
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24613 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24614 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24615 $as_echo_n "(cached) " >&6
24617 gcc_cv_as_section_exclude_hash
=no
24618 if test x
$gcc_cv_as != x
; then
24619 $as_echo "$conftest_s
24620 .byte 0,0,0,0" > conftest.s
24621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24628 gcc_cv_as_section_exclude_hash
=yes
24630 echo "configure: failed program was" >&5
24633 rm -f conftest.o conftest.s
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24637 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24642 cat >>confdefs.h
<<_ACEOF
24643 #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`
24647 # Test if the assembler supports the section flag 'R' for specifying
24648 # section with SHF_GNU_RETAIN.
24649 case "${target}" in
24650 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24651 # assembler supports the section flag 'R', it doesn't mean that
24652 # Solairs ld supports it.
24654 gcc_cv_as_shf_gnu_retain
=no
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24658 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24659 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24660 $as_echo_n "(cached) " >&6
24662 gcc_cv_as_shf_gnu_retain
=no
24663 if test $in_tree_gas = yes; then
24664 if test $in_tree_gas_is_elf = yes \
24665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
24666 then gcc_cv_as_shf_gnu_retain
=yes
24668 elif test x
$gcc_cv_as != x
; then
24669 $as_echo '.section .foo,"awR",%progbits
24670 .byte 0' > conftest.s
24671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }
24678 gcc_cv_as_shf_gnu_retain
=yes
24680 echo "configure: failed program was" >&5
24683 rm -f conftest.o conftest.s
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24687 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24693 cat >>confdefs.h
<<_ACEOF
24694 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24698 # Test if the assembler supports the section flag 'o' for specifying
24699 # section with link-order.
24700 case "${target}" in
24701 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24702 # assembler supports the section flag 'o', it doesn't mean that
24703 # Solairs ld supports it.
24705 gcc_cv_as_section_link_order
=no
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24709 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24710 if ${gcc_cv_as_section_link_order+:} false
; then :
24711 $as_echo_n "(cached) " >&6
24713 gcc_cv_as_section_link_order
=no
24714 if test $in_tree_gas = yes; then
24715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 35 \) \* 1000 + 0`
24716 then gcc_cv_as_section_link_order
=yes
24718 elif test x
$gcc_cv_as != x
; then
24719 $as_echo '.section .foo,"a"
24721 .section __patchable_function_entries,"awo",%progbits,.foo
24722 .byte 0' > conftest.s
24723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24730 gcc_cv_as_section_link_order
=yes
24732 echo "configure: failed program was" >&5
24735 rm -f conftest.o conftest.s
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24739 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24745 cat >>confdefs.h
<<_ACEOF
24746 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24751 $as_echo_n "checking assembler for section merging support... " >&6; }
24752 if ${gcc_cv_as_shf_merge+:} false
; then :
24753 $as_echo_n "(cached) " >&6
24755 gcc_cv_as_shf_merge
=no
24756 if test $in_tree_gas = yes; then
24757 if test $in_tree_gas_is_elf = yes \
24758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24759 then gcc_cv_as_shf_merge
=yes
24761 elif test x
$gcc_cv_as != x
; then
24762 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_shf_merge
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24779 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24782 if test $gcc_cv_as_shf_merge = no
; then
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24784 $as_echo_n "checking assembler for section merging support... " >&6; }
24785 if ${gcc_cv_as_shf_merge+:} false
; then :
24786 $as_echo_n "(cached) " >&6
24788 gcc_cv_as_shf_merge
=no
24789 if test $in_tree_gas = yes; then
24790 if test $in_tree_gas_is_elf = yes \
24791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24792 then gcc_cv_as_shf_merge
=yes
24794 elif test x
$gcc_cv_as != x
; then
24795 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24803 gcc_cv_as_shf_merge
=yes
24805 echo "configure: failed program was" >&5
24808 rm -f conftest.o conftest.s
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24812 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24817 cat >>confdefs.h
<<_ACEOF
24818 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24822 gcc_cv_ld_aligned_shf_merge
=yes
24824 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24826 sparc
*-*-solaris2.11
*)
24827 if test x
"$gnu_ld" = xno \
24828 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24829 gcc_cv_ld_aligned_shf_merge
=no
24834 cat >>confdefs.h
<<_ACEOF
24835 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24840 $as_echo_n "checking assembler for stabs directive... " >&6; }
24841 if ${gcc_cv_as_stabs_directive+:} false
; then :
24842 $as_echo_n "(cached) " >&6
24844 gcc_cv_as_stabs_directive
=no
24845 if test x
$gcc_cv_as != x
; then
24846 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; }
24854 gcc_cv_as_stabs_directive
=yes
24856 echo "configure: failed program was" >&5
24859 rm -f conftest.o conftest.s
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24863 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24864 if test $gcc_cv_as_stabs_directive = yes; then
24866 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24872 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24873 if ${gcc_cv_as_comdat_group+:} false
; then :
24874 $as_echo_n "(cached) " >&6
24876 gcc_cv_as_comdat_group
=no
24877 if test $in_tree_gas = yes; then
24878 if test $in_tree_gas_is_elf = yes \
24879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24880 then gcc_cv_as_comdat_group
=yes
24882 elif test x
$gcc_cv_as != x
; then
24883 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24891 gcc_cv_as_comdat_group
=yes
24893 echo "configure: failed program was" >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24900 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24903 if test $gcc_cv_as_comdat_group = yes; then
24904 gcc_cv_as_comdat_group_percent
=no
24905 gcc_cv_as_comdat_group_group
=no
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24908 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24909 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24910 $as_echo_n "(cached) " >&6
24912 gcc_cv_as_comdat_group_percent
=no
24913 if test $in_tree_gas = yes; then
24914 if test $in_tree_gas_is_elf = yes \
24915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24916 then gcc_cv_as_comdat_group_percent
=yes
24918 elif test x
$gcc_cv_as != x
; then
24919 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24927 gcc_cv_as_comdat_group_percent
=yes
24929 echo "configure: failed program was" >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24936 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24939 if test $gcc_cv_as_comdat_group_percent = yes; then
24940 gcc_cv_as_comdat_group_group
=no
24942 case "${target}" in
24943 # Sun as uses a completely different syntax.
24945 case "${target}" in
24946 sparc
*-*-solaris2*)
24948 .group foo,".text%foo",#comdat
24949 .section ".text%foo", #alloc,#execinstr,#progbits
24954 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24956 .group foo,.text%foo,#comdat
24957 .section .text%foo, "ax", @progbits
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24964 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24965 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24966 $as_echo_n "(cached) " >&6
24968 gcc_cv_as_comdat_group_group
=no
24969 if test x
$gcc_cv_as != x
; then
24970 $as_echo "$conftest_s" > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 gcc_cv_as_comdat_group_group
=yes
24980 echo "configure: failed program was" >&5
24983 rm -f conftest.o conftest.s
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24987 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24992 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24993 gcc_cv_as_comdat_group_group
=no
24997 if test x
"$ld_is_gold" = xyes
; then
24999 elif test $in_tree_ld = yes ; then
25001 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 \
25002 && test $in_tree_ld_is_elf = yes; then
25005 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25007 if test 0"$ld_date" -lt 20050308; then
25008 if test -n "$ld_date"; then
25009 # If there was date string, but was earlier than 2005-03-08, fail
25011 elif test "$ld_vers_major" -lt 2; then
25013 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25018 case "${target}" in
25019 *-*-solaris2.1
[1-9]*)
25021 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25022 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25025 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25026 # least ld version 1.2267.
25027 if test "$ld_vers_major" -gt 1; then
25029 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25031 elif test "$ld_vers_minor" -ge 2267; then
25036 # Assume linkers other than GNU ld don't support COMDAT group.
25041 # Allow overriding the automatic COMDAT group tests above.
25042 # Check whether --enable-comdat was given.
25043 if test "${enable_comdat+set}" = set; then :
25044 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25047 if test $comdat_group = no
; then
25048 gcc_cv_as_comdat_group
=no
25049 gcc_cv_as_comdat_group_percent
=no
25050 gcc_cv_as_comdat_group_group
=no
25053 cat >>confdefs.h
<<_ACEOF
25054 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25055 || test $gcc_cv_as_comdat_group_percent = yes \
25056 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25060 # Restrict this test to Solaris/x86: other targets define this statically.
25061 case "${target}" in
25062 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25064 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25065 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25066 hidden_linkonce
=yes
25068 case "${target}" in
25069 # Full support for hidden thunks in linkonce sections only appeared in
25070 # Solaris 11/OpenSolaris.
25071 *-*-solaris2.1
[1-9]*)
25072 hidden_linkonce
=yes
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25080 $as_echo "$hidden_linkonce" >&6; }
25082 cat >>confdefs.h
<<_ACEOF
25083 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25090 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25091 if ${gcc_cv_as_is_stmt+:} false
; then :
25092 $as_echo_n "(cached) " >&6
25094 gcc_cv_as_is_stmt
=no
25095 if test $in_tree_gas = yes; then
25096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25097 then gcc_cv_as_is_stmt
=yes
25099 elif test x
$gcc_cv_as != x
; then
25102 .loc 1 1 0 is_stmt 1' > conftest.s
25103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25110 gcc_cv_as_is_stmt
=yes
25112 echo "configure: failed program was" >&5
25115 rm -f conftest.o conftest.s
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25119 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25120 if test $gcc_cv_as_is_stmt = yes; then
25122 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25128 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25129 if ${gcc_cv_as_discriminator+:} false
; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_discriminator
=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25135 then gcc_cv_as_discriminator
=yes
25137 elif test x
$gcc_cv_as != x
; then
25140 .loc 1 1 0 discriminator 1' > conftest.s
25141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25148 gcc_cv_as_discriminator
=yes
25150 echo "configure: failed program was" >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25157 $as_echo "$gcc_cv_as_discriminator" >&6; }
25158 if test $gcc_cv_as_discriminator = yes; then
25160 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25165 # Catch the newlib flag of the same name so we can gate GCC features on it.
25166 # Check whether --enable-newlib-nano-formatted-io was given.
25167 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25168 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25172 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25178 # Thread-local storage - the check is heavily parameterized.
25186 .section ".tdata","awT",@progbits
25189 ldq $27,__tls_get_addr($29) !literal!1
25190 lda $16,foo($29) !tlsgd!1
25191 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25192 ldq $27,__tls_get_addr($29) !literal!2
25193 lda $16,foo($29) !tlsldm!2
25194 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25195 ldq $1,foo($29) !gotdtprel
25196 ldah $2,foo($29) !dtprelhi
25197 lda $3,foo($2) !dtprello
25198 lda $4,foo($29) !dtprel
25199 ldq $1,foo($29) !gottprel
25200 ldah $2,foo($29) !tprelhi
25201 lda $3,foo($2) !tprello
25202 lda $4,foo($29) !tprel'
25205 tls_as_opt
=--fatal-warnings
25209 add_s r0,r0, @foo@tpoff'
25213 cris-
*-*|crisv32-
*-*)
25215 .section ".tdata","awT",@progbits
25222 tls_as_opt
=--fatal-warnings
25226 .section ".tdata","awT",@progbits
25229 call #gettlsoff(x)'
25238 .section ".tdata","awT",@progbits
25242 addil LT%foo-$tls_gdidx$,gp
25243 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25246 addil LT%foo-$tls_ldidx$,gp
25248 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25249 addil LR%foo-$tls_dtpoff$,%ret0
25250 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25252 addil LT%foo-$tls_ieoff$,gp
25253 ldw RT%foo-$tls_ieoff$(%r1),%t2
25256 addil LR%foo-$tls_leoff$,%t1
25257 ldo RR%foo-$tls_leoff$(%r1),%t2'
25260 tls_as_opt
=--fatal-warnings
25264 .section ".tdata","awT",%progbits
25267 .word foo(gottpoff)
25275 i
[34567]86-*-* | x86_64-
*-*)
25277 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25284 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25286 .section .tdata,"awt",@progbits'
25291 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25295 .section ".tdata","awT",@progbits'
25299 tls_as_opt
="--fatal-warnings"
25303 if test x
$on_solaris = xyes
; then
25305 yes) tls_as_opt
="$tls_as_opt --32" ;;
25308 conftest_s
="$conftest_s
25312 leal foo@tlsgd(,%ebx,1), %eax
25313 leal foo@tlsldm(%ebx), %eax
25314 leal foo@dtpoff(%eax), %edx
25315 movl foo@gottpoff(%ebx), %eax
25316 subl foo@gottpoff(%ebx), %eax
25317 addl foo@gotntpoff(%ebx), %eax
25318 movl foo@indntpoff, %eax
25319 movl \$foo@tpoff, %eax
25320 subl \$foo@tpoff, %eax
25321 leal foo@ntpoff(%ecx), %eax"
25324 if test x
$on_solaris = xyes
; then
25326 yes) tls_as_opt
="$tls_as_opt --64" ;;
25327 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25330 conftest_s
="$conftest_s
25334 leaq foo@tlsgd(%rip), %rdi
25335 leaq foo@tlsld(%rip), %rdi
25336 leaq foo@dtpoff(%rax), %rdx
25337 movq foo@gottpoff(%rip), %rax
25338 movq \$foo@tpoff, %rax"
25344 .section ".tdata","awT",@progbits
25347 addl r16 = @ltoff(@dtpmod(foo#)), gp
25348 addl r17 = @ltoff(@dtprel(foo#)), gp
25349 addl r18 = @ltoff(@tprel(foo#)), gp
25350 addl r19 = @dtprel(foo#), gp
25351 adds r21 = @dtprel(foo#), r13
25352 movl r23 = @dtprel(foo#)
25353 addl r20 = @tprel(foo#), gp
25354 adds r22 = @tprel(foo#), r13
25355 movl r24 = @tprel(foo#)'
25358 tls_as_opt
=--fatal-warnings
25362 .section .tdata,"awT",@progbits
25366 addik r5,r20,x@TLSGD
25367 addik r5,r20,x@TLSLDM'
25370 tls_as_opt
='--fatal-warnings'
25374 .section .tdata,"awT",@progbits
25378 addiu $4, $28, %tlsgd(x)
25379 addiu $4, $28, %tlsldm(x)
25380 lui $4, %dtprel_hi(x)
25381 addiu $4, $4, %dtprel_lo(x)
25382 lw $4, %gottprel(x)($28)
25383 lui $4, %tprel_hi(x)
25384 addiu $4, $4, %tprel_lo(x)'
25387 tls_as_opt
='-32 --fatal-warnings'
25391 .section .tdata,"awT",@progbits
25396 move.l x@TLSGD(%a5),%a0
25397 move.l x@TLSLDM(%a5),%a0
25398 move.l x@TLSLDO(%a5),%a0
25399 move.l x@TLSIE(%a5),%a0
25400 move.l x@TLSLE(%a5),%a0'
25403 tls_as_opt
='--fatal-warnings'
25407 .section ".tdata","awT",@progbits'
25410 tls_as_opt
="--fatal-warnings"
25414 .section ".tdata","awT",%progbits
25418 add x0, x0, #:tlsgd_lo12:x
25423 tls_as_opt
='--fatal-warnings'
25427 .section ".tdata","awT",@progbits
25430 l.movhi r3, tpoffha(foo)
25432 l.lwz r4, tpofflo(foo)(r3)'
25435 tls_as_opt
=--fatal-warnings
25439 .extern __get_tpointer
25457 .section ".tdata","awT",@progbits
25465 addi 3,2,ld0@got@tlsgd
25471 addi 3,2,x1@got@tlsld
25477 addis 9,3,x2@dtprel@ha
25478 addi 9,9,x2@dtprel@l
25481 ld 9,x3@got@dtprel(2)
25487 tls_as_opt
="-a64 --fatal-warnings"
25491 .section ".tdata","awT",@progbits
25499 addi 3,31,ld0@got@tlsgd
25501 addi 3,31,x1@got@tlsld
25504 addis 9,3,x2@dtprel@ha
25505 addi 9,9,x2@dtprel@l
25506 lwz 9,x3@got@tprel(31)
25509 addis 9,2,x2@tprel@ha
25510 addi 9,9,x2@tprel@l'
25513 tls_as_opt
="-a32 --fatal-warnings"
25517 .section .tdata,"awT",@progbits
25521 call __tls_get_addr'
25524 tls_as_opt
='--fatal-warnings'
25528 .section ".tdata","awT",@progbits
25535 .long foo@GOTNTPOFF
25536 .long foo@INDNTPOFF
25537 l %r1,foo@GOTNTPOFF(%r12)
25538 l %r1,0(%r1):tls_load:foo
25539 bas %r14,0(%r1,%r13):tls_gdcall:foo
25540 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25543 tls_as_opt
="-m31 --fatal-warnings"
25547 .section ".tdata","awT",@progbits
25554 .quad foo@GOTNTPOFF
25555 lg %r1,foo@GOTNTPOFF(%r12)
25556 larl %r1,foo@INDNTPOFF
25557 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25558 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25561 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25563 sh-
*-* | sh
[123456789lbe
]*-*-*)
25565 .section ".tdata","awT",@progbits
25575 tls_as_opt
=--fatal-warnings
25579 sparc
*-sun-solaris2.
*)
25586 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25588 .section ".tdata",#alloc,#write,#tls'
25593 .section ".tdata","awT",@progbits'
25596 tls_as_opt
="-32 --fatal-warnings"
25598 conftest_s
="$conftest_s
25601 sethi %tgd_hi22(foo), %o0
25602 add %o0, %tgd_lo10(foo), %o1
25603 add %l7, %o1, %o0, %tgd_add(foo)
25604 call __tls_get_addr, %tgd_call(foo)
25605 sethi %tldm_hi22(foo), %l1
25606 add %l1, %tldm_lo10(foo), %l2
25607 add %l7, %l2, %o0, %tldm_add(foo)
25608 call __tls_get_addr, %tldm_call(foo)
25609 sethi %tldo_hix22(foo), %l3
25610 xor %l3, %tldo_lox10(foo), %l4
25611 add %o0, %l4, %l5, %tldo_add(foo)
25612 sethi %tie_hi22(foo), %o3
25613 add %o3, %tie_lo10(foo), %o3
25614 ld [%l7 + %o3], %o2, %tie_ld(foo)
25615 add %g7, %o2, %o4, %tie_add(foo)
25616 sethi %tle_hix22(foo), %l1
25617 xor %l1, %tle_lox10(foo), %o5
25618 ld [%g7 + %o5], %o1"
25622 .section ".tdata","awT",@progbits
25625 addli r0, zero, tls_gd(foo)
25626 auli r0, zero, tls_gd_ha16(foo)
25627 addli r0, r0, tls_gd_lo16(foo)
25629 addli r0, zero, tls_ie(foo)
25630 auli r0, r0, tls_ie_ha16(foo)
25631 addli r0, r0, tls_ie_lo16(foo)'
25634 tls_as_opt
="--fatal-warnings"
25638 .section ".tdata","awT",@progbits
25641 shl16insli r0, zero, hw0_last_tls_gd(foo)
25642 shl16insli r0, zero, hw1_last_tls_gd(foo)
25643 shl16insli r0, r0, hw0_tls_gd(foo)
25645 shl16insli r0, zero, hw1_last_tls_ie(foo)
25646 shl16insli r0, r0, hw0_tls_ie(foo)'
25649 tls_as_opt
="--fatal-warnings"
25653 .section ".tdata","awT",@progbits
25656 movi a8, foo@TLSFUNC
25657 movi a10, foo@TLSARG
25658 callx8.tls a8, foo@TLSCALL'
25664 if test "x$enable_tls" = xno
; then
25665 : # TLS explicitly disabled.
25666 elif test "x$enable_tls" = xyes
; then
25667 set_have_as_tls
=yes # TLS explicitly enabled.
25668 elif test -z "$tls_first_major"; then
25669 : # If we don't have a check, assume no support.
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25672 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25673 if ${gcc_cv_as_tls+:} false
; then :
25674 $as_echo_n "(cached) " >&6
25677 if test $in_tree_gas = yes; then
25678 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25679 then gcc_cv_as_tls
=yes
25681 elif test x
$gcc_cv_as != x
; then
25682 $as_echo "$conftest_s" > conftest.s
25683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25692 echo "configure: failed program was" >&5
25695 rm -f conftest.o conftest.s
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25699 $as_echo "$gcc_cv_as_tls" >&6; }
25700 if test $gcc_cv_as_tls = yes; then
25701 set_have_as_tls
=yes
25705 if test $set_have_as_tls = yes ; then
25707 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25711 # Target-specific assembler checks.
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25714 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25715 gcc_cv_ld_static_dynamic
=no
25716 gcc_cv_ld_static_option
='-Bstatic'
25717 gcc_cv_ld_dynamic_option
='-Bdynamic'
25718 if test $in_tree_ld = yes ; then
25719 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
25720 gcc_cv_ld_static_dynamic
=yes
25722 elif test x
$gcc_cv_ld != x
; then
25723 # Check if linker supports -Bstatic/-Bdynamic option
25724 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25725 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25726 gcc_cv_ld_static_dynamic
=yes
25729 # AIX ld uses -b flags
25730 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25731 gcc_cv_ld_static_dynamic
=yes
25732 gcc_cv_ld_static_option
="-bstatic"
25733 gcc_cv_ld_dynamic_option
="-bdynamic"
25735 # HP-UX ld uses -a flags to select between shared and archive.
25737 if test x
"$gnu_ld" = xno
; then
25738 gcc_cv_ld_static_dynamic
=yes
25739 gcc_cv_ld_static_option
="-aarchive_shared"
25740 gcc_cv_ld_dynamic_option
="-adefault"
25743 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25745 gcc_cv_ld_static_dynamic
=yes
25750 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25752 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25755 cat >>confdefs.h
<<_ACEOF
25756 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25760 cat >>confdefs.h
<<_ACEOF
25761 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25766 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25769 $as_echo_n "checking linker --version-script option... " >&6; }
25770 gcc_cv_ld_version_script
=no
25771 ld_version_script_option
=''
25772 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25773 gcc_cv_ld_version_script
=yes
25774 ld_version_script_option
='--version-script'
25775 elif test x
$gcc_cv_ld != x
; then
25777 # Solaris 2 ld always supports -M. It also supports a subset of
25778 # --version-script since Solaris 11.4, but requires
25779 # -z gnu-version-script-compat to activate.
25781 gcc_cv_ld_version_script
=yes
25782 ld_version_script_option
='-M'
25786 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25788 $as_echo "$gcc_cv_ld_version_script" >&6; }
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25792 $as_echo_n "checking linker soname option... " >&6; }
25793 gcc_cv_ld_soname
=no
25794 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25795 gcc_cv_ld_soname
=yes
25796 ld_soname_option
='-soname'
25797 elif test x
$gcc_cv_ld != x
; then
25800 gcc_cv_ld_soname
=yes
25801 ld_soname_option
='-install_name'
25803 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25804 # ld compatiblity since some Solaris 10 update.
25806 gcc_cv_ld_soname
=yes
25807 ld_soname_option
='-h'
25811 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25813 $as_echo "$gcc_cv_ld_soname" >&6; }
25816 if test x
"$demangler_in_ld" = xyes
; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25818 $as_echo_n "checking linker --demangle support... " >&6; }
25819 gcc_cv_ld_demangle
=no
25820 if test $in_tree_ld = yes; then
25821 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 \
25822 gcc_cv_ld_demangle
=yes
25824 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25825 # Check if the GNU linker supports --demangle option
25826 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25827 gcc_cv_ld_demangle
=yes
25830 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25832 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25836 $as_echo "$gcc_cv_ld_demangle" >&6; }
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25840 $as_echo_n "checking linker plugin support... " >&6; }
25841 gcc_cv_lto_plugin
=0
25842 if test -f liblto_plugin.la
; then
25843 save_ld_ver
="$ld_ver"
25844 save_ld_vers_major
="$ld_vers_major"
25845 save_ld_vers_minor
="$ld_vers_minor"
25846 save_ld_is_gold
="$ld_is_gold"
25850 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25852 # FIXME: ld_is_gold?
25853 ld_vers_major
="$gcc_cv_gld_major_version"
25854 ld_vers_minor
="$gcc_cv_gld_minor_version"
25856 # Determine plugin linker version.
25857 # FIXME: Partial duplicate from above, generalize.
25858 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25859 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25860 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25862 ld_vers
=`echo $ld_ver | sed -n \
25863 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25865 ld_vers
=`echo $ld_ver | sed -n \
25866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25868 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25869 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25873 # Determine plugin support.
25874 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25875 # Require GNU ld or gold 2.21+ for plugin support by default.
25876 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25877 gcc_cv_lto_plugin
=2
25878 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25879 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25880 gcc_cv_lto_plugin
=1
25884 ld_ver
="$save_ld_ver"
25885 ld_vers_major
="$save_ld_vers_major"
25886 ld_vers_minor
="$save_ld_vers_minor"
25887 ld_is_gold
="$save_ld_is_gold"
25890 cat >>confdefs.h
<<_ACEOF
25891 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25895 $as_echo "$gcc_cv_lto_plugin" >&6; }
25897 # Target OS-specific assembler checks.
25899 case "$target_os" in
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25902 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25903 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25904 $as_echo_n "(cached) " >&6
25906 gcc_cv_as_mmacosx_version_min
=no
25907 if test x
$gcc_cv_as != x
; then
25908 $as_echo '.text' > conftest.s
25909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25911 (eval $ac_try) 2>&5
25913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25914 test $ac_status = 0; }; }
25916 gcc_cv_as_mmacosx_version_min
=yes
25918 echo "configure: failed program was" >&5
25921 rm -f conftest.o conftest.s
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25925 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25926 if test $gcc_cv_as_mmacosx_version_min = yes; then
25928 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25935 # Target CPU-specific assembler checks.
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25940 $as_echo_n "checking assembler for -mabi option... " >&6; }
25941 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25942 $as_echo_n "(cached) " >&6
25944 gcc_cv_as_aarch64_mabi
=no
25945 if test x
$gcc_cv_as != x
; then
25946 $as_echo '.text' > conftest.s
25947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25954 gcc_cv_as_aarch64_mabi
=yes
25956 echo "configure: failed program was" >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25963 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25966 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25968 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25971 if test x
$with_abi = xilp32
; then
25972 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25973 Upgrade the Assembler." "$LINENO" 5
25975 if test x
"$with_multilib_list" = xdefault
; then
25976 TM_MULTILIB_CONFIG
=lp64
25978 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25979 for aarch64_multilib
in ${aarch64_multilibs}; do
25980 case ${aarch64_multilib} in
25982 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25983 Upgrade the Assembler." "$LINENO" 5
25991 # Check if we have binutils support for relocations types needed by -fpic
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25993 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25994 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25995 $as_echo_n "(cached) " >&6
25997 gcc_cv_as_aarch64_picreloc
=no
25998 if test x
$gcc_cv_as != x
; then
26001 ldr x0, [x2, #:gotpage_lo15:globalsym]
26003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }
26010 gcc_cv_as_aarch64_picreloc
=yes
26012 echo "configure: failed program was" >&5
26015 rm -f conftest.o conftest.s
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26019 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26020 if test $gcc_cv_as_aarch64_picreloc = yes; then
26022 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26026 # Enable Branch Target Identification Mechanism and Return Address
26027 # Signing by default.
26028 # Check whether --enable-standard-branch-protection was given.
26029 if test "${enable_standard_branch_protection+set}" = set; then :
26030 enableval
=$enable_standard_branch_protection;
26033 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26038 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26039 Valid choices are 'yes' and 'no'." "$LINENO" 5
26045 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26046 # Check whether --enable-fix-cortex-a53-835769 was given.
26047 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26048 enableval
=$enable_fix_cortex_a53_835769;
26051 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26056 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26057 Valid choices are 'yes' and 'no'." "$LINENO" 5
26064 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26065 # Check whether --enable-fix-cortex-a53-843419 was given.
26066 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26067 enableval
=$enable_fix_cortex_a53_843419;
26070 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26075 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26076 Valid choices are 'yes' and 'no'." "$LINENO" 5
26085 # All TARGET_ABI_OSF targets.
26086 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26088 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26089 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26090 $as_echo_n "(cached) " >&6
26092 gcc_cv_as_alpha_explicit_relocs
=no
26093 if test $in_tree_gas = yes; then
26094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26095 then gcc_cv_as_alpha_explicit_relocs
=yes
26097 elif test x
$gcc_cv_as != x
; then
26098 $as_echo ' .set nomacro
26100 extbl $3, $2, $3 !lituse_bytoff!1
26101 ldq $2, a($29) !literal!1
26102 ldq $4, b($29) !literal!2
26103 ldq_u $3, 0($2) !lituse_base!1
26104 ldq $27, f($29) !literal!5
26105 jsr $26, ($27), f !lituse_jsr!5
26106 ldah $29, 0($26) !gpdisp!3
26107 lda $0, c($29) !gprel
26108 ldah $1, d($29) !gprelhigh
26109 lda $1, d($1) !gprellow
26110 lda $29, 0($29) !gpdisp!3' > conftest.s
26111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26118 gcc_cv_as_alpha_explicit_relocs
=yes
26120 echo "configure: failed program was" >&5
26123 rm -f conftest.o conftest.s
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26127 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26128 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26130 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26135 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26136 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26137 $as_echo_n "(cached) " >&6
26139 gcc_cv_as_alpha_jsrdirect_relocs
=no
26140 if test $in_tree_gas = yes; then
26141 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26142 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
26144 elif test x
$gcc_cv_as != x
; then
26145 $as_echo ' .set nomacro
26147 ldq $27, a($29) !literal!1
26148 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26165 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26166 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26168 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26176 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26177 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26178 $as_echo_n "(cached) " >&6
26180 gcc_cv_as_avr_mlink_relax
=no
26181 if test x
$gcc_cv_as != x
; then
26182 $as_echo '.text' > conftest.s
26183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; }
26190 gcc_cv_as_avr_mlink_relax
=yes
26192 echo "configure: failed program was" >&5
26195 rm -f conftest.o conftest.s
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26199 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26200 if test $gcc_cv_as_avr_mlink_relax = yes; then
26202 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26208 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26209 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26210 $as_echo_n "(cached) " >&6
26212 gcc_cv_as_avr_mrmw
=no
26213 if test x
$gcc_cv_as != x
; then
26214 $as_echo '.text' > conftest.s
26215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26222 gcc_cv_as_avr_mrmw
=yes
26224 echo "configure: failed program was" >&5
26227 rm -f conftest.o conftest.s
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26231 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26232 if test $gcc_cv_as_avr_mrmw = yes; then
26234 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26240 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26241 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26242 $as_echo_n "(cached) " >&6
26244 gcc_cv_as_avr_mgccisr
=no
26245 if test x
$gcc_cv_as != x
; then
26251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26258 gcc_cv_as_avr_mgccisr
=yes
26260 echo "configure: failed program was" >&5
26263 rm -f conftest.o conftest.s
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26267 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26268 if test $gcc_cv_as_avr_mgccisr = yes; then
26270 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26275 # Check how default linker description file implements .rodata for
26276 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26277 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26279 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26280 cat > conftest.s
<<EOF
26281 .section .rodata,"a",@progbits
26283 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26288 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26296 (eval $ac_try) 2>&5
26298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26299 test $ac_status = 0; }; }
26300 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302 (eval $ac_try) 2>&5
26304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305 test $ac_status = 0; }; }
26306 if test -s conftest.nm
26308 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26310 $as_echo "yes" >&6; }
26312 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26316 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26317 echo "$as_me: nm output was" >&5
26318 cat conftest.nm
>&5
26319 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26320 { $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
26321 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26325 $as_echo "test failed" >&6; }
26326 echo "$as_me: failed program was" >&5
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26329 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26331 rm -f conftest.s conftest.o conftest.elf conftest.nm
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26336 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26337 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26338 $as_echo_n "(cached) " >&6
26340 gcc_cv_as_cris_no_mul_bug
=no
26341 if test $in_tree_gas = yes; then
26342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26343 then gcc_cv_as_cris_no_mul_bug
=yes
26345 elif test x
$gcc_cv_as != x
; then
26346 $as_echo '.text' > conftest.s
26347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26349 (eval $ac_try) 2>&5
26351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26352 test $ac_status = 0; }; }
26354 gcc_cv_as_cris_no_mul_bug
=yes
26356 echo "configure: failed program was" >&5
26359 rm -f conftest.o conftest.s
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26363 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26364 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26366 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26374 $as_echo_n "checking assembler for -relax option... " >&6; }
26375 if ${gcc_cv_as_sparc_relax+:} false
; then :
26376 $as_echo_n "(cached) " >&6
26378 gcc_cv_as_sparc_relax
=no
26379 if test x
$gcc_cv_as != x
; then
26380 $as_echo '.text' > conftest.s
26381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26388 gcc_cv_as_sparc_relax
=yes
26390 echo "configure: failed program was" >&5
26393 rm -f conftest.o conftest.s
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26397 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26398 if test $gcc_cv_as_sparc_relax = yes; then
26400 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26406 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26407 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26408 $as_echo_n "(cached) " >&6
26410 gcc_cv_as_sparc_gotdata_op
=no
26411 if test x
$gcc_cv_as != x
; then
26417 sethi %gdop_hix22(foo), %g1
26418 xor %g1, %gdop_lox10(foo), %g1
26419 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422 (eval $ac_try) 2>&5
26424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425 test $ac_status = 0; }; }
26427 if test x
$gcc_cv_ld != x \
26428 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26429 if test x
$gcc_cv_objdump != x
; then
26430 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26431 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26432 gcc_cv_as_sparc_gotdata_op
=no
26434 gcc_cv_as_sparc_gotdata_op
=yes
26440 echo "configure: failed program was" >&5
26443 rm -f conftest.o conftest.s
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26447 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26448 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26450 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26456 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26457 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26458 $as_echo_n "(cached) " >&6
26460 gcc_cv_as_sparc_ua_pcrel
=no
26461 if test x
$gcc_cv_as != x
; then
26468 .uaword %r_disp32(foo)' > conftest.s
26469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26476 if test x
$gcc_cv_ld != x \
26477 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26478 gcc_cv_as_sparc_ua_pcrel
=yes
26482 echo "configure: failed program was" >&5
26485 rm -f conftest.o conftest.s
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26489 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26490 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26492 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26496 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26497 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26498 $as_echo_n "(cached) " >&6
26500 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26501 if test x
$gcc_cv_as != x
; then
26505 .uaword %r_disp32(foo)
26506 .byte 0x32, 0x33, 0x34
26510 .skip 4' > conftest.s
26511 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }
26518 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26519 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26520 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26521 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26522 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26523 |
grep 'DISP32' > /dev
/null
2>&1; then
26526 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26531 echo "configure: failed program was" >&5
26534 rm -f conftest.o conftest.s
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26538 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26539 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26541 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26547 # unaligned pcrel relocs
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26550 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26551 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26552 $as_echo_n "(cached) " >&6
26554 gcc_cv_as_sparc_offsetable_lo10
=no
26555 if test x
$gcc_cv_as != x
; then
26557 or %g1, %lo(ab) + 12, %g1
26558 or %g1, %lo(ab + 12), %g1' > conftest.s
26559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26566 if test x
$gcc_cv_objdump != x \
26567 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26568 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26569 gcc_cv_as_sparc_offsetable_lo10
=yes
26572 echo "configure: failed program was" >&5
26575 rm -f conftest.o conftest.s
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26579 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26580 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26582 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26588 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26589 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26590 $as_echo_n "(cached) " >&6
26592 gcc_cv_as_sparc_fmaf
=no
26593 if test x
$gcc_cv_as != x
; then
26595 .register %g2, #scratch
26596 .register %g3, #scratch
26598 fmaddd %f0, %f2, %f4, %f6
26599 addxccc %g1, %g2, %g3
26600 fsrl32 %f2, %f4, %f8
26601 fnaddd %f10, %f12, %f14' > conftest.s
26602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26609 gcc_cv_as_sparc_fmaf
=yes
26611 echo "configure: failed program was" >&5
26614 rm -f conftest.o conftest.s
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26618 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26619 if test $gcc_cv_as_sparc_fmaf = yes; then
26621 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26627 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26628 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26629 $as_echo_n "(cached) " >&6
26631 gcc_cv_as_sparc_sparc4
=no
26632 if test x
$gcc_cv_as != x
; then
26634 .register %g2, #scratch
26635 .register %g3, #scratch
26638 1: cwbneg %g2, %g3, 1f
26641 aes_kexpand0 %f4, %f6, %f8
26642 des_round %f38, %f40, %f42, %f44
26643 camellia_f %f54, %f56, %f58, %f60
26644 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }
26652 gcc_cv_as_sparc_sparc4
=yes
26654 echo "configure: failed program was" >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26661 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26662 if test $gcc_cv_as_sparc_sparc4 = yes; then
26664 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26670 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26671 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26672 $as_echo_n "(cached) " >&6
26674 gcc_cv_as_sparc_sparc5
=no
26675 if test x
$gcc_cv_as != x
; then
26677 .register %g2, #scratch
26678 .register %g3, #scratch
26680 subxc %g1, %g2, %g3
26681 fpadd8 %f0, %f2, %f4' > conftest.s
26682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26684 (eval $ac_try) 2>&5
26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26687 test $ac_status = 0; }; }
26689 gcc_cv_as_sparc_sparc5
=yes
26691 echo "configure: failed program was" >&5
26694 rm -f conftest.o conftest.s
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26698 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26699 if test $gcc_cv_as_sparc_sparc5 = yes; then
26701 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26707 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26708 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26709 $as_echo_n "(cached) " >&6
26711 gcc_cv_as_sparc_sparc6
=no
26712 if test x
$gcc_cv_as != x
; then
26714 .register %g2, #scratch
26715 .register %g3, #scratch
26718 fpsll64x %f0, %f2, %f4' > conftest.s
26719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721 (eval $ac_try) 2>&5
26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724 test $ac_status = 0; }; }
26726 gcc_cv_as_sparc_sparc6
=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_sparc6" >&5
26735 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26736 if test $gcc_cv_as_sparc_sparc6 = yes; then
26738 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26744 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26745 if ${gcc_cv_as_sparc_leon+:} false
; then :
26746 $as_echo_n "(cached) " >&6
26748 gcc_cv_as_sparc_leon
=no
26749 if test x
$gcc_cv_as != x
; then
26751 .register %g2, #scratch
26752 .register %g3, #scratch
26756 casa [%g2] 0xb, %g3, %g1' > conftest.s
26757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -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 gcc_cv_as_sparc_leon
=yes
26766 echo "configure: failed program was" >&5
26769 rm -f conftest.o conftest.s
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26773 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26774 if test $gcc_cv_as_sparc_leon = yes; then
26776 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26782 i
[34567]86-*-* | x86_64-
*-*)
26785 # Full C++ conformance when using a shared libstdc++-v3 requires some
26786 # support from the Cygwin DLL, which in more recent versions exports
26787 # wrappers to aid in interposing and redirecting operators new, delete,
26788 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26789 # are configuring for a version of Cygwin that exports the wrappers.
26790 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26791 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26792 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26793 gcc_ac_cygwin_dll_wrappers
=yes
26795 gcc_ac_cygwin_dll_wrappers
=no
26799 # Can't check presence of libc functions during cross-compile, so
26800 # we just have to assume we're building for an up-to-date target.
26801 gcc_ac_cygwin_dll_wrappers
=yes
26804 cat >>confdefs.h
<<_ACEOF
26805 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26810 cygwin
* | pe | mingw32
*)
26811 # Recent binutils allows the three-operand form of ".comm" on PE. This
26812 # definition is used unconditionally to initialise the default state of
26813 # the target option variable that governs usage of the feature.
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26815 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26816 if ${gcc_cv_as_comm_has_align+:} false
; then :
26817 $as_echo_n "(cached) " >&6
26819 gcc_cv_as_comm_has_align
=no
26820 if test $in_tree_gas = yes; then
26821 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26822 then gcc_cv_as_comm_has_align
=yes
26824 elif test x
$gcc_cv_as != x
; then
26825 $as_echo '.comm foo,1,32' > conftest.s
26826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26828 (eval $ac_try) 2>&5
26830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26831 test $ac_status = 0; }; }
26833 gcc_cv_as_comm_has_align
=yes
26835 echo "configure: failed program was" >&5
26838 rm -f conftest.o conftest.s
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26842 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26846 cat >>confdefs.h
<<_ACEOF
26847 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26850 # Used for DWARF 2 in PE
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26852 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26853 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26854 $as_echo_n "(cached) " >&6
26856 gcc_cv_as_ix86_pe_secrel32
=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26859 then gcc_cv_as_ix86_pe_secrel32
=yes
26861 elif test x
$gcc_cv_as != x
; then
26865 .secrel32 foo' > conftest.s
26866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26873 if test x
$gcc_cv_ld != x \
26874 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26875 gcc_cv_as_ix86_pe_secrel32
=yes
26879 echo "configure: failed program was" >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26886 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26887 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26889 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26893 # Test if the assembler supports the extended form of the .section
26894 # directive that specifies section alignment. LTO support uses this,
26895 # but normally only after installation, so we warn but don't fail the
26896 # configure if LTO is enabled but the assembler does not support it.
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26898 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26899 if ${gcc_cv_as_section_has_align+:} false
; then :
26900 $as_echo_n "(cached) " >&6
26902 gcc_cv_as_section_has_align
=no
26903 if test $in_tree_gas = yes; then
26904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26905 then gcc_cv_as_section_has_align
=yes
26907 elif test x
$gcc_cv_as != x
; then
26908 $as_echo '.section lto_test,"dr0"' > conftest.s
26909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26916 gcc_cv_as_section_has_align
=yes
26918 echo "configure: failed program was" >&5
26921 rm -f conftest.o conftest.s
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26925 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26928 if test x
$gcc_cv_as_section_has_align != xyes
; then
26929 case ",$enable_languages," in
26931 { $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
26932 $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;}
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26940 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26941 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26942 $as_echo_n "(cached) " >&6
26944 gcc_cv_as_ix86_xbrace_comment
=no
26945 if test x
$gcc_cv_as != x
; then
26946 $as_echo '.text' > conftest.s
26947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26949 (eval $ac_try) 2>&5
26951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26952 test $ac_status = 0; }; }
26954 gcc_cv_as_ix86_xbrace_comment
=yes
26956 echo "configure: failed program was" >&5
26959 rm -f conftest.o conftest.s
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26963 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26964 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26966 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26972 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26973 if ${gcc_cv_as_ix86_filds+:} false
; then :
26974 $as_echo_n "(cached) " >&6
26976 gcc_cv_as_ix86_filds
=no
26977 if test x
$gcc_cv_as != x
; then
26978 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26986 gcc_cv_as_ix86_filds
=yes
26988 echo "configure: failed program was" >&5
26991 rm -f conftest.o conftest.s
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26995 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26996 if test $gcc_cv_as_ix86_filds = yes; then
26998 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27004 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27005 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27006 $as_echo_n "(cached) " >&6
27008 gcc_cv_as_ix86_fildq
=no
27009 if test x
$gcc_cv_as != x
; then
27010 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27018 gcc_cv_as_ix86_fildq
=yes
27020 echo "configure: failed program was" >&5
27023 rm -f conftest.o conftest.s
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27027 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27028 if test $gcc_cv_as_ix86_fildq = yes; then
27030 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27036 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27037 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27038 $as_echo_n "(cached) " >&6
27040 gcc_cv_as_ix86_cmov_sun_syntax
=no
27041 if test x
$gcc_cv_as != x
; then
27042 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27043 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27045 (eval $ac_try) 2>&5
27047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27048 test $ac_status = 0; }; }
27050 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27052 echo "configure: failed program was" >&5
27055 rm -f conftest.o conftest.s
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27059 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27060 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27062 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27068 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27069 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27070 $as_echo_n "(cached) " >&6
27072 gcc_cv_as_ix86_ffreep
=no
27073 if test x
$gcc_cv_as != x
; then
27074 $as_echo 'ffreep %st(1)' > conftest.s
27075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27077 (eval $ac_try) 2>&5
27079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27080 test $ac_status = 0; }; }
27082 gcc_cv_as_ix86_ffreep
=yes
27084 echo "configure: failed program was" >&5
27087 rm -f conftest.o conftest.s
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27091 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27092 if test $gcc_cv_as_ix86_ffreep = yes; then
27094 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27100 $as_echo_n "checking assembler for .quad directive... " >&6; }
27101 if ${gcc_cv_as_ix86_quad+:} false
; then :
27102 $as_echo_n "(cached) " >&6
27104 gcc_cv_as_ix86_quad
=no
27105 if test x
$gcc_cv_as != x
; then
27106 $as_echo '.quad 0' > conftest.s
27107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27114 gcc_cv_as_ix86_quad
=yes
27116 echo "configure: failed program was" >&5
27119 rm -f conftest.o conftest.s
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27123 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27124 if test $gcc_cv_as_ix86_quad = yes; then
27126 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27132 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27133 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27134 $as_echo_n "(cached) " >&6
27136 gcc_cv_as_ix86_sahf
=no
27137 if test x
$gcc_cv_as != x
; then
27140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27142 (eval $ac_try) 2>&5
27144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27145 test $ac_status = 0; }; }
27147 gcc_cv_as_ix86_sahf
=yes
27149 echo "configure: failed program was" >&5
27152 rm -f conftest.o conftest.s
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27156 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27157 if test $gcc_cv_as_ix86_sahf = yes; then
27159 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27165 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27166 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27167 $as_echo_n "(cached) " >&6
27169 gcc_cv_as_ix86_interunit_movq
=no
27170 if test x
$gcc_cv_as != x
; then
27173 movq %rax, %xmm0' > conftest.s
27174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27176 (eval $ac_try) 2>&5
27178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27179 test $ac_status = 0; }; }
27181 gcc_cv_as_ix86_interunit_movq
=yes
27183 echo "configure: failed program was" >&5
27186 rm -f conftest.o conftest.s
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27190 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27194 cat >>confdefs.h
<<_ACEOF
27195 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27200 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27201 if ${gcc_cv_as_ix86_hle+:} false
; then :
27202 $as_echo_n "(cached) " >&6
27204 gcc_cv_as_ix86_hle
=no
27205 if test x
$gcc_cv_as != x
; then
27206 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27209 (eval $ac_try) 2>&5
27211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27212 test $ac_status = 0; }; }
27214 gcc_cv_as_ix86_hle
=yes
27216 echo "configure: failed program was" >&5
27219 rm -f conftest.o conftest.s
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27223 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27224 if test $gcc_cv_as_ix86_hle = yes; then
27226 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27232 $as_echo_n "checking assembler for swap suffix... " >&6; }
27233 if ${gcc_cv_as_ix86_swap+:} false
; then :
27234 $as_echo_n "(cached) " >&6
27236 gcc_cv_as_ix86_swap
=no
27237 if test x
$gcc_cv_as != x
; then
27238 $as_echo 'movl.s %esp, %ebp' > conftest.s
27239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27241 (eval $ac_try) 2>&5
27243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27244 test $ac_status = 0; }; }
27246 gcc_cv_as_ix86_swap
=yes
27248 echo "configure: failed program was" >&5
27251 rm -f conftest.o conftest.s
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27255 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27256 if test $gcc_cv_as_ix86_swap = yes; then
27258 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27264 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27265 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27266 $as_echo_n "(cached) " >&6
27268 gcc_cv_as_ix86_diff_sect_delta
=no
27269 if test x
$gcc_cv_as != x
; then
27270 $as_echo '.section .rodata
27276 .L2: nop' > conftest.s
27277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27284 gcc_cv_as_ix86_diff_sect_delta
=yes
27286 echo "configure: failed program was" >&5
27289 rm -f conftest.o conftest.s
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27293 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27294 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27296 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27302 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27303 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27304 $as_echo_n "(cached) " >&6
27306 gcc_cv_as_ix86_rep_lock_prefix
=no
27307 if test x
$gcc_cv_as != x
; then
27308 $as_echo 'rep movsl
27313 lock addl %edi, (%eax,%esi)
27314 lock orl $0, (%esp)' > conftest.s
27315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27317 (eval $ac_try) 2>&5
27319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27320 test $ac_status = 0; }; }
27322 gcc_cv_as_ix86_rep_lock_prefix
=yes
27324 echo "configure: failed program was" >&5
27327 rm -f conftest.o conftest.s
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27331 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27332 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27334 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27340 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27341 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27342 $as_echo_n "(cached) " >&6
27344 gcc_cv_as_ix86_ud2
=no
27345 if test x
$gcc_cv_as != x
; then
27346 $as_echo 'ud2' > conftest.s
27347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27354 gcc_cv_as_ix86_ud2
=yes
27356 echo "configure: failed program was" >&5
27359 rm -f conftest.o conftest.s
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27363 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27364 if test $gcc_cv_as_ix86_ud2 = yes; then
27366 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27371 # Enforce 32-bit output with gas and gld.
27372 if test x
$gas = xyes
; then
27373 as_ix86_gas_32_opt
="--32"
27375 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27376 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27377 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27379 ld_ix86_gld_32_opt
="-melf_i386"
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27384 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27385 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27386 $as_echo_n "(cached) " >&6
27388 gcc_cv_as_ix86_tlsgdplt
=no
27389 if test x
$gcc_cv_as != x
; then
27390 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27393 (eval $ac_try) 2>&5
27395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27396 test $ac_status = 0; }; }
27398 if test x
$gcc_cv_ld != x \
27399 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27400 gcc_cv_as_ix86_tlsgdplt
=yes
27404 echo "configure: failed program was" >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27411 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27412 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27414 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27420 .section .tdata,"aw'$tls_section_flag'",@progbits
27422 .section .text,"ax",@progbits
27423 call tls_ld@tlsldmplt'
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27426 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27427 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27428 $as_echo_n "(cached) " >&6
27430 gcc_cv_as_ix86_tlsldmplt
=no
27431 if test x
$gcc_cv_as != x
; then
27432 $as_echo "$conftest_s" > conftest.s
27433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27435 (eval $ac_try) 2>&5
27437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27438 test $ac_status = 0; }; }
27440 if test x
$gcc_cv_ld != x \
27441 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27442 gcc_cv_as_ix86_tlsldmplt
=yes
27446 echo "configure: failed program was" >&5
27449 rm -f conftest.o conftest.s
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27453 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27457 cat >>confdefs.h
<<_ACEOF
27458 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27463 .section .text,"ax",@progbits
27465 .type _start, @function
27467 leal value@tlsldm(%ebx), %eax
27468 call ___tls_get_addr@plt
27470 .section .tdata,"aw'$tls_section_flag'",@progbits
27471 .type value, @object
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27474 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27475 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27476 $as_echo_n "(cached) " >&6
27478 gcc_cv_as_ix86_tlsldm
=no
27479 if test x
$gcc_cv_as != x
; then
27480 $as_echo "$conftest_s" > conftest.s
27481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27483 (eval $ac_try) 2>&5
27485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27486 test $ac_status = 0; }; }
27488 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27489 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27490 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27491 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27492 gcc_cv_as_ix86_tlsldm
=yes
27497 echo "configure: failed program was" >&5
27500 rm -f conftest.o conftest.s
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27504 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27508 cat >>confdefs.h
<<_ACEOF
27509 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27523 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27524 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27525 $as_echo_n "(cached) " >&6
27527 gcc_cv_as_ix86_got32x
=no
27528 if test x
$gcc_cv_as != x
; then
27529 $as_echo "$conftest_s" > conftest.s
27530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27532 (eval $ac_try) 2>&5
27534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27535 test $ac_status = 0; }; }
27537 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27538 && test x
$gcc_cv_readelf != x \
27539 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27540 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27541 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27542 if $gcc_cv_objdump -dw conftest
2>&1 \
27543 |
grep 0xffffff > /dev
/null
2>&1; then
27544 gcc_cv_as_ix86_got32x
=no
27546 gcc_cv_as_ix86_got32x
=yes
27551 echo "configure: failed program was" >&5
27554 rm -f conftest.o conftest.s
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27558 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27562 cat >>confdefs.h
<<_ACEOF
27563 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27568 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27569 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27570 $as_echo_n "(cached) " >&6
27572 gcc_cv_as_ix86_gotoff_in_data
=no
27573 if test $in_tree_gas = yes; then
27574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27575 then gcc_cv_as_ix86_gotoff_in_data
=yes
27577 elif test x
$gcc_cv_as != x
; then
27582 .long .L0@GOTOFF' > conftest.s
27583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27590 gcc_cv_as_ix86_gotoff_in_data
=yes
27592 echo "configure: failed program was" >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27599 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27603 cat >>confdefs.h
<<_ACEOF
27604 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27609 .section .text,"ax",@progbits
27611 .type _start, @function
27613 leal ld@tlsldm(%ecx), %eax
27614 call *___tls_get_addr@GOT(%ecx)
27615 leal gd@tlsgd(%ecx), %eax
27616 call *___tls_get_addr@GOT(%ecx)
27618 .section .tdata,"aw'$tls_section_flag'",@progbits
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27627 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27628 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27629 $as_echo_n "(cached) " >&6
27631 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27632 if test x
$gcc_cv_as != x
; then
27633 $as_echo "$conftest_s" > conftest.s
27634 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27636 (eval $ac_try) 2>&5
27638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27639 test $ac_status = 0; }; }
27641 if test x
$gcc_cv_ld != x \
27642 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27643 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27647 echo "configure: failed program was" >&5
27650 rm -f conftest.o conftest.s
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27654 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27658 cat >>confdefs.h
<<_ACEOF
27659 #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`
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27666 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27667 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27668 $as_echo_n "(cached) " >&6
27670 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27671 if test $in_tree_gas = yes; then
27672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27673 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27675 elif test x
$gcc_cv_as != x
; then
27677 addl r15 = @ltoffx(x#), gp
27679 ld8.mov r16 = [r15], x#
27681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27688 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27690 echo "configure: failed program was" >&5
27693 rm -f conftest.o conftest.s
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27697 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27698 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27700 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27712 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27713 if ${gcc_cv_as_machine_directive+:} false
; then :
27714 $as_echo_n "(cached) " >&6
27716 gcc_cv_as_machine_directive
=no
27717 if test x
$gcc_cv_as != x
; then
27718 $as_echo ' .machine ppc7400' > conftest.s
27719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27726 gcc_cv_as_machine_directive
=yes
27728 echo "configure: failed program was" >&5
27731 rm -f conftest.o conftest.s
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27735 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27738 if test x
$gcc_cv_as_machine_directive != xyes
; then
27739 echo "*** This target requires an assembler supporting \".machine\"" >&2
27740 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27741 test x
$build = x
$target && exit 1
27747 *-*-aix*) conftest_s
=' .machine "pwr5"
27750 *-*-darwin*) conftest_s
=' .text
27752 *) conftest_s
=' .machine power4
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27758 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27759 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27760 $as_echo_n "(cached) " >&6
27762 gcc_cv_as_powerpc_mfcrf
=no
27763 if test $in_tree_gas = yes; then
27764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27765 then gcc_cv_as_powerpc_mfcrf
=yes
27767 elif test x
$gcc_cv_as != x
; then
27768 $as_echo "$conftest_s" > conftest.s
27769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27776 gcc_cv_as_powerpc_mfcrf
=yes
27778 echo "configure: failed program was" >&5
27781 rm -f conftest.o conftest.s
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27785 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27786 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27788 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27794 *-*-aix*) conftest_s
=' .csect .text[PR]
27796 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27800 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27801 *) conftest_s
=' .text
27803 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27807 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27808 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27809 $as_echo_n "(cached) " >&6
27811 gcc_cv_as_powerpc_rel16
=no
27812 if test $in_tree_gas = yes; then
27813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27814 then gcc_cv_as_powerpc_rel16
=yes
27816 elif test x
$gcc_cv_as != x
; then
27817 $as_echo "$conftest_s" > conftest.s
27818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27820 (eval $ac_try) 2>&5
27822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27823 test $ac_status = 0; }; }
27825 gcc_cv_as_powerpc_rel16
=yes
27827 echo "configure: failed program was" >&5
27830 rm -f conftest.o conftest.s
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27834 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27835 if test $gcc_cv_as_powerpc_rel16 = yes; then
27837 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27843 *-*-aix*) conftest_s
=' .machine "pwr7"
27846 *) conftest_s
=' .machine power7
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27852 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27853 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27854 $as_echo_n "(cached) " >&6
27856 gcc_cv_as_powerpc_vsx
=no
27857 if test $in_tree_gas = yes; then
27858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27859 then gcc_cv_as_powerpc_vsx
=yes
27861 elif test x
$gcc_cv_as != x
; then
27862 $as_echo "$conftest_s" > conftest.s
27863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27865 (eval $ac_try) 2>&5
27867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27868 test $ac_status = 0; }; }
27870 gcc_cv_as_powerpc_vsx
=yes
27872 echo "configure: failed program was" >&5
27875 rm -f conftest.o conftest.s
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27879 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27880 if test $gcc_cv_as_powerpc_vsx = yes; then
27882 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27888 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27889 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27890 $as_echo_n "(cached) " >&6
27892 gcc_cv_as_powerpc_gnu_attribute
=no
27893 if test $in_tree_gas = yes; then
27894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27895 then gcc_cv_as_powerpc_gnu_attribute
=yes
27897 elif test x
$gcc_cv_as != x
; then
27898 $as_echo '.gnu_attribute 4,1' > conftest.s
27899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_powerpc_gnu_attribute
=yes
27908 echo "configure: failed program was" >&5
27911 rm -f conftest.o conftest.s
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27915 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27916 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27918 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27924 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27925 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27926 $as_echo_n "(cached) " >&6
27928 gcc_cv_as_powerpc_entry_markers
=no
27929 if test $in_tree_gas = yes; then
27930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27931 then gcc_cv_as_powerpc_entry_markers
=yes
27933 elif test x
$gcc_cv_as != x
; then
27934 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; }
27942 gcc_cv_as_powerpc_entry_markers
=yes
27944 echo "configure: failed program was" >&5
27947 rm -f conftest.o conftest.s
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27951 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27952 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27954 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27960 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27961 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27962 $as_echo_n "(cached) " >&6
27964 gcc_cv_as_powerpc_pltseq_markers
=no
27965 if test $in_tree_gas = yes; then
27966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27967 then gcc_cv_as_powerpc_pltseq_markers
=yes
27969 elif test x
$gcc_cv_as != x
; then
27970 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27973 (eval $ac_try) 2>&5
27975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27976 test $ac_status = 0; }; }
27978 gcc_cv_as_powerpc_pltseq_markers
=yes
27980 echo "configure: failed program was" >&5
27983 rm -f conftest.o conftest.s
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27987 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27988 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27990 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27998 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27999 if ${gcc_cv_as_aix_ref+:} false
; then :
28000 $as_echo_n "(cached) " >&6
28002 gcc_cv_as_aix_ref
=no
28003 if test $in_tree_gas = yes; then
28004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28005 then gcc_cv_as_aix_ref
=yes
28007 elif test x
$gcc_cv_as != x
; then
28008 $as_echo ' .csect stuff[rw]
28014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28016 (eval $ac_try) 2>&5
28018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28019 test $ac_status = 0; }; }
28021 gcc_cv_as_aix_ref
=yes
28023 echo "configure: failed program was" >&5
28026 rm -f conftest.o conftest.s
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28030 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28031 if test $gcc_cv_as_aix_ref = yes; then
28033 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28039 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28040 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28041 $as_echo_n "(cached) " >&6
28043 gcc_cv_as_aix_dwloc
=no
28044 if test $in_tree_gas = yes; then
28045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28046 then gcc_cv_as_aix_dwloc
=yes
28048 elif test x
$gcc_cv_as != x
; then
28049 $as_echo ' .dwsect 0xA0000
28053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; }
28060 gcc_cv_as_aix_dwloc
=yes
28062 echo "configure: failed program was" >&5
28065 rm -f conftest.o conftest.s
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28069 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28070 if test $gcc_cv_as_aix_dwloc = yes; then
28072 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28082 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28083 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28084 $as_echo_n "(cached) " >&6
28086 gcc_cv_as_mips_explicit_relocs
=no
28087 if test $in_tree_gas = yes; then
28088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28089 then gcc_cv_as_mips_explicit_relocs
=yes
28091 elif test x
$gcc_cv_as != x
; then
28092 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28095 (eval $ac_try) 2>&5
28097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28098 test $ac_status = 0; }; }
28100 gcc_cv_as_mips_explicit_relocs
=yes
28102 echo "configure: failed program was" >&5
28105 rm -f conftest.o conftest.s
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28109 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28110 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28111 if test x
$target_cpu_default = x
28112 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28113 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28119 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28120 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28121 $as_echo_n "(cached) " >&6
28123 gcc_cv_as_mips_no_shared
=no
28124 if test $in_tree_gas = yes; then
28125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28126 then gcc_cv_as_mips_no_shared
=yes
28128 elif test x
$gcc_cv_as != x
; then
28129 $as_echo 'nop' > conftest.s
28130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28132 (eval $ac_try) 2>&5
28134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28135 test $ac_status = 0; }; }
28137 gcc_cv_as_mips_no_shared
=yes
28139 echo "configure: failed program was" >&5
28142 rm -f conftest.o conftest.s
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28146 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28147 if test $gcc_cv_as_mips_no_shared = yes; then
28149 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28155 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28156 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28157 $as_echo_n "(cached) " >&6
28159 gcc_cv_as_mips_gnu_attribute
=no
28160 if test $in_tree_gas = yes; then
28161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28162 then gcc_cv_as_mips_gnu_attribute
=yes
28164 elif test x
$gcc_cv_as != x
; then
28165 $as_echo '.gnu_attribute 4,1' > conftest.s
28166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28168 (eval $ac_try) 2>&5
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; }
28173 gcc_cv_as_mips_gnu_attribute
=yes
28175 echo "configure: failed program was" >&5
28178 rm -f conftest.o conftest.s
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28182 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28183 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28185 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28191 $as_echo_n "checking assembler for .module support... " >&6; }
28192 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28193 $as_echo_n "(cached) " >&6
28195 gcc_cv_as_mips_dot_module
=no
28196 if test x
$gcc_cv_as != x
; then
28197 $as_echo '.module mips2
28198 .module fp=xx' > conftest.s
28199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }
28206 gcc_cv_as_mips_dot_module
=yes
28208 echo "configure: failed program was" >&5
28211 rm -f conftest.o conftest.s
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28215 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28216 if test $gcc_cv_as_mips_dot_module = yes; then
28218 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28222 if test x
$gcc_cv_as_mips_dot_module = xno \
28223 && test x
$with_fp_32 != x
; then
28224 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28228 $as_echo_n "checking assembler for .micromips support... " >&6; }
28229 if ${gcc_cv_as_micromips_support+:} false
; then :
28230 $as_echo_n "(cached) " >&6
28232 gcc_cv_as_micromips_support
=no
28233 if test x
$gcc_cv_as != x
; then
28234 $as_echo '.set micromips' > conftest.s
28235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28237 (eval $ac_try) 2>&5
28239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28240 test $ac_status = 0; }; }
28242 gcc_cv_as_micromips_support
=yes
28244 echo "configure: failed program was" >&5
28247 rm -f conftest.o conftest.s
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28251 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28252 if test $gcc_cv_as_micromips_support = yes; then
28254 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28260 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28261 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28262 $as_echo_n "(cached) " >&6
28264 gcc_cv_as_mips_dtprelword
=no
28265 if test $in_tree_gas = yes; then
28266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28267 then gcc_cv_as_mips_dtprelword
=yes
28269 elif test x
$gcc_cv_as != x
; then
28270 $as_echo '.section .tdata,"awT",@progbits
28274 .dtprelword x+0x8000' > conftest.s
28275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28277 (eval $ac_try) 2>&5
28279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28280 test $ac_status = 0; }; }
28282 gcc_cv_as_mips_dtprelword
=yes
28284 echo "configure: failed program was" >&5
28287 rm -f conftest.o conftest.s
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28291 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28292 if test $gcc_cv_as_mips_dtprelword = yes; then
28294 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28300 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28301 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28302 $as_echo_n "(cached) " >&6
28304 gcc_cv_as_mips_dspr1_mult
=no
28305 if test x
$gcc_cv_as != x
; then
28306 $as_echo ' .set mips32r2
28314 multu $ac3,$4,$5' > conftest.s
28315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28317 (eval $ac_try) 2>&5
28319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28320 test $ac_status = 0; }; }
28322 gcc_cv_as_mips_dspr1_mult
=yes
28324 echo "configure: failed program was" >&5
28327 rm -f conftest.o conftest.s
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28331 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28332 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28334 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28340 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28341 gcc_cv_as_ld_jalr_reloc
=no
28342 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28343 if test $in_tree_ld = yes ; then
28344 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 \
28345 && test $in_tree_ld_is_elf = yes; then
28346 gcc_cv_as_ld_jalr_reloc
=yes
28348 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28349 echo ' .ent x' > conftest.s
28350 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28351 echo ' lw $25,%call16(y)($28)' >> conftest.s
28352 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28353 echo '1: jalr $25' >> conftest.s
28354 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28355 echo '1: jalr $25' >> conftest.s
28356 echo ' .end x' >> conftest.s
28357 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28358 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28359 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28360 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28361 gcc_cv_as_ld_jalr_reloc
=yes
28367 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28368 if test x
$target_cpu_default = x
; then
28369 target_cpu_default
=MASK_RELAX_PIC_CALLS
28371 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28375 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28378 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28379 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28380 $as_echo_n "(cached) " >&6
28382 gcc_cv_ld_mips_personality_relaxation
=no
28383 if test $in_tree_ld = yes ; then
28384 if test "$gcc_cv_gld_major_version" -eq 2 \
28385 -a "$gcc_cv_gld_minor_version" -ge 21 \
28386 -o "$gcc_cv_gld_major_version" -gt 2; then
28387 gcc_cv_ld_mips_personality_relaxation
=yes
28389 elif test x
$gcc_cv_as != x \
28390 -a x
$gcc_cv_ld != x \
28391 -a x
$gcc_cv_readelf != x
; then
28392 cat > conftest.s
<<EOF
28394 .cfi_personality 0x80,indirect_ptr
28401 .section .data,"aw",@progbits
28405 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28406 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28407 if $gcc_cv_readelf -d conftest
2>&1 \
28408 |
grep TEXTREL
> /dev
/null
2>&1; then
28410 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28411 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28414 gcc_cv_ld_mips_personality_relaxation
=yes
28418 rm -f conftest.s conftest.o conftest
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28421 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28422 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28424 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28429 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28430 if ${gcc_cv_as_mips_nan+:} false
; then :
28431 $as_echo_n "(cached) " >&6
28433 gcc_cv_as_mips_nan
=no
28434 if test x
$gcc_cv_as != x
; then
28435 $as_echo '' > conftest.s
28436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28438 (eval $ac_try) 2>&5
28440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441 test $ac_status = 0; }; }
28443 gcc_cv_as_mips_nan
=yes
28445 echo "configure: failed program was" >&5
28448 rm -f conftest.o conftest.s
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28452 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28453 if test $gcc_cv_as_mips_nan = yes; then
28455 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28459 if test x
$gcc_cv_as_mips_nan = xno \
28460 && test x
$with_nan != x
; then
28461 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28465 # Earlier GAS versions generically support .gnu_attribute, but the
28466 # msp430 assembler will not do anything with it.
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28468 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28469 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28470 $as_echo_n "(cached) " >&6
28472 gcc_cv_as_msp430_gnu_attribute
=no
28473 if test $in_tree_gas = yes; then
28474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28475 then gcc_cv_as_msp430_gnu_attribute
=yes
28477 elif test x
$gcc_cv_as != x
; then
28478 $as_echo '.gnu_attribute 4,1' > conftest.s
28479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28481 (eval $ac_try) 2>&5
28483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28484 test $ac_status = 0; }; }
28486 gcc_cv_as_msp430_gnu_attribute
=yes
28488 echo "configure: failed program was" >&5
28491 rm -f conftest.o conftest.s
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28495 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28496 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28498 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28503 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28504 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28505 $as_echo_n "(cached) " >&6
28507 gcc_cv_as_msp430_mspabi_attribute
=no
28508 if test $in_tree_gas = yes; then
28509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28510 then gcc_cv_as_msp430_mspabi_attribute
=yes
28512 elif test x
$gcc_cv_as != x
; then
28513 $as_echo '.mspabi_attribute 4,2' > conftest.s
28514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28516 (eval $ac_try) 2>&5
28518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28519 test $ac_status = 0; }; }
28521 gcc_cv_as_msp430_mspabi_attribute
=yes
28523 echo "configure: failed program was" >&5
28526 rm -f conftest.o conftest.s
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28530 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28531 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28533 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28537 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28539 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28544 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28545 # syntax that is documented in the ABI specification.
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28547 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28548 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28549 $as_echo_n "(cached) " >&6
28551 gcc_cv_as_nios2_gotoff_relocation
=no
28552 if test x
$gcc_cv_as != x
; then
28553 $as_echo ' .extern foo
28555 .long %gotoff(foo)' > conftest.s
28556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28558 (eval $ac_try) 2>&5
28560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28561 test $ac_status = 0; }; }
28563 gcc_cv_as_nios2_gotoff_relocation
=yes
28565 echo "configure: failed program was" >&5
28568 rm -f conftest.o conftest.s
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28572 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28573 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28575 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28582 $as_echo_n "checking assembler for .attribute support... " >&6; }
28583 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28584 $as_echo_n "(cached) " >&6
28586 gcc_cv_as_riscv_attribute
=no
28587 if test $in_tree_gas = yes; then
28588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28589 then gcc_cv_as_riscv_attribute
=yes
28591 elif test x
$gcc_cv_as != x
; then
28592 $as_echo '.attribute stack_align,4' > conftest.s
28593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28595 (eval $ac_try) 2>&5
28597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28598 test $ac_status = 0; }; }
28600 gcc_cv_as_riscv_attribute
=yes
28602 echo "configure: failed program was" >&5
28605 rm -f conftest.o conftest.s
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28609 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28610 if test $gcc_cv_as_riscv_attribute = yes; then
28612 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28617 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28618 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28619 $as_echo_n "(cached) " >&6
28621 gcc_cv_as_riscv_isa_spec
=no
28622 if test x
$gcc_cv_as != x
; then
28623 $as_echo '' > conftest.s
28624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28626 (eval $ac_try) 2>&5
28628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629 test $ac_status = 0; }; }
28631 gcc_cv_as_riscv_isa_spec
=yes
28633 echo "configure: failed program was" >&5
28636 rm -f conftest.o conftest.s
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28640 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28641 if test $gcc_cv_as_riscv_isa_spec = yes; then
28643 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28648 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28649 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28650 $as_echo_n "(cached) " >&6
28652 gcc_cv_as_riscv_march_zifencei
=no
28653 if test x
$gcc_cv_as != x
; then
28654 $as_echo '' > conftest.s
28655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28657 (eval $ac_try) 2>&5
28659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28660 test $ac_status = 0; }; }
28662 gcc_cv_as_riscv_march_zifencei
=yes
28664 echo "configure: failed program was" >&5
28667 rm -f conftest.o conftest.s
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28671 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28672 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28674 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
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_s390_gnu_attribute+:} false
; then :
28683 $as_echo_n "(cached) " >&6
28685 gcc_cv_as_s390_gnu_attribute
=no
28686 if test $in_tree_gas = yes; then
28687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28688 then gcc_cv_as_s390_gnu_attribute
=yes
28690 elif test x
$gcc_cv_as != x
; then
28691 $as_echo '.gnu_attribute 8,1' > conftest.s
28692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28694 (eval $ac_try) 2>&5
28696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28697 test $ac_status = 0; }; }
28699 gcc_cv_as_s390_gnu_attribute
=yes
28701 echo "configure: failed program was" >&5
28704 rm -f conftest.o conftest.s
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28708 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28709 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28711 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28716 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28717 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28718 $as_echo_n "(cached) " >&6
28720 gcc_cv_as_s390_machine_machinemode
=no
28721 if test $in_tree_gas = yes; then
28722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28723 then gcc_cv_as_s390_machine_machinemode
=yes
28725 elif test x
$gcc_cv_as != x
; then
28726 $as_echo ' .machinemode push
28729 .machine pop' > conftest.s
28730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28732 (eval $ac_try) 2>&5
28734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28735 test $ac_status = 0; }; }
28737 gcc_cv_as_s390_machine_machinemode
=yes
28739 echo "configure: failed program was" >&5
28742 rm -f conftest.o conftest.s
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28746 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28747 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28749 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28754 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28755 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28756 $as_echo_n "(cached) " >&6
28758 gcc_cv_as_s390_architecture_modifiers
=no
28759 if test $in_tree_gas = yes; then
28760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28761 then gcc_cv_as_s390_architecture_modifiers
=yes
28763 elif test x
$gcc_cv_as != x
; then
28764 $as_echo ' .machine z13+vx ' > conftest.s
28765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28767 (eval $ac_try) 2>&5
28769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28770 test $ac_status = 0; }; }
28772 gcc_cv_as_s390_architecture_modifiers
=yes
28774 echo "configure: failed program was" >&5
28777 rm -f conftest.o conftest.s
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28781 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28782 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28784 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28789 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28790 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28791 $as_echo_n "(cached) " >&6
28793 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28794 if test $in_tree_gas = yes; then
28795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28796 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28798 elif test x
$gcc_cv_as != x
; then
28799 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28802 (eval $ac_try) 2>&5
28804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28805 test $ac_status = 0; }; }
28807 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28809 echo "configure: failed program was" >&5
28812 rm -f conftest.o conftest.s
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28816 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28817 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28819 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28824 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28825 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28826 $as_echo_n "(cached) " >&6
28828 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28829 if test x
$gcc_cv_as != x
; then
28830 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28833 (eval $ac_try) 2>&5
28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28836 test $ac_status = 0; }; }
28838 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28840 echo "configure: failed program was" >&5
28843 rm -f conftest.o conftest.s
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28847 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28848 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28850 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28858 # Mips and HP-UX need the GNU assembler.
28859 # Linux on IA64 might be able to use the Intel assembler.
28862 mips
*-*-* |
*-*-hpux* )
28863 if test x
$gas_flag = xyes \
28864 ||
test x
"$host" != x
"$build" \
28865 ||
test ! -x "$gcc_cv_as" \
28866 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28869 echo "*** This configuration requires the GNU assembler" >&2
28875 # ??? Not all targets support dwarf2 debug_line, even within a version
28876 # of gas. Moreover, we need to emit a valid instruction to trigger any
28877 # info to the output file. So, as supported targets are added to gas 2.11,
28878 # add some instruction here to (also) show we expect this might work.
28879 # ??? Once 2.11 is released, probably need to add first known working
28880 # version to the per-target configury.
28881 case "$cpu_type" in
28882 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28883 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28884 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28894 if test x
"$insn" != x
; then
28896 .file 1 \"conftest.s\"
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28900 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28901 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28902 $as_echo_n "(cached) " >&6
28904 gcc_cv_as_dwarf2_debug_line
=no
28905 if test $in_tree_gas = yes; then
28906 if test $in_tree_gas_is_elf = yes \
28907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28908 then gcc_cv_as_dwarf2_debug_line
=yes
28910 elif test x
$gcc_cv_as != x
; then
28911 $as_echo "$conftest_s" > conftest.s
28912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28919 if test x
$gcc_cv_objdump != x \
28920 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28921 |
grep debug_line
> /dev
/null
2>&1; then
28922 gcc_cv_as_dwarf2_debug_line
=yes
28923 elif test x
$gcc_cv_otool != x \
28924 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28925 |
grep debug_line
> /dev
/null
2>&1; then
28926 gcc_cv_as_dwarf2_debug_line
=yes
28929 echo "configure: failed program was" >&5
28932 rm -f conftest.o conftest.s
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28936 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28940 # The .debug_line file table must be in the exact order that
28941 # we specified the files, since these indices are also used
28942 # by DW_AT_decl_file. Approximate this test by testing if
28943 # the assembler bitches if the same index is assigned twice.
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28945 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28946 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28947 $as_echo_n "(cached) " >&6
28949 gcc_cv_as_dwarf2_file_buggy
=no
28950 if test x
$gcc_cv_as != x
; then
28951 $as_echo ' .file 1 "foo.s"
28952 .file 1 "bar.s"' > conftest.s
28953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }
28960 gcc_cv_as_dwarf2_file_buggy
=yes
28962 echo "configure: failed program was" >&5
28965 rm -f conftest.o conftest.s
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28969 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28973 if test $gcc_cv_as_dwarf2_debug_line = yes \
28974 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28976 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28979 if test $gcc_cv_as_leb128 = yes; then
28981 .file 1 \"conftest.s\"
28982 .loc 1 3 0 view .LVU1
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28989 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28990 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28991 $as_echo_n "(cached) " >&6
28993 gcc_cv_as_dwarf2_debug_view
=no
28994 if test $in_tree_gas = yes; then
28995 if test $in_tree_gas_is_elf = yes \
28996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28997 then gcc_cv_as_dwarf2_debug_view
=yes
28999 elif test x
$gcc_cv_as != x
; then
29000 $as_echo "$conftest_s" > conftest.s
29001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29003 (eval $ac_try) 2>&5
29005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29006 test $ac_status = 0; }; }
29008 gcc_cv_as_dwarf2_debug_view
=yes
29010 echo "configure: failed program was" >&5
29013 rm -f conftest.o conftest.s
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29017 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29018 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29020 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29028 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29029 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29030 $as_echo_n "(cached) " >&6
29032 gcc_cv_as_gdwarf2_flag
=no
29033 if test $in_tree_gas = yes; then
29034 if test $in_tree_gas_is_elf = yes \
29035 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29036 then gcc_cv_as_gdwarf2_flag
=yes
29038 elif test x
$gcc_cv_as != x
; then
29039 $as_echo "$insn" > conftest.s
29040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29042 (eval $ac_try) 2>&5
29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29045 test $ac_status = 0; }; }
29047 gcc_cv_as_gdwarf2_flag
=yes
29049 echo "configure: failed program was" >&5
29052 rm -f conftest.o conftest.s
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29056 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29057 if test $gcc_cv_as_gdwarf2_flag = yes; then
29059 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29065 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29066 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29067 $as_echo_n "(cached) " >&6
29069 gcc_cv_as_gdwarf_5_flag
=no
29070 if test $in_tree_gas = yes; then
29071 if test $in_tree_gas_is_elf = yes \
29072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29073 then gcc_cv_as_gdwarf_5_flag
=yes
29075 elif test x
$gcc_cv_as != x
; then
29076 $as_echo "$insn" > conftest.s
29077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29079 (eval $ac_try) 2>&5
29081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29082 test $ac_status = 0; }; }
29084 if test x
$gcc_cv_readelf != x \
29085 && $gcc_cv_readelf -wi conftest.o
2>&1 \
29086 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29087 gcc_cv_as_gdwarf_5_flag
=yes;
29090 echo "configure: failed program was" >&5
29093 rm -f conftest.o conftest.s
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29097 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29098 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29100 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29105 dwarf4_debug_info_size
=0x46
29106 dwarf4_high_pc_form
=7
29107 dwarf4_debug_aranges_size
=0x2c
29109 for dwarf4_addr_size
in 8 4; do
29116 .type foo, %function
29125 .section .debug_info,\"\",%progbits
29127 .4byte $dwarf4_debug_info_size
29129 .4byte .Ldebug_abbrev0
29130 .byte 0x$dwarf4_addr_size
29132 .ascii \"GNU C17\\0\"
29136 .${dwarf4_addr_size}byte .Ltext0
29137 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29138 .4byte .Ldebug_line0
29144 .${dwarf4_addr_size}byte .LFB0
29145 .${dwarf4_addr_size}byte .LFE0-.LFB0
29149 .section .debug_abbrev,\"\",%progbits
29165 .byte 0x$dwarf4_high_pc_form
29186 .byte 0x$dwarf4_high_pc_form
29192 .section .debug_aranges,\"\",%progbits
29193 .4byte $dwarf4_debug_aranges_size
29195 .4byte .Ldebug_info0
29200 .${dwarf4_addr_size}byte .Ltext0
29201 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29202 .${dwarf4_addr_size}byte 0
29203 .${dwarf4_addr_size}byte 0
29204 .section .debug_line,\"\",%progbits
29206 .4byte .LELT0-.LSLT0
29209 .4byte .LELTP0-.LASLTP0
29237 .byte 0x$dwarf4_line_sz
29239 .${dwarf4_addr_size}byte .LM1
29244 .byte 0x$dwarf4_line_sz
29246 .${dwarf4_addr_size}byte .LM2
29251 .byte 0x$dwarf4_line_sz
29253 .${dwarf4_addr_size}byte .Letext0
29258 .section .debug_str,\"\",%progbits
29262 if test $dwarf4_addr_size = 4; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29264 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29265 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29266 $as_echo_n "(cached) " >&6
29268 gcc_cv_as_debug_line_32_flag
=no
29269 if test $in_tree_gas = yes; then
29270 if test $in_tree_gas_is_elf = yes \
29271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29272 then gcc_cv_as_debug_line_32_flag
=yes
29274 elif test x
$gcc_cv_as != x
; then
29275 $as_echo "$conftest_s" > conftest.s
29276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29278 (eval $ac_try) 2>&5
29280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29281 test $ac_status = 0; }; }
29283 gcc_cv_as_debug_line_32_flag
=yes
29285 echo "configure: failed program was" >&5
29288 rm -f conftest.o conftest.s
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29292 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29293 if test $gcc_cv_as_debug_line_32_flag = yes; then
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29299 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29300 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29301 $as_echo_n "(cached) " >&6
29303 gcc_cv_as_debug_line_64_flag
=no
29304 if test $in_tree_gas = yes; then
29305 if test $in_tree_gas_is_elf = yes \
29306 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29307 then gcc_cv_as_debug_line_64_flag
=yes
29309 elif test x
$gcc_cv_as != x
; then
29310 $as_echo "$conftest_s" > conftest.s
29311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29313 (eval $ac_try) 2>&5
29315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29316 test $ac_status = 0; }; }
29318 gcc_cv_as_debug_line_64_flag
=yes
29320 echo "configure: failed program was" >&5
29323 rm -f conftest.o conftest.s
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29327 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29328 if test $gcc_cv_as_debug_line_64_flag = yes; then
29333 if test $dwarf4_success = yes; then
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29336 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29337 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29338 $as_echo_n "(cached) " >&6
29340 gcc_cv_as_dwarf_4_debug_line_flag
=no
29341 if test $in_tree_gas = yes; then
29342 if test $in_tree_gas_is_elf = yes \
29343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29344 then gcc_cv_as_dwarf_4_debug_line_flag
=yes
29346 elif test x
$gcc_cv_as != x
; then
29347 $as_echo "$conftest_s" > conftest.s
29348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29350 (eval $ac_try) 2>&5
29352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29353 test $ac_status = 0; }; }
29355 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29357 echo "configure: failed program was" >&5
29360 rm -f conftest.o conftest.s
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29364 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29365 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29371 dwarf4_debug_info_size
=0x36
29372 dwarf4_high_pc_form
=6
29373 dwarf4_debug_aranges_size
=0x1c
29377 if test $dwarf4_success = yes; then
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29396 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29397 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29398 $as_echo_n "(cached) " >&6
29400 gcc_cv_as_dwarf_4_app_flag
=no
29401 if test x
$gcc_cv_as != x
; then
29402 $as_echo "$conftest_s" > conftest.s
29403 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29405 (eval $ac_try) 2>&5
29407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29408 test $ac_status = 0; }; }
29410 gcc_cv_as_dwarf_4_app_flag
=yes
29412 echo "configure: failed program was" >&5
29415 rm -f conftest.o conftest.s
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29419 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29420 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29426 if test $dwarf4_success = yes; then
29430 .type foo, %function
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29437 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29438 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29439 $as_echo_n "(cached) " >&6
29441 gcc_cv_as_working_gdwarf_n_flag
=no
29442 if test x
$gcc_cv_as != x
; then
29443 $as_echo "$conftest_s" > conftest.s
29444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29446 (eval $ac_try) 2>&5
29448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29449 test $ac_status = 0; }; }
29451 if test x
$gcc_cv_readelf != x \
29452 && $gcc_cv_readelf -w conftest.o
2>&1 \
29453 |
grep conftest.s
> /dev
/null
2>&1; then
29454 gcc_cv_as_working_gdwarf_n_flag
=no
29456 gcc_cv_as_working_gdwarf_n_flag
=yes
29459 echo "configure: failed program was" >&5
29462 rm -f conftest.o conftest.s
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29466 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29469 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29471 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29477 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29478 if ${gcc_cv_as_gstabs_flag+:} false
; then :
29479 $as_echo_n "(cached) " >&6
29481 gcc_cv_as_gstabs_flag
=no
29482 if test $in_tree_gas = yes; then
29483 if test $in_tree_gas_is_elf = yes \
29484 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29485 then gcc_cv_as_gstabs_flag
=yes
29487 elif test x
$gcc_cv_as != x
; then
29488 $as_echo "$insn" > conftest.s
29489 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29491 (eval $ac_try) 2>&5
29493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29494 test $ac_status = 0; }; }
29496 gcc_cv_as_gstabs_flag
=yes
29498 echo "configure: failed program was" >&5
29501 rm -f conftest.o conftest.s
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29505 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29506 if test $gcc_cv_as_gstabs_flag = yes; then
29508 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29514 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29515 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29516 $as_echo_n "(cached) " >&6
29518 gcc_cv_as_debug_prefix_map_flag
=no
29519 if test $in_tree_gas = yes; then
29520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29521 then gcc_cv_as_debug_prefix_map_flag
=yes
29523 elif test x
$gcc_cv_as != x
; then
29524 $as_echo "$insn" > conftest.s
29525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29527 (eval $ac_try) 2>&5
29529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29530 test $ac_status = 0; }; }
29532 gcc_cv_as_debug_prefix_map_flag
=yes
29534 echo "configure: failed program was" >&5
29537 rm -f conftest.o conftest.s
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29541 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29542 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29544 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29551 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29552 if ${gcc_cv_as_compress_debug+:} false
; then :
29553 $as_echo_n "(cached) " >&6
29555 gcc_cv_as_compress_debug
=no
29556 if test x
$gcc_cv_as != x
; then
29557 $as_echo '' > conftest.s
29558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29560 (eval $ac_try) 2>&5
29562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29563 test $ac_status = 0; }; }
29565 # gas compiled without zlib cannot compress debug sections and warns
29566 # about it, but still exits successfully. So check for this, too.
29567 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29569 gcc_cv_as_compress_debug
=0
29570 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29571 # defaulting to the ELF gABI format.
29572 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
29574 gcc_cv_as_compress_debug
=2
29575 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29576 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29577 # Before binutils 2.26, gas only supported --compress-debug-options and
29578 # emitted the traditional GNU format.
29579 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
29581 gcc_cv_as_compress_debug
=1
29582 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29583 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29585 gcc_cv_as_compress_debug
=0
29588 echo "configure: failed program was" >&5
29591 rm -f conftest.o conftest.s
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29595 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29599 cat >>confdefs.h
<<_ACEOF
29600 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29604 cat >>confdefs.h
<<_ACEOF
29605 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29609 cat >>confdefs.h
<<_ACEOF
29610 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29615 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29616 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29617 $as_echo_n "(cached) " >&6
29619 gcc_cv_as_lcomm_with_alignment
=no
29620 if test x
$gcc_cv_as != x
; then
29621 $as_echo '.lcomm bar,4,16' > conftest.s
29622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29624 (eval $ac_try) 2>&5
29626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29627 test $ac_status = 0; }; }
29629 gcc_cv_as_lcomm_with_alignment
=yes
29631 echo "configure: failed program was" >&5
29634 rm -f conftest.o conftest.s
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29638 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29639 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29641 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29646 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29647 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29648 && test "$prefix" != "NONE"; then
29650 cat >>confdefs.h
<<_ACEOF
29651 #define PREFIX_INCLUDE_DIR "$prefix/include"
29656 # Determine the version of glibc, if any, used on the target.
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29658 $as_echo_n "checking for target glibc version... " >&6; }
29660 # Check whether --with-glibc-version was given.
29661 if test "${with_glibc_version+set}" = set; then :
29662 withval
=$with_glibc_version;
29663 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29664 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29665 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29667 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29671 glibc_version_major
=0
29672 glibc_version_minor
=0
29673 if test -f $target_header_dir/features.h \
29674 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29675 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29676 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29677 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29682 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29684 cat >>confdefs.h
<<_ACEOF
29685 #define TARGET_GLIBC_MAJOR $glibc_version_major
29689 cat >>confdefs.h
<<_ACEOF
29690 #define TARGET_GLIBC_MINOR $glibc_version_minor
29694 # Check whether --enable-gnu-unique-object was given.
29695 if test "${enable_gnu_unique_object+set}" = set; then :
29696 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29698 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29699 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29703 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29704 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29705 $as_echo_n "(cached) " >&6
29707 gcc_cv_as_gnu_unique_object
=no
29708 if test $in_tree_gas = yes; then
29709 if test $in_tree_gas_is_elf = yes \
29710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29711 then gcc_cv_as_gnu_unique_object
=yes
29713 elif test x
$gcc_cv_as != x
; then
29714 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; }
29722 gcc_cv_as_gnu_unique_object
=yes
29724 echo "configure: failed program was" >&5
29727 rm -f conftest.o conftest.s
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29731 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29732 if test $gcc_cv_as_gnu_unique_object = yes; then
29733 # We need to unquote above to to use the definition from config.gcc.
29734 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29736 if test $glibc_version_major -gt 2 \
29737 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29738 enable_gnu_unique_object
=yes
29745 if test x
$enable_gnu_unique_object = xyes
; then
29747 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29752 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29753 if ${gcc_cv_as_line_zero+:} false
; then :
29754 $as_echo_n "(cached) " >&6
29756 gcc_cv_as_line_zero
=no
29757 if test $in_tree_gas = yes; then
29758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29759 then gcc_cv_as_line_zero
=yes
29761 elif test "x$gcc_cv_as" != x
; then
29762 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29763 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29765 (eval $ac_try) 2>&5
29767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29768 test $ac_status = 0; }; } &&
29769 test "x`cat conftest.out`" = x
29771 gcc_cv_as_line_zero
=yes
29773 echo "configure: failed program was" >&5
29775 echo "configure: error output was" >&5
29776 cat conftest.out
>&5
29778 rm -f conftest.o conftest.s conftest.out
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29782 $as_echo "$gcc_cv_as_line_zero" >&6; }
29783 if test "x$gcc_cv_as_line_zero" = xyes
; then
29785 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29790 $as_echo_n "checking support for thin archives... " >&6; }
29791 thin_archive_support
=no
29792 echo 'int main (void) { return 0; }' > conftest.c
29793 if ($AR --version |
sed 1q |
grep "GNU ar" \
29794 && $CC $CFLAGS -c conftest.c \
29795 && $AR rcT conftest.a conftest.o \
29796 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29797 thin_archive_support
=yes
29799 rm -f conftest.c conftest.o conftest.a conftest
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29801 $as_echo "$thin_archive_support" >&6; }
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29805 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29806 gcc_cv_ld_eh_frame_hdr
=no
29807 if test $in_tree_ld = yes ; then
29808 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 \
29809 && test $in_tree_ld_is_elf = yes; then
29810 gcc_cv_ld_eh_frame_hdr
=yes
29812 elif test x
$gcc_cv_ld != x
; then
29813 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29814 # Check if linker supports --eh-frame-hdr option
29815 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
29816 gcc_cv_ld_eh_frame_hdr
=yes
29821 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29822 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
29823 gcc_cv_ld_eh_frame_hdr
=yes
29830 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
29832 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29836 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29839 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29840 gcc_cv_ld_eh_frame_ciev3
=no
29841 if test $in_tree_ld = yes ; then
29842 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 \
29843 && test $in_tree_ld_is_elf = yes; then
29844 gcc_cv_ld_eh_frame_ciev3
=yes
29846 elif test x
$gcc_cv_ld != x
; then
29847 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29848 gcc_cv_ld_eh_frame_ciev3
=yes
29849 if test 0"$ld_date" -lt 20040513; then
29850 if test -n "$ld_date"; then
29851 # If there was date string, but was earlier than 2004-05-13, fail
29852 gcc_cv_ld_eh_frame_ciev3
=no
29853 elif test "$ld_vers_major" -lt 2; then
29854 gcc_cv_ld_eh_frame_ciev3
=no
29855 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29856 gcc_cv_ld_eh_frame_ciev3
=no
29862 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29863 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
29864 gcc_cv_ld_eh_frame_ciev3
=yes
29871 cat >>confdefs.h
<<_ACEOF
29872 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29876 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29879 $as_echo_n "checking linker position independent executable support... " >&6; }
29881 if test $in_tree_ld = yes ; then
29883 # Full PIE support on Solaris was only introduced in gld 2.26.
29884 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
29885 *) gcc_gld_pie_min_version
=15 ;;
29887 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 \
29888 && test $in_tree_ld_is_elf = yes; then
29891 elif test x
$gcc_cv_ld != x
; then
29892 # Check if linker supports -pie option
29893 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
29897 if echo "$ld_ver" |
grep GNU
> /dev
/null \
29898 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29905 *-*-solaris2.1
[1-9]*)
29906 # Solaris 11.3 added PIE support.
29907 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
29914 if test x
"$gcc_cv_ld_pie" = xyes
; then
29916 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29920 $as_echo "$gcc_cv_ld_pie" >&6; }
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29923 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29924 gcc_cv_ld_pie_copyreloc
=no
29925 if test $gcc_cv_ld_pie = yes ; then
29926 if test $in_tree_ld = yes ; then
29927 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
29928 gcc_cv_ld_pie_copyreloc
=yes
29930 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29931 # Check if linker supports -pie option with copy reloc
29933 i?
86-*-linux* | x86_64-
*-linux*)
29934 cat > conftest1.s
<<EOF
29937 .type a_glob, @object
29942 cat > conftest2.s
<<EOF
29945 .type main, @function
29947 movl %eax, a_glob(%rip)
29950 .section .data.rel,"aw",@progbits
29955 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29956 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
29957 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29958 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
29959 gcc_cv_ld_pie_copyreloc
=yes
29961 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29967 cat >>confdefs.h
<<_ACEOF
29968 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29972 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29975 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29976 gcc_cv_ld_eh_gc_sections
=no
29977 if test $in_tree_ld = yes ; then
29978 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 \
29979 && test $in_tree_ld_is_elf = yes; then
29980 gcc_cv_ld_eh_gc_sections
=yes
29982 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
29983 cat > conftest.s
<<EOF
29986 .type _start, @function
29989 .size _start, .-_start
29990 .section .text.foo,"ax",@progbits
29991 .type foo, @function
29995 .section .gcc_except_table.foo,"a",@progbits
29998 .section .eh_frame,"a",@progbits
30001 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30002 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30003 |
grep "gc-sections option ignored" > /dev
/null
; then
30004 gcc_cv_ld_eh_gc_sections
=no
30005 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30006 |
grep gcc_except_table
> /dev
/null
; then
30007 gcc_cv_ld_eh_gc_sections
=yes
30008 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30009 if test x
$gcc_cv_as_comdat_group != xyes
; then
30010 gcc_cv_ld_eh_gc_sections
=no
30011 cat > conftest.s
<<EOF
30014 .type _start, @function
30017 .size _start, .-_start
30018 .section .gnu.linkonce.t.foo,"ax",@progbits
30019 .type foo, @function
30023 .section .gcc_except_table.foo,"a",@progbits
30026 .section .eh_frame,"a",@progbits
30029 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30030 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30031 |
grep "gc-sections option ignored" > /dev
/null
; then
30032 gcc_cv_ld_eh_gc_sections
=no
30033 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30034 |
grep gcc_except_table
> /dev
/null
; then
30035 gcc_cv_ld_eh_gc_sections
=yes
30041 rm -f conftest.s conftest.o conftest
30045 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30046 gcc_cv_ld_eh_gc_sections
=no
30049 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30051 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30055 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30058 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30059 gcc_cv_ld_eh_gc_sections_bug
=no
30060 if test $in_tree_ld = yes ; then
30061 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 \
30062 && test $in_tree_ld_is_elf = yes; then
30063 gcc_cv_ld_eh_gc_sections_bug
=yes
30065 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
30066 gcc_cv_ld_eh_gc_sections_bug
=yes
30067 cat > conftest.s
<<EOF
30070 .type _start, @function
30073 .size _start, .-_start
30074 .section .text.startup.foo,"ax",@progbits
30075 .type foo, @function
30079 .section .gcc_except_table.foo,"a",@progbits
30082 .section .eh_frame,"a",@progbits
30085 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30086 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30087 |
grep "gc-sections option ignored" > /dev
/null
; then
30089 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30090 |
grep gcc_except_table
> /dev
/null
; then
30091 gcc_cv_ld_eh_gc_sections_bug
=no
30094 rm -f conftest.s conftest.o conftest
30096 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30098 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30102 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30105 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30106 # gold/gld support compressed debug sections since binutils 2.19/2.21
30107 # In binutils 2.26, gld gained support for the ELF gABI format.
30108 if test $in_tree_ld = yes ; then
30109 gcc_cv_ld_compress_debug
=0
30110 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30111 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30112 gcc_cv_ld_compress_debug
=2
30113 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30114 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30115 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
30116 gcc_cv_ld_compress_debug
=3
30117 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30118 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30119 && test $in_tree_ld_is_elf = yes; then
30120 gcc_cv_ld_compress_debug
=1
30122 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30123 if test "$ld_vers_major" -lt 2 \
30124 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30125 gcc_cv_ld_compress_debug
=0
30126 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30127 gcc_cv_ld_compress_debug
=1
30129 gcc_cv_ld_compress_debug
=3
30130 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30132 if test $ld_is_gold = yes; then
30133 gcc_cv_ld_compress_debug
=2
30134 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30137 case "${target}" in
30139 # Introduced in Solaris 11.2.
30140 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30141 gcc_cv_ld_compress_debug
=3
30142 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30144 gcc_cv_ld_compress_debug
=0
30148 # Assume linkers other than GNU ld don't support compessed debug
30150 gcc_cv_ld_compress_debug
=0
30155 cat >>confdefs.h
<<_ACEOF
30156 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30160 cat >>confdefs.h
<<_ACEOF
30161 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30165 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30167 if test x
"$ld64_flag" = x
"yes"; then
30169 # Set defaults for possibly untestable items.
30170 gcc_cv_ld64_export_dynamic
=0
30172 if test "$build" = "$host"; then
30178 # On Darwin, because of FAT library support, it is often possible to execute
30179 # exes from compatible archs even when the host differs from the build system.
30180 case "$build","$host" in
30181 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30182 darwin_try_test
=1;;
30186 # If the configurer specified a minimum ld64 version to be supported, then use
30187 # that to determine feature support.
30188 if test x
"${gcc_cv_ld64_version}" != x
; then
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30190 $as_echo_n "checking ld64 specified version... " >&6; }
30191 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30193 $as_echo "$gcc_cv_ld64_major" >&6; }
30194 if test "$gcc_cv_ld64_major" -ge 236; then
30195 gcc_cv_ld64_export_dynamic
=1
30197 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30198 # If the version was not specified, try to find it.
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30200 $as_echo_n "checking linker version... " >&6; }
30201 if test x
"${gcc_cv_ld64_version}" = x
; then
30202 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30205 $as_echo "$gcc_cv_ld64_version" >&6; }
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30208 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30209 gcc_cv_ld64_export_dynamic
=1
30210 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30211 gcc_cv_ld64_export_dynamic
=0
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30214 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30217 if test x
"${gcc_cv_ld64_version}" != x
; then
30219 cat >>confdefs.h
<<_ACEOF
30220 #define LD64_VERSION "${gcc_cv_ld64_version}"
30226 cat >>confdefs.h
<<_ACEOF
30227 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30233 win32 | pe | cygwin
* | mingw32
*)
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30235 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30236 gcc_cv_ld_broken_pe_dwarf5
=yes
30237 if test $in_tree_ld = yes ; then
30238 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30239 $gcc_cv_ld_gld_srcdir/scripttempl
/pe
*.sc \
30240 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30241 $gcc_cv_ld_gld_srcdir/scripttempl
/pe
*.sc
; then
30242 gcc_cv_ld_broken_pe_dwarf5
=no
30245 if $gcc_cv_ld --verbose 2>&1 |
grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30246 && $gcc_cv_ld --verbose 2>&1 |
grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30247 gcc_cv_ld_broken_pe_dwarf5
=no
30250 if test x
$gcc_cv_ld_broken_pe_dwarf5 = xyes
; then
30252 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30256 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30265 $as_echo_n "checking linker --as-needed support... " >&6; }
30266 if ${gcc_cv_ld_as_needed+:} false
; then :
30267 $as_echo_n "(cached) " >&6
30269 gcc_cv_ld_as_needed
=no
30270 gcc_cv_ld_as_needed_option
='--as-needed'
30271 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30272 if test $in_tree_ld = yes ; then
30273 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 \
30274 && test $in_tree_ld_is_elf = yes; then
30275 gcc_cv_ld_as_needed
=yes
30276 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30277 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30278 gcc_cv_ld_no_as_needed_option
='--pop-state'
30281 elif test x
$gcc_cv_ld != x
; then
30282 # Check if linker supports --as-needed and --no-as-needed options
30283 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30284 gcc_cv_ld_as_needed
=yes
30285 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30286 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30287 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30288 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30289 # Use these options only when both ld.bfd and ld.gold support
30290 # --push-state/--pop-state, which unfortunately wasn't added
30291 # at the same time.
30292 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30293 gcc_cv_ld_no_as_needed_option
='--pop-state'
30296 case "$target:$gnu_ld" in
30298 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30300 gcc_cv_ld_as_needed
=yes
30301 gcc_cv_ld_as_needed_option
="-z ignore"
30302 gcc_cv_ld_no_as_needed_option
="-z record"
30306 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30307 # dl_iterate_phdr, i.e. since Solaris 11.
30309 *-*-solaris2.1
[1-9]*)
30311 i?
86-*-* | x86_64-
*-*)
30312 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30313 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30314 gcc_cv_ld_as_needed
=no
30320 gcc_cv_ld_as_needed
=no
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30326 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30327 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30329 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30332 cat >>confdefs.h
<<_ACEOF
30333 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30337 cat >>confdefs.h
<<_ACEOF
30338 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30344 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30345 saved_LDFLAGS
="$LDFLAGS"
30346 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30347 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30349 /* end confdefs.h. */
30350 int main(void) {return 0;}
30352 if ac_fn_cxx_try_link
"$LINENO"; then :
30353 gcc_cv_ld_clearcap
=yes; break
30355 gcc_cv_ld_clearcap
=no
30357 rm -f core conftest.err conftest.
$ac_objext \
30358 conftest
$ac_exeext conftest.
$ac_ext
30360 LDFLAGS
="$saved_LDFLAGS"
30361 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30363 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30365 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30369 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30375 emul_name
="-melf32lppc"
30378 emul_name
="-melf32ppc"
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30382 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30383 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30384 $as_echo_n "(cached) " >&6
30386 gcc_cv_ld_ppc_attr
=no
30387 if test x
"$ld_is_gold" = xyes
; then
30388 gcc_cv_ld_ppc_attr
=yes
30389 elif test $in_tree_ld = yes ; then
30390 if test "$gcc_cv_gld_major_version" -eq 2 \
30391 -a "$gcc_cv_gld_minor_version" -ge 28 \
30392 -o "$gcc_cv_gld_major_version" -gt 2; then
30393 gcc_cv_ld_ppc_attr
=yes
30395 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30396 # check that merging the long double .gnu_attribute doesn't warn
30397 cat > conftest1.s
<<EOF
30400 cat > conftest2.s
<<EOF
30403 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30404 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30405 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30406 && test ! -s conftest.err
; then
30407 gcc_cv_ld_ppc_attr
=yes
30409 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30414 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30415 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30417 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30423 case "$target:$tm_file" in
30424 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30427 emul_name
="-melf64lppc"
30430 emul_name
="-melf64ppc"
30433 emul_name
="-melf64lppc_fbsd"
30436 emul_name
="-melf64ppc_fbsd"
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30440 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30441 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30442 $as_echo_n "(cached) " >&6
30444 gcc_cv_ld_no_dot_syms
=no
30445 if test x
"$ld_is_gold" = xyes
; then
30446 gcc_cv_ld_no_dot_syms
=yes
30447 elif test $in_tree_ld = yes ; then
30448 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
30449 gcc_cv_ld_no_dot_syms
=yes
30451 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30452 cat > conftest1.s
<<EOF
30456 cat > conftest2.s
<<EOF
30457 .section ".opd","aw"
30460 .type foo,@function
30462 .quad .LEfoo,.TOC.@tocbase,0
30468 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30469 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30470 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30471 gcc_cv_ld_no_dot_syms
=yes
30473 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30478 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30479 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30481 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30486 $as_echo_n "checking linker large toc support... " >&6; }
30487 if ${gcc_cv_ld_large_toc+:} false
; then :
30488 $as_echo_n "(cached) " >&6
30490 gcc_cv_ld_large_toc
=no
30491 if test x
"$ld_is_gold" = xyes
; then
30492 gcc_cv_ld_large_toc
=yes
30493 elif test $in_tree_ld = yes ; then
30494 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
30495 gcc_cv_ld_large_toc
=yes
30497 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30498 cat > conftest.s
<<EOF
30499 .section ".tbss","awT",@nobits
30505 addis 9,13,ie0@got@tprel@ha
30506 ld 9,ie0@got@tprel@l(9)
30508 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30509 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30510 gcc_cv_ld_large_toc
=yes
30512 rm -f conftest conftest.o conftest.s
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30517 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30518 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30520 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30525 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30526 if ${gcc_cv_ld_toc_align+:} false
; then :
30527 $as_echo_n "(cached) " >&6
30529 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30530 cat > conftest.s
<<EOF
30535 .section .data.rel.ro,"aw",@progbits
30540 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30541 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30542 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)) }'`
30544 rm -f conftest conftest.o conftest.s
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30549 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30550 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30552 cat >>confdefs.h
<<_ACEOF
30553 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30563 $as_echo_n "checking linker large toc support... " >&6; }
30564 if ${gcc_cv_ld_large_toc+:} false
; then :
30565 $as_echo_n "(cached) " >&6
30567 gcc_cv_ld_large_toc
=no
30568 if test x
$gcc_cv_as != x
; then
30569 cat > conftest.s
<<EOF
30579 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30580 gcc_cv_ld_large_toc
=yes
30582 rm -f conftest conftest.o conftest.s
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30587 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30588 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30590 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30597 $as_echo_n "checking linker --build-id support... " >&6; }
30598 if ${gcc_cv_ld_buildid+:} false
; then :
30599 $as_echo_n "(cached) " >&6
30601 gcc_cv_ld_buildid
=no
30602 if test $in_tree_ld = yes ; then
30603 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30604 "$gcc_cv_gld_minor_version" -ge 18 -o \
30605 "$gcc_cv_gld_major_version" -gt 2 \
30606 && test $in_tree_ld_is_elf = yes; then
30607 gcc_cv_ld_buildid
=yes
30609 elif test x
$gcc_cv_ld != x
; then
30610 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30611 gcc_cv_ld_buildid
=yes
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30616 $as_echo "$gcc_cv_ld_buildid" >&6; }
30617 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30619 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30623 # Check whether --enable-linker-build-id was given.
30624 if test "${enable_linker_build_id+set}" = set; then :
30625 enableval
=$enable_linker_build_id;
30627 enable_linker_build_id
=no
30631 if test x
"$enable_linker_build_id" = xyes
; then
30632 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30634 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30638 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30642 # In binutils 2.21, GNU ld gained support for new emulations fully
30643 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30645 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30646 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30647 $as_echo_n "(cached) " >&6
30649 gcc_cv_ld_sol2_emulation
=no
30650 if test $in_tree_ld = yes ; then
30651 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30652 "$gcc_cv_gld_minor_version" -ge 21 -o \
30653 "$gcc_cv_gld_major_version" -gt 2 \
30654 && test $in_tree_ld_is_elf = yes; then
30655 gcc_cv_ld_sol2_emulation
=yes
30657 elif test x
$gcc_cv_ld != x
; then
30658 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30659 grep _sol2
> /dev
/null
; then
30660 gcc_cv_ld_sol2_emulation
=yes
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30665 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30666 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
30668 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30673 $as_echo_n "checking linker --sysroot support... " >&6; }
30674 if ${gcc_cv_ld_sysroot+:} false
; then :
30675 $as_echo_n "(cached) " >&6
30677 gcc_cv_ld_sysroot
=no
30678 if test $in_tree_ld = yes ; then
30679 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
30680 gcc_cv_ld_sysroot
=yes
30682 elif test x
$gcc_cv_ld != x
; then
30683 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
30684 gcc_cv_ld_sysroot
=yes
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30689 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30690 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
30692 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30698 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30700 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30701 if ${gcc_cv_solaris_crts+:} false
; then :
30702 $as_echo_n "(cached) " >&6
30704 gcc_cv_solaris_crts
=no
30705 if test x
$host != x
$target; then
30706 if test "x$with_sysroot" = xyes
; then
30707 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
30709 target_sysroot
="${with_sysroot}"
30712 target_libdir
="$target_sysroot/usr/lib"
30713 # At the time they were added, gcrt1.o became a symlink for backwards
30714 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30716 i?
86-*-solaris2* | x86_64-
*-solaris2*)
30717 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30719 sparc
*-*-solaris2*)
30720 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30725 $as_echo "$gcc_cv_solaris_crts" >&6; }
30728 if test x
$gcc_cv_solaris_crts = xyes
; then
30730 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30734 # Check whether --enable-libssp was given.
30735 if test "${enable_libssp+set}" = set; then :
30736 enableval
=$enable_libssp; case "${enableval}" in
30740 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30746 # Test for stack protector support in target C library.
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30748 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30749 if ${gcc_cv_libc_provides_ssp+:} false
; then :
30750 $as_echo_n "(cached) " >&6
30752 gcc_cv_libc_provides_ssp
=no
30753 if test "x$enable_libssp" = "xno"; then
30754 gcc_cv_libc_provides_ssp
=yes
30755 elif test "x$enable_libssp" = "xyes"; then
30756 gcc_cv_libc_provides_ssp
=no
30760 # All versions of musl provide stack protector
30761 gcc_cv_libc_provides_ssp
=yes;;
30762 *-*-linux* |
*-*-kfreebsd*-gnu)
30763 # glibc 2.4 and later provides __stack_chk_fail and
30764 # either __stack_chk_guard, or TLS access to stack guard canary.
30766 if test $glibc_version_major -gt 2 \
30767 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30768 gcc_cv_libc_provides_ssp
=yes
30771 if test -f $target_header_dir/features.h \
30772 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30773 $target_header_dir/features.h
> /dev
/null
; then
30774 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30775 $target_header_dir/features.h
> /dev
/null
&& \
30776 test -f $target_header_dir/bits
/uClibc_config.h
&& \
30777 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30778 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
30779 gcc_cv_libc_provides_ssp
=yes
30781 # all versions of Bionic support stack protector
30782 elif test -f $target_header_dir/sys
/cdefs.h \
30783 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30784 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
30785 gcc_cv_libc_provides_ssp
=yes
30790 # Avoid complicated tests (see
30791 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30792 # simply assert that glibc does provide this, which is true for all
30793 # realistically usable GNU/Hurd configurations.
30794 # All supported versions of musl provide it as well
30795 gcc_cv_libc_provides_ssp
=yes;;
30796 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
30797 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30798 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
30799 gcc_cv_libc_provides_ssp
=yes
30801 echo "no __stack_chk_fail on this target"
30805 *) gcc_cv_libc_provides_ssp
=no
;;
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30810 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30812 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30814 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30818 # Check whether --enable-default-ssp was given.
30819 # Check whether --enable-default-ssp was given.
30820 if test "${enable_default_ssp+set}" = set; then :
30821 enableval
=$enable_default_ssp;
30822 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30824 ia64
*-*-*) enable_default_ssp
=no
;;
30825 *) enable_default_ssp
=$enableval ;;
30828 enable_default_ssp
=no
30831 enable_default_ssp
=no
30834 if test x
$enable_default_ssp = xyes
; then
30836 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30841 # Test for <sys/sdt.h> on the target.
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30844 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30846 if test -f $target_header_dir/sys
/sdt.h
; then
30849 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30853 $as_echo "$have_sys_sdt_h" >&6; }
30855 # Check if TFmode long double should be used by default or not.
30856 # Some glibc targets used DFmode long double, but with glibc 2.4
30857 # and later they can use TFmode.
30859 powerpc
*-*-linux* | \
30860 sparc
*-*-linux* | \
30864 # Check whether --with-long-double-128 was given.
30865 if test "${with_long_double_128+set}" = set; then :
30866 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
30870 s390
*-*-linux-musl*)
30871 gcc_cv_target_ldbl128
=yes
30873 powerpc
*-*-linux-musl*)
30874 gcc_cv_target_ldbl128
=no
30878 if test $glibc_version_major -gt 2 \
30879 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30880 gcc_cv_target_ldbl128
=yes
30883 gcc_cv_target_ldbl128
=no
30884 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30885 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
30886 && gcc_cv_target_ldbl128
=yes
30897 if test x
$gcc_cv_target_ldbl128 = xyes
; then
30899 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30903 # Check if TFmode long double target should use the IBM extended double or IEEE
30904 # 128-bit floating point formats if long doubles are 128-bits long. The long
30905 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30906 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30909 # Check whether --with-long-double-format was given.
30910 if test "${with_long_double_format+set}" = set; then :
30911 withval
=$with_long_double_format;
30912 case "$target:$with_long_double_format" in
30913 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
30916 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
30917 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30918 case "$with_cpu" in
30919 power7 | power8 | power9 | power1
*)
30923 as_fn_error $?
"Configuration option --with-long-double-format is only \
30924 supported if the default cpu is power7 or newer" "$LINENO" 5
30925 with_long_double_format
=""
30929 powerpc64
*-*-linux*:*)
30930 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30931 with_long_double_format
=""
30934 as_fn_error $?
"Configure option --with-long-double-format is only supported \
30935 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30936 with_long_double_format
=""
30942 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30943 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30944 gcc_cv_libc_provides_hwcap_in_tcb
=no
30948 if test $glibc_version_major -gt 2 \
30949 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30950 gcc_cv_libc_provides_hwcap_in_tcb
=yes
30954 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
30956 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30960 # Check if the target LIBC handles PT_GNU_STACK.
30961 gcc_cv_libc_gnustack
=unknown
30965 if test $glibc_version_major -gt 2 \
30966 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30967 gcc_cv_libc_gnustack
=yes
30971 if test x
$gcc_cv_libc_gnustack = xyes
; then
30973 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30978 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30979 gcc_cv_target_dl_iterate_phdr
=unknown
30982 # <link.h> needs both a dl_iterate_phdr declaration and support for
30983 # compilation with largefile support.
30984 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
30985 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
30986 gcc_cv_target_dl_iterate_phdr
=yes
30988 gcc_cv_target_dl_iterate_phdr
=no
30991 *-*-dragonfly* |
*-*-freebsd*)
30992 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
30993 gcc_cv_target_dl_iterate_phdr
=yes
30995 gcc_cv_target_dl_iterate_phdr
=no
30999 gcc_cv_target_dl_iterate_phdr
=yes
31003 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31005 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31009 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31011 # We no longer support different GC mechanisms. Emit an error if
31012 # the user configures with --with-gc.
31014 # Check whether --with-gc was given.
31015 if test "${with_gc+set}" = set; then :
31016 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31020 # Libraries to use on the host. This will normally be set by the top
31021 # level Makefile. Here we simply capture the value for our Makefile.
31022 if test -z "${HOST_LIBS+set}"; then
31027 # Use the system's zlib library.
31029 # Use the system's zlib library.
31030 zlibdir
="-L\$(top_builddir)/../zlib"
31031 zlibinc
="-I\$(top_srcdir)/../zlib"
31033 # Check whether --with-system-zlib was given.
31034 if test "${with_system_zlib+set}" = set; then :
31035 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31048 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31049 # Check whether --enable-maintainer-mode was given.
31050 if test "${enable_maintainer_mode+set}" = set; then :
31051 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31058 $as_echo "$maintainer_mode" >&6; }
31060 if test "$maintainer_mode" = "yes"; then
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31068 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31069 # Check whether --enable-link-mutex was given.
31070 if test "${enable_link_mutex+set}" = set; then :
31071 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31077 $as_echo "$do_link_mutex" >&6; }
31079 if test "$do_link_mutex" = "yes"; then
31082 DO_LINK_MUTEX
=false
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31088 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31089 # Check whether --enable-link-serialization was given.
31090 if test "${enable_link_serialization+set}" = set; then :
31091 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31093 do_link_serialization
=no
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31097 $as_echo "$do_link_serialization" >&6; }
31099 case "$do_link_serialization" in
31101 DO_LINK_SERIALIZATION
=1;;
31102 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31103 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31105 DO_LINK_SERIALIZATION
=;;
31107 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31115 # Make empty files to contain the specs and options for each language.
31116 # Then add #include lines to for a compiler that has specs and/or options.
31122 # These (without "all_") are set in each config-lang.in.
31123 # `language' must be a single word so is spelled singularly.
31126 all_outputs
='Makefile'
31127 # List of language configure and makefile fragments.
31128 all_lang_configurefrags
=
31129 all_lang_makefrags
=
31130 # Additional files for gengtype
31131 all_gtfiles
="$target_gtfiles"
31133 # These are the languages that are set in --enable-languages,
31134 # and are available in the GCC tree.
31135 all_selected_languages
=
31137 # Add the language fragments.
31138 # Languages are added via two mechanisms. Some information must be
31139 # recorded in makefile variables, these are defined in config-lang.in.
31140 # We accumulate them and plug them into the main Makefile.
31141 # The other mechanism is a set of hooks for each of the main targets
31142 # like `clean', `install', etc.
31144 language_hooks
="Make-hooks"
31146 for lang
in ${srcdir}/*/config-lang.
in
31148 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31150 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31151 if test "x$lang_alias" = x
31153 echo "$lang doesn't set \$language." 1>&2
31156 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31157 subdirs
="$subdirs $subdir"
31159 # $gcc_subdir is where the gcc integration files are to be found
31160 # for a language, both for internal compiler purposes (compiler
31161 # sources implementing front-end to GCC tree converters), and for
31162 # build infrastructure purposes (Make-lang.in, etc.)
31164 # This will be <subdir> (relative to $srcdir) if a line like
31165 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31166 # is found in <langdir>/config-lang.in, and will remain <langdir>
31169 # Except for the language alias (fetched above), the regular
31170 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31171 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31172 # only this and the language alias.
31174 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31175 if [ "$gcc_subdir" = "" ]; then
31176 gcc_subdir
="$subdir"
31179 case ",$enable_languages," in
31181 all_selected_languages
="$all_selected_languages $lang_alias"
31182 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31183 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31194 .
${srcdir}/$gcc_subdir/config-lang.
in
31195 if test "x$language" = x
31197 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31202 case ",$enable_languages," in
31203 *,$lang_alias,*) ;;
31205 for i
in $subdir_requires; do
31206 test -f "${srcdir}/$i/config-lang.in" && continue
31214 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31215 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31216 # Put c/Make-lang.in fragment first to match serialization languages order.
31217 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31219 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31221 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31222 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31223 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31225 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31226 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31228 all_languages
="$all_languages $language"
31229 all_compilers
="$all_compilers $compilers"
31230 all_outputs
="$all_outputs $outputs"
31231 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31232 case ",$enable_languages," in
31235 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31245 for language
in $all_selected_languages
31247 check_languages
="$check_languages check-$language"
31250 selftest_languages
=
31251 for language
in $all_selected_languages
31253 selftest_languages
="$selftest_languages selftest-$language"
31256 # We link each language in with a set of hooks, reached indirectly via
31257 # lang.${target}. Only do so for selected languages.
31261 target_list
="all.cross start.encap rest.encap tags \
31262 install-common install-man install-info install-pdf install-html dvi \
31263 pdf html uninstall info man srcextra srcman srcinfo \
31264 mostlyclean clean distclean maintainer-clean install-plugin"
31266 for t
in $target_list
31269 for lang
in $all_selected_languages
31273 echo "lang.$t: $x" >> Make-hooks
31276 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31277 echo "SERIAL_LIST =" >> Make-hooks
31278 echo else >> Make-hooks
31282 serialization_languages
=c
31283 for lang
in $all_selected_languages
31285 test $lang = c
&& continue
31286 if test $lang = lto
; then
31287 serialization_languages
="$serialization_languages lto1 lto2"
31289 serialization_languages
="$serialization_languages $lang"
31292 for lang
in $serialization_languages
31294 test $lang = c
&& continue
31295 lang_cnt
=`expr $lang_cnt + 1`
31296 lang_list
=" $prev$lang_list"
31299 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31300 echo endif
>> Make-hooks
31301 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31302 echo "INDEX.c = 0" >> Make-hooks
31304 for lang
in $serialization_languages
31306 test $lang = c
&& continue
31307 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31308 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31309 lang_cnt
=`expr $lang_cnt - 1`
31310 lang_idx
=`expr $lang_idx + 1`
31314 # Option include files
31317 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31318 option_includes
="option-includes.mk"
31327 echo "dir ." > .gdbinit
31328 echo "dir ${srcdir}" >> .gdbinit
31329 if test x
$gdb_needs_out_file_path = xyes
31331 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31333 if test "x$subdirs" != x
; then
31336 echo "dir ${srcdir}/$s" >> .gdbinit
31339 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31340 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31342 # Put a breakpoint on __asan_report_error to help with debugging buffer
31345 *-fsanitize=address
*)
31346 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31350 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31354 # Find a directory in which to install a shared libgcc.
31356 # Check whether --enable-version-specific-runtime-libs was given.
31357 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31358 enableval
=$enable_version_specific_runtime_libs;
31362 # Substitute configuration variables
31433 if test x
${build} = x
${host} ; then
31434 if test x
${host} = x
${target} ; then
31435 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31437 echo "Links are now set up to build a cross-compiler" 1>&2
31438 echo " from ${host} to ${target}." 1>&2
31441 if test x
${host} = x
${target} ; then
31442 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31443 echo " for ${target}." 1>&2
31445 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31446 echo " from ${host} to ${target}." 1>&2
31455 if test "x${ISLLIBS}" != "x" ; then
31457 $as_echo "#define HAVE_isl 1" >>confdefs.h
31461 # Check for plugin support
31462 # Check whether --enable-plugin was given.
31463 if test "${enable_plugin+set}" = set; then :
31464 enableval
=$enable_plugin; enable_plugin
=$enableval
31466 enable_plugin
=yes; default_plugin
=yes
31475 # Since plugin support under MinGW is not as straightforward as on
31476 # other platforms (e.g., we have to link import library, etc), we
31477 # only enable it if explicitly requested.
31478 if test x
"$default_plugin" = x
"yes"; then
31480 elif test x
"$enable_plugin" = x
"yes"; then
31481 # Use make's target variable to derive import library name.
31482 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31487 if test x
$build = x
$host; then
31488 export_sym_check
="nm${exeext} -g"
31489 elif test x
$host = x
$target; then
31490 export_sym_check
="$gcc_cv_nm -g"
31496 if test x
$build = x
$host; then
31497 export_sym_check
="objdump${exeext} -T"
31498 elif test x
$host = x
$target; then
31499 export_sym_check
="$gcc_cv_objdump -T"
31506 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31509 $as_echo_n "checking for exported symbols... " >&6; }
31510 if test "x$export_sym_check" != x
; then
31511 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31512 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31513 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31514 : # No need to use a flag
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31516 $as_echo "yes" >&6; }
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31519 $as_echo "yes" >&6; }
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31521 $as_echo_n "checking for -rdynamic... " >&6; }
31522 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31523 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31524 plugin_rdynamic
=yes
31525 pluginlibs
="-rdynamic"
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31531 $as_echo "$plugin_rdynamic" >&6; }
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31535 $as_echo "unable to check" >&6; }
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31541 $as_echo_n "checking for library containing dlopen... " >&6; }
31542 if ${ac_cv_search_dlopen+:} false
; then :
31543 $as_echo_n "(cached) " >&6
31545 ac_func_search_save_LIBS
=$LIBS
31546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31547 /* end confdefs.h. */
31549 /* Override any GCC internal prototype to avoid an error.
31550 Use char because int might match the return type of a GCC
31551 builtin and then its argument prototype would still apply. */
31564 for ac_lib
in '' dl
; do
31565 if test -z "$ac_lib"; then
31566 ac_res
="none required"
31569 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31571 if ac_fn_cxx_try_link
"$LINENO"; then :
31572 ac_cv_search_dlopen
=$ac_res
31574 rm -f core conftest.err conftest.
$ac_objext \
31576 if ${ac_cv_search_dlopen+:} false
; then :
31580 if ${ac_cv_search_dlopen+:} false
; then :
31583 ac_cv_search_dlopen
=no
31585 rm conftest.
$ac_ext
31586 LIBS
=$ac_func_search_save_LIBS
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31589 $as_echo "$ac_cv_search_dlopen" >&6; }
31590 ac_res
=$ac_cv_search_dlopen
31591 if test "$ac_res" != no
; then :
31592 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31596 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31597 pluginlibs
="$pluginlibs -ldl"
31601 # Check that we can build shared objects with -fPIC -shared
31602 saved_LDFLAGS
="$LDFLAGS"
31603 saved_CFLAGS
="$CFLAGS"
31606 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31607 CFLAGS
="$CFLAGS -fPIC"
31608 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31611 CFLAGS
="$CFLAGS -fPIC"
31612 LDFLAGS
="$LDFLAGS -fPIC -shared"
31615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31616 $as_echo_n "checking for -fPIC -shared... " >&6; }
31617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31618 /* end confdefs.h. */
31628 if ac_fn_cxx_try_link
"$LINENO"; then :
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31630 $as_echo "yes" >&6; }; have_pic_shared
=yes
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31633 $as_echo "no" >&6; }; have_pic_shared
=no
31635 rm -f core conftest.err conftest.
$ac_objext \
31636 conftest
$ac_exeext conftest.
$ac_ext
31637 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
31641 LDFLAGS
="$saved_LDFLAGS"
31642 CFLAGS
="$saved_CFLAGS"
31644 # If plugin support had been requested but not available, fail.
31645 if test x
"$enable_plugin" = x
"no" ; then
31646 if test x
"$default_plugin" != x
"yes"; then
31648 Building GCC with plugin support requires a host that supports
31649 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31656 if test x
"$enable_plugin" = x
"yes"; then
31658 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31663 # Enable --enable-host-shared
31664 # Check whether --enable-host-shared was given.
31665 if test "${enable_host_shared+set}" = set; then :
31666 enableval
=$enable_host_shared; PICFLAG
=-fPIC
31675 # Check whether --enable-libquadmath-support was given.
31676 if test "${enable_libquadmath_support+set}" = set; then :
31677 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
31679 ENABLE_LIBQUADMATH_SUPPORT
=yes
31682 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31684 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31689 # Specify what hash style to use by default.
31691 # Check whether --with-linker-hash-style was given.
31692 if test "${with_linker_hash_style+set}" = set; then :
31693 withval
=$with_linker_hash_style; case x
"$withval" in
31695 LINKER_HASH_STYLE
=sysv
31698 LINKER_HASH_STYLE
=gnu
31701 LINKER_HASH_STYLE
=both
31704 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31708 LINKER_HASH_STYLE
=''
31711 if test x
"${LINKER_HASH_STYLE}" != x
; then
31713 cat >>confdefs.h
<<_ACEOF
31714 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31719 # Specify what should be the default of -fdiagnostics-color option.
31721 # Check whether --with-diagnostics-color was given.
31722 if test "${with_diagnostics_color+set}" = set; then :
31723 withval
=$with_diagnostics_color; case x
"$withval" in
31725 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
31728 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31731 DIAGNOSTICS_COLOR_DEFAULT
=-1
31734 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
31737 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31741 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31745 cat >>confdefs.h
<<_ACEOF
31746 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31750 # Specify what should be the default of -fdiagnostics-urls option.
31752 # Check whether --with-diagnostics-urls was given.
31753 if test "${with_diagnostics_urls+set}" = set; then :
31754 withval
=$with_diagnostics_urls; case x
"$withval" in
31756 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
31759 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31762 DIAGNOSTICS_URLS_DEFAULT
=-1
31765 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
31768 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31772 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31776 cat >>confdefs.h
<<_ACEOF
31777 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31781 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31782 # of jit/jit-playback.c.
31783 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31784 echo "gcc_driver_version: ${gcc_driver_version}"
31785 cat > gcc-driver-name.h
<<EOF
31786 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31789 # Check whether --enable-default-pie was given.
31790 # Check whether --enable-default-pie was given.
31791 if test "${enable_default_pie+set}" = set; then :
31792 enableval
=$enable_default_pie; enable_default_pie
=$enableval
31794 enable_default_pie
=no
31797 if test x
$enable_default_pie = xyes
; then
31799 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31804 # Check if -fno-PIE works.
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31806 $as_echo_n "checking for -fno-PIE option... " >&6; }
31807 if ${gcc_cv_c_no_fpie+:} false
; then :
31808 $as_echo_n "(cached) " >&6
31810 saved_CXXFLAGS
="$CXXFLAGS"
31811 CXXFLAGS
="$CXXFLAGS -fno-PIE"
31812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31813 /* end confdefs.h. */
31814 int main(void) {return 0;}
31816 if ac_fn_cxx_try_compile
"$LINENO"; then :
31817 gcc_cv_c_no_fpie
=yes
31819 gcc_cv_c_no_fpie
=no
31821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31822 CXXFLAGS
="$saved_CXXFLAGS"
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31825 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31826 if test "$gcc_cv_c_no_fpie" = "yes"; then
31827 NO_PIE_CFLAGS
="-fno-PIE"
31831 # Check if -no-pie works.
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31833 $as_echo_n "checking for -no-pie option... " >&6; }
31834 if ${gcc_cv_no_pie+:} false
; then :
31835 $as_echo_n "(cached) " >&6
31837 saved_LDFLAGS
="$LDFLAGS"
31838 LDFLAGS
="$LDFLAGS -no-pie"
31839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31840 /* end confdefs.h. */
31841 int main(void) {return 0;}
31843 if ac_fn_cxx_try_link
"$LINENO"; then :
31848 rm -f core conftest.err conftest.
$ac_objext \
31849 conftest
$ac_exeext conftest.
$ac_ext
31850 LDFLAGS
="$saved_LDFLAGS"
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31853 $as_echo "$gcc_cv_no_pie" >&6; }
31854 if test "$gcc_cv_no_pie" = "yes"; then
31855 NO_PIE_FLAG
="-no-pie"
31859 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31860 # Check whether --enable-cet was given.
31861 if test "${enable_cet+set}" = set; then :
31862 enableval
=$enable_cet;
31863 case "$enableval" in
31865 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31874 $as_echo_n "checking for CET support... " >&6; }
31877 i
[34567]86-*-linux* | x86_64-
*-linux*)
31879 cet_save_CFLAGS
="$CFLAGS"
31880 CFLAGS
="$CFLAGS -fcf-protection"
31881 case "$enable_cet" in
31883 # Check if target supports multi-byte NOPs
31884 # and if compiler and assembler support CET.
31885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31886 /* end confdefs.h. */
31892 #if !defined(__SSE2__)
31893 #error target does not support multi-byte NOPs
31902 if ac_fn_cxx_try_compile
"$LINENO"; then :
31907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31910 # Check if compiler and assembler support CET.
31911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31912 /* end confdefs.h. */
31922 if ac_fn_cxx_try_compile
"$LINENO"; then :
31927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31928 if test $support_cet = "no"; then
31929 if test x
$enable_bootstrap != xno \
31930 && test -z "${with_build_subdir}" \
31931 && (test ! -f ..
/stage_current \
31932 ||
test `cat ../stage_current` != "stage1"); then
31933 # Require CET support only for the final GCC build.
31934 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31936 # Don't enable CET without CET support for non-bootstrap
31937 # build, in stage1 nor for build support.
31943 CFLAGS
="$cet_save_CFLAGS"
31951 cet_save_CFLAGS
="$CFLAGS"
31952 CFLAGS
="$CFLAGS -fcf-protection=none"
31953 cet_save_LDFLAGS
="$LDFLAGS"
31954 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31955 if test x
$may_have_cet = xyes
; then
31956 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31958 /* end confdefs.h. */
31968 if ac_fn_cxx_try_link
"$LINENO"; then :
31973 rm -f core conftest.err conftest.
$ac_objext \
31974 conftest
$ac_exeext conftest.
$ac_ext
31977 if test x
$may_have_cet = xyes
; then
31978 if test x
$cross_compiling = xno
; then
31979 if test "$cross_compiling" = yes; then :
31980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31982 as_fn_error $?
"cannot run test program while cross compiling
31983 See \`config.log' for more details" "$LINENO" 5; }
31985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31986 /* end confdefs.h. */
31994 __attribute__ ((noinline, noclone))
31995 xxx (void (*f) (void))
32001 __attribute__ ((noinline, noclone))
32015 if ac_fn_cxx_try_run
"$LINENO"; then :
32020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32024 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32025 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32029 # Enable CET in cross compiler if possible so that it will run on both
32030 # CET and non-CET hosts.
32033 if test x
$enable_cet = xyes
; then
32034 CET_HOST_FLAGS
="-fcf-protection"
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036 $as_echo "yes" >&6; }
32038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32039 $as_echo "no" >&6; }
32041 CFLAGS
="$cet_save_CFLAGS"
32042 LDFLAGS
="$cet_save_LDFLAGS"
32044 case x
$enable_languages in
32053 # Check linker supports '-z bndplt'
32054 ld_bndplt_support
=no
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32056 $as_echo_n "checking linker -z bndplt option... " >&6; }
32057 if test x
"$ld_is_gold" = xno
; then
32058 if test $in_tree_ld = yes ; then
32059 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
32060 ld_bndplt_support
=yes
32062 elif test x
$gcc_cv_ld != x
; then
32063 # Check if linker supports -a bndplt option
32064 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32065 ld_bndplt_support
=yes
32069 if test x
"$ld_bndplt_support" = xyes
; then
32071 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32075 $as_echo "$ld_bndplt_support" >&6; }
32077 # Check linker supports '--push-state'/'--pop-state'
32078 ld_pushpopstate_support
=no
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32080 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32081 if test x
"$ld_is_gold" = xno
; then
32082 if test $in_tree_ld = yes ; then
32083 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
32084 ld_pushpopstate_support
=yes
32086 elif test x
$gcc_cv_ld != x
; then
32087 # Check if linker supports --push-state/--pop-state options
32088 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32089 ld_pushpopstate_support
=yes
32093 if test x
"$ld_pushpopstate_support" = xyes
; then
32095 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32099 $as_echo "$ld_pushpopstate_support" >&6; }
32101 # On s390, float_t has historically been statically defined as double for no
32102 # good reason. To comply with the C standard in the light of this definition,
32103 # gcc has evaluated float expressions in double precision when in
32104 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32105 # a smooth transition towards the new model used by most architectures, where
32106 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32107 # float_t from that, this behavior can be configured with
32108 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32109 # the old model. When omitted, native builds and cross compiles that have target
32110 # libc headers will detect whether libc clamps float_t to double and in that
32111 # case maintain the old model. Otherwise, they will default to the new model.
32112 # Check whether --enable-s390-excess-float-precision was given.
32113 if test "${enable_s390_excess_float_precision+set}" = set; then :
32114 enableval
=$enable_s390_excess_float_precision;
32116 enable_s390_excess_float_precision
=auto
32122 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32123 # Can we autodetect the behavior of the target libc?
32124 if test "$target" = "$host" -a "$host" = "$build"; then
32125 enable_s390_excess_float_precision
=autodetect
32126 elif test "x$with_headers" != xno
; then
32127 # cross build. are target headers available?
32128 # carefully coerce the build-system compiler to use target headers
32129 saved_CXXFLAGS
="$CXXFLAGS"
32130 CROSS_TEST_CXXFLAGS
="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
32131 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32133 /* end confdefs.h. */
32138 if ac_fn_cxx_try_compile
"$LINENO"; then :
32139 enable_s390_excess_float_precision
=autodetect
32141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32142 CXXFLAGS
="$saved_CXXFLAGS"
32145 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32146 saved_CXXFLAGS
="$CXXFLAGS"
32147 if ! test "$target" = "$host" -a "$host" = "$build"; then
32148 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32149 unset CROSS_TEST_CXXFLAGS
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32152 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32153 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32154 $as_echo_n "(cached) " >&6
32157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32158 /* end confdefs.h. */
32160 #define __FLT_EVAL_METHOD__ 0
32162 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32165 if ac_fn_cxx_try_compile
"$LINENO"; then :
32166 gcc_cv_float_t_clamped_to_double
=yes
32168 gcc_cv_float_t_clamped_to_double
=no
32170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32173 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32174 CXXFLAGS
="$saved_CXXFLAGS"
32175 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32177 # no way to detect behavior of target libc, default to new model
32178 enable_s390_excess_float_precision
=no
32183 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32185 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32191 # Configure the subdirectories
32192 # AC_CONFIG_SUBDIRS($subdirs)
32194 # Create the Makefile
32195 # and configure language subdirectories
32196 ac_config_files
="$ac_config_files $all_outputs"
32199 ac_config_commands
="$ac_config_commands default"
32201 cat >confcache
<<\_ACEOF
32202 # This file is a shell script that caches the results of configure
32203 # tests run on this system so they can be shared between configure
32204 # scripts and configure runs, see configure's option --config-cache.
32205 # It is not useful on other systems. If it contains results you don't
32206 # want to keep, you may remove or edit it.
32208 # config.status only pays attention to the cache file if you give it
32209 # the --recheck option to rerun configure.
32211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32213 # following values.
32217 # The following way of writing the cache mishandles newlines in values,
32218 # but we know of no workaround that is simple, portable, and efficient.
32219 # So, we kill variables containing newlines.
32220 # Ultrix sh set writes to stderr and can't be redirected directly,
32221 # and sets the high bit in the cache file unless we assign to the vars.
32223 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32224 eval ac_val
=\$
$ac_var
32228 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32232 _ | IFS | as_nl
) ;; #(
32233 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32234 *) { eval $ac_var=; unset $ac_var;} ;;
32240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32241 *${as_nl}ac_space
=\
*)
32242 # `set' does not quote correctly, so add quotes: double-quote
32243 # substitution turns \\\\ into \\, and sed turns \\ into \.
32246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32249 # `set' quotes correctly as required by POSIX, so do not add quotes.
32250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32263 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32264 if test -w "$cache_file"; then
32265 if test "x$cache_file" != "x/dev/null"; then
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32267 $as_echo "$as_me: updating cache $cache_file" >&6;}
32268 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32269 cat confcache
>"$cache_file"
32271 case $cache_file in #(
32273 mv -f confcache
"$cache_file"$$
&&
32274 mv -f "$cache_file"$$
"$cache_file" ;; #(
32276 mv -f confcache
"$cache_file" ;;
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32287 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32288 # Let make expand exec_prefix.
32289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32291 DEFS
=-DHAVE_CONFIG_H
32296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32297 # 1. Remove the extension, and $U if already installed.
32298 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32299 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32301 # will be set to the directory where LIBOBJS objects are built.
32302 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32303 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32305 LIBOBJS
=$ac_libobjs
32307 LTLIBOBJS
=$ac_ltlibobjs
32312 : "${CONFIG_STATUS=./config.status}"
32314 ac_clean_files_save
=$ac_clean_files
32315 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32321 # Generated by $as_me.
32322 # Run this file to recreate the current configuration.
32323 # Compiler output produced by configure, useful for debugging
32324 # configure, is in config.log if it exists.
32327 ac_cs_recheck=false
32330 SHELL=\${CONFIG_SHELL-$SHELL}
32333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32334 ## -------------------- ##
32335 ## M4sh Initialization. ##
32336 ## -------------------- ##
32338 # Be more Bourne compatible
32339 DUALCASE
=1; export DUALCASE
# for MKS sh
32340 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32344 # is contrary to our usage. Disable this feature.
32345 alias -g '${1+"$@"}'='"$@"'
32346 setopt NO_GLOB_SUBST
32348 case `(set -o) 2>/dev/null` in #(
32360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32361 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32364 # Prefer a ksh shell builtin over an external printf program on Solaris,
32365 # but without wasting forks for bash or zsh.
32366 if test -z "$BASH_VERSION$ZSH_VERSION" \
32367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32368 as_echo='print
-r --'
32369 as_echo_n='print
-rn --'
32370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32371 as_echo='printf %s
\n'
32372 as_echo_n='printf %s
'
32374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32375 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32376 as_echo_n='/usr
/ucb
/echo -n'
32378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32379 as_echo_n_body='eval
32383 expr "X$arg" : "X\\(.*\\)$as_nl";
32384 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32386 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32388 export as_echo_n_body
32389 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32391 export as_echo_body
32392 as_echo='sh
-c $as_echo_body as_echo
'
32395 # The user is always right.
32396 if test "${PATH_SEPARATOR+set}" != set; then
32398 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32399 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32406 # We need space, tab and new line, in precisely that order. Quoting is
32407 # there to prevent editors from complaining about space-tab.
32408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32409 # splitting by setting IFS to empty value.)
32412 # Find who we are. Look in the path if we contain no directory separator.
32415 *[\\/]* ) as_myself=$0 ;;
32416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417 for as_dir in $PATH
32420 test -z "$as_dir" && as_dir=.
32421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32427 # We did not find ourselves, most probably we were run as `sh COMMAND'
32428 # in which case we are not to be found in the path.
32429 if test "x$as_myself" = x
; then
32432 if test ! -f "$as_myself"; then
32433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32437 # Unset variables that we do not need and which cause bugs (e.g. in
32438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32439 # suppresses any "Segmentation fault" message there. '((' could
32440 # trigger a bug in pdksh 5.2.14.
32441 for as_var
in BASH_ENV ENV MAIL MAILPATH
32442 do eval test x\
${$as_var+set} = xset \
32443 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32456 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32460 # ----------------------------------------
32461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32463 # script with STATUS, using 1 if that was 0.
32466 as_status
=$1; test $as_status -eq 0 && as_status
=1
32468 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32471 $as_echo "$as_me: error: $2" >&2
32472 as_fn_exit
$as_status
32476 # as_fn_set_status STATUS
32477 # -----------------------
32478 # Set $? to STATUS, without forking.
32479 as_fn_set_status
()
32482 } # as_fn_set_status
32484 # as_fn_exit STATUS
32485 # -----------------
32486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32490 as_fn_set_status
$1
32496 # Portably unset VAR.
32499 { eval $1=; unset $1;}
32501 as_unset
=as_fn_unset
32502 # as_fn_append VAR VALUE
32503 # ----------------------
32504 # Append the text in VALUE to the end of the definition contained in VAR. Take
32505 # advantage of any shell optimizations that allow amortized linear growth over
32506 # repeated appends, instead of the typical quadratic growth present in naive
32508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32509 eval 'as_fn_append ()
32520 # as_fn_arith ARG...
32521 # ------------------
32522 # Perform arithmetic evaluation on the ARGs, and store the result in the
32523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32524 # must be portable across $(()) and expr.
32525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32526 eval 'as_fn_arith ()
32533 as_val
=`expr "$@" || test $? -eq 1`
32538 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32539 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32545 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32546 as_basename
=basename
32551 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32557 as_me
=`$as_basename -- "$0" ||
32558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32559 X"$0" : 'X\(//\)$' \| \
32560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32562 sed '/^.*\/\([^/][^/]*\)\/*$/{
32576 # Avoid depending upon Character Ranges.
32577 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32578 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32579 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32580 as_cr_digits
='0123456789'
32581 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32583 ECHO_C
= ECHO_N
= ECHO_T
=
32584 case `echo -n x` in #(((((
32586 case `echo 'xy\c'` in
32587 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32589 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32596 rm -f conf$$ conf$$.exe conf$$.
file
32597 if test -d conf$$.dir
; then
32598 rm -f conf$$.dir
/conf$$.
file
32601 mkdir conf$$.dir
2>/dev
/null
32603 if (echo >conf$$.
file) 2>/dev
/null
; then
32604 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32606 # ... but there are two gotchas:
32607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32609 # In both cases, we have to default to `cp -pR'.
32610 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32612 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32620 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32621 rmdir conf$$.dir
2>/dev
/null
32626 # Create "$as_dir" as a directory, including parents if necessary.
32631 -*) as_dir
=.
/$as_dir;;
32633 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32637 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32638 *) as_qdir
=$as_dir;;
32640 as_dirs
="'$as_qdir' $as_dirs"
32641 as_dir
=`$as_dirname -- "$as_dir" ||
32642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32643 X"$as_dir" : 'X\(//\)[^/]' \| \
32644 X"$as_dir" : 'X\(//\)$' \| \
32645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32646 $as_echo X"$as_dir" |
32647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32651 /^X\(\/\/\)[^/].*/{
32664 test -d "$as_dir" && break
32666 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32667 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32671 if mkdir
-p .
2>/dev
/null
; then
32672 as_mkdir_p
='mkdir -p "$as_dir"'
32674 test -d .
/-p && rmdir .
/-p
32679 # as_fn_executable_p FILE
32680 # -----------------------
32681 # Test if FILE is an executable regular file.
32682 as_fn_executable_p
()
32684 test -f "$1" && test -x "$1"
32685 } # as_fn_executable_p
32686 as_test_x
='test -x'
32687 as_executable_p
=as_fn_executable_p
32689 # Sed expression to map a string onto a valid CPP name.
32690 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32692 # Sed expression to map a string onto a valid variable name.
32693 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32697 ## ----------------------------------- ##
32698 ## Main body of $CONFIG_STATUS script. ##
32699 ## ----------------------------------- ##
32701 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32704 # Save the log message, to keep $0 and so on meaningful, and to
32705 # report actual input values of CONFIG_FILES etc. instead of their
32706 # values after options handling.
32708 This file was extended by $as_me, which was
32709 generated by GNU Autoconf 2.69. Invocation command line was
32711 CONFIG_FILES = $CONFIG_FILES
32712 CONFIG_HEADERS = $CONFIG_HEADERS
32713 CONFIG_LINKS = $CONFIG_LINKS
32714 CONFIG_COMMANDS = $CONFIG_COMMANDS
32717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32722 case $ac_config_files in *"
32723 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32726 case $ac_config_headers in *"
32727 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32732 # Files that config.status was made for.
32733 config_files="$ac_config_files"
32734 config_headers="$ac_config_headers"
32735 config_links="$ac_config_links"
32736 config_commands="$ac_config_commands"
32740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32742 \`$as_me' instantiates files and other configuration actions
32743 from templates according to the current configuration. Unless the files
32744 and actions are specified as TAGs, all are instantiated by default.
32746 Usage: $0 [OPTION]... [TAG]...
32748 -h, --help print this help, then exit
32749 -V, --version print version number and configuration settings, then exit
32750 --config print configuration, then exit
32751 -q, --quiet, --silent
32752 do not print progress messages
32753 -d, --debug don't remove temporary files
32754 --recheck update $as_me by reconfiguring in the same conditions
32755 --file=FILE[:TEMPLATE]
32756 instantiate the configuration file FILE
32757 --header=FILE[:TEMPLATE]
32758 instantiate the configuration header FILE
32760 Configuration files:
32763 Configuration headers:
32766 Configuration links:
32769 Configuration commands:
32772 Report bugs to the package provider."
32775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32776 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32779 configured by $0, generated by GNU Autoconf 2.69,
32780 with options \\"\$ac_cs_config\\"
32782 Copyright (C) 2012 Free Software Foundation, Inc.
32783 This config.status script is free software; the Free Software Foundation
32784 gives unlimited permission to copy, distribute and modify it."
32789 test -n "\$AWK" || AWK=awk
32792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32793 # The default lists apply if the user does not specify any file.
32799 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32800 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32804 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32816 # Handling of the options.
32817 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32819 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32820 $as_echo "$ac_cs_version"; exit ;;
32821 --config |
--confi |
--conf |
--con |
--co |
--c )
32822 $as_echo "$ac_cs_config"; exit ;;
32823 --debug |
--debu |
--deb |
--de |
--d |
-d )
32825 --file |
--fil |
--fi |
--f )
32828 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32829 '') as_fn_error $?
"missing file argument" ;;
32831 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32832 ac_need_defaults
=false
;;
32833 --header |
--heade |
--head |
--hea )
32836 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32838 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32839 ac_need_defaults
=false
;;
32841 # Conflict between --help and --header
32842 as_fn_error $?
"ambiguous option: \`$1'
32843 Try \`$0 --help' for more information.";;
32844 --help |
--hel |
-h )
32845 $as_echo "$ac_cs_usage"; exit ;;
32846 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32847 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32850 # This is an error.
32851 -*) as_fn_error $?
"unrecognized option: \`$1'
32852 Try \`$0 --help' for more information." ;;
32854 *) as_fn_append ac_config_targets
" $1"
32855 ac_need_defaults
=false
;;
32861 ac_configure_extra_args
=
32863 if $ac_cs_silent; then
32865 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32870 if \$ac_cs_recheck; then
32871 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32874 CONFIG_SHELL='$SHELL'
32875 export CONFIG_SHELL
32880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32885 ## Running $as_me. ##
32891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32895 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32896 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32903 # Handling of arguments.
32904 for ac_config_target
in $ac_config_targets
32906 case $ac_config_target in
32907 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
32908 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
32909 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
32910 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
32911 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32912 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
32913 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32914 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
32915 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32917 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32922 # If the user did not use the arguments to specify the items to instantiate,
32923 # then the envvar interface is used. Set only those that are not.
32924 # We use the long form for the default assignment because of an extremely
32925 # bizarre bug on SunOS 4.1.3.
32926 if $ac_need_defaults; then
32927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32929 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
32930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32933 # Have a temporary directory for convenience. Make it in the build tree
32934 # simply because there is no reason against having it here, and in addition,
32935 # creating and moving files from /tmp can sometimes cause problems.
32936 # Hook for its removal unless debugging.
32937 # Note that there is a small window in which the directory will not be cleaned:
32938 # after its creation but before its name has been assigned to `$tmp'.
32942 trap 'exit_status=$?
32943 : "${ac_tmp:=$tmp}"
32944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32946 trap 'as_fn_exit 1' 1 2 13 15
32948 # Create a (secure) tmp directory for tmp files.
32951 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32955 tmp
=.
/conf$$
-$RANDOM
32956 (umask 077 && mkdir
"$tmp")
32957 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32960 # Set up the scripts for CONFIG_FILES section.
32961 # No need to generate them if there are no CONFIG_FILES.
32962 # This happens for instance with `./config.status config.h'.
32963 if test -n "$CONFIG_FILES"; then
32965 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
32966 ac_cs_awk_getline
=:
32967 ac_cs_awk_pipe_init
=
32968 ac_cs_awk_read_file
='
32969 while ((getline aline < (F[key])) > 0)
32972 ac_cs_awk_pipe_fini
=
32974 ac_cs_awk_getline
=false
32975 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
32976 ac_cs_awk_read_file
='
32978 print "cat " F[key] " &&"
32979 '$ac_cs_awk_pipe_init
32980 # The final `:' finishes the AND list.
32981 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
32983 ac_cr
=`echo X | tr X '\015'`
32984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32985 # But we know of no other shell where ac_cr would be empty at this
32986 # point, so we can use a bashism as a fallback.
32987 if test "x$ac_cr" = x
; then
32988 eval ac_cr
=\$
\'\\r
\'
32990 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32994 ac_cs_awk_cr
=$ac_cr
32997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33000 # Create commands to substitute file output variables.
33002 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33003 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33004 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33007 } >conf$
$files.sh
&&
33008 . .
/conf$
$files.sh ||
33009 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33010 rm -f conf$
$files.sh
33013 echo "cat >conf$$subs.awk <<_ACEOF" &&
33014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33016 } >conf$$subs.sh ||
33017 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33020 for ac_last_try in false false false false false :; do
33021 . ./conf$$subs.sh ||
33022 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33024 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33025 if test $ac_delim_n = $ac_delim_num; then
33027 elif $ac_last_try; then
33028 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33030 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33033 rm -f conf$$subs.sh
33035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33036 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33040 s/^/S["/; s
/!.
*/"]=/
33050 s/\(.\{148\}\)..*/\1/
33052 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33057 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33064 s/\(.\{148\}\)..*/\1/
33066 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33070 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33075 ' <conf$$subs.awk | sed '
33080 ' >>$CONFIG_STATUS || ac_write_fail=1
33081 rm -f conf$$subs.awk
33082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33084 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33085 for (key in S) S_is_set[key] = 1
33087 \$ac_cs_awk_pipe_init
33091 nfields = split(line, field, "@
")
33093 len = length(field[1])
33094 for (i = 2; i < nfields; i++) {
33096 keylen = length(key)
33097 if (S_is_set[key]) {
33099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33100 len += length(value) + length(field[++i])
33105 if (nfields == 3 && !substed) {
33107 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33108 \$ac_cs_awk_read_file
33114 \$ac_cs_awk_pipe_fini
33117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33118 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33119 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33122 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33123 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33126 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33127 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33128 # trailing colons and then remove the whole line if VPATH becomes empty
33129 # (actually we leave an empty line to preserve line numbers).
33130 if test "x
$srcdir" = x.; then
33131 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33150 fi # test -n "$CONFIG_FILES"
33152 # Set up the scripts for CONFIG_HEADERS section.
33153 # No need to generate them if there are no CONFIG_HEADERS.
33154 # This happens for instance with `./config.status Makefile'.
33155 if test -n "$CONFIG_HEADERS"; then
33156 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33160 # Transform confdefs.h into an awk script `defines.awk', embedded as
33161 # here-document in config.status, that substitutes the proper values into
33162 # config.h.in to produce config.h.
33164 # Create a delimiter string that does not exist in confdefs.h, to ease
33165 # handling of long lines.
33167 for ac_last_try in false false :; do
33168 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33169 if test -z "$ac_tt"; then
33171 elif $ac_last_try; then
33172 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33174 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33178 # For the awk script, D is an array of macro values keyed by name,
33179 # likewise P contains macro parameters if any. Preserve backslash
33180 # newline sequences.
33182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33184 s/.\{148\}/&'"$ac_delim"'/g
33187 s/^[ ]*#[ ]*define[ ][ ]*/ /
33194 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33196 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33201 D["\
1"]=" \
3\\\\\\n
"\\/p
33203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33208 s/.\{148\}/&'"$ac_delim"'/g
33213 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33216 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33218 ' <confdefs.h | sed '
33219 s/'"$ac_delim"'/"\\\
33220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33223 for (key in D) D_is_set[key] = 1
33226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33228 split(line, arg, " ")
33229 if (arg[1] == "#") {
33233 defundef
= substr
(arg
[1], 2)
33236 split(mac1
, mac2
, "(") #)
33238 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33239 if (D_is_set
[macro
]) {
33240 # Preserve the white space surrounding the "#".
33241 print prefix
"define", macro P
[macro
] D
[macro
]
33244 # Replace #undef with comments. This is necessary, for example,
33245 # in the case of _POSIX_SOURCE, which is predefined and required
33246 # on some systems where configure will not decide to define it.
33247 if (defundef
== "undef") {
33248 print
"/*", prefix defundef
, macro
, "*/"
33256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33257 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33258 fi # test -n "$CONFIG_HEADERS"
33261 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33266 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33268 case $ac_mode$ac_tag in
33270 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33271 :[FH
]-) ac_tag
=-:-;;
33272 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33289 -) ac_f
="$ac_tmp/stdin";;
33290 *) # Look for the file first in the build tree, then in the source tree
33291 # (if the path is not absolute). The absolute path cannot be DOS-style,
33292 # because $ac_f cannot contain `:'.
33296 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33298 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33300 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33301 as_fn_append ac_file_inputs
" '$ac_f'"
33304 # Let's still pretend it is `configure' which instantiates (i.e., don't
33305 # use $as_me), people would be surprised to read:
33306 # /* config.h. Generated by config.status. */
33307 configure_input
='Generated from '`
33308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33310 if test x
"$ac_file" != x-
; then
33311 configure_input
="$ac_file. $configure_input"
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33313 $as_echo "$as_me: creating $ac_file" >&6;}
33315 # Neutralize special characters interpreted by sed in replacement strings.
33316 case $configure_input in #(
33317 *\
&* |
*\|
* |
*\\* )
33318 ac_sed_conf_input
=`$as_echo "$configure_input" |
33319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33320 *) ac_sed_conf_input
=$configure_input;;
33324 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33325 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33330 ac_dir
=`$as_dirname -- "$ac_file" ||
33331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33332 X"$ac_file" : 'X\(//\)[^/]' \| \
33333 X"$ac_file" : 'X\(//\)$' \| \
33334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33335 $as_echo X"$ac_file" |
33336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33340 /^X\(\/\/\)[^/].*/{
33353 as_dir
="$ac_dir"; as_fn_mkdir_p
33357 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33359 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33360 # A ".." for each directory in $ac_dir_suffix.
33361 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33362 case $ac_top_builddir_sub in
33363 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33364 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33367 ac_abs_top_builddir
=$ac_pwd
33368 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33369 # for backward compatibility:
33370 ac_top_builddir
=$ac_top_build_prefix
33373 .
) # We are building in place.
33375 ac_top_srcdir
=$ac_top_builddir_sub
33376 ac_abs_top_srcdir
=$ac_pwd ;;
33377 [\\/]* | ?
:[\\/]* ) # Absolute name.
33378 ac_srcdir
=$srcdir$ac_dir_suffix;
33379 ac_top_srcdir
=$srcdir
33380 ac_abs_top_srcdir
=$srcdir ;;
33381 *) # Relative name.
33382 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33383 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33384 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33386 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33398 # If the template does not know about datarootdir, expand it.
33399 # FIXME: This hack should be removed a few years after 2.60.
33400 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33412 *datarootdir
*) ac_datarootdir_seen
=yes;;
33413 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33418 ac_datarootdir_hack='
33419 s&@datadir@&$datadir&g
33420 s&@docdir@&$docdir&g
33421 s&@infodir@&$infodir&g
33422 s&@localedir@&$localedir&g
33423 s&@mandir@&$mandir&g
33424 s&\\\${datarootdir}&$datarootdir&g' ;;
33428 # Neutralize VPATH when `$srcdir' = `.'.
33429 # Shell code in configure.ac might set extrasub.
33430 # FIXME: do we really want to maintain this feature?
33431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33432 ac_sed_extra="$ac_vpsub
33435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33437 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33438 s|@configure_input@|
$ac_sed_conf_input|
;t t
33439 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33440 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33441 s
&@srcdir@
&$ac_srcdir&;t t
33442 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33443 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33444 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33445 s
&@builddir@
&$ac_builddir&;t t
33446 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33447 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33448 $ac_datarootdir_hack
33450 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33451 if $ac_cs_awk_getline; then
33452 $AWK -f "$ac_tmp/subs.
awk"
33454 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33456 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33461 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33463 which seems to be undefined. Please make sure it is defined" >&5
33464 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33465 which seems to be undefined. Please make sure it is defined" >&2;}
33467 rm -f "$ac_tmp/stdin"
33469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33478 if test x"$ac_file" != x-; then
33480 $as_echo "/* $configure_input */" \
33481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33482 } >"$ac_tmp/config.h" \
33483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33486 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33489 mv "$ac_tmp/config.h" "$ac_file" \
33490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33493 $as_echo "/* $configure_input */" \
33494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33495 || as_fn_error $? "could not create -" "$LINENO" 5
33503 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33506 # Prefer the file from the source tree if names are identical.
33507 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33508 ac_source=$srcdir/$ac_source
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33512 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33514 if test ! -r "$ac_source"; then
33515 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33519 # Try a relative symlink, then a hard link, then a copy.
33521 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33522 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33524 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33525 ln "$ac_source" "$ac_file" 2>/dev/null ||
33526 cp -p "$ac_source" "$ac_file" ||
33527 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33530 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33531 $as_echo "$as_me: executing $ac_file commands" >&6;}
33536 case $ac_file$ac_mode in
33537 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33539 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33540 for lang in $subdirs c-family common analyzer rtl-ssa
33542 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33544 "as":F) chmod +x as ;;
33545 "collect-ld":F) chmod +x collect-ld ;;
33546 "nm":F) chmod +x nm ;;
33548 case ${CONFIG_HEADERS} in
33549 *auto-host.h:config.in*)
33552 # Make sure all the subdirs exist.
33553 for d in $subdirs doc build common c-family
33555 test -d $d || mkdir $d
33565 ac_clean_files=$ac_clean_files_save
33567 test $ac_write_fail = 0 ||
33568 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33571 # configure is writing to config.log, and then calls config.status.
33572 # config.status does its own redirection, appending to config.log.
33573 # Unfortunately, on DOS this fails, as config.log is still kept open
33574 # by configure, so config.status won't be able to
write to it
; its
33575 # output is simply discarded. So we exec the FD to /dev/null,
33576 # effectively closing config.log, so it can be properly (re)opened and
33577 # appended to by config.status. When coming back to configure, we
33578 # need to make the FD available again.
33579 if test "$no_create" != yes; then
33581 ac_config_status_args
=
33582 test "$silent" = yes &&
33583 ac_config_status_args
="$ac_config_status_args --quiet"
33585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33588 # would make configure fail if this is the last instruction.
33589 $ac_cs_success || as_fn_exit
1
33591 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33593 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}